I have run into a new issue i can’t figure out. I have a large pdf, with 2000 pages and i want to split it into multiple files, each 10 pages long. I tried with the PDF activities, but i’m clearly doing something wrong at some place.
As always, a hint is sufficient to set me in the right direction (i can also learn more:D) so any help is appreciated
the problem i’m facing is that i’m not sure how to use the PDF page range correctly - it only extracted the first 10 pages - that’s why i’m sure i’m doing something wrong.
the thing is, that it would be helpful to have the range dinamic, in increments of 10, so i don’t have to write all down.
In this case I think you would need to get the total number of pages in the PDF.
Then split this number by 10 and round it up: you got 78 pages, so you’ll end up with the number 8.
Then create a loop, you can use the While activity and loop while your control variable (initialized with 0) is smaller than 8.
With this loop created, you just use some variables to calculate the beggining and ending of each range according to the current value of your control variable and use the extract to pdf activity with this dynamic ranges.
I didn’t develop the full logic but I think this may give you a clearer path.