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

Free Support Forum - aspose.com

Aspose .net

Hi,

Im trying to get info on pdf editers for asp.net. We need to be able to load a pdf into the Aspose.Pdf class and do a search and replace for example:

replacing [fullname] with Alex Hooley thoughout the pdf.

Please can you tell if this is possible with Aspose.Pdf and how easy it is. Any code examples would be great for me to start playing around with a demo version.

Regards
Alex Hooley

alexhooley@access2.co.uk


This message was posted using Page2Forum from Working with PDF Documents and Pages - Aspose.Pdf.Kit for .NET and Java

Hello Alex,

Thanks for considering Aspose.

Aspose.Pdf is a component which is used to create Pdf files from scratch. Where as, we have another component named, Aspose.Pdf.Kit, which is used to manipulate existing Pdf files.

Regarding your requirement to replace a particular string, you can use ReplaceText method in PdfContentEditor class to accomplish this. Currently this is Beta version of ReplaceText. The feature may not be supported well for some PDF files and we may be not able to fix it in short time.

[C#]
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf(inputPath + "text.pdf");
editor.ReplaceText("Pdf", "WordPpt");
editor.Save(outputPath + "replace.pdf");