Coldfusion:CFDocument PDF Alternatives

Saa*_*d A 2 pdf coldfusion

我一直在使用Coldfusion cfdocument来生成PDF.但是,自从我的追踪期到期后,我的PDF文件显示了"Adobe ColdFusion Developer Trail Edition/Not for Production Use"这个丑陋的水印.

我做了一些研究,发现你必须购买这个功能的许可证才能工作.有办法解决吗?是否有任何可供免费使用的替代品?

Jam*_*erg 7

我使用并推荐WKHTMLTOPDF.它是一个单一的便携式命令行程序.(还有WKHTMLTOImage.)

http://wkhtmltopdf.org/

我编写了一个与ColdFusion 9,10,11和2016一起使用的自定义标记,并在每个版本上生成一致的高质量结果:

http://gamesover2600.tumblr.com/search/wkhtmltopdf

<CF_WKHTMLTOPDF
  PageURL = "http://#CGI.Server_Name#/temp/#PDFFileName#_Page.htm"
  HeaderURL = "http://#CGI.Server_Name#/temp/#PDFFileName#_Header.htm"
  FooterURL = "http://#CGI.Server_Name#/temp/#PDFFileName#_Footer.htm"
  filename = "c:\websiteroot\temp\#PDFFileName#.pdf"
  orientation = "portrait"
  DisableSmartShrinking="yes"
  margintop = "1"
  marginleft = "0.25"
  marginright = "0.25"
  marginbottom = "0.50">
Run Code Online (Sandbox Code Playgroud)