Add Header to PDF via Python
Add Header to PDF File using Python.
Add Headers to PDF Document Using Python
In order to add Header in PDF, we’ll use Aspose.PDF for .NET API which is a feature-rich, powerful and easy to use document manipulation API for python-net platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.
Add Header to PDF with Python
You need Aspose.PDF for Python via .NET to try the code in your environment.
- Open a PDF document using Document object.
- Create a Stamp and define its properties.
- Add the Stamp to Page using AddStamp method.
- Save the PDF file.