Kirk Struik wrote:
> I am planning to use PDF edit on a large PDF edit project, editing probably
> 100+ PDF files. However, I'm finding each file I open is linearized, and I
> must delinearize it first. Is it possible to batch process all of the PDF's
> in a folder (or better yet, all of the PDF's in a folder and any PDF's in
> it's sub folder)? Command line scripts are fine. I read about the
> dealinearize() script function, but I'm not sure if/how it could be scripted
> to do a whole group of files.
You can delinearize a single file from commandline using this syntax:
pdfedit -console delin <input.pdf> <output.pdf>
Delinearization en-masse is not supported by pdfedit itself, but you can
what add simple batch script that will call pdfedit for each PDF file, like
this:
#!/bin/sh
mkdir output
for i in *.pdf
do
pdfedit -console delin "$i" "output/$i"
done
This will make directory "output" and delinearize all PDF files in current
directory, putting the delinearized versions in the "output" directory.
Just run the script and wait for pdfedit to do its job :)
Note, that delinearization will fail for non-linearized documents, so you
will have to manually copy already-delinearized documents in the output
directory if there were any.
Martin Petricek
GPG/PGP Public key: http://www.petricek.net/petricm.pgp
Fingerprint 6AA8 FFCE C061 1CB2 55F0 A1F3 3AA9 EB4F BD50 C1B8
/------------------------------------------------------------\
| WWW: http://www.petricek.net/ |
\------------------------------------------------------------/
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support