[Bug]: DOCX to PDF fails
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
Research direction
The timeout is raised in ProcessRunner.RunAsync (src/Filee.Engines/Infrastructure/ProcessRunner.cs) and reached through LibreOfficeConverter.RunAsync and ConvertOnceAsync in src/Filee.Engines/Office/LibreOfficeConverter.cs. Start by reproducing the DOCX-to-PDF conversion with the attached file and comparing it with the command-line soffice run. Pull request #1015 is already open against this issue, so check it before starting any work.
Written by the indexing model from the issue text.
Description
What happened?
Hello,
I'm trying Filee to convert multiple formats, however, it's failing converting DOCX files to PDF. Sometimes, it gives "Missing document fonts: Arial (CS
Gövde)" message, although the document does not contain Arial font.
The document that is not converted to PDF with Filee can be converted from command line without errors using following command:
soffice --headless --convert-to pdf "C:\test\word_to_pdf.docx" --outdir "C:\test"
Any help would be appreciated.
Best regards.
What did you expect?
No response
Steps to reproduce
- CTRL+Press file to reveal Donut toolbar, select PDF
- Progress stuck around 90% throwing error message
Files involved
Filee version
2.2.0
Operating system
Windows 11 Pro 26H2
Engines page status
Log
14:43:06.740 INFO RadialController: Converting 1 file(s) with preset to-pdf
14:46:06.787 WARN JobQueue: Converting C:\test\word_to_pdf.docx failed
System.TimeoutException: soffice.exe did not finish within 180 s.
at Filee.Engines.Infrastructure.ProcessRunner.RunAsync(String executable, IEnumerable`1 arguments, TimeSpan timeout, CancellationToken cancellationToken, String workingDirectory, IDictionary`2 environment, Action`1 onOutput, Nullable`1 stallTimeout) in D:\a\Filee\Filee\src\Filee.Engines\Infrastructure\ProcessRunner.cs:line 90
at Filee.Engines.Office.LibreOfficeConverter.RunAsync(String soffice, Int32 slot, String filter, String outDir, String input, CancellationToken cancellationToken) in D:\a\Filee\Filee\src\Filee.Engines\Office\LibreOfficeConverter.cs:line 310
at Filee.Engines.Office.LibreOfficeConverter.ConvertOnceAsync(String soffice, Int32 slot, String filter, String workDirectory, String input, IProgress`1 progress, CancellationToken cancellationToken) in D:\a\Filee\Filee\src\Filee.Engines\Office\LibreOfficeConverter.cs:line 179
at Filee.Engines.Office.LibreOfficeConverter.ConvertAsync(ConversionStep step, IProgress`1 progress, CancellationToken cancellationToken) in D:\a\Filee\Filee\src\Filee.Engines\Office\LibreOfficeConverter.cs:line 119
at Filee.Core.Conversion.JobQueue.RunFileAsync(ConversionJob job, FileResult file, Int32 index, RoutePlanner planner, String workDir, Boolean finalOutput, String intermediate, Double ceiling, Preset options) in D:\a\Filee\Filee\src\Filee.Core\Conversion\JobQueue.cs:line 864
14:46:36.840 INFO MemoryTrimmer: Trimmed memory: private 304 MB → 303 MB (managed heap 1 MB) in 46 ms
- Dominant language
- C#
- Stars
- 3.6k
- Forks
- 192
- Avg merge
- 7h 17m
- Merged PRs (30d)
- 393
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from KnifeLemon/Filee
-
[Format]: .dartOpenformats
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
KnifeLemon/Filee#980 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 30/100
KnifeLemon/Filee#1017 · 1 comment ·
Maintainers usually reply within 1 day
-
转换为表格的功能加强Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
KnifeLemon/Filee#1016 · 1 comment ·
Maintainers usually reply within 1 day
-
[Format]: .p7mOpenformats
Difficulty 4/5 3-5 days Newbie friendliness 45/100
KnifeLemon/Filee#1010 · 1 comment ·
Maintainers usually reply within 1 day
-
Can’t find enginesOpen
Difficulty 3/5 Half a day Newbie friendliness 25/100
KnifeLemon/Filee#1009 · 1 comment ·
Maintainers usually reply within 1 day
All issues in KnifeLemon/Filee
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
RadicalCSG/com.chisel#192 ·
Maintainers usually reply within 1 day
-
area-testing p2-post-1.0 technical-debt
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RazorConsole/RazorConsole#447 ·
Maintainers usually reply within 1 day
-
CloudEventsMiddleware decodes JSON string data for `+json` content typesPossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
dapr/dotnet-sdk#1964 ·
Maintainers usually reply within 1 day
-
bug P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day