TIEWPCubedPDF

<< Click to Display Table of Contents >>

Navigation:  Component Description >

TIEWPCubedPDF

TIEWPCubedPDF = class

 

This class has been provided as interface to the WPViewPDF DLL to load PDF files as if they were image files with ImagEn.

 

ImagEn is the powerful imaging library for Delphi - please visit www.xequte.com for additional information.

 

To use this class you need to included the unit wpcubed_pdf_plugin.pas.

 

Usually wpcubed_pdf_plugin.pas registeres the PDF support but it is possible to deactivate the auto-registration in wpcubed_pdf_plugin.pas using a compiler symbol. In that case please add this code to your application:

 

   if TIEWPCubedPDF.Initialize then

        TIEWPCubedPDF.RegisterPlugin

    else ShowMessage('PDF decoder DLL could not be found');

 

 

WPViewPDF will create a bitmap from a certain PDF page. The size will be either fit into the size provided using the variables (IOParams.Dict)

  "PDF:DesiredHeight" and "PDF:DesiredWdith" (both must be provided!) or using the dpi setting provided by "PDF:Density".

 

If no variables were used, the setting in fDpiX will be used.

 

 

You can download a demo of WPViewPDF at http://www.wpcubed.com.

 

To add PDF support to ImageEn you only need the edition WPViewPDF MakeImage however all other editions also support the required API.