Home
Suggestion or Comment?

PDFDoc Scout

PDFDoc Scout screenshot (click to enlarge)


Subscribe to Our Bi-Monthly Newsletter (tips, new releases, specials):
 Subscribe in a reader
 PRODUCTS  |  DOWNLOAD  |  PURCHASE  |  SUPPORT  |  TESTIMONIALS   |  NEWS  | 

PDFDoc Scout library - Sample

Download Free Trial See Licensing Options More Information

How to create PDF document file from Visual C++ using PDFDoc Scout library: 

"Hello, World!" example

You can download the source code of this example here: pdfdocscout_using_tiff.zip 

This example shows how to convert TIFF image into PDF document with PDFDoc Scout library using free PDFDoc Scout Image addon that comes along with PDFDoc Scout.

Generated PDF file includes 1 frame from TIFF converted into PDF using PDFDoc Scout:

Sample EMF metafile with text, vector and raster images converted into PDF document using PDFDoc Scout library

Code to convert TIFF image into PDF:

' this example uses PDFDoc Scout Image Addon to load PNG into PDF document

Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
Set ImageLdr = CreateObject ("PDFDocScoutImgAddon.ImageLoader")

PDFDoc.InitLibrary "demo", "demo"
PDFDoc.OutputFilename = "png_sample.pdf"
PDFDoc.AutoOpenGeneratedPDF = true

PDFDoc.BeginDocument

ImageLdr.ConnectToPDFLibrary (PDFDoc)
Image = ImageLdr.AddImageFromFileNameEx ("sample.png", 1) ' 1 = ictJPEG type image compression, we store image as JPEG inside PDF

ImageLdr.DisconnectFromPDFLibrary

PDFDoc.Page.PlaceImage Image, 10,10 ' place image to current page at (10,10)

PDFDoc.EndDocument ' close PDF document generation

' disconnect from library
Set PDFDoc = Nothing

You can download the source code of this example here: pdfdocscout_using_tiff.zip 

You can read information about TIFF file to get number of pages in multi-paged TIFF image files when you need to know how much pages are in TIFF:

' this example shows how to read number of available frames in TIFF images using PDFDoc Scout Image Addon

Set ImageLdr = CreateObject ("PDFDocScoutImgAddon.ImageLoader")

Count = ImageLdr.GetImagePagesCount("ab.tif")

MsgBox CStr(Count) & " frames in tiff image ", vbOKOnly

Download this small example: pdfdocscout_get_frames_count_in_tiff.zip 

Download Free Trial See Licensing Options More Information


See also: Bytescout.PDF - native .NET library to write/read/sign/
modify/merge/split PDF documents (but no HTML2PDF support)



On-line documentation (HTML format)


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


HOME  |  CONTACT US

Copyright © ByteScout, 2003-2010. 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.