So i want to use the
to split a PDF into multiple PDF’S,
my issue is, source pdf page changes and some time i need to split it at every 49, sometime every 80 etc, so how can i dynamically set this to where i can give any “splitAT” number and the activity do the split accordingly with help of some kind of divisible and loop i assume.
example 1 - source pdf have 99 pages and page Split at is given as 80, BOT will create a pdf with first 1-80 pages, then create another pdf with 19 page (81-99).
example 2 - source pdf have 259 pages and page Split at is given as 49, BOT will create a 5 pdf with 49 pages, then create another pdf with 14 page (245-259)
This is what i have so far: doing some math with total count , fix integer divide , kind of work with bugs and issues, please look and improve my code
SplitPDF.xaml (13.6 KB)