sistemi.sanita Posted October 5, 2015 Share Posted October 5, 2015 help!I'm trying to create a file PDF / A - 1 with Jaspersoft ireport Designer 5.6.0 . When I create the file from java with the following instruction:JasperPrint jasperPrint = JasperFillManager.fillReport(jrxml,parametri,dbcon); OutputStream os = response.getOutputStream(); JRExporter exporter = null; response.setContentType("application/pdf"); response.setHeader("Content-Disposition", "inline; filename="report.pdf""); exporter = new JRPdfExporter(); jasperPrint.setProperty("net.sf.jasperreports.export.pdf.exclude.key.TransparentImage", null); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, os); exporter.setParameter(JRPdfExporterParameter.PDFA_CONFORMANCE, JRPdfExporterParameter.PDFA_CONFORMANCE_1A); exporter.setParameter(JRPdfExporterParameter.PDFA_ICC_PROFILE_PATH, "E:\Reports\sRGB_v4_ICC_preference.icc"); exporter.setParameter(JRPdfExporterParameter.IS_TAGGED, Boolean.TRUE); dbcon.close(); exporter.exportReport(); is properly created a pdf file .If i test PDF / A - 1 is said to me :The key Metadata is required but missing. A device-specific color space (DeviceRGB) without an appropriate output intent is used. The key S has a value Transparency which is prohibited. The font Helvetica must be embedded. The document does not conform to the requested standard. The document contains device-specific color spaces. The document contains fonts without embedded font programs or encoding information (CMAPs). The document contains transparency. The document's meta data is either missing or inconsistent or corrupt. XML file jrxml I added the following priorities:<property name="net.sf.jasperreports.export.pdf.tagged" value="true"/><property name="net.sf.jasperreports.export.pdfa.conformance" value="pdfa1a"/><property name="net.sf.jasperreports.export.pdfa.icc.profile.path" value="../sRGB_v4_ICC_preference.icc"/><property name="net.sf.jasperreports.default.pdf.embedded" value="true"/> What's wrong?Thank's. Link to comment Share on other sites More sharing options...
hozawa Posted October 6, 2015 Share Posted October 6, 2015 PDF/a support is not very intuitive. Not sure if this will help, but have you check the following wikihttp://community.jaspersoft.com/wiki/pdf-support-jasperreports-library Link to comment Share on other sites More sharing options...
sistemi.sanita Posted October 6, 2015 Author Share Posted October 6, 2015 thank you, I Followed the tutorial but I Following Error:"Error exporting print... All the fonts must be embedded. This one isn't: Helvetica". Help!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
yottiallipierre Posted October 12, 2016 Share Posted October 12, 2016 Hey hozawa and sistemi,can you help me to create pdf/a-1 with Jaspersoft ireport Designer ?.How can i do it?Thank for Answers Link to comment Share on other sites More sharing options...
wynton_0 Posted March 17, 2019 Share Posted March 17, 2019 You can create a PDF/A-1a report following below thread.https://stackoverflow.com/questions/36306170/how-can-i-export-report-to-pdf-a-1a-pdf-a-1b#new-answer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now