Converting to PDF - Embed Fonts

Hello,

It is my understanding that when converting to PDF the font should get embedded? Please correct me if I am wrong.

I have an issue where by a converted document in only embedding a subset of the font, this causes me issues later on as if I edit the text using other software the missing characters can’t be used.

I am using the default options for converting word to PDF including so believe this to be a bug?

PdfOptions.OptimizationOptions.FontSubsetStrategy.None

@rthomas95

Please share the following details so we can look into this scenario:

  • The version of GroupDocs.Conversion you are using
  • Sample conversion code
  • Source and resulting files
  • Which software you are using to edit the resulting PDF
  • Whether the source file’s font is installed on your machine

Version is 25.10

Please find attached source and result documents

source.docx (13.3 KB)
result.pdf (22.3 KB)

Conversion code as follows.

LoadOptions GetLoadOptions(LoadContext context)
{
    var loadOptions = new WordProcessingLoadOptions
    {
        Format = (WordProcessingFileType)FileType.FromExtension(Path.GetExtension(fileToConvert.FileName)),
        DefaultFont = "Arial"
    };

    return loadOptions;
}

using var ms = new MemoryStream();
await fileToConvert.CopyToAsync(ms);
var fs = new MemoryStream();

using var converter = new Converter(() => ms, (lc) => GetLoadOptions(lc), () => GetConverterSettings());
var convertOptions = new PdfConvertOptions();

converter.Convert(convertOptions, (Action<ConvertedContext>)(context =>
{
    context.ConvertedStream.CopyTo(fs);
}));

Here is the screenshot from Adobe Reader showing only certain subset is embedded.

image.png (42.3 KB)

1 Like

@rthomas95
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONNET-8110

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.