【发布时间】:2010-09-11 00:23:47
【问题描述】:
有没有一种简单的方法可以使用 CF8 将 cfdocument 或 cfpdf 创建的 pdf 缩放到单个页面?根据事件的数量,我的输出(日历)可能会扩展到第 2 页。我宁愿缩放日历以适应一页。我假设我可以使用 cfdocument 创建 pdf。使用 cfpdf 检查页码并循环,而 totalPages > 1 创建比例较小的 PDF。
伪代码:
pdfScale = 100
cfdocument scale = "#pdfScale#"
cfpdf action = "getinfo" name = "mypdf"
cfloop while mypdf.totalPages > 1
pdfScale = pdfScale -5
cfdocument scale = "#pdfScale#"
cfpdf action = "getinfo" name = "mypdf"
/cfloop
我是在正确的轨道上还是我错过了一些让这更容易的东西?谢谢。
【问题讨论】:
标签: coldfusion