Yuras / pdf-toolbox

A collection of tools for processing PDF files in Haskell
181 stars 25 forks source link

parse FontDescriptor and use FontBBox for y-coordinates of glyphs #61

Closed lueck closed 4 years ago

lueck commented 4 years ago
lueck commented 4 years ago

Sorry for the delay. I've made the warnings disappear, changed the types of FontName, FontFamily and FontStretch to ByteString and fixed optionalInDict and requiredInDict.

lueck commented 4 years ago

I just fixed parsing of CharSet. It's an ASCII string or a byte string, but no name. I found the issue when testing on TeX-generated PDFs.

Yuras commented 4 years ago

Thanks! I'll check it again and merge it, hopefully tomorrow. (I'm a bit busy and might forget, so please ping me if you won't see any reply from me in the next few days. Sorry in advance.)

Yuras commented 4 years ago

Looks great, thank you.