开发者

Can you split a PDF 'package' into separate files with CF8 or CF9?

开发者 https://www.devze.com 2022-12-09 15:00 出处:网络
The cfpdf tag has lots of options but I can\'t seem to find one for splitting 开发者_JAVA百科apart a PDF package into separate files which can be saved to the file system.

The cfpdf tag has lots of options but I can't seem to find one for splitting 开发者_JAVA百科apart a PDF package into separate files which can be saved to the file system.

Is this possible?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消