[ http://issues.apache.org/jira/browse/OFBIZ-466?page=comments#action_12450261 ] Chris Howe commented on OFBIZ-466: ----------------------------------
Because the errors when generating pdfs through freemarker are a bit more cryptic than when the output is html, I would suggest using <#attempt> / <#recover> http://freemarker.sourceforge.net/docs/ref_directive_attempt.html liberally throughout freemarker pdf templates? This way the sections of code that aren't generating problems will still output to your pdf. > PDF view of order crashes depending on customer data such as notes and > address lines. > ------------------------------------------------------------------------------------- > > Key: OFBIZ-466 > URL: http://issues.apache.org/jira/browse/OFBIZ-466 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Environment: N/A > Reporter: Ray Barlow > Assigned To: Jacopo Cappellato > Attachments: order_pdf.patch > > > This patch adds a few more ?xml attributes to the pdf views for orders to > stop crashes when trying to view an order that has xml unfriendly characters > i.e. view the pdf of an order with a customer facing note saying "Merry > Christmas & Happy New Year" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
