PDF Optimizer font handling

Q:

We are trying to understand the exact behaviour of PDFNet Optimizer (http://www.pdftron.com/pdfnet/samplecode.html#Optimizer) with regards to removing duplicate font data. Would you be able to provide a list of scenarios that it supports and what the expected outcome is? For example:

  1. Merging two PDFs with the same font fully embedded in each: Duplicate fully embedded font is discarded and font is only fully embedded once in output.

  2. Merging two PDFs with the same font fully embedded in each and partially embedded in the other: Duplicate partially embedded font is discarded and font is only fully embedded once in output.

  3. Merging two PDFs with the same font partially embedded in each, with some characters being present in both subsets and other characters being unique to each: Existing subsets are discarded and new subset created that contains all used characters.


A: Currently PDFNet Optimizer will eliminate fonts that have the same data streams (fully embedded or subsetted). The optimizer does not compare and merge glyph streams within a font.