Page 1 of 1

split PDF with different Page sizes

Posted: Fri Aug 14, 2015 3:54 pm
by Chrissigge
Hello, I have a problem and I cannot figure out a solution for this.

we recieve one PDF with each order,
- Page amount can differ
- the first and second or the last and second last page have a different pagesize than the rest.

In order to be able to impose it correctly I have to split this File to get one PDF for each pagesize (2 PDFs in total).

I have Switch and also Pitstop Server.

Does anybody have an Idea how to do this?

Re: split PDF with different Page sizes

Posted: Fri Aug 14, 2015 4:50 pm
by gabrielp
How about using Split PDF to split the entire PDF into separate pages, then sort those pages into different folders based on size (maybe something in Stats like PageWidth or PageHeight), then assemble the sorted PDFs with Merge PDF and impose. If you didn't know the sizes of the PDFs you're sorting, then perhaps you can assemble by the identifier '[Stats.PageWidth][Stats.PageHeight]' with a timeout of like 2 minutes.

Re: split PDF with different Page sizes

Posted: Fri Aug 14, 2015 5:00 pm
by Chrissigge
gabrielp wrote:How about using Split PDF to split the entire PDF into separate pages, then sort those pages into different folders based on size (maybe something in Stats like PageWidth or PageHeight), then assemble the sorted PDFs with Merge PDF and impose. If you didn't know the sizes of the PDFs you're sorting, then perhaps you can assemble by the identifier '[Stats.PageWidth][Stats.PageHeight]' with a timeout of like 2 minutes.

Hi Gabriel,
yes the problem is that I don't know the page sizes, could you please explain how to do this :
"assemble by the identifier '[Stats.PageWidth][Stats.PageHeight]' with a timeout of like 2 minutes."

Re: split PDF with different Page sizes

Posted: Fri Aug 14, 2015 5:30 pm
by gabrielp
Here is how I do an assemble when I don't know how many files to expect:
Image

Your job identifier would be (in Single line text with variables): "[Stats.PageWidth]x[Stats.PageHeight]". After 2 minutes, any jobs that Switch had values for "[Stats.PageWidth]x[Stats.PageHeight]" (8x11 or 11x17, for example) that were equal would be assembled into the same job. You could then put it into a Merge PDF or the rest of your business logic.

Let me know if you get stuck.

Re: split PDF with different Page sizes

Posted: Mon Aug 17, 2015 9:33 am
by Chrissigge
gabrielp wrote:Here is how I do an assemble when I don't know how many files to expect:
Image

Your job identifier would be (in Single line text with variables): "[Stats.PageWidth]x[Stats.PageHeight]". After 2 minutes, any jobs that Switch had values for "[Stats.PageWidth]x[Stats.PageHeight]" (8x11 or 11x17, for example) that were equal would be assembled into the same job. You could then put it into a Merge PDF or the rest of your business logic.

Let me know if you get stuck.
Hi Gabriel,
thank you very much, it works perfectly. :D

Re: split PDF with different Page sizes

Posted: Mon Aug 17, 2015 3:39 pm
by gabrielp
Chrissigge wrote:Hi Gabriel,
thank you very much, it works perfectly. :D
Glad it worked out! Thanks for following up.