Hi @dwells1,
Yes, it's possible
- You need to count the number of pages in the source PDF. Add Compose action and this expression.
sub(length(split(replace(base64ToString(outputs('Get_file_content')?['body']['$content']), 'Type/Pages', ''), 'Type/Page')),1)
- Add an integer variable to get the number of pages without the last page.
- Finally, replace all static page number values in the Plumsaill actions.
This is how the entire flow looks like
Best regards,
Petr
Plumsail team