The PDFDoc Scout SDK product has been acquired by Lionsoft company in January, 2011 and not available on our web-site anymore.

NEW: pdf generator for Web Developers: PDF Generator SDK for Javascriptclick here to read more details...


For 3rd party 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?
 

Check 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 use HTML text formatting to draw rich text with images, links, fonts, styles in PDF document using PDFDoc Scout library

Using HTML text formatting to draw text with links, styles, fonts, images, tables in PDF document using PDFDoc Scout library: 

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

This example provides a sample code to illustrate how to use HTML text formatting in PDF document created with PDFDoc Scout library

See also: using HTML formatting to draw tables

Screenshot of generated PDF document with HTML text formatting:

Sample document created from sample HTML code with rich text formatting and linked png image

Source code of example (using_html_formatting.vbs, loading HTML code from string):

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

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

PDFDoc.BeginDocument

PDFDoc.Page.AddHTMLBox "<b>This</b> <i>is</i> test of HTML <font size='+3'>formatting</font><br><a href='http://bytescout.com/'>Testing links - www.bytescout.com (click)<a/><br/><img src='sample.png'>", 20,80, 300, 300, false

PDFDoc.EndDocument ' close PDF document generation

' disconnect from library
Set PDFDoc = Nothing

Source code of example (AddHTMLBoxFromFileName.vbs, loading HTML code from file):

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

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

PDFDoc.BeginDocument

PDFDoc.Page.AddHTMLBoxFromFileName "test.html", 20,80, 300, 300, false

PDFDoc.EndDocument ' close PDF document generation

' disconnect from library
Set PDFDoc = Nothing

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

Filed in: PDFDoc Scout SDK

Tutorials: