View as MarkdownMarkdown
Not optimized files may contain embedded fonts. GroupDocs.Viewer can remove unused instructions in embedded fonts to reduce the file size.
To subset fonts in a PDF file, set the subset_fonts property to True.
The following code snippet shows how to subset fonts in a PDF file:
The following image demonstrates the result. There is no difference in appearance:

But there is the significant difference in size:

We value your opinion. Your feedback will help us improve our documentation.