List of Fonts Group Docs provide for PDF Conversion

I want to know the list of Fonts that Groupdocs will provide for PDF Generation

@akashkrishnan

Currently, there isn’t a specific list of fonts provided by GroupDocs for PDF generation mentioned in the available documentation. However, you can set a default font for your PDF documents using the PdfLoadOptions class. This allows you to specify a font that will be used if a font is missing during the conversion process.

You can also define font substitutions for specific fonts that may not be available on the system where the document is being rendered. This is done by using the FontSubstitutes property of the PdfLoadOptions class.

Here’s a brief example of how to set a default font and specify font substitutions in C#:

using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Load;
using System.Collections.Generic;

Func<LoadContext, LoadOptions> getLoadOptions = loadContext => new PdfLoadOptions
{
    DefaultFont = "Helvetica", // Set your default font here
    FontSubstitutes = new List<FontSubstitute>
    {
        FontSubstitute.Create("Tahoma", "Arial"),
        FontSubstitute.Create("Times New Roman", "Arial"),
    }
};

using (Converter converter = new Converter("sample.pdf", getLoadOptions))
{
    WordProcessingConvertOptions options = new WordProcessingConvertOptions();
    converter.Convert("converted.docx", options);
}

In this example, if “Helvetica” is not available, it will use the specified substitutes for “Tahoma” and “Times New Roman” as “Arial”.

For more detailed information, you can refer to the GroupDocs documentation on PDF load options and the API reference.

If you have specific font requirements or need further assistance, feel free to ask!

Sources:
[1]: Load PDF document with options
[2]: PdfLoadOptions - Java - GroupDocs API References