Tom Morris on Nostr: I frequently have to deal with #PDF files that contain nested PDFs (which Adobe ...
I frequently have to deal with #PDF files that contain nested PDFs (which Adobe marketed as "PDF Portfolios").
They open fine in pdf.js in Firefox, but not in macOS Preview. They are just PDFs that have one page telling the user to download and use Adobe Acrobat (no way, fuck that), and then a bunch of attachments.
They're worse in every way than just distributing a zip/tarball of PDFs. Here's a 20 line Python script (with a nix-shell shebang) to unwrap 'em.
https://gist.github.com/tommorris/6983a78a61ed3cae55d3bf62b9486bf7
They open fine in pdf.js in Firefox, but not in macOS Preview. They are just PDFs that have one page telling the user to download and use Adobe Acrobat (no way, fuck that), and then a bunch of attachments.
They're worse in every way than just distributing a zip/tarball of PDFs. Here's a 20 line Python script (with a nix-shell shebang) to unwrap 'em.
https://gist.github.com/tommorris/6983a78a61ed3cae55d3bf62b9486bf7