Text Find and Replace You can find and replace text within a PDF using IronPDF's Replace. How to Replace Text in PDF in C# Install IronPDF C# library to replace text in PDFs Load an existing PDF using the FromFile method in C# Utilize the ReplaceTextOnPage method to replace text Input page number, old, and new text to the method Export the PDF file containing new text This code demonstrates how to replace text in a PDF file using the IronPDF library in C#. First, ensure you have the IronPDF library installed via NuGet. The code loads an existing PDF through the FromFile method, replaces text on the specified page using ReplaceTextOnPage, and saves the result as a new PDF file. The page number, text to replace, and new text need to be specified. Finally, the changes are saved with SaveAs, and a message is printed to confirm the operation is complete. Learn to Find & Replace Text in PDFs with IronPDF View on GitHub Code https://github.com/iron-software/IronPdf.Examples/tree/main/examples/csharp-replace-text-in-pdf Download ZIP Related Tutorial Related How-To Guide Class Documentation Get Language Packs Download IronPDF DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 16,315,602 | Version: 2025.11 just released Free NuGet Download Total downloads: 16,315,602 View Licenses
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)