Page 1 of 1

How do I unzip a batch of PDFs, and add info into xml to reflect new file list...?

Posted: Tue Aug 09, 2011 10:20 am
by Clive Andrews
I've been staring at this for a while now. If a customer uploads a ZIP, I can split the ZIP and xml with no problem. The xml that comes with the file is created by iDropper - and contains the file manifest that I use to build the archive hierarchy at the end of the flow...







So....



If I unzip a file and it contains multiple files, I guess I need to amend the xml with the new hierarchy - to merge it all back together and archive it...



Any suggestions anyone..?

How do I unzip a batch of PDFs, and add info into xml to reflect new file list...?

Posted: Tue Aug 09, 2011 3:47 pm
by dkelly
Hi Clive, it appears that the iDroplet XML only contains the ZIP filename. Do you want to add a entry for each file that was extracted from the zip? Do you want to remove the ZIP filename also?



Dwight Kelly

Apago, Inc.

dkelly@apago.com

How do I unzip a batch of PDFs, and add info into xml to reflect new file list...?

Posted: Tue Aug 09, 2011 4:00 pm
by Clive Andrews
That's exactly it Dwight,



A normal iDropper XML would have

9.pdf

10.pdf

11.pdf

12.pdf



etc....



No zip - that should be discarded. I guess I'm back in the realm of my nemesis "Mr Scripting"...