I am trying to write a script for pdfedit that opens a file, does
something to it, and then saves the result. Everything works nicely,
except, I don't know how to save the result.
The only way I can see to save a pdf from a script is via the saveAs
method, which however ignores the changes made so far (which in turn is
intended as I understand from
So how is one supposed to save the changes to disk? Thanks in advance
for your help!
P.S.: For concreteness' sake, let's pretend I want to remove the first
page. I would try this:
and run it with
pdfedit -s scriptname