by macspoofing · 6y ago · 0 comments
>We also intend to build functionality for users to automatically generate accessible PDFs from HTML documents.
How about the other way.. PDFs -> HTML documents.
Only superficially. .docx and .odt are single files as PDF is, but the contents of those files are very different. A PDF document is designed around the assumption of printed pages with a fixed layout. Yes, tagged PDF has been retrofitted onto the base PDF format for accessibility, but most PDFs that I've seen in the wild do not use this extra feature.
To understand why starting with a PDF and converting to HTML is a bad idea, try any PDF-to-HTML converter you can find; there's the pdftohtml utility included with Xpdf and Poppler, but any of the commercial alternatives are not a lot better. Once you learn more about how PDF works, you'll understand why PDF to HTML conversion can't be very good.
Oh I see you've added that. The problem with PDF to HTML is thst your trying to fit something static back into something dynamic. I also don't see how pdf rendering is any less complicated. There are many browser implementations that can easily render gov.uk without issues.
You appear to be jumping to ridiculous conclusions. Decisions on how we deliver content are made on the back of a huge amount of research. It's more accessible than it's ever been, other governments and organisations are following our lead.
To suggest PDF, ODF or other crippled, inaccessible, OS-constrained formats over HTML - something everyone can read with any of their devices - shows you need to do more research before posting your ill-informed views.
[0] https://github.com/alphagov/govspeak
Edit: Also, web page have plenty of other advantages. Indexed by every search engine, bookmarkable/shareable headings. What other medium offers that?
You're probably looking for the WARC [0] ISO standard. Widely supported and used. Including by the UK [1].
WARC is simple enough that tools to create or extract from it are dime a dozen.
As for the incredibly complicated rendering engines to look at the extracted HTML when you want, then even links doesn't struggle to render the content.
[0] https://www.loc.gov/preservation/digital/formats/fdd/fdd0002...