Document document = createDocument(pageSize, BACKGROUND, PAGEWIDTH,
PAGEHEIGHT,
                                       LEFTMARGIN, TOPMARGIN, ORIENTATION);
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(TOPDF));

if (PDFA.equals("Y")) {
   writer.setPdfVersion(PdfWriter.PDF_VERSION_1_4);
   writer.setPDFXConformance(PdfWriter.PDFA1B);
   writer.createXmpMetadata();
}
...
...
document.addTitle("Created with iText on iSeries");
document.addSubject(FILE);
document.addKeywords(MEMBER);
document.addCreator("SCS2ITEXT");
document.addAuthor("BeppeCostagliola");
document.addHeader("Expires", "0");
...
...
document.add(new Paragraph(0, line, font));
...
if (PDFA.equals("Y")) {
  ICC_Profile icc = ICC_Profile.getInstance(new
FileInputStream("/pdf/srgb.profile"));
  writer.setOutputIntents("CustomTNT", "", "http://www.color.org";, "sRGB
IEC61966-2.1", icc);
}

document.close();

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PDF-A-Validation-tp3465491p3465549.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
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