217 points · by ingve · 3y ago · 30 comments
Is there a reason you can't have both? Presumably you have structured data at some point, before it's laid out on the page and saved as PDF. Why not just save that alongside the PDFs? You could also serialize it and include it in a PDF metadata field, so it can be extracted from the files even if the database is lost.
Even those with text actually attached / extractable have no structure. "Selecting blocks of text" involves guessing which order the lines go in, depending on their location / distance from other lines.
Compare to having for example "<recipient-address>...</...>" from which you can still generate the printed version.
I’m hoping pdfcpu does the right thing instead and actually rotates the image in the file.
cpdf -upright in.pdf -o out.pdf
will set the page rotation to zero, counter-rotating the page dimensions and content to compensate, leaving it visually unaltered.(Disclaimer: I wrote it)
I’m guessing they were copy and pasting from PDFs, and unchecked this was breaking the front end system.
Things have changed since 1998, and as hardware has grown so have the requirements for the software that utilizes it.
I wonder if the relative percentages have changed much since 1998.