Re:SumatraPDF Reader
by viraptor on Monday October 23, 2023 @11:52PM
(#37994706)
Even once you have a parser itself, actually figuring out what to display and where is... interesting. Especially in generated rather than hand-created documents. What's the element's position? Grab your math library, we're multiplying matrices! What does this text say? Let's write another parser for the table of very custom codepoints!
[ Parent
| on HN ]
mapping coordinates via projection matrices pretty common tbh
If you change/transform then on the fly - sure. If they're on a final, not-designed-as-editable format... Not that common. I don't really see any reason (beyond PS origins and its historical usage) for PDFs to not flatten the final positions/sizes.