We use PDFTron PDFNet SDK in our application to extract information from PDF files. Using PDFTron code, is there any way to identify whether the font is embedded or Embedded Subset.?
pdftron.PDF.Font font = new pdftron.PDF.Font(fnt_dict);
bool is_embedded = font.IsEmbedded();
A quick way to identify if a PDF font is subsetted is to check if the font name is prefixed with a 6 character string followed by ‘+’. For example:
bool IsSubsetted(Font f) {
// Check for a subset prefix in the font name.
string fn = f.GetName();
int idx = fn.find_first_of('+');
return (idx==6 && fn.size()>7);
}
This is the same technique used to classify fonts in Acrobat’s font dialog.