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.
SajeedMullaji 312
André Arnaud de Cal... 284 Super User 2026 Season 2
Martin Dráb 258 Most Valuable Professional