Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
Check HWPX fonts before rendering substitutions
Perrichenof7251ca01c9c
diff --git a/src/Filee.Engines/Hwp/RhwpConverter.cs b/src/Filee.Engines/Hwp/RhwpConverter.csindex 0b60d9fd..e3d5ce37 100644--- a/src/Filee.Engines/Hwp/RhwpConverter.cs+++ b/src/Filee.Engines/Hwp/RhwpConverter.cs@@ -62,9 +62,10 @@ public sealed class RhwpConverter : IConverter, ITextShapingCheckvar temp = Path.Combine(step.WorkDirectory, $"rhwp-{Guid.NewGuid():N}.{step.To}");try{- var input = step.To == "pdf" ? await PrepareAsync(exe, step, cancellationToken) : step.InputPath;- if (step.To == "pdf" && DocumentFonts.Missing(input) is [_, ..] missing)+ // Inspect the original HWPX before RhwpInput replaces absent fonts in its temporary rendering copy.+ if (step.To == "pdf" && DocumentFonts.Missing(step.InputPath) is [_, ..] missing)step.MissingFonts?.Invoke(missing);+ var input = step.To == "pdf" ? await PrepareAsync(exe, step, cancellationToken) : step.InputPath;string[] arguments = step.To switch{"pdf" => ["export-pdf", input, "-o", temp, .. RhwpInput.PdfOptions()],