I am encountering an issue where an image is not rendering in a PDF generated by Jasper Reports using the node-jasper library in a Node.js environment. Despite following various troubleshooting steps, the image still does not appear in the generated PDF.
Steps to reproduce:
Create a JasperReport template(test.jrxml) that includes image parameter.
Use the node-jasper library in a Node js script to generate a PDF.
Read an image file as a buffer & pass it as a parameter to the report.
Although i have resolved that by tweaking the jrxml file by
<imageExpression><![CDATA[new java.io.ByteArrayInputStream(java.util.Base64.getDecoder().decode($P{logo}))]]></imageExpression>
I am encountering an issue where an image is not rendering in a PDF generated by Jasper Reports using the node-jasper library in a Node.js environment. Despite following various troubleshooting steps, the image still does not appear in the generated PDF.
Steps to reproduce:
test.jrxml attached test.jrxml.txt
test.js attached as txt test.txt
Let me know if there's any way out. Thanks.