- Home
- Testimonials
- Purchase
- Developer Tools
- Desktop Utilities
- Download
- Support
- Blog
- Company
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 Javascript: click 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
EMF2PDF (EMF to PDF) converting EMF metafile to PDF document using PDFDoc Scout library
How to convert EMF (metafiles) to PDF document using PDFDoc Scout library:
You can download the source code of this example here: pdfdocscout_emf2pdf.zip
This example shows how to convert EMF metafile into PDF document with PDFDoc Scout library
Generated PDF file consists of EMF converted into PDF using PDFDoc Scout:

Code to convert EMF file to PDF:
' this example uses PDFDoc Scout to convert vector based EMF metafile image into PDF format
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
PDFDoc.InitLibrary "demo", "demo"
PDFDoc.OutputFileName = "Metafile_EMF2PDF.pdf"
PDFDoc.DocumentInfo.Title = "PDFDoc Scout - EMF2PDF Demo"
PDFDoc.AutoOpenGeneratedPDF =True
PDFDoc.BeginDocument
' read information about EMF file
Set EMFFileInfo = CreateObject("PDFDocScout.EMFFileInfo")
EMFFileInfo.LoadFile "SampleMetafile.emf"
EMF_Width = EMFFileInfo.Width
EMF_Height = EMFFileInfo.Height
EMF_Resolution = EMFFileInfo.Resolution
Set EMFFileInfo = nothing
' set page size to EMF size
PDFDoc.Page.Width = EMF_Width
PDFDoc.Page.Height = EMF_Height
PDFDoc.Page.PlayMetaFileToHDCEx "SampleMetafile.emf", 0,0, EMF_Resolution / PDFDoc.Resolution, EMF_Resolution / PDFDoc.Resolution
PDFDoc.EndDocument
Set PDFDoc = nothing
You can download the source code of this example here: pdfdocscout_emf2pdf.zip
Filed in:
PDFDoc Scout SDK
Tutorials:


