|
Bytescout.PDF for .NET |
Bytescout.PDF library for .NET
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"); Download example source code: bytescoutpdf_example_add_images_from_jpg_and_tiff.zip (650 KB)
"Hello, World!" quick start step-by-step tutorials: "Hello, World!" quick start step-by-step tutorials: |
||
|
Copyright © ByteScout, 2003-2009. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|||