Can you split the PDF package into separate files from CF8 or CF9?

The cfpdf tag has many variations, but I cannot find one to split the PDF package into separate files that can be saved to the file system.

Is it possible?

+2


source to share


1 answer


There is no direct command, but you can achieve what you want to do in very few lines of code using action = "merge" with the "pages" attribute. So if you want to get a 20 page PDF and create 20 separate files, you can use getInfo to get the number of pages in the input document, then loop from 1 to that number and in that loop, merge with yours, enter the document into the new output document. for each iteration, with pages = "# currentPage #" (or whatever your loop counter)



+3


source







All Articles