- Home
- Testimonials
- Purchase
- Developer Tools
- Desktop Utilities
- Download
- Support
- Blog
- Company
The PDF SDK for .NET product has been acquired by Sybrex company in January, 2011 and not available on our web-site anymore.
NEW: Check our new rich PDF reports generator for Javascript (completely client side generation): PDF Generator SDK for Javascript: click here to read more details...
For 3rd party server side C# open-source PDF generation library?
Check the blog article: .NET Bear, Do You Know Any Free PDF Generation Libraries For Use In Commercial Applications?
Our commercial products for PDF format:
PDF Extractor SDK - extract tables, text, structured data from PDF files in your apps
PDF Renderer SDK - render PDF files to PNG, BMP, TIFF images in your apps
PDF To HTML SDK - convert PDF to HTML with images and formatting preserved
How to add JPEG and TIFF images to PDF document using Bytescout.PDF library for .NET applications
Using JPEG and TIFF image files to add as images to PDF document using Bytescout.PDF library for .NET
In this example Bytescout.PDF library for .NET is used in Visual C# to create document and add JPEG and TIFF images into the document.
Download example source code: bytescoutpdf_example_add_images_from_jpg_and_tiff.zip (650 KB)

// Create main PDF Doc Engine
PDFDocEngine engine = new PDFDocEngine("", "");
// Add new document
Document document = engine.AddDocument();
// Add images to the document
uint jpgImage = document.AddImage("Image.jpg", 0, ImageCompressionType.JPEG);
uint tiffImage = document.AddImage("Image.tif", 0, ImageCompressionType.Flate);
// Append new page to the document
Page page = document.AddPage(PageSizeType.A3, PageOrientationType.LandScape);
// Create new drawing
Drawing drawing = page.AddDrawing();
// Show images
drawing.PlaceImage(jpgImage, 400, 400, 320, 382, 40);
drawing.PlaceImage(tiffImage, 600, 400, 320, 321, 00);
// Closing drawing on the page
drawing.Close();
// Save document
document.Save("Images.pdf");
PDFDocEngine engine = new PDFDocEngine("", "");
// Add new document
Document document = engine.AddDocument();
// Add images to the document
uint jpgImage = document.AddImage("Image.jpg", 0, ImageCompressionType.JPEG);
uint tiffImage = document.AddImage("Image.tif", 0, ImageCompressionType.Flate);
// Append new page to the document
Page page = document.AddPage(PageSizeType.A3, PageOrientationType.LandScape);
// Create new drawing
Drawing drawing = page.AddDrawing();
// Show images
drawing.PlaceImage(jpgImage, 400, 400, 320, 382, 40);
drawing.PlaceImage(tiffImage, 600, 400, 320, 321, 00);
// Closing drawing on the page
drawing.Close();
// Save document
document.Save("Images.pdf");
Download example source code: bytescoutpdf_example_add_images_from_jpg_and_tiff.zip (650 KB)
Filed in:
PDF SDK for .NET
Tutorials:


