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.
- 
				arothenberger
 - Newbie
 - Posts: 12
 - Joined: Thu May 29, 2014 10:48 am
 
- 
				dkelly
 - TOP CONTRIBUTOR
 - Posts: 658
 - Joined: Mon Nov 29, 2010 8:45 pm
 - Location: Alpharetta GA USA
 - Contact:
 
Extract a single page from multi-page PDF.
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.
			
			
									
						
										
						- 
				arothenberger
 - Newbie
 - Posts: 12
 - Joined: Thu May 29, 2014 10:48 am
 
Extract a single page from multi-page PDF.
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"?
			
			
									
						
										
						- 
				dkelly
 - TOP CONTRIBUTOR
 - Posts: 658
 - Joined: Mon Nov 29, 2010 8:45 pm
 - Location: Alpharetta GA USA
 - Contact:
 
Extract a single page from multi-page PDF.
Stats.NumberOfPages