Free Support Forum - aspose.com

Edit existing PDF in .net

I have an existing PDF file which I want to grab in my code and make some changes to it. I have attached the PDF file source.pdf and expected.pdf.How to achieve this in .net C#
source.pdf (52.6 KB)
Expected.pdf (52.9 KB)

@VishalD

For such PDFs, you can create a template and perform text replacement operations over it. For example, your Expected.pdf file can be taken as a template and you can replace certain text e.g. FirstName LastName with your desired value to generate a new copy of the document. Please check following documentation article for more information: