IPDFDocument3 interface categories:
General document methods | General methods and properties for working with a PDF document. | |
PDF page methods | Methods and properties for working with a PDF document. | |
Actions | Methods and properties category for making actions in a PDF. | |
Outlines | Methods and properties in the outlines collection of a PDF. | |
Annotations | Methods and properties in the annotations collection of a PDF. | |
Types used in IPDFDocument3 | PDF Creator does not only use standard types like double , int and so on, but also defines some custom types. |
interface IPDFDocument3 |
{ Select menu Project -> Import Type Library Find "PDFCreatorPilot Type Library (Version 1.0)". Import this type library. Add PDFCreatorPilotLib_TLB in the "uses" section. Add line: PDF: TPDFDocument3; in the "var" section. } PDF := TPDFDocument3.Create(nil); PDF.StartEngine('demo@demo', 'demo'); { now PDF object is ready to use } { something else goes here... } PDF.Destroy;
/* PDFCreatorPilot must be installed in the system. (regsvr32 PDFCreatorPilot.dll) */ IPDFDocument3* PDF = NULL; CLSID clsid; HRESULT hr = CLSIDFromProgID(OLESTR("PDFCreatorPilot.PDFDocument3"), &clsid); if(hr != S_OK) { // can't load. no such COM installed. return; } hr = CoCreateInstance(clsid, 0, CLSCTX_ALL, __uuidof(IPDFDocument3), (LPVOID *)&PDF); if(hr != S_OK) { // can't load. no such COM installed. return; } PDF->StartEngine("demo@demo", "demo"); // now PDF object is ready to use // something else goes here... PDF->Release(); PDF = NULL;
/* PDFCreatorPilot must be added to project as reference (in the COM tab page). */ PDFCreatorPilotLib.PDFDocument3Class pdf = new PDFCreatorPilotLib.PDFDocument3Class(); pdf.StartEngine("demo@demo", "demo"); // now PDF object is ready to use // something else goes here... pdf = null;
' PDFCreatorPilot must be installed in the system. ' (regsvr32 PDFCreatorPilot.dll) Set PDF = CreateObject("PDFCreatorPilot.PDFDocument3") PDF.StartEngine "demo@demo", "demo" ' now PDF object is ready to use ' something else goes here... Set PDF = nothing