Hi Fabrice,
please subscribe to the mailing list.
Your mail had to be approved manually and that costs time.
When we implemented PDF/A-2 and PDF/A-3 (including level A and including
the ZUGFeRD standard), we redesigned the API. You can find examples here:
http://itextpdf.com/examples/iia.php?id=226
http://itextsupport.com/download/pdfa3.html
Note that you'll need the extra PDF/A jar that is shipped with the ZIP
files of each release.
I realize that your question is about manipulating a PDF.
In that case, you need PdfAStamper instead of PdfStamper.
However: IT SHOULD BE CLEAR THAT YOUR CODE DOESN'T ALWAYS CONVERT PDF TO
PDF/A!!!
For instance: if your code contains fonts that aren't embedded, your
code using iTextSharp 4.1.6 will create XMP metadata and it will set the
appropriate flag. You'll get a blue ribbon in Adobe Reader and Acrobat,
but validation of the file as a PDF/A file will fail!!!
On 2/14/2014 11:02 AM, Fabrice Reithinger wrote:
Hi,
I have a Probleme with the new Version of Itextsharp 5.4.5.
I used to ItextSharp 4.1.6 to make PDF/A with this Code:
PdfStamper pst = null;
PdfReader reader = newPdfReader(myfilename);
FileStream fs = newFileStream(snewfilename, FileMode.Create,
FileAccess.Write, FileShare.None);
pst = newPdfStamper(reader, fs);
pst.Writer.SetPdfVersion(PdfWriter.PDF_VERSION_1_4);
pst.Writer.PDFXConformance =
PdfWriter.PDFA1B;
pst.Writer.CreateXmpMetadata();
pst.FormFlattening = true;
pst.Close();
reader.Close();
fs.Close();
And now this Line pst.Writer.PDFXConformance = PdfWriter.PDFA1B;
Have probleme and make Error while PDFA1B doesn't exist.
Can you please help me that my code works ?
Thanks
Mit freundlichen Grüßen,
NETCONTROL GmbH
*Fabrice Reithinger*, Applikationsentwickler
_____________________________________________________________
Telefon +49-7667-9336-0
E-Mail _...@netcontrol.de <mailto:f...@netcontrol.de>_
_____________________________________________________________
NETCONTROL GmbH <http://www.netcontrol.de/>
Waldstrasse 32
79206 Breisach a.Rh.
Germany
_____________________________________________________________
_Registergericht / Court of Registration:_
Amtsgericht Breisach, HRB 290484
_Geschäftsführer / CEO:_
Harald Hensle
_____________________________________________________________
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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