Announcements
My Questions:
public byte[] ConvertToPDFA3Bytes(string srcPDF, string xmlPath, string xmlFileName) { iTextSharp.text.pdf.PdfReader reader = new iTextSharp.text.pdf.PdfReader(srcPDF); using MemoryStream ms = new MemoryStream(); using (PdfStamper stamper = new PdfStamper(reader, ms)) { PdfFileSpecification pfs = PdfFileSpecification.FileEmbedded(stamper.Writer, xmlPath, xmlFileName, null); stamper.AddFileAttachment(xmlFileName.Replace(".xml", ""), pfs); } iText.Kernel.Pdf.PdfWriter myPDFWriter = new iText.Kernel.Pdf.PdfWriter(ms); return ms.ToArray(); }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 345 Most Valuable Professional
CU10121822-0 304
André Arnaud de Cal... 283 Super User 2026 Season 2