Check if page size fit on sheet size
Posted: Wed Oct 05, 2022 10:25 am
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?
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?