This sample shows how to optimize fonts in PDF documents using Docotic.Pdf library.
Use PdfDocument.RemoveUnusedFontGlyphs methods to optimize PDF fonts. These methods remove unused glyphs from the fonts and can significantly reduce output file size.
You can also optimize individual fonts using PdfFont.RemoveUnusedGlyphs method.
This sample shows only one approach to reduce size of a PDF. Please check Compress PDF documents in C# and VB.NET sample code to see more approaches.