News for hackers. Stuff that matters.
Re:Jim Keller criticizes Nvidia's CUDA, x86 by mschuster91 on Friday February 23, 2024 @09:32AM (#39480989)
PDF hasn't been a vendor-locked swamp for many years now. It got successful because it was better than TIFF for scanned images and better than raw Word/Postscript for print products.
Re:Jim Keller criticizes Nvidia's CUDA, x86 by bitvoid on Friday February 23, 2024 @10:31AM (#39481791)
There's a ton of PDF forms that I deal with at work that only work with Adobe Acrobat. When I open them in other PDF viewers, it'll be a single page telling me that if the PDF doesn't load in a few seconds then my PDF viewer is not compatible with the document.

I'm not an expert, but I imagine that they were created with Acrobat and it embeds some (proprietary) stuff in the PDF that only works with Acrobat. Acrobat is also the only PDF client that I'm aware of that supports signing PDF forms with certificates. There's other features in some PDFs that I've encountered that'll only work in Acrobat as well, like buttons embedded in the PDF to email the form or dropdowns in the form that don't work in other viewers.

It seems pretty swampy to me when 90% of the PDF forms I deal with can only be (fully) completed in Acrobat.

Re:Jim Keller criticizes Nvidia's CUDA, x86 by azinman2 on Friday February 23, 2024 @12:58PM (#39483948)
I’ve never come across this. What kind of business?
Re:Jim Keller criticizes Nvidia's CUDA, x86 by jasomill on Friday February 23, 2024 @06:51PM (#39487658)
Using JavaScript, it's easy to create a standards-compliant PDF with inconsistent behavior in popular viewers. For example,

  https://jasomill.at/HelloGoodbye.pdf
contains JavaScript that, per the spec, should display a pop-up alert ("Hello Acrobat <version>") when it is opened and another ("Goodbye Acrobat <version>") when it is closed.

Actual behavior is inconsistent. On my Mac:

Acrobat: both alerts display

Preview, Safari: neither alert displays

Chrome, Edge, Firefox: only open alert displays

Re:Jim Keller criticizes Nvidia's CUDA, x86 by busterarm on Friday February 23, 2024 @09:46AM (#39481155)
But it became successful long before it stopped being a vendor-locked swamp.
Re:Jim Keller criticizes Nvidia's CUDA, x86 by mpweiher on Friday February 23, 2024 @10:24AM (#39481678)
I can't recall a time when the PDF spec wasn't open, or at least openly available.
Re:Jim Keller criticizes Nvidia's CUDA, x86 by busterarm on Friday February 23, 2024 @07:08PM (#39487788)
From 1993 to 2008?
Re:Jim Keller criticizes Nvidia's CUDA, x86 by mpweiher on Saturday February 24, 2024 @04:09AM (#39490251)
Hmm...it wasn't an ISO standard, but the standard was freely available both as a download from the web-site and as a book.

My printed copy (version 1.4) is from 2001, and that's a later version, I definitely had earlier, much slimmer books.

The 1.0 PDF reference on Adobe's web-site has a Copyright of 1993 and says "First Printing, June 1993".

https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandard...

And of course there were multiple unlicensed implementations. Famously, Apple switched from Display Postscript in Rhapsody and Mac OS X Server to Quartz and PDF in Mac OS X to remove the DPS licensing costs.

Re:Jim Keller criticizes Nvidia's CUDA, x86 by dahart on Friday February 23, 2024 @10:06AM (#39481401)
Color me skeptical. PDF viewing is reasonable, but where are the decent PDF editing tools? I’ve looked, and it seems like nobody else but Adobe is allowed to do real PDF editing. Many many third part apps claim to, but only do superficial editing and don’t remotely match Acrobat tools. I don’t know how the API licensing works, but I imagine this makes sense because the real market for PDF is business documents that involve signatures, watermarks, password security, versioning, maybe some tracking, etc..
Re:Jim Keller criticizes Nvidia's CUDA, x86 by samus on Friday February 23, 2024 @11:00AM (#39482248)
PDF manipulation is IMHO a niche application. If one really has to do that at scale, it would be probably better to fix the problem upstream to generate it correctly in the first place, or to layer the changes on top of the existing PDF and sign it.
Re:Jim Keller criticizes Nvidia's CUDA, x86 by dahart on Friday February 23, 2024 @06:32PM (#39487514)
That’s like saying image, audio, or video editing is niche. The number of PDF editing apps online suggests you might have formed an opinion before doing any research? Apparently lots and lots of people want to edit PDF files, enough that there’s a ton of competition. Why do you assume editing a PDF means the file is somehow incorrect, or that there exists any viable upstream solution? It’s more likely the edits are intended to make a new version, and don’t even belong upstream, and that editors have no access to upstream anyway. In addition to editing, there’s a whole industry of scraping PDF publications for data.
Re:Jim Keller criticizes Nvidia's CUDA, x86 by samus on Saturday February 24, 2024 @03:02AM (#39489977)
Yeah, I admit this was a risky statement :-)

Editing the PDF just seems like the wrong place to place the edit since it is a format intended for interchange and archivation.

Layering changes on top makes total sense. Changing existing objects seems fragile. But maybe I feel that way because the format is known for being so complicated and bespoke that only Adobe's tools can edit it reliably. Just about any document format which can be converted to PDF is easier to edit, therefore it would make more sense to apply changes before conversion to PDF, if at all possible.

I agree that reading and scraping PDFs on scale is a very common operation.

Re:Jim Keller criticizes Nvidia's CUDA, x86 by dahart on Saturday February 24, 2024 @11:00AM (#39492529)
It is easier & better to edit before baking to PDF, that is true.
Re:Jim Keller criticizes Nvidia's CUDA, x86 by jasomill on Friday February 23, 2024 @07:03PM (#39487759)
I know you're talking about GUI editing, but I've found libqpdf[1] incredibly useful for making programmatic PDF edits with minimal (typically no) structural disturbance.

[1] https://qpdf.sourceforge.io

Re:Jim Keller criticizes Nvidia's CUDA, x86 by dahart on Friday February 23, 2024 @07:27PM (#39487899)
Thanks! I’m checking this out.