xsltpdf-generationxsl-foasposeaspose.pdf

Dash ("–") breaks aspose.pdf xsl-fo


I have an xsl-fo xslt file, and it generates blank pages, along with the standard "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem" error message.

I found that the issue was due to the text I was writing into the pdf contained dashes "–" and when I removed characters, the pdf was rendered successfully.

does anyone know why this "–" character would cause the xsl-fo pdf process should fail? everything I have read says this is not a special character and I shouldn't worry about encoding it.

Update here is a link to the Aspose forum's post I created: http://www.aspose.com/community/forums/permalink/593149/593149/showthread.aspx#593149

Update #2 I found the issue was not the forward slash, but an encoding issue with dashes (I have updated the questions content, sorry for the confusion) at this point i am still looking for an answer, but I confused the differences between my working xml data, and my not working xml.


Solution

  • A bug was found back in 2015, and the issue was resolved regarding the handling of this long dash (-) character. I recommend upgrading if you have not done so!