split PDF with different Page sizes

Post Reply
Chrissigge
Newbie
Posts: 19
Joined: Mon Jun 01, 2015 8:05 am
Location: Switzerland

split PDF with different Page sizes

Post 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?
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: split PDF with different Page sizes

Post 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.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Chrissigge
Newbie
Posts: 19
Joined: Mon Jun 01, 2015 8:05 am
Location: Switzerland

Re: split PDF with different Page sizes

Post 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."
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: split PDF with different Page sizes

Post 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.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Chrissigge
Newbie
Posts: 19
Joined: Mon Jun 01, 2015 8:05 am
Location: Switzerland

Re: split PDF with different Page sizes

Post 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
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: split PDF with different Page sizes

Post by gabrielp »

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