Page 1 of 1

Check if page size fit on sheet size

Posted: Wed Oct 05, 2022 10:25 am
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?

Re: Check if page size fit on sheet size

Posted: Wed Oct 05, 2022 11:10 am
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

Re: Check if page size fit on sheet size

Posted: Wed Oct 05, 2022 11:36 am
by magnussandstrom
Works perfectly, thanks Freddy!