Understanding pdf font -


i have huge list of pdf font types, here have part of it:

'/anhchm+helvetica-bold',  '/kofane+agaramondpro-regular',  '/ajhcpe+advot863180fb',  '/fheenc+advp4c4e74',  '/fchdee+advtimes-bi',  '/ekieme+helvetica',  '/oeppam+advot8608a8d1+22',  '/pnljmh+mqxhpfadvtt4ff65459',  '/mljnob+helvetica-bold',  '/fchafa+advtt689d5d16.b+20' 

some of quite readable such 'helvetica-bold', or 'helvetica', others encoded.

i need discover list information like: if it's bold or not, if it's italic or not, text size, , if it's possible more readable font format, 'times new roman', 'arial'.

do know libraries this, or can tell me logic of weird names?

thank you!

these font ids in /resources dictionary, name has no meaning.
have inside font dictionary, font descriptor , possibly actual font data (if font embedded) information looking for.

bold - there no specific flag tells if font bold or not. /basefont entry in font dictionary can give hint, /fontweight entry in font descriptor can give hint.
italic - /italicangle entry in font descriptor can give information. /basefont entry can give hint (if names contains italic or oblique words)
text size - have parse page content find size specific text instance.
readable font name - /basefont entry contains font name. pdf generator application can create custom name font subset cannot know original font. can further inspect /fontfamily entry in font descriptor or can parse actual font data font name information.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -