Hi,

I evaluate IText for the need to produce PDF/A-1A compliant pdf files

First, i generate a pdf based on an example supplied in "iText in Action 2nd
Edition" chap 13, where i replace writer.setPDFXConformance(PdfWriter.*
PDFA1B*); with writer.setPDFXConformance(PdfWriter.*PDFA1A*);

After, i verify the pdf generated with an online tool (
http://www.datalogics.com/products/callas/callaspdfA-onlinedemo.asp)

But unfortunately, the report reports that the file is not conform : (PDFA1B
works fine but not PDFA1A)
- PDF/A-1a requires that a PDF contains structure information.
-
Structured PDF: Structure tree root entry missing
MarkInfo missing


Do you know if it is possible to generate PDF/A-1A compliant pdf file with
IText (and with Birt or JasperReports ...)

Thanks


PS :
    public void createPdfA(String filename) throws IOException,
DocumentException {
        // step 1
        Document document = new Document();
        // step 2
        PdfWriter writer = PdfWriter.getInstance(document,
            new FileOutputStream(filename));
        writer.setPdfVersion(PdfWriter.PDF_VERSION_1_4);//i tried with 1_7
instead, same result
        writer.setPDFXConformance(PdfWriter.PDFA1A);
        writer.createXmpMetadata();
        writer.
        // step 3
        document.open();
        // step 4
        Font font = FontFactory.getFont(FONT, BaseFont.CP1252,
BaseFont.EMBEDDED);
        document.add(new Paragraph("Hello World", font));
        ICC_Profile icc = ICC_Profile.getInstance(new
FileInputStream(PROFILE));
        writer.setOutputIntents("Custom", "", "http://www.color.org";, "sRGB
IEC61966-2.1", icc);
        // step 5
        document.close();
    }
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to