iText does not support converting PDF->PDF/A.  It can only create one from
scratch.

You will need a different tool.

Leonard

On 8/23/12 2:51 PM, "linuxunil" <[email protected]> wrote:

>Hello,
>
>
>First, i can't find the thread of the rules. If i make any mistake please
>forgive-me, and send to me a link to the rules.
>
>
>I'm using iText 5.3.1 in a Java project that consists of the following:
>
>1) Generate the form: I have a java tool that generates the pdf form. It's
>using itext to accomplish this.
>
>2) Fill out the form: I have a pdf viewer in java too. It allows the
>filling
>of forms.
>
>3) Save the form.
>   3.1) Flatten Fields: I've managed to accomplish this part of using this
>function:
>         
>               private boolean flattFields (ByteArrayOutputStream baos, String
>path) {
>               try {
>                       PdfReader reader = new PdfReader (baos.toByteArray ());
>                       FileOutputStream fos = new FileOutputStream (new File 
> (path));
>                       PdfStamper stamper = new PdfStamper (reader, fos);
>                       stamper.setFormFlattening (true);
>                       stamper.close ();
>                       return true;
>               } Catch (FileNotFoundException e) {
>                       e.printStackTrace ();
>                       return false;
>               } Catch (IOException e) {
>                       e.printStackTrace ();
>                       return false;
>               } Catch (DocumentException e) {
>                       e.printStackTrace ();
>                       return false;
>               }
>       }
>
>3.2) Save the PDF in the format PDF/A_1B: I'm reading the book and found
>the
>example in the list 13.1 - pdfXpdfA. But in the example it creates a pdf
>directly entering the context:
>
>...
>document.add (new Paragraph ("Hello World", font));
>...
>
>In my case I have a normal pdf file with the fields filled and flattened.
>I need help on how to get and insert all the content of the original pdf
>into the newpdf/a_1B.
>
>
>
>--
>View this message in context:
>http://itext-general.2136553.n4.nabble.com/generate-a-pdf-a-1B-from-a-norm
>al-pdf-form-file-with-fields-flattened-tp4656006.html
>Sent from the iText - General mailing list archive at Nabble.com.
>
>--------------------------------------------------------------------------
>----
>Live Security Virtual Conference
>Exclusive live event will cover all the ways today's security and
>threat landscape has changed and how IT managers can respond. Discussions
>will include endpoint security, mobile security and the latest in malware
>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>_______________________________________________
>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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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