Question

i want use page numbering in PDF

Actually, i want to use page numbering in PDF , i'm using HTMLtoPDF OOTB activity, could you please help me to add page numbering to PDF document. i'm currently using PRPC 7.4

Correct Answer
June 28, 2019 - 7:12am

You can create a HTML rule as PDF Footer and use Page $[page] of $[total] command inside the div tag. Using Property-Set-HTML method in the activity which you are using to create PDF and passing the HTML rule name (PDF Footer) as the parameter for HTML Stream you can add page numbers for the PDF.

Comments

Keep up to date on this post and subscribe to comments

Pega
June 18, 2019 - 11:14am

Hi,

Can you try adding a java step before the HTMLToPDF activity and add the following?

tools.putParamValue("footer","Page ${page}");

Pega
June 28, 2019 - 7:12am

You can create a HTML rule as PDF Footer and use Page $[page] of $[total] command inside the div tag. Using Property-Set-HTML method in the activity which you are using to create PDF and passing the HTML rule name (PDF Footer) as the parameter for HTML Stream you can add page numbers for the PDF.