Hi, Seems there are pdf files like https://www.courts.state.hi.us/docs/form/oahu/1DC08.pdf which has font object such as:
464 0 obj << /Name /Helv /Type /Font /Subtype /TrueType /BaseFont /Helvetica /Encoding 465 0 R /FontDescriptor 466 0 R >> endobj 466 0 obj << /Type /FontDescriptor /FontName /Arial /Ascent 1006 /CapHeight 716 /Descent -325 /Flags 32 /FontBBox [ -665 -325 2000 1006 ] /ItalicAngle 0 /StemV 88 /XHeight 519 >> endobj It looks like it should be base 14 font Helvetica but it has subtype TrueType, FontName in font descriptor is Arial but is missing FontFile, FontFile2, Widths and MissingWidth. Maybe this has to be treated as external font? But Widths is required except for base 14 fonts. It looks like Helvetica in pdf viewers. This font and pdf is definitely corrupted because base 14 fonts either should have all or none of Widths, FirstChar, LastChar, FontDescriptor. And other type 1 and truetype fonts should have all of them according to pdf reference. But more such pdf files exist. Some have correct Subtype Type1 but still have FontDescriptor without Widths. And podofo cannot handle such situation. I am thinking whether should not podofo try to interpret fonts with Subtype Type1/TrueType with FontDescriptor present but missing Widths and FontFile or FontFile2 as base 14 fonts.
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users