冷灌装:CFDocument PDF Alternatives [英] Coldfusion: CFDocument PDF Alternatives
问题描述
我一直在使用Coldfusion cfdocument来生成PDF。但是,自从我的足迹期限过期后,我有这个丑陋的水印,说Adobe ColdFusion开发人员版本/不生产使用显示在我的PDF文件。
一些研究发现,你必须购买许可证才能使用此功能。有没有办法呢?
我使用并推荐WKHTMLTOPDF。它是一个单一的,便携式命令行程序。 (还有WKHTMLTO图像。)
我写了一个自定义标签,与ColdFusion 9,10,11&并在每个版本上产生一致的高品质结果:
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>
I have been using Coldfusion cfdocument to generate PDF. However, ever since my trail period expired, I have this ugly watermark saying "Adobe ColdFusion Developer Trail Edition/Not for Production Use" showing on my PDF files.
I did some research and found that you have to buy a license for this feature to work. Is there a way around it? Are any alternatives available that are free for use?
I use and recommend WKHTMLTOPDF. It's a single, portable command line program. (There's also WKHTMLTOImage.)
I wrote a custom tag that works with ColdFusion 9, 10, 11 & 2016 and generates consistent high-quality results on each version:
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">
这篇关于冷灌装:CFDocument PDF Alternatives的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!