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#.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
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); } } }
60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page
Explore ByteScout PDF Extractor SDK Documentation
Explore Samples
Sign Up for ByteScout PDF Extractor SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page
Explore ByteScout PDF Extractor SDK Documentation
Explore Samples
Sign Up for ByteScout PDF Extractor SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: