News for hackers. Stuff that matters.
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!
Re:SumatraPDF Reader by VMG on Tuesday October 24, 2023 @06:02AM (#37996860)
mapping coordinates via projection matrices pretty common tbh
Re:SumatraPDF Reader by viraptor on Tuesday October 24, 2023 @06:54AM (#37997217)
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.