I'm trying to integrate prince into our (java) application. At this point I have PDF's being produced but there seems to be an
issue with setting the stylesheets. I have tried various ways of setting the base url and passing information through the addStyleSheet()
method
so for example:
prince.setBaseURL("https://d8.devdomain.com:7002/");
prince.addStyleSheet("docp/css/skins/legacy/DOFStyle.css");
or
prince.addStyleSheet("https://d8.devdomain.com:7002/docp/css/skins/legacy/DOFStyle.css");
or
prince.addStyleSheet(/export/home/mydev/dev/trunk/openInvoice/web-app/css/skins/legacy)
Also the log file indicates warning messages about the images and style sheets:
this posting in your forum seems relevant
http://www.princexml.com/bb/viewtopic.php?t=1040&highlight=cert
I took the prince source code and added this to our version of prince.java - convert method
cmdline.add("--ssl-ca-cert=/usr/local/prince-6.0r8-sol10sparc/lib/prince/ssl/curl-ca-bundle.crt");
but it did not seem to help perhaps there is something tha I need to add to the .crt file?
thanks for your help
Mon Jun 22 15:52:44 2009: ---- begin
Mon Jun 22 15:52:44 2009: -:130: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:131: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:132: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:133: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:134: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:135: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:137: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:158: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:159: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:1101: error: Unexpected end tag : p
Mon Jun 22 15:52:44 2009: /docp/thirdparty/yui/build/container/assets/container-core.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/oiTabStyles.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/thirdparty/yui/build/tabview/assets/tabview-core.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/AutoComplete.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/overlay.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/Tables.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/Buttons.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/StatusList.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/DOFStyle.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: https://d8.devdomain.com:7002/docp/css/skins/legacy/DOFStyle.css: warning: SSL certificate problem, verify that the CA cert i
s OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/white_background_black_bottom.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/media/header/oimain_wordmark_oi.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/media/spacer.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/media/shim.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: https://d8.devdomain.com:7002/docp/media/images/collapseIcon.gif: warning: SSL certificate problem, verify that the CA cert i
s OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Mon Jun 22 15:52:44 2009: -: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:45 2009: finished: success
Mon Jun 22 15:52:45 2009: ---- end
issue with setting the stylesheets. I have tried various ways of setting the base url and passing information through the addStyleSheet()
method
so for example:
prince.setBaseURL("https://d8.devdomain.com:7002/");
prince.addStyleSheet("docp/css/skins/legacy/DOFStyle.css");
or
prince.addStyleSheet("https://d8.devdomain.com:7002/docp/css/skins/legacy/DOFStyle.css");
or
prince.addStyleSheet(/export/home/mydev/dev/trunk/openInvoice/web-app/css/skins/legacy)
Also the log file indicates warning messages about the images and style sheets:
this posting in your forum seems relevant
http://www.princexml.com/bb/viewtopic.php?t=1040&highlight=cert
I took the prince source code and added this to our version of prince.java - convert method
cmdline.add("--ssl-ca-cert=/usr/local/prince-6.0r8-sol10sparc/lib/prince/ssl/curl-ca-bundle.crt");
but it did not seem to help perhaps there is something tha I need to add to the .crt file?
thanks for your help
Mon Jun 22 15:52:44 2009: ---- begin
Mon Jun 22 15:52:44 2009: -:130: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:131: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:132: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:133: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:134: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:135: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:137: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:158: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:159: error: Tag nobr invalid
Mon Jun 22 15:52:44 2009: -:1101: error: Unexpected end tag : p
Mon Jun 22 15:52:44 2009: /docp/thirdparty/yui/build/container/assets/container-core.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/oiTabStyles.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/thirdparty/yui/build/tabview/assets/tabview-core.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/AutoComplete.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/overlay.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/Tables.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/Buttons.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/StatusList.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/DOFStyle.css: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: https://d8.devdomain.com:7002/docp/css/skins/legacy/DOFStyle.css: warning: SSL certificate problem, verify that the CA cert i
s OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Mon Jun 22 15:52:44 2009: /docp/css/skins/legacy/white_background_black_bottom.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/media/header/oimain_wordmark_oi.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/media/spacer.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: /docp/media/shim.gif: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:44 2009: https://d8.devdomain.com:7002/docp/media/images/collapseIcon.gif: warning: SSL certificate problem, verify that the CA cert i
s OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Mon Jun 22 15:52:44 2009: -: warning: can't open input file: No such file or directory
Mon Jun 22 15:52:45 2009: finished: success
Mon Jun 22 15:52:45 2009: ---- end