<< Click to Display Table of Contents >> Navigation: »No topics above this level« PDFWorkbench (requires WPViewPDF "PLUS") |
The PDFWorkBench is an object which can be created using some functions which can be imported from the WPViewPDF DLL.
By a simple call to 'pdfWorkbenchCreate' a new workbech object is created. It will be freed by 'pdfWorkbenchFree'.
Using 'pdfWorkbenchLoad' a PDF file can be loaded or appended.
With 'pdfWorkbenchCommand' most commands IDs used by WPViewPDF can be sent to the work bench object.
This are the definitions of the functions:
fktpdfWorkbenchCreate = function(
licname, lickey: PWideChar; liccode: Cardinal ) : Pointer; stdcall;
fktpdfWorkbenchFree = function(
workbench : Pointer ) : Integer; stdcall;
fktpdfWorkbenchLoad = function(
workbench : Pointer;
Filename : PWideChar;
Append, InMemory : Integer ) : Integer; stdcall;
fktpdfWorkbenchCommand = function(
workbench : Pointer;
commandid : Integer;
intpar : Integer;
strpar : PWideChar;
ptr : Pointer ) : Integer; stdcall;
Under Delphi the function pointer are loaded by WPViewPDF3.pas:
wpview_pdfWorkbenchCreate := GetProcAddress(WPViewPDFDLLHandle,'pdfWorkbenchCreate');
wpview_pdfWorkbenchFree := GetProcAddress(WPViewPDFDLLHandle,'pdfWorkbenchFree');
wpview_pdfWorkbenchLoad := GetProcAddress(WPViewPDFDLLHandle,'pdfWorkbenchLoad');
wpview_pdfWorkbenchCommand := GetProcAddress(WPViewPDFDLLHandle,'pdfWorkbenchCommand');