Home

Bytescout.PDF for .NET



Bytescout.PDF library for .NET

Download Free Trial Buy Now More Information
For HTML2PDF and XML2PDF solution check our PDFDoc Scout ActiveX library instead

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)

JPEG and TIFFimages added into PDF document using Bytescout.PDF library

            // 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, 40040032038240);
            
drawing.PlaceImage(tiffImage, 60040032032100);

            
// 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)

Download Free Trial Buy Now More Information
For HTML2PDF and XML2PDF solution check our PDFDoc Scout ActiveX library instead

"Hello, World!" quick start step-by-step tutorials:

Advanced Examples:

"Hello, World!" quick start step-by-step tutorials:

Advanced Examples:
Products  |  Download  |  Purchase  |  Support  |  Contacts  |  Testimonials  |  News |  

ByteScout, 2003-2008. All other company and product names may be trademarks of their respective companies. Privacy Statement