clawPDF icon indicating copy to clipboard operation
clawPDF copied to clipboard

How to get the number of pages in the original document?

Open berloo-lang opened this issue 1 year ago • 1 comments

I encountered a problem when using it. For example, a 2-page document was prepared to be printed twice, resulting in a 4-page PDF file. In other words, the 2-page document was printed twice and duplicated in the PDF file, resulting in 4 pages. However, if the document was only 1 page, this problem would not occur.

berloo-lang avatar Aug 07 '24 02:08 berloo-lang

The <NumberOfPages> token in the Profile Settings returns the original number of pages of the file, rather than total number of pages in the resulting PDF. So, you could have that value saved in the filename of your output PDF, but I'm not sure what you would then do with that information...

sekjal avatar May 15 '25 17:05 sekjal