Hi ! I have a problem with metadata and PDF/A files.
I need to add some user properties to PDF and PDF/A files.
I added metadata (user properties) with this code :
---
Dim reader As New iTextSharp.text.pdf.PdfReader(uploadControl.FileBytes)
Dim info As Dictionary(Of String, String)
Using fs As New IO.FileStream(_file, IO.FileMode.Create,
IO.FileAccess.Write, IO.FileShare.None)
Using stamper As New iTextSharp.text.pdf.PdfStamper(reader, fs)
info = reader.Info
info.Add(txtKey.Text, txtValue.Text)
stamper.MoreInfo = info
Dim ms As New IO.MemoryStream()
Dim xmp As New iTextSharp.text.xml.xmp.XmpWriter(ms, info)
xmp.Close()
stamper.XmpMetadata = ms.ToArray()
stamper.Close()
End Using
fs.Close()
End Using
reader.Close()
----
It works fine in PDF files, but in a PDF/A file, when I added the
properties, the PDF/A format stop :(
How to add user properties to PDF and PDF/A files???
Thank You very much,
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/iTextSharp-PDF-A-metadata-tp4658785.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
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