Earlier quoted context omitted.
Hello. My project is essentially a replacement for a small subset of LaTeX. I use LaTeX for a lot of my own work but the massive amount of converters going from LaTeX to PDF is the reason I started this project in the first place.
Understood. Is your project open source? I'm curious to see what the solution looks like when you sort it out. I feel like there must be a lot of heavy lifting (but also a lot of cruft if all you care about is a narrow case) being done by pdflatex to get to an output pdf. It will be interesting to see what the minimal solution looks like.
Ask HN: Why is the PDF format so inaccessible?
41–50 of 109 posts
Re: Ask HN: Why is the PDF format so inaccessible?
#42The PDF spec is officially available here: http://www.adobe.com/go/pdfreference There’s also this book which provides a good introduction and overview and is useful for understanding how the format works (although the PDF reference itself is pretty decent too, as far as specs go): https://www.oreilly.com/library/view/developing-with-pdf/978... (You can find a PDF copy if you look around.) EDIT: There’s also https://w…
I'm afraid that's the old 2008 spec, which specifies versions up to PDF 1.7.
The current standard is ISO 32000-2, released in 2020, which specifies PDF-2.0. I'd love to get my hands on it, but alas it's paywalled.
Re: Ask HN: Why is the PDF format so inaccessible?
#43The PDF spec is officially available here: http://www.adobe.com/go/pdfreference There’s also this book which provides a good introduction and overview and is useful for understanding how the format works (although the PDF reference itself is pretty decent too, as far as specs go): https://www.oreilly.com/library/view/developing-with-pdf/978... (You can find a PDF copy if you look around.) EDIT: There’s also https://w…
> The PDF spec is officially available here I'm afraid that's the old 2008 spec, which specifies versions up to PDF 1.7. The current standard is ISO 32000-2, released in 2020, which specifies PDF-2.0. I'd love to get my hands on it, but alas it's paywalled.
This page lists the major changes: https://www.loc.gov/preservation/digital/formats/fdd/fdd0004...
The FDIS of PDF 2.0 is available here for those who are curious: https://cdn.standards.iteh.ai/samples/75839/ad216d84afd34f96...
I don’t know if there are any significant changes between the FDIS and the published version, but it’s better to assume there may be some.
Re: Ask HN: Why is the PDF format so inaccessible?
#44It's old, proprietary, modeled after the PostScript printer control language, from an era before XML, and never had the intention of being open.
I have the impression you have no direct contact, experience, or first-hand knowledge with PDF.
If age mattered (which it doesn't) then PDF's latest update was published on 2020, which is far fresher than XML's spec.
Nevertheless, it's absurd to compare a document format with a markup language. at most, you should compare ooxml with PDF, if that comparison mattered. If it did then you'd certainly be surprised when you'd discover that PDF is far simpler and more readable and easier to reason about than ooxml+XML.
Nevertheless what makes PDF complex is that it has about a dozen versions which support everything and the kitchen sink, including incremental document updates which can also be comprised of ad-hoc version updates.
Re: Ask HN: Why is the PDF format so inaccessible?
#45Re: Ask HN: Why is the PDF format so inaccessible?
#46Wouldn't that be nice. Not directly answering your question, but I suppose the solution is to just pick the closest thing and convert. HTML&CSS being the most full-featured/generic. Markdown simplest for basic 'word processing'. Latex good for more advanced such cases. Images good for others. Maybe ePub would suit your 'typographical' needs (I think it's a lot more open than PDF, and itself HTML based)?
PDFs specify fixed format. You need some out-of-band info to generate PDFs from HTML.
> Maybe ePub would suit your 'typographical' needs (I think it's a lot more open than PDF, and itself HTML based)?
EPub is basically a zip with HTML+CSS+some metadata. Newer versions were based on HTML5 while older ones were based on XHTML.
Re: Ask HN: Why is the PDF format so inaccessible?
#47The PDF spec is officially available here: http://www.adobe.com/go/pdfreference There’s also this book which provides a good introduction and overview and is useful for understanding how the format works (although the PDF reference itself is pretty decent too, as far as specs go): https://www.oreilly.com/library/view/developing-with-pdf/978... (You can find a PDF copy if you look around.) EDIT: There’s also https://w…
I've always found it amusing from a "bootstrapping" perspective that the PDF spec is itself a PDF. That said, if you're only writing and not reading existing ones, it's as straightforward or as complex as you want to make it. I wrote a little program many years ago to convert plaintext to PDF in <1kLoC of C --- and its output was actually often many times smaller than what the commercial PDF-generators do, because I…
Re: Ask HN: Why is the PDF format so inaccessible?
#48From the title, I thought you meant inaccessible as in providing little to no affordances for users of assistive technology (you know, accessibility, a11y… alt text, semantic markup, that sort of thing)
Re: Ask HN: Why is the PDF format so inaccessible?
#49The PDF spec is officially available here: http://www.adobe.com/go/pdfreference There’s also this book which provides a good introduction and overview and is useful for understanding how the format works (although the PDF reference itself is pretty decent too, as far as specs go): https://www.oreilly.com/library/view/developing-with-pdf/978... (You can find a PDF copy if you look around.) EDIT: There’s also https://w…
Re: Ask HN: Why is the PDF format so inaccessible?
#50I did this once. Maybe my small journal will be useful. https://github.com/jchv/resume/blob/master/journal.md