hiii guys i have a query,i have a pdf which contains 600 pages and i want to some random pages in that and make that random pages into new pdf.its very urgent @Palaniyappan @lakshman @Lahiru.Fernando
1 Like
@venkatmalla6
Use Extract PDF Range with a random number to extract individual PDF pages, as many as you require. Save these to a common folder. Then use Join PDF Files to merge the newly generated PDFs. Delete the individual files after and you’ll be left with a PDF comprised of randomly selected pages from the original.
To generate the random number create a new System.Random
variable, mine is simply called rand
. Then you can do rand.Next(1,600)
to get a random number between 1 and 600 inclusive. I
1 Like
Check this thread. May be it will help to you.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.