Adding Page Numbers to a PDF in Windows (non legacy) Workflow

Hello all,

I’m looking for a way to add page numbers to a PDF file.

I know that there was a package developed in the marketplace for the older automations (Add Page Numbers to Existing PDF - RPA Component | UiPath Marketplace | Overview) but that one isn’t compatible with a new Windows or Cross-Platform project.

Does anyone have a good method for adding page numbers these days?

Thank you!

dw

@davidmwhtie

you can use itext7 and use invoke code

here is a starter help

cheers

Thank you Anil!

I was heading down the iText path but kept running into issues with how to make it work with the restrictions on the invoke code activity. I’ll keep digging though. Thank you for the link to samples!

dw

1 Like

@davidmwhtie

may be you can tell what errors are you facing and we can try resolve

also make sure class, import or using are not supported in invoke code generally

cheers