2016-05-01 28 views
2

私はPDFを生成するためにColdFusion cfdocumentを使用しています。しかし、私のトレイル期間が終了して以来、私は私のPDFファイルに "Adobe ColdFusion Developer Trail Edition/Production用ではない"という醜い透かしを表示しています。Coldfusion:CFDocument PDF代替案

私はいくつかの調査を行い、この機能を動作させるにはライセンスを購入する必要があることがわかりました。その周りに道がありますか?無料で使用できる代替品はありますか?

答えて

7

私はWKHTMLTOPDFを使用してお勧めします。これは単一の移植可能なコマンドラインプログラムです。 (。WKHTMLTOImageもあります)

http://wkhtmltopdf.org/

私は11 & 2016は、ColdFusion 9、10で動作するカスタムタグを書いて、各バージョンでの一貫した高品質の結果を生成:

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"> 
関連する問題