Page 1 of 1

Extract a single page from multi-page PDF.

Posted: Fri Oct 03, 2014 6:25 pm
by arothenberger
This seems simple enough but I just can't nail it down. I know i want to always extract the next to last page of a mulit-page PDF. The page count of the PDF will be different each time, the key is next to last page. So, if I have a 200 page PDF, I want to remove page 199 and send it down one path. Then, I want the now 199 page PDF, to continue on through my flow.



Please let me know if you have any ideas.



Thanks,

Adam

Extract a single page from multi-page PDF.

Posted: Fri Oct 03, 2014 7:09 pm
by dkelly
Switch's file statistics can tell you the number of pages. You could split the PDF, discard the last page and the merge the remaining files into a new PDF. Or write an Acrobat script to delete the last page.

Extract a single page from multi-page PDF.

Posted: Fri Oct 03, 2014 8:25 pm
by arothenberger
Thanks Dwight... Ok, now... I know where to pull statistics from and total page count. Once the PDF is split I am not seeing how to re-route the last two pages and keep the other in place. I actually only need the next to last page, but the last page is blank, so i can discard that later. How do I "generically" tell my flow to regardless of page count, always route last two pages to folder "X"?

Extract a single page from multi-page PDF.

Posted: Fri Oct 03, 2014 11:46 pm
by dkelly
Stats.NumberOfPages