News for hackers. Stuff that matters.
Re:Show HN: I am building a new Python library to read/write... by jahewson on Thursday November 17, 2022 @08:43PM (#33648730)
Re:Show HN: I am building a new Python library to read/write... by copperbrick25 on Thursday November 17, 2022 @09:29PM (#33649107)
Sadly XPS is not supported by most software, I'd love to use something better than PDF, but even LibreOffice can't export as OXPS.
Re:Show HN: I am building a new Python library to read/write... by userbinator on Thursday November 17, 2022 @09:52PM (#33649358)
Anything related to XML is arguably even worse.
Re:Show HN: I am building a new Python library to read/write... by mdaniel on Friday November 18, 2022 @12:55PM (#33658754)
I know it's fun to hate on XML, but as compared to inventing a new pseudo-text-pseudo-binary format, its parsing mechanics are well understood

I'm not claiming all of PDF's woes are related to its encoding, but it's not zero, either. Start from the fact that XML documents have XML Schema allowing one to formally specify what can and cannot appear where. The PDF specification is a bunch of English which makes for shitty constraint boundaries