PDF .NET Library  .NET PDF Component Library. PDF creator, PDF maker.
Home Products Code Library Online Demos Support Buy About Us  
Code Library

Adding Images

The following code snippet creates a PDF document containing an image.

c# sample:

PDFDocument MyPDF = new PDFDocument("image.pdf");

PDFImage jpgimage = new PDFImage("..\\Resources\\images\\sample.jpg");

MyPDF.CurrentPage.Body.AddImage(jpgimage,293, 26);

MyPDF.Save();

Back to PDF Code Library