ByteScout PDF Extractor SDK - C# - Add Image Stamp in PDF - ByteScout

ByteScout PDF Extractor SDK – C# – Add Image Stamp in PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – C# – Add Image Stamp in PDF

How to add image stamp in PDF in C# with ByteScout PDF Extractor SDK

This code in C# shows how to add image stamp in PDF with this how to tutorial

These sample source codes on this page below are displaying how to add image stamp in PDF in C#. ByteScout PDF Extractor SDK is the Software Development Kit (SDK) that is designed to help developers with data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker. It can be applied to add image stamp in PDF using C#.

These C# code samples for C# guide developers to speed up coding of the application when using ByteScout PDF Extractor SDK. Simply copy and paste in your C# project or application you and then run your app! Use of ByteScout PDF Extractor SDK in C# is also described in the documentation included along with the product.

If you want to try other source code samples then the free trial version of ByteScout PDF Extractor SDK is available for download from our website. Just try other source code samples for C#.

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Program.cs
      
using System.Diagnostics; using System.Drawing; using Bytescout.PDFExtractor; namespace AddImageStampInPDF { class Program { static void Main(string[] args) { string inputFile = @".\Invoice.pdf"; string outputFile = @".\Invoice_Stamped.pdf"; string stampImageFile = @".\stamp_image.png"; using (Stamper stamper = new Stamper("demo", "demo")) { // Optionally make the image background transparent // stamper.MakeStampImageTransparent = true; using (Image image = Image.FromFile(stampImageFile)) { // Get image size in PDF units SizeF imageSizeInPoints = stamper.GetImageSizeInPoints(image); RectangleF rectangle = new RectangleF(440, 370, imageSizeInPoints.Width / 3, imageSizeInPoints.Height / 3); stamper.Stamp(inputFile, outputFile, image, rectangle, 0, -1); } } // Open first output file in default associated application (for demo purposes) ProcessStartInfo processStartInfo = new ProcessStartInfo(outputFile); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Get ByteScout PDF Extractor SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next