We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

C# pattern for multiple PDF transforms

I need to do multiple transforms on a PDF (adding text and images). I came up with this pattern, but was wondering if there is a better approach



  PDFutil.PDFutil pdfPrinter = new PDFutil.PDFutil();

                            using (var client = new WebClient())
                            using (Stream mystream = client.OpenRead(PDFurl))
                            {

                                using (var memStream = new MemoryStream())
                                {
                                    mystream.CopyTo(memStream);
                                    using (var stream2 = pdfPrinter.AddSignatures(memStream))
                                    {

                                        using (var stream3 = pdfPrinter.AddMarginText(stream2, marginText))
                                        {
                                            MemoryStream stream4 = pdfPrinter.AddMarginText(stream2, marginText);
                                            pdfPrinter.PrintPDF(stream4);
                                        }
                                    }

                                }
                            }

Hi Max,


Thanks for contacting support.

As per my understanding, the above code snippet appears to be based on bioPDF.PdfWriter.dll and in our forums, we provide technical support for our API’s. If you need to add Text and Images to existing PDF file, please visit the following links for details based on Aspose.Pdf for .NET API.


Please download the latest release of Aspose.Pdf for .NET 11.2.0 and request a 30 days temporary license to test the API without any limitations. Get a temporary license.