qpdf icon indicating copy to clipboard operation
qpdf copied to clipboard

Add a new example of QPDFJob

Open capric0rn78 opened this issue 1 year ago • 3 comments

A new example demonstrating the use of QPDFJob to remove all Javascript & Action object in a PDF file.

capric0rn78 avatar Jun 21 '24 07:06 capric0rn78

Thanks for this submission. There's actually nothing about this that requires use of the QPDFJob interface. It could be done with straight QPDF. Is there something specific about it that makes QPDFJob a better choice?

jberkenbilt avatar Jul 02 '24 13:07 jberkenbilt

@jberkenbilt nothing specific, just want to learn how to use QPDFJob for this example. Should I change it to use QPDF instead?

capric0rn78 avatar Jul 20 '24 13:07 capric0rn78

I think it is fine to use QPDFJob as a high-level API to deal with the reading and writing of the PDF file. For C++ it is neither here nor there, but from other languages it is likely to be more convenient as the whole job config can be passed as a single JSON string.

m-holger avatar Jul 21 '24 17:07 m-holger