01-23-2024 08:37 AM
Hello all,
I want to write a script, where i can find out the number of pages of a pdf-document.
Is there such a possibility?
Reason:
When I want two attach some new pages to an existing pdf, I need start the report with the last page + 1.
Thank you and best regards
Mark
01-26-2024 05:19 AM
If You are interested in the report sheets number You can simply use code below (python):
dd.Report.Sheets.Count
This will give You a number of sheets in the current report in Diadem.
01-26-2024 07:31 AM
Hi,
no, I am not interested in the number of my report in Diadem.
I am interested in the number of a pdf-document, which is on my computer drive.
Thank you.
01-29-2024 01:30 AM
Hello Mark.
If you 're looking for the way to check any PDF from Diadem, this might be a difficult thing.
But in the initial post you mention that you wand to append new pages...
Maybe this could work for you?
call PicPDFExport("MyFileName", true)
By this the new pages will be attached to the existing PDF, after the last existing page...
Greetings,
Vassili
01-30-2024 02:59 AM
Hello Vassily,
how I add new pages to an existing pdf, was not the question.
Thank you.
Best regards.
Mark