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?
split PDF with different Page sizes
-
- Newbie
- Posts: 19
- Joined: Mon Jun 01, 2015 8:05 am
- Location: Switzerland
Re: split PDF with different Page sizes
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.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
-
- Newbie
- Posts: 19
- Joined: Mon Jun 01, 2015 8:05 am
- Location: Switzerland
Re: split PDF with different Page sizes
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
Here is how I do an assemble when I don't know how many files to expect:

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.

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.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
-
- Newbie
- Posts: 19
- Joined: Mon Jun 01, 2015 8:05 am
- Location: Switzerland
Re: split PDF with different Page sizes
Hi Gabriel,gabrielp wrote:Here is how I do an assemble when I don't know how many files to expect:
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.
thank you very much, it works perfectly.

Re: split PDF with different Page sizes
Glad it worked out! Thanks for following up.Chrissigge wrote:Hi Gabriel,
thank you very much, it works perfectly.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix