Live data from Hacker News

Spotlight on pdfly, the Swiss Army knife for PDF files

chezsoi.org

41–50 of 100 posts

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#41
post #3

There is also: https://pdfcpu.io/ That said, if you're looking for a GUI app to do simple PDF mutations it's often hard to fine a simple solid open source cross platform app. At least I haven't found one :)

i've tried 'pdfcpu images list' on a random pdf i've had lying around and the tool unexpectedly started downloading some font from unspecified internet location to my local disk.

sorry, too spooky even for october. :-)

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#42
post #3

There is also: https://pdfcpu.io/ That said, if you're looking for a GUI app to do simple PDF mutations it's often hard to fine a simple solid open source cross platform app. At least I haven't found one :)

I found PDF SAM basic ("split and merge") well done: https://pdfsam.org/en/pdfsam-basic/ . That one is open-source and multi-platform, they have more features in a paying superset project.

Pdfsam and pdfxchange are my gotos

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#43
post #28

Pdftk has been been around for many years, and does exactly the same things. Why reinvent the wheel? https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/

It’s not open-source, so practically the question is equivalent to “why reinvent the wheel by creating libreoffice when there’s a perfectly good Microsoft office suite out there”

The server component is under GNU GPL: https://www.pdflabs.com/docs/pdftk-license/

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#44

Earlier quoted context omitted.

>Swiss Army knives seem to be as popular as ever. It isn't as popular as ever, at least not in the Western world. I don't know what your frame of reference is, but it is positively non-existent compared to a couple of decades ago. Approximately zero kids, give or take a few, put one on their Christmas list, where when I was a kid it was many kid's dream item. I would say the most common buyer today are middle-aged me…

See my other comment for its popularity statistics. Victorinox is literally the #1 multitool brand by market share. These are facts. Your take is idiosyncratic. Using a SAK doesn't mean "you probably screwed up". That's truly a bizarre thing to say. A SAK is a perfectly fine metaphor. That's why it's a popular one. It's a small tool that does lots of things. I think you're overthinking this.

>Victorinox is literally the #1 multitool brand by market share

This doesn't repudiate anything I said, and it's a particularly weird canard.

>That's why it's a popular one

Increasingly the only ones I see leveraging the metaphor are English as a second language writers (note that the idiom originates in English and is a calque in other languages) who perhaps came across it somewhere. I would hardly call it "popular", and I pointed out the reality that many readers, such as myself, find it a negative description, similar to someone calling themselves a "jack of all trades". Your defensiveness of SAK does not change this, and your attempts at invalidating my statement borders on bizarre.

Feel free to continue. I'm done here.

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#45
post #26
post #24

For low-level work, qpdf can be quite useful: https://github.com/qpdf/qpdf

Came here to say this. Qpdf is my go-to for manipulating pdf files on the command line. Encrypting, decrypting, extracting and merging pages. It's Apache-licensed and written in C++.

How do you use qpdf for extraction when its README states “qpdf does not render PDFs or perform text extraction, and it does not contain higher-level interfaces for working with page contents.”

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#46

Earlier quoted context omitted.

See my other comment for its popularity statistics. Victorinox is literally the #1 multitool brand by market share. These are facts. Your take is idiosyncratic. Using a SAK doesn't mean "you probably screwed up". That's truly a bizarre thing to say. A SAK is a perfectly fine metaphor. That's why it's a popular one. It's a small tool that does lots of things. I think you're overthinking this.

>Victorinox is literally the #1 multitool brand by market share This doesn't repudiate anything I said, and it's a particularly weird canard. >That's why it's a popular one Increasingly the only ones I see leveraging the metaphor are English as a second language writers (note that the idiom originates in English and is a calque in other languages) who perhaps came across it somewhere. I would hardly call it "popular"…

> are English as a second language writers who perhaps came across it somewhere

Your prejudice is showing. Where would you even get an idea like that?

I hope you understand that people whose first language isn't English also use SAKs. It's not just an English thing. They're not trying to repeat some unknown object they've only encountered in metaphor. The tools are literally Swiss. And popular around the entire world.

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#47
post #26

Earlier quoted context omitted.

Came here to say this. Qpdf is my go-to for manipulating pdf files on the command line. Encrypting, decrypting, extracting and merging pages. It's Apache-licensed and written in C++.

How do you use qpdf for extraction when its README states “qpdf does not render PDFs or perform text extraction, and it does not contain higher-level interfaces for working with page contents.”

Not the person you're replying to, but when they said "extraction" I believe they're talking about extracting pages from a PDF (like "splitting" the PDF apart, page-wise), not text. At least that's a thing I've used qpdf for in the past.

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#49
post #7

I’m curious: what good would automating signing a PDF through a utility do? The whole purpose of a signature is that a person signed and agreed to something. That cannot be done automatically.

Imagine you need to sign 25 pdf documents. You read them on the screen and then batch-sign them (instead of signing them with the vewing software). This is just an example.

Re: Spotlight on pdfly, the Swiss Army knife for PDF files

#50
Opinion from 10 years ago, I suspect still valid:

There are a million python libraries and tools to do some overlapping subset of the things you'd want to do with a pdf.

There are no doubt another million in other languages.

These are each basically bundles of some of the transformations you'd want to make to the same underlying data structure.

So, complex pdf scripts often need two or three different libraries to get their thing done, which is wasteful at borh a dev effort and computational level.

The ecosystem would be greatly improved if someone made a great (probably rust based) in-memory low level pdf reading and writing data structure.

PDF libraries in any language could switch to using that structure and library internally, with the carrot that the switch would result in needing less code, and likely being some combination of faster and safer.

And then if they just exposed get_structure_pointer() and set_structure_pointer(), they could all interoperate for free. (Another carrot for joining -- small libraries could usefully add features and be adopted without needing to pick an existing popular library to glom onto.)

Not sure what would economically cause this to happen, but it would be great.

Post reply on HN