Jump to content
Changes to the Jaspersoft community edition download ×

create pdf/a-1


sistemi.sanita

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...
  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...