Add Image Stamp to PDF using CLI

Create Image Stamp programmaticaly using Aspose.PDF for Aspose.PDF CLI Tool

How to add Image Stamps to PDF using Aspose.PDF CLI

In order to work with image stamps in PDF file, we’ll use Aspose.PDF CLI API. The tool is powered by the Aspose.PDF for C++ library and is available for different operating systems including macOS, Linux, and Windows. You can download its versions directly from Aspose.PDF CLI App. Working with command lines is simple and clear. Just use the command line to execute specific commands related to PDF processing. Choose from a range of available functionalities (e.g., text extraction, encryption, adding watermarks, etc) to perform on the PDF.

Add Image Stamp to PDF Document CLI


You need Aspose.PDF CLI to try the code in your environment.

  1. Load the PDF with an instance of Document.
  2. Open a PDF document using Document object.
  3. Create a Image Stamp and define its properties.
  4. Add the Stamp to Page using AddStamp method

Add Image Stamp to PDF - CLI


    asposepdftool addstamp [options] <PDF-file> <image-file> [<result-file>]