TPDFMake CLASS(EasyHtmlEditor)

<< Click to Display Table of Contents >>

Navigation:  EasyPDFMaker documentation > Getting started > Step by Step > Working with PDF file > Classes and methods >

TPDFMake CLASS(EasyHtmlEditor)

Previous pageReturn to chapter overviewNext page

Sets PDF viewer

pViewer - EasyHtmlEditor instance

pToolbar - Acrobat Reader toolbar enabled; 0 - off, 1 - on, -1 - default

pNavPanes - Acrobat Reader nav panes enabled; 0 - off, 1 - on, -1 - default

SetViewer                       PROCEDURE(EasyHtmlEditor pViewer, SIGNED pToolbar = -1, SIGNED pNavPanes = -1)

 

Loads a Html file

pHtmlFile - File name

Load                           PROCEDURE(STRING pHtmlFile), VIRTUAL

 

Invokes a script

pScriptName - Script name

pDocDef - DocDefinition object

Run                             PROCEDURE(STRING pScriptName, TDocDefinition pDocDef), PROTECTED

 

nvokes a script

pScriptName - Script name (fnHtmlToPdf).

pHtml - html string passing to the script.

pOptions - options passing to the script.

Run                             PROCEDURE(STRING pScriptName, STRING pHtml, <STRING pOptions>), PROTECTED

 

Waits for async script completion

Wait                           PROCEDURE(), PROTECTED

 

Script events dispatcher

pEvent - Event name (header|footer|save|error)

pData - Event data

TakeScriptEvent                 PROCEDURE(STRING pEvent, STRING pData), DERIVED, PROTECTED, STRING

 

Takes PDF file and displays its contents if PDF viewer is enabled.

pFile - PDF file name

TakePDFFile                     PROCEDURE(STRING pFile), VIRTUAL, PROTECTED, STRING, PROC

 

Takes an error and displays it if PDF viewer is enabled.

pErrMsg - Error message

TakeError                       PROCEDURE(STRING pErrMsg), VIRTUAL, PROTECTED

 

Dynamically generated page header; should be overridden in child class.

pArgs - JSON string containing currentPage, pageCount, pageSize

TakePageHeader                 PROCEDURE(STRING pArgs), VIRTUAL, PROTECTED, STRING

 

Dynamically generated page footer; should be overridden in child class.

pArgs - JSON string containing currentPage, pageCount

TakePageFooter                 PROCEDURE(STRING pArgs), VIRTUAL, PROTECTED, STRING

 

Takes doc definition generated by html-to-pdfmake script.

pDocDef - Doc definition.

TakeDD                         PROCEDURE(STRING pDocDef), VIRTUAL, PROTECTED, STRING

 

Gets current PDF file name

GetPdfFileName                 PROCEDURE(), STRING

 

SetDDFile                       PROCEDURE(STRING pDocDefFile)