On Sat, Apr 19, 2008 at 10:20:45PM -0500, 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.  

I think that the easiest way would be to call pdfedit with console
parameter:

pdfedit -console Delinearizator INPUT_FILE OUTPUT_FILE

With this you can simply:
mkdir subfolder
for i in *.pdf
do
        pdfedit -console Delinearizator "$i" subfolder/"$i"
done

I am not sure how to it directly in PDFedit, because I don't know how to
query for all files in some directory.
@Martin: any idea?

Rest is easy, If you get the file list: simply use the same script
function.

> 
> Thank you for your help.

-- 
Michal Hocko

-------------------------------------------------------------------------
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

Reply via email to