Image: Insert Image to PDF
Work with Other SDKs
Image: Insert Image to PDF
Home ›› XDoc.PDF ›› C# PDF: Add Image to PDF Page

C# PDF - Add Image to PDF Page in C#.NET

How to Insert & Add Image, Picture or Logo on PDF Page Using C#.NET

Free PDF image processing SDK library for Visual Studio .NET program

Create high resolution PDF file without image quality losing

Add multiple images to multipage PDF document

Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint

Support various image formats, like Jpeg or Jpg, Png, Gif, Bmp, Tiff and other bitmap images

Powerful .NET PDF image edit control, enable users to insert vector images to PDF file

Import graphic picture, digital photo, signature and logo into PDF document

Ability to put image into specified PDF page position and save existing PDF file or output a new PDF file

An independent .NET framework viewer component supports inserting image to PDF in preview without adobe PDF reader installed

Copy and paste images from one PDF another one

Able to zoom and crop image and achieve image resizing

Merge several images into PDF

Insert images into PDF form field

Access to freeware download and online C# class source code

How to insert and add image, picture, digital photo, scanned signature or logo into PDF document page in C#.NET class application? To help you solve this technical problem, we provide this C#.NET PDF image adding control, XDoc.PDF for .NET.

Similar to other toolkits from, this C#.NET PDF image adding control is also completely developed in .NET developing platform and compatible with .NET Framework 2.0 and later versions. Using this C# .NET image adding library control for PDF document, you can easily and quickly add an image, picture or logo to any position of specified PDF document file page.

Add Image to PDF Page Using C#

Add necessary references:









Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.PDF;

Have a try with this sample C#.NET code to add an image to the first page of PDF file.

String inputFilePath = Program.RootPath + "\\" + "1.pdf";
String outputFilePath = Program.RootPath + "\\" + "output.pdf";

// Load a sample image.
Bitmap anImage = new Bitmap(Program.RootPath + "\\" + "1.png");

// Open a PDF document.
PDFDocument doc = new PDFDocument(inputFilePath);

// Get the first page of PDF document.
PDFPage page = (PDFPage)doc.GetPage(0);

// Set image position in the page: X = 100F, Y = 400F.
PointF position = new PointF(100F, 400F);

// Add image to the page.
PDFImageHandler.AddImage(page, anImage, position);

// Output the new PDF document.