public static boolean isFontEmbedded(PdfObject pdfObject){
  final int fontType=pdfObject.getParameterConstant(PdfDictionary.Subtype);
  if (fontType == StandardFonts.TYPE0) {
    pdfObject=pdfObject.getDictionary(PdfDictionary.DescendantFonts);
  }
  final PdfObject descFontObj=pdfObject.getDictionary(PdfDictionary.FontDescriptor);
  if (descFontObj == null) {
    return false;
  }
 else {
    return descFontObj.hasStream();
  }
}

public static boolean isFontEmbedded ( PdfObject pdfObject ) { final int fontType = pdfObject . getParameterConstant ( PdfDictionary . Subtype ) ; if ( fontType == StandardFonts . TYPE0 ) { pdfObject = pdfObject . getDictionary ( PdfDictionary . DescendantFonts ) ; } final PdfObject descFontObj = pdfObject . getDictionary ( PdfDictionary . FontDescriptor ) ; if ( descFontObj == null ) { return false ; } else { return descFontObj . hasStream ( ) ; } }
check for embedded font file to see if font embedded
