Add Text to PDF via C++
Add text to PDF document with C++. Use Aspose.PDF to modify PDF documents programmatically
How to Work with Text in PDF Using C++ Library
To add Text into PDF File, we’ll use Aspose.PDF for C++ API, which is a feature-rich, powerful, and easy-to-use document manipulation API for the C++ platform. Open NuGet package manager, search for Aspose.PDF.Cpp and install. You may also use the following command from the Package Manager Console.
Add Text to PDF File via C++
You need Aspose.PDF for C++ to try the code in your environment.
- Load the PDF with an instance of Document.
- Create a TextParagraph and define its properties.
- Add the TextParagraph to Page using TextBuilder.
- Save the file again.