Check if page size fit on sheet size

Post Reply
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Check if page size fit on sheet size

Post by magnussandstrom »

I have a simple task but I can't find a good way to solve it.

I want to check if incoming PDF page size will fit on a certain sheet size (no matter the rotation). If the page will fit I send it to the 'Ok connection' and if the page wont fit I send the job to the 'Fail connection'.

I have the 'page size' and 'sheet size' as separate PrivateData in the job.

I have Pitstop Server, pdfToolBox and Switch with variables. Unfortunatly I doesn't have the scripting module, but I'm thinking that this shouldn't be to hard to solve with the tools I got.

Anyone have a suggestion?
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Check if page size fit on sheet size

Post by freddyp »

With an Action List:
Select by page size (width larger than X, or height larger than Y)
Select by page size (width larger than Y, or height larger than X)
AND
Log selection as error
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Check if page size fit on sheet size

Post by magnussandstrom »

Works perfectly, thanks Freddy!
Post Reply