clawPDF
clawPDF copied to clipboard
How to get the number of pages in the original document?
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.
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...