Skip to content

Instantly share code, notes, and snippets.

@stijnsanders
Created March 27, 2015 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stijnsanders/a2b33beb34fefb674300 to your computer and use it in GitHub Desktop.
Save stijnsanders/a2b33beb34fefb674300 to your computer and use it in GitHub Desktop.
Adobe Acrobat 8.0 Type Library Delphi unit without wrappers
unit Acrobat_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// $Rev: 52393 $
// File generated on 27/03/2015 13:09:15 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.dll (1)
// LIBID: {E64169B3-3592-47D2-816E-602C5C13F328}
// LCID: 0
// Helpfile:
// HelpString: Adobe Acrobat 10.0 Type Library
// DepndLst:
// (1) v2.0 stdole, (C:\Windows\SysWOW64\stdole2.tlb)
// SYS_KIND: SYS_WIN32
// Errors:
// Hint: Member 'GoTo' of 'CAcroAVPageView' changed to 'GoTo_'
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
{$ALIGN 4}
interface
uses Winapi.Windows, System.Classes, System.Variants, System.Win.StdVCL, Vcl.Graphics, Vcl.OleServer, Winapi.ActiveX;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
AcrobatMajorVersion = 1;
AcrobatMinorVersion = 1;
LIBID_Acrobat: TGUID = '{E64169B3-3592-47D2-816E-602C5C13F328}';
IID_CAcroApp: TGUID = '{9B4CD3E6-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroAVDoc: TGUID = '{9B4CD3E8-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroAVPageView: TGUID = '{9B4CD3E9-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroPDDoc: TGUID = '{9B4CD3E7-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroPDPage: TGUID = '{9B4CD3EA-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroPDTextSelect: TGUID = '{9B4CD3EF-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroPDAnnot: TGUID = '{9B4CD3EB-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroPDBookmark: TGUID = '{9B4CD3F1-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroRect: TGUID = '{9B4CD3ED-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroPoint: TGUID = '{9B4CD3EC-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroTime: TGUID = '{9B4CD3EE-4981-101B-9CA8-9240CE2738AE}';
IID_CAcroHiliteList: TGUID = '{9B4CD3F0-4981-101B-9CA8-9240CE2738AE}';
IID_IProvideESData: TGUID = '{5781DED0-FB8B-11D3-9A92-005004A56D53}';
IID_IAcroAXDoc: TGUID = '{08A9E040-9A9C-4F42-B5F5-2029B8F17E1D}';
DIID__AcroAXDocEventSink: TGUID = '{2DEA7885-1846-411F-A41E-017A8FD778FF}';
CLASS_AcroApp: TGUID = '{85DE1C45-2C66-101B-B02E-04021C009402}';
CLASS_AcroAVDoc: TGUID = '{72498821-3203-101B-B02E-04021C009402}';
CLASS_AcroAVPageView: TGUID = '{E0E2408B-F751-4C49-8543-A11266600EB6}';
CLASS_AcroPDDoc: TGUID = '{FF76CB60-2E68-101B-B02E-04021C009402}';
CLASS_AcroPDPage: TGUID = '{F2366405-A204-405B-A116-FCE5C748E13B}';
CLASS_AcroPDTextSelect: TGUID = '{06949FDA-C926-4FEC-A400-0DC3F3A16096}';
CLASS_AcroPDAnnot: TGUID = '{E4359BDB-59D1-4EAE-A7F8-7F24C308FAA4}';
CLASS_AcroPDBookmark: TGUID = '{2EAF0840-690A-101B-9CA8-9240CE2738AE}';
CLASS_AcroRect: TGUID = '{6D12C400-4E34-101B-9CA8-9240CE2738AE}';
CLASS_AcroPoint: TGUID = '{335E7240-6B49-101B-9CA8-9240CE2738AE}';
CLASS_AcroTime: TGUID = '{6D12C401-4E34-101B-9CA8-9240CE2738AE}';
CLASS_AcroHiliteList: TGUID = '{6D12C402-4E34-101B-9CA8-9240CE2738AE}';
CLASS_AcroAXDoc: TGUID = '{B801CA65-A1FC-11D0-85AD-444553540000}';
// *********************************************************************//
// Declaration of Enumerations defined in Type Library
// *********************************************************************//
// Constants for enum AVZoomType
type
AVZoomType = TOleEnum;
const
AVZoomNoVary = $00000000;
AVZoomFitPage = $00000001;
AVZoomFitWidth = $00000002;
AVZoomFitHeight = $00000003;
AVZoomFitVisibleWidth = $00000004;
AVZoomPreferred = $00000005;
// Constants for enum PDRotateFlags
type
PDRotateFlags = TOleEnum;
const
pdRotate0 = $00000000;
pdRotate90 = $0000005A;
pdRotate180 = $000000B4;
pdRotate270 = $0000010E;
// Constants for enum PDViewMode
type
PDViewMode = TOleEnum;
const
PDDontCare = $00000000;
PDUseNone = $00000001;
PDUseThumbs = $00000002;
PDUseBookmarks = $00000003;
PDFullScreen = $00000004;
// Constants for enum PDDocFlags
type
PDDocFlags = TOleEnum;
const
PDDocNeedsSave = $00000001;
PDDocRequiresFullSave = $00000002;
PDDocIsModified = $00000004;
PDDocDeleteOnClose = $00000008;
PDDocWasRepaired = $00000010;
PDDocNewMajorVersion = $00000020;
PDDocNewMinorVersion = $00000040;
PDDocOldVersion = $00000080;
PDDocSuppressErrors = $00000100;
PDDocIsEmbedded = $00000200;
PDDocIsLinearized = $00000400;
PDDocIsOptimized = $00000800;
// Constants for enum PDSaveFlags
type
PDSaveFlags = TOleEnum;
const
PDSaveIncremental = $00000000;
PDSaveFull = $00000001;
PDSaveCopy = $00000002;
PDSaveLinearized = $00000004;
PDSaveWithPSHeader = $00000008;
PDSaveBinaryOK = $00000010;
PDSaveCollectGarbage = $00000020;
// Constants for enum AVOpenParams
type
AVOpenParams = TOleEnum;
const
AV_EXTERNAL_VIEW = $00000001;
AV_DOC_VIEW = $00000002;
AV_PAGE_VIEW = $00000004;
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
CAcroApp = interface;
CAcroAppDisp = dispinterface;
CAcroAVDoc = interface;
CAcroAVDocDisp = dispinterface;
CAcroAVPageView = interface;
CAcroAVPageViewDisp = dispinterface;
CAcroPDDoc = interface;
CAcroPDDocDisp = dispinterface;
CAcroPDPage = interface;
CAcroPDPageDisp = dispinterface;
CAcroPDTextSelect = interface;
CAcroPDTextSelectDisp = dispinterface;
CAcroPDAnnot = interface;
CAcroPDAnnotDisp = dispinterface;
CAcroPDBookmark = interface;
CAcroPDBookmarkDisp = dispinterface;
CAcroRect = interface;
CAcroRectDisp = dispinterface;
CAcroPoint = interface;
CAcroPointDisp = dispinterface;
CAcroTime = interface;
CAcroTimeDisp = dispinterface;
CAcroHiliteList = interface;
CAcroHiliteListDisp = dispinterface;
IProvideESData = interface;
IAcroAXDoc = interface;
IAcroAXDocDisp = dispinterface;
_AcroAXDocEventSink = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
AcroApp = CAcroApp;
AcroAVDoc = CAcroAVDoc;
AcroAVPageView = CAcroAVPageView;
AcroPDDoc = CAcroPDDoc;
AcroPDPage = CAcroPDPage;
AcroPDTextSelect = CAcroPDTextSelect;
AcroPDAnnot = CAcroPDAnnot;
AcroPDBookmark = CAcroPDBookmark;
AcroRect = CAcroRect;
AcroPoint = CAcroPoint;
AcroTime = CAcroTime;
AcroHiliteList = CAcroHiliteList;
AcroAXDoc = IAcroAXDoc;
// *********************************************************************//
// Declaration of structures, unions and aliases.
// *********************************************************************//
POleVariant1 = ^OleVariant; {*}
// *********************************************************************//
// Interface: CAcroApp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E6-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroApp = interface(IDispatch)
['{9B4CD3E6-4981-101B-9CA8-9240CE2738AE}']
function Exit: WordBool; safecall;
function Hide: WordBool; safecall;
function Show: WordBool; safecall;
function CloseAllDocs: WordBool; safecall;
function MenuItemExecute(const szMenuItemName: WideString): WordBool; safecall;
function GetActiveTool: WideString; safecall;
function SetActiveTool(const szButtonName: WideString; bPersistent: Integer): WordBool; safecall;
function ToolButtonRemove(const szButtonName: WideString): WordBool; safecall;
function ToolButtonIsEnabled(const szButtonName: WideString): WordBool; safecall;
function MenuItemRemove(const szMenuItemName: WideString): WordBool; safecall;
function MenuItemIsEnabled(const szMenuItemName: WideString): WordBool; safecall;
function MenuItemIsMarked(const szMenuItemName: WideString): WordBool; safecall;
function GetNumAVDocs: Integer; safecall;
function GetAVDoc(lIndex: Integer): IDispatch; safecall;
function GetActiveDoc: IDispatch; safecall;
function GetLanguage: WideString; safecall;
function Lock(const szLockedBy: WideString): WordBool; safecall;
function Unlock: WordBool; safecall;
function SetPreference(nType: Smallint; lValue: Integer): WordBool; safecall;
function GetPreference(nType: Smallint): Integer; safecall;
function Maximize(vbMaximize: Integer): WordBool; safecall;
function SetFrame(const pRect: IDispatch): WordBool; safecall;
function GetFrame: IDispatch; safecall;
function Minimize(vbMinimize: Integer): WordBool; safecall;
function Restore(vbRestore: Integer): WordBool; safecall;
function UnlockEx(const sLockedBy: WideString): WordBool; safecall;
function GetInterface(const name: WideString): IDispatch; safecall;
function SetPreferenceEx(nType: Smallint; const val: OleVariant): WordBool; safecall;
function GetPreferenceEx(nType: Smallint): OleVariant; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroAppDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E6-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroAppDisp = dispinterface
['{9B4CD3E6-4981-101B-9CA8-9240CE2738AE}']
function Exit: WordBool; dispid 1;
function Hide: WordBool; dispid 2;
function Show: WordBool; dispid 3;
function CloseAllDocs: WordBool; dispid 4;
function MenuItemExecute(const szMenuItemName: WideString): WordBool; dispid 5;
function GetActiveTool: WideString; dispid 6;
function SetActiveTool(const szButtonName: WideString; bPersistent: Integer): WordBool; dispid 7;
function ToolButtonRemove(const szButtonName: WideString): WordBool; dispid 8;
function ToolButtonIsEnabled(const szButtonName: WideString): WordBool; dispid 9;
function MenuItemRemove(const szMenuItemName: WideString): WordBool; dispid 10;
function MenuItemIsEnabled(const szMenuItemName: WideString): WordBool; dispid 11;
function MenuItemIsMarked(const szMenuItemName: WideString): WordBool; dispid 12;
function GetNumAVDocs: Integer; dispid 13;
function GetAVDoc(lIndex: Integer): IDispatch; dispid 14;
function GetActiveDoc: IDispatch; dispid 15;
function GetLanguage: WideString; dispid 16;
function Lock(const szLockedBy: WideString): WordBool; dispid 17;
function Unlock: WordBool; dispid 18;
function SetPreference(nType: Smallint; lValue: Integer): WordBool; dispid 19;
function GetPreference(nType: Smallint): Integer; dispid 20;
function Maximize(vbMaximize: Integer): WordBool; dispid 21;
function SetFrame(const pRect: IDispatch): WordBool; dispid 22;
function GetFrame: IDispatch; dispid 23;
function Minimize(vbMinimize: Integer): WordBool; dispid 24;
function Restore(vbRestore: Integer): WordBool; dispid 25;
function UnlockEx(const sLockedBy: WideString): WordBool; dispid 26;
function GetInterface(const name: WideString): IDispatch; dispid 27;
function SetPreferenceEx(nType: Smallint; const val: OleVariant): WordBool; dispid 28;
function GetPreferenceEx(nType: Smallint): OleVariant; dispid 29;
end;
// *********************************************************************//
// Interface: CAcroAVDoc
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E8-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroAVDoc = interface(IDispatch)
['{9B4CD3E8-4981-101B-9CA8-9240CE2738AE}']
function Open(const szFullPath: WideString; const szTempTitle: WideString): WordBool; safecall;
function GetPDDoc: IDispatch; safecall;
function GetAVPageView: IDispatch; safecall;
function SetViewMode(nType: Integer): WordBool; safecall;
function FindText(const szText: WideString; bCaseSensitive: Integer; bWholeWordsOnly: Integer;
bReset: Integer): WordBool; safecall;
function Close(bNoSave: Integer): WordBool; safecall;
function GetViewMode: Integer; safecall;
function PrintPages(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer): WordBool; safecall;
function ClearSelection: WordBool; safecall;
function BringToFront: WordBool; safecall;
function GetTitle: WideString; safecall;
function Maximize(vbMaximize: Integer): WordBool; safecall;
function SetTitle(const szTitle: WideString): WordBool; safecall;
function OpenInWindow(const szFullPath: WideString; hWnd: Smallint): WordBool; safecall;
function SetTextSelection(const iAcroPDTextSelect: IDispatch): WordBool; safecall;
function ShowTextSelect: WordBool; safecall;
function SetFrame(const rect: IDispatch): WordBool; safecall;
function GetFrame: IDispatch; safecall;
function IsValid: WordBool; safecall;
function OpenInWindowEx(const szFullPath: WideString; hWnd: Integer; openFlgs: Integer;
UseOpenParams: Integer; pgNum: Integer; pageMode: Smallint;
ZoomType: Smallint; Zoom: Integer; Top: Smallint; Left: Smallint): WordBool; safecall;
function PrintPagesSilent(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer): WordBool; safecall;
function PrintPagesEx(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer; bReverse: Integer;
bFarEastFontOpt: Integer; bEmitHalftones: Integer; iPageOption: Integer): WordBool; safecall;
function PrintPagesSilentEx(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer; bReverse: Integer;
bFarEastFontOpt: Integer; bEmitHalftones: Integer;
iPageOption: Integer): WordBool; safecall;
function GetParentPDDoc: IDispatch; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroAVDocDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E8-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroAVDocDisp = dispinterface
['{9B4CD3E8-4981-101B-9CA8-9240CE2738AE}']
function Open(const szFullPath: WideString; const szTempTitle: WideString): WordBool; dispid 1;
function GetPDDoc: IDispatch; dispid 2;
function GetAVPageView: IDispatch; dispid 3;
function SetViewMode(nType: Integer): WordBool; dispid 4;
function FindText(const szText: WideString; bCaseSensitive: Integer; bWholeWordsOnly: Integer;
bReset: Integer): WordBool; dispid 5;
function Close(bNoSave: Integer): WordBool; dispid 6;
function GetViewMode: Integer; dispid 7;
function PrintPages(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer): WordBool; dispid 8;
function ClearSelection: WordBool; dispid 9;
function BringToFront: WordBool; dispid 10;
function GetTitle: WideString; dispid 11;
function Maximize(vbMaximize: Integer): WordBool; dispid 12;
function SetTitle(const szTitle: WideString): WordBool; dispid 13;
function OpenInWindow(const szFullPath: WideString; hWnd: Smallint): WordBool; dispid 14;
function SetTextSelection(const iAcroPDTextSelect: IDispatch): WordBool; dispid 15;
function ShowTextSelect: WordBool; dispid 16;
function SetFrame(const rect: IDispatch): WordBool; dispid 17;
function GetFrame: IDispatch; dispid 18;
function IsValid: WordBool; dispid 19;
function OpenInWindowEx(const szFullPath: WideString; hWnd: Integer; openFlgs: Integer;
UseOpenParams: Integer; pgNum: Integer; pageMode: Smallint;
ZoomType: Smallint; Zoom: Integer; Top: Smallint; Left: Smallint): WordBool; dispid 20;
function PrintPagesSilent(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer): WordBool; dispid 21;
function PrintPagesEx(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer; bReverse: Integer;
bFarEastFontOpt: Integer; bEmitHalftones: Integer; iPageOption: Integer): WordBool; dispid 22;
function PrintPagesSilentEx(nFirstPage: Integer; nLastPage: Integer; nPSLevel: Integer;
bBinaryOk: Integer; bShrinkToFit: Integer; bReverse: Integer;
bFarEastFontOpt: Integer; bEmitHalftones: Integer;
iPageOption: Integer): WordBool; dispid 23;
function GetParentPDDoc: IDispatch; dispid 24;
end;
// *********************************************************************//
// Interface: CAcroAVPageView
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E9-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroAVPageView = interface(IDispatch)
['{9B4CD3E9-4981-101B-9CA8-9240CE2738AE}']
function GoTo_(nPage: Integer): WordBool; safecall;
function ZoomTo(nType: Smallint; nScale: Smallint): WordBool; safecall;
function ScrollTo(nX: Smallint; nY: Smallint): WordBool; safecall;
function ReadPageUp: WordBool; safecall;
function ReadPageDown: WordBool; safecall;
function DoGoBack: WordBool; safecall;
function DoGoForward: WordBool; safecall;
function GetAVDoc: IDispatch; safecall;
function GetPage: IDispatch; safecall;
function GetDoc: IDispatch; safecall;
function GetZoom: Integer; safecall;
function GetZoomType: Smallint; safecall;
function GetPageNum: Integer; safecall;
function PointToDevice(const point: IDispatch): IDispatch; safecall;
function DevicePointToPage(const point: IDispatch): IDispatch; safecall;
function GetAperture: IDispatch; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroAVPageViewDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E9-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroAVPageViewDisp = dispinterface
['{9B4CD3E9-4981-101B-9CA8-9240CE2738AE}']
function GoTo_(nPage: Integer): WordBool; dispid 1;
function ZoomTo(nType: Smallint; nScale: Smallint): WordBool; dispid 2;
function ScrollTo(nX: Smallint; nY: Smallint): WordBool; dispid 3;
function ReadPageUp: WordBool; dispid 4;
function ReadPageDown: WordBool; dispid 5;
function DoGoBack: WordBool; dispid 6;
function DoGoForward: WordBool; dispid 7;
function GetAVDoc: IDispatch; dispid 8;
function GetPage: IDispatch; dispid 9;
function GetDoc: IDispatch; dispid 10;
function GetZoom: Integer; dispid 11;
function GetZoomType: Smallint; dispid 12;
function GetPageNum: Integer; dispid 13;
function PointToDevice(const point: IDispatch): IDispatch; dispid 14;
function DevicePointToPage(const point: IDispatch): IDispatch; dispid 15;
function GetAperture: IDispatch; dispid 16;
end;
// *********************************************************************//
// Interface: CAcroPDDoc
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E7-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDDoc = interface(IDispatch)
['{9B4CD3E7-4981-101B-9CA8-9240CE2738AE}']
function Open(const szFullPath: WideString): WordBool; safecall;
function Close: WordBool; safecall;
function InsertPages(nInsertPageAfter: Integer; const iPDDocSource: IDispatch;
lStartPage: Integer; lNumPages: Integer; lInsertFlags: Integer): WordBool; safecall;
function ReplacePages(nStartPage: Integer; const iPDDocSource: IDispatch;
lStartSourcePage: Integer; lNumPages: Integer;
bMergeTextAnnotations: Integer): WordBool; safecall;
function DeletePages(nStartPage: Integer; nEndPage: Integer): WordBool; safecall;
function GetNumPages: Integer; safecall;
function Create: WordBool; safecall;
function GetInfo(const sInfoKey: WideString): WideString; safecall;
function SetInfo(const sInfoKey: WideString; const szBuffer: WideString): WordBool; safecall;
function DeleteThumbs(lStartPage: Integer; lEndPage: Integer): WordBool; safecall;
function MovePage(lMoveAfterThisPage: Integer; lPageToMove: Integer): WordBool; safecall;
function GetFileName: WideString; safecall;
function GetPageMode: Integer; safecall;
function SetPageMode(nPageMode: Integer): WordBool; safecall;
function CreateThumbs(lFirstPage: Integer; lLastPage: Integer): WordBool; safecall;
function CreateTextSelect(lPage: Integer; const iAcroRect: IDispatch): IDispatch; safecall;
function AcquirePage(nPage: Integer): IDispatch; safecall;
function GetInstanceID: WideString; safecall;
function GetPermanentID: WideString; safecall;
function GetFlags: Integer; safecall;
function SetFlags(nFlags: Integer): WordBool; safecall;
function OpenAVDoc(const sTempTitle: WideString): IDispatch; safecall;
function Save(nType: Smallint; const sFullPath: WideString): WordBool; safecall;
function ClearFlags(nFlags: Integer): WordBool; safecall;
function SetOpenInfo(pgNum: Integer; viewMode: Smallint; const magnification: WideString): WordBool; safecall;
function CropPages(nStartPage: Integer; nEndPage: Integer; nOddOrEvenPagesOnly: Smallint;
const iAcroRect: IDispatch): WordBool; safecall;
function GetJSObject: IDispatch; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroPDDocDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3E7-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDDocDisp = dispinterface
['{9B4CD3E7-4981-101B-9CA8-9240CE2738AE}']
function Open(const szFullPath: WideString): WordBool; dispid 1;
function Close: WordBool; dispid 2;
function InsertPages(nInsertPageAfter: Integer; const iPDDocSource: IDispatch;
lStartPage: Integer; lNumPages: Integer; lInsertFlags: Integer): WordBool; dispid 3;
function ReplacePages(nStartPage: Integer; const iPDDocSource: IDispatch;
lStartSourcePage: Integer; lNumPages: Integer;
bMergeTextAnnotations: Integer): WordBool; dispid 4;
function DeletePages(nStartPage: Integer; nEndPage: Integer): WordBool; dispid 5;
function GetNumPages: Integer; dispid 6;
function Create: WordBool; dispid 7;
function GetInfo(const sInfoKey: WideString): WideString; dispid 8;
function SetInfo(const sInfoKey: WideString; const szBuffer: WideString): WordBool; dispid 9;
function DeleteThumbs(lStartPage: Integer; lEndPage: Integer): WordBool; dispid 10;
function MovePage(lMoveAfterThisPage: Integer; lPageToMove: Integer): WordBool; dispid 11;
function GetFileName: WideString; dispid 12;
function GetPageMode: Integer; dispid 13;
function SetPageMode(nPageMode: Integer): WordBool; dispid 14;
function CreateThumbs(lFirstPage: Integer; lLastPage: Integer): WordBool; dispid 15;
function CreateTextSelect(lPage: Integer; const iAcroRect: IDispatch): IDispatch; dispid 16;
function AcquirePage(nPage: Integer): IDispatch; dispid 17;
function GetInstanceID: WideString; dispid 18;
function GetPermanentID: WideString; dispid 19;
function GetFlags: Integer; dispid 20;
function SetFlags(nFlags: Integer): WordBool; dispid 21;
function OpenAVDoc(const sTempTitle: WideString): IDispatch; dispid 22;
function Save(nType: Smallint; const sFullPath: WideString): WordBool; dispid 23;
function ClearFlags(nFlags: Integer): WordBool; dispid 24;
function SetOpenInfo(pgNum: Integer; viewMode: Smallint; const magnification: WideString): WordBool; dispid 25;
function CropPages(nStartPage: Integer; nEndPage: Integer; nOddOrEvenPagesOnly: Smallint;
const iAcroRect: IDispatch): WordBool; dispid 26;
function GetJSObject: IDispatch; dispid 27;
end;
// *********************************************************************//
// Interface: CAcroPDPage
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EA-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDPage = interface(IDispatch)
['{9B4CD3EA-4981-101B-9CA8-9240CE2738AE}']
function GetSize: IDispatch; safecall;
function GetAnnot(lIndex: Integer): IDispatch; safecall;
function AddNewAnnot(nIndexAddAfter: Integer; const szSubType: WideString;
const pRectDispatch: IDispatch): IDispatch; safecall;
function AddAnnot(lIndexAddAfter: Integer; const pDispatch: IDispatch): WordBool; safecall;
function RemoveAnnot(lIndex: Integer): WordBool; safecall;
function GetAnnotIndex(const pDispatch: IDispatch): Integer; safecall;
function GetNumAnnots: Integer; safecall;
function CreatePageHilite(const pAcroHiliteList: IDispatch): IDispatch; safecall;
function CreateWordHilite(const pAcroHiliteList: IDispatch): IDispatch; safecall;
function GetDoc: IDispatch; safecall;
function GetNumber: Integer; safecall;
function Draw(nHWND: Smallint; nHDC: Smallint; nXOrigin: Smallint; nYOrigin: Smallint;
nZoom: Smallint): WordBool; safecall;
function GetRotate: Smallint; safecall;
function SetRotate(nRotate: Smallint): WordBool; safecall;
function DrawEx(nHWND: Integer; nHDC: Integer; const updateRect: IDispatch; nXOrigin: Smallint;
nYOrigin: Smallint; nZoom: Smallint): WordBool; safecall;
function CopyToClipboard(const boundRect: IDispatch; nXOrigin: Smallint; nYOrigin: Smallint;
nZoom: Smallint): WordBool; safecall;
function CropPage(const rect: IDispatch): WordBool; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroPDPageDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EA-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDPageDisp = dispinterface
['{9B4CD3EA-4981-101B-9CA8-9240CE2738AE}']
function GetSize: IDispatch; dispid 1;
function GetAnnot(lIndex: Integer): IDispatch; dispid 2;
function AddNewAnnot(nIndexAddAfter: Integer; const szSubType: WideString;
const pRectDispatch: IDispatch): IDispatch; dispid 3;
function AddAnnot(lIndexAddAfter: Integer; const pDispatch: IDispatch): WordBool; dispid 4;
function RemoveAnnot(lIndex: Integer): WordBool; dispid 5;
function GetAnnotIndex(const pDispatch: IDispatch): Integer; dispid 6;
function GetNumAnnots: Integer; dispid 7;
function CreatePageHilite(const pAcroHiliteList: IDispatch): IDispatch; dispid 8;
function CreateWordHilite(const pAcroHiliteList: IDispatch): IDispatch; dispid 9;
function GetDoc: IDispatch; dispid 10;
function GetNumber: Integer; dispid 11;
function Draw(nHWND: Smallint; nHDC: Smallint; nXOrigin: Smallint; nYOrigin: Smallint;
nZoom: Smallint): WordBool; dispid 12;
function GetRotate: Smallint; dispid 13;
function SetRotate(nRotate: Smallint): WordBool; dispid 14;
function DrawEx(nHWND: Integer; nHDC: Integer; const updateRect: IDispatch; nXOrigin: Smallint;
nYOrigin: Smallint; nZoom: Smallint): WordBool; dispid 15;
function CopyToClipboard(const boundRect: IDispatch; nXOrigin: Smallint; nYOrigin: Smallint;
nZoom: Smallint): WordBool; dispid 16;
function CropPage(const rect: IDispatch): WordBool; dispid 17;
end;
// *********************************************************************//
// Interface: CAcroPDTextSelect
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EF-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDTextSelect = interface(IDispatch)
['{9B4CD3EF-4981-101B-9CA8-9240CE2738AE}']
function Destroy: WordBool; safecall;
function GetNumText: Integer; safecall;
function GetBoundingRect: IDispatch; safecall;
function GetPage: Integer; safecall;
function GetText(lTextIndex: Integer): WideString; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroPDTextSelectDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EF-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDTextSelectDisp = dispinterface
['{9B4CD3EF-4981-101B-9CA8-9240CE2738AE}']
function Destroy: WordBool; dispid 1;
function GetNumText: Integer; dispid 2;
function GetBoundingRect: IDispatch; dispid 3;
function GetPage: Integer; dispid 4;
function GetText(lTextIndex: Integer): WideString; dispid 5;
end;
// *********************************************************************//
// Interface: CAcroPDAnnot
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EB-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDAnnot = interface(IDispatch)
['{9B4CD3EB-4981-101B-9CA8-9240CE2738AE}']
function IsValid: WordBool; safecall;
function GetSubtype: WideString; safecall;
function IsEqual(const PDAnnot: IDispatch): WordBool; safecall;
function GetColor: Integer; safecall;
function SetColor(nRGBColor: Integer): WordBool; safecall;
function GetTitle: WideString; safecall;
function SetTitle(const szTitle: WideString): WordBool; safecall;
function GetContents: WideString; safecall;
function SetContents(const szContents: WideString): WordBool; safecall;
function IsOpen: WordBool; safecall;
function SetOpen(bIsOpen: Integer): WordBool; safecall;
function GetRect: IDispatch; safecall;
function SetRect(const rect: IDispatch): WordBool; safecall;
function GetDate: IDispatch; safecall;
function SetDate(const lAcroTime: IDispatch): WordBool; safecall;
function Perform(const pAcroAVDoc: IDispatch): WordBool; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroPDAnnotDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EB-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDAnnotDisp = dispinterface
['{9B4CD3EB-4981-101B-9CA8-9240CE2738AE}']
function IsValid: WordBool; dispid 1;
function GetSubtype: WideString; dispid 2;
function IsEqual(const PDAnnot: IDispatch): WordBool; dispid 3;
function GetColor: Integer; dispid 4;
function SetColor(nRGBColor: Integer): WordBool; dispid 5;
function GetTitle: WideString; dispid 6;
function SetTitle(const szTitle: WideString): WordBool; dispid 7;
function GetContents: WideString; dispid 8;
function SetContents(const szContents: WideString): WordBool; dispid 9;
function IsOpen: WordBool; dispid 10;
function SetOpen(bIsOpen: Integer): WordBool; dispid 11;
function GetRect: IDispatch; dispid 12;
function SetRect(const rect: IDispatch): WordBool; dispid 13;
function GetDate: IDispatch; dispid 14;
function SetDate(const lAcroTime: IDispatch): WordBool; dispid 15;
function Perform(const pAcroAVDoc: IDispatch): WordBool; dispid 16;
end;
// *********************************************************************//
// Interface: CAcroPDBookmark
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3F1-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDBookmark = interface(IDispatch)
['{9B4CD3F1-4981-101B-9CA8-9240CE2738AE}']
function GetByTitle(const pAcroPDDoc: IDispatch; const sBookmarkTitle: WideString): WordBool; safecall;
function Destroy: WordBool; safecall;
function IsValid: WordBool; safecall;
function GetTitle: WideString; safecall;
function SetTitle(const sNewTitle: WideString): WordBool; safecall;
function Perform(const pAcroAVDoc: IDispatch): WordBool; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroPDBookmarkDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3F1-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPDBookmarkDisp = dispinterface
['{9B4CD3F1-4981-101B-9CA8-9240CE2738AE}']
function GetByTitle(const pAcroPDDoc: IDispatch; const sBookmarkTitle: WideString): WordBool; dispid 1;
function Destroy: WordBool; dispid 2;
function IsValid: WordBool; dispid 3;
function GetTitle: WideString; dispid 4;
function SetTitle(const sNewTitle: WideString): WordBool; dispid 5;
function Perform(const pAcroAVDoc: IDispatch): WordBool; dispid 6;
end;
// *********************************************************************//
// Interface: CAcroRect
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3ED-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroRect = interface(IDispatch)
['{9B4CD3ED-4981-101B-9CA8-9240CE2738AE}']
function Get_Left: Smallint; safecall;
procedure Set_Left(pVal: Smallint); safecall;
function Get_Top: Smallint; safecall;
procedure Set_Top(pVal: Smallint); safecall;
function Get_right: Smallint; safecall;
procedure Set_right(pVal: Smallint); safecall;
function Get_bottom: Smallint; safecall;
procedure Set_bottom(pVal: Smallint); safecall;
property Left: Smallint read Get_Left write Set_Left;
property Top: Smallint read Get_Top write Set_Top;
property right: Smallint read Get_right write Set_right;
property bottom: Smallint read Get_bottom write Set_bottom;
end;
// *********************************************************************//
// DispIntf: CAcroRectDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3ED-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroRectDisp = dispinterface
['{9B4CD3ED-4981-101B-9CA8-9240CE2738AE}']
property Left: Smallint dispid 1;
property Top: Smallint dispid 2;
property right: Smallint dispid 3;
property bottom: Smallint dispid 4;
end;
// *********************************************************************//
// Interface: CAcroPoint
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EC-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPoint = interface(IDispatch)
['{9B4CD3EC-4981-101B-9CA8-9240CE2738AE}']
function Get_x: Smallint; safecall;
procedure Set_x(pVal: Smallint); safecall;
function Get_y: Smallint; safecall;
procedure Set_y(pVal: Smallint); safecall;
property x: Smallint read Get_x write Set_x;
property y: Smallint read Get_y write Set_y;
end;
// *********************************************************************//
// DispIntf: CAcroPointDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EC-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroPointDisp = dispinterface
['{9B4CD3EC-4981-101B-9CA8-9240CE2738AE}']
property x: Smallint dispid 1;
property y: Smallint dispid 2;
end;
// *********************************************************************//
// Interface: CAcroTime
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EE-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroTime = interface(IDispatch)
['{9B4CD3EE-4981-101B-9CA8-9240CE2738AE}']
function Get_year: Smallint; safecall;
procedure Set_year(pVal: Smallint); safecall;
function Get_month: Smallint; safecall;
procedure Set_month(pVal: Smallint); safecall;
function Get_date: Smallint; safecall;
procedure Set_date(pVal: Smallint); safecall;
function Get_hour: Smallint; safecall;
procedure Set_hour(pVal: Smallint); safecall;
function Get_minute: Smallint; safecall;
procedure Set_minute(pVal: Smallint); safecall;
function Get_second: Smallint; safecall;
procedure Set_second(pVal: Smallint); safecall;
function Get_millisecond: Smallint; safecall;
procedure Set_millisecond(pVal: Smallint); safecall;
function Get_day: Smallint; safecall;
procedure Set_day(pVal: Smallint); safecall;
property year: Smallint read Get_year write Set_year;
property month: Smallint read Get_month write Set_month;
property date: Smallint read Get_date write Set_date;
property hour: Smallint read Get_hour write Set_hour;
property minute: Smallint read Get_minute write Set_minute;
property second: Smallint read Get_second write Set_second;
property millisecond: Smallint read Get_millisecond write Set_millisecond;
property day: Smallint read Get_day write Set_day;
end;
// *********************************************************************//
// DispIntf: CAcroTimeDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3EE-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroTimeDisp = dispinterface
['{9B4CD3EE-4981-101B-9CA8-9240CE2738AE}']
property year: Smallint dispid 1;
property month: Smallint dispid 2;
property date: Smallint dispid 3;
property hour: Smallint dispid 4;
property minute: Smallint dispid 5;
property second: Smallint dispid 6;
property millisecond: Smallint dispid 7;
property day: Smallint dispid 8;
end;
// *********************************************************************//
// Interface: CAcroHiliteList
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3F0-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroHiliteList = interface(IDispatch)
['{9B4CD3F0-4981-101B-9CA8-9240CE2738AE}']
function Add(nOffset: Smallint; nLength: Smallint): WordBool; safecall;
end;
// *********************************************************************//
// DispIntf: CAcroHiliteListDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {9B4CD3F0-4981-101B-9CA8-9240CE2738AE}
// *********************************************************************//
CAcroHiliteListDisp = dispinterface
['{9B4CD3F0-4981-101B-9CA8-9240CE2738AE}']
function Add(nOffset: Smallint; nLength: Smallint): WordBool; dispid 1;
end;
// *********************************************************************//
// Interface: IProvideESData
// Flags: (16) Hidden
// GUID: {5781DED0-FB8B-11D3-9A92-005004A56D53}
// *********************************************************************//
IProvideESData = interface(IUnknown)
['{5781DED0-FB8B-11D3-9A92-005004A56D53}']
function GetESObject(const eso: OleVariant): HResult; stdcall;
function GetESContext(const esc: OleVariant): HResult; stdcall;
end;
// *********************************************************************//
// Interface: IAcroAXDoc
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {08A9E040-9A9C-4F42-B5F5-2029B8F17E1D}
// *********************************************************************//
IAcroAXDoc = interface(IDispatch)
['{08A9E040-9A9C-4F42-B5F5-2029B8F17E1D}']
function Application: IDispatch; safecall;
function Document: IDispatch; safecall;
end;
// *********************************************************************//
// DispIntf: IAcroAXDocDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {08A9E040-9A9C-4F42-B5F5-2029B8F17E1D}
// *********************************************************************//
IAcroAXDocDisp = dispinterface
['{08A9E040-9A9C-4F42-B5F5-2029B8F17E1D}']
function Application: IDispatch; dispid 498;
function Document: IDispatch; dispid 497;
end;
// *********************************************************************//
// DispIntf: _AcroAXDocEventSink
// Flags: (4096) Dispatchable
// GUID: {2DEA7885-1846-411F-A41E-017A8FD778FF}
// *********************************************************************//
_AcroAXDocEventSink = dispinterface
['{2DEA7885-1846-411F-A41E-017A8FD778FF}']
function Stop: HResult; dispid 1;
end;
// *********************************************************************//
// The Class CoAcroApp provides a Create and CreateRemote method to
// create instances of the default interface CAcroApp exposed by
// the CoClass AcroApp. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroApp = class
class function Create: CAcroApp;
class function CreateRemote(const MachineName: string): CAcroApp;
end;
// *********************************************************************//
// The Class CoAcroAVDoc provides a Create and CreateRemote method to
// create instances of the default interface CAcroAVDoc exposed by
// the CoClass AcroAVDoc. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroAVDoc = class
class function Create: CAcroAVDoc;
class function CreateRemote(const MachineName: string): CAcroAVDoc;
end;
// *********************************************************************//
// The Class CoAcroAVPageView provides a Create and CreateRemote method to
// create instances of the default interface CAcroAVPageView exposed by
// the CoClass AcroAVPageView. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroAVPageView = class
class function Create: CAcroAVPageView;
class function CreateRemote(const MachineName: string): CAcroAVPageView;
end;
// *********************************************************************//
// The Class CoAcroPDDoc provides a Create and CreateRemote method to
// create instances of the default interface CAcroPDDoc exposed by
// the CoClass AcroPDDoc. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroPDDoc = class
class function Create: CAcroPDDoc;
class function CreateRemote(const MachineName: string): CAcroPDDoc;
end;
// *********************************************************************//
// The Class CoAcroPDPage provides a Create and CreateRemote method to
// create instances of the default interface CAcroPDPage exposed by
// the CoClass AcroPDPage. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroPDPage = class
class function Create: CAcroPDPage;
class function CreateRemote(const MachineName: string): CAcroPDPage;
end;
// *********************************************************************//
// The Class CoAcroPDTextSelect provides a Create and CreateRemote method to
// create instances of the default interface CAcroPDTextSelect exposed by
// the CoClass AcroPDTextSelect. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroPDTextSelect = class
class function Create: CAcroPDTextSelect;
class function CreateRemote(const MachineName: string): CAcroPDTextSelect;
end;
// *********************************************************************//
// The Class CoAcroPDAnnot provides a Create and CreateRemote method to
// create instances of the default interface CAcroPDAnnot exposed by
// the CoClass AcroPDAnnot. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroPDAnnot = class
class function Create: CAcroPDAnnot;
class function CreateRemote(const MachineName: string): CAcroPDAnnot;
end;
// *********************************************************************//
// The Class CoAcroPDBookmark provides a Create and CreateRemote method to
// create instances of the default interface CAcroPDBookmark exposed by
// the CoClass AcroPDBookmark. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroPDBookmark = class
class function Create: CAcroPDBookmark;
class function CreateRemote(const MachineName: string): CAcroPDBookmark;
end;
// *********************************************************************//
// The Class CoAcroRect provides a Create and CreateRemote method to
// create instances of the default interface CAcroRect exposed by
// the CoClass AcroRect. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroRect = class
class function Create: CAcroRect;
class function CreateRemote(const MachineName: string): CAcroRect;
end;
// *********************************************************************//
// The Class CoAcroPoint provides a Create and CreateRemote method to
// create instances of the default interface CAcroPoint exposed by
// the CoClass AcroPoint. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroPoint = class
class function Create: CAcroPoint;
class function CreateRemote(const MachineName: string): CAcroPoint;
end;
// *********************************************************************//
// The Class CoAcroTime provides a Create and CreateRemote method to
// create instances of the default interface CAcroTime exposed by
// the CoClass AcroTime. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroTime = class
class function Create: CAcroTime;
class function CreateRemote(const MachineName: string): CAcroTime;
end;
// *********************************************************************//
// The Class CoAcroHiliteList provides a Create and CreateRemote method to
// create instances of the default interface CAcroHiliteList exposed by
// the CoClass AcroHiliteList. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroHiliteList = class
class function Create: CAcroHiliteList;
class function CreateRemote(const MachineName: string): CAcroHiliteList;
end;
// *********************************************************************//
// The Class CoAcroAXDoc provides a Create and CreateRemote method to
// create instances of the default interface IAcroAXDoc exposed by
// the CoClass AcroAXDoc. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoAcroAXDoc = class
class function Create: IAcroAXDoc;
class function CreateRemote(const MachineName: string): IAcroAXDoc;
end;
implementation
uses System.Win.ComObj;
class function CoAcroApp.Create: CAcroApp;
begin
Result := CreateComObject(CLASS_AcroApp) as CAcroApp;
end;
class function CoAcroApp.CreateRemote(const MachineName: string): CAcroApp;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroApp) as CAcroApp;
end;
class function CoAcroAVDoc.Create: CAcroAVDoc;
begin
Result := CreateComObject(CLASS_AcroAVDoc) as CAcroAVDoc;
end;
class function CoAcroAVDoc.CreateRemote(const MachineName: string): CAcroAVDoc;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroAVDoc) as CAcroAVDoc;
end;
class function CoAcroAVPageView.Create: CAcroAVPageView;
begin
Result := CreateComObject(CLASS_AcroAVPageView) as CAcroAVPageView;
end;
class function CoAcroAVPageView.CreateRemote(const MachineName: string): CAcroAVPageView;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroAVPageView) as CAcroAVPageView;
end;
class function CoAcroPDDoc.Create: CAcroPDDoc;
begin
Result := CreateComObject(CLASS_AcroPDDoc) as CAcroPDDoc;
end;
class function CoAcroPDDoc.CreateRemote(const MachineName: string): CAcroPDDoc;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroPDDoc) as CAcroPDDoc;
end;
class function CoAcroPDPage.Create: CAcroPDPage;
begin
Result := CreateComObject(CLASS_AcroPDPage) as CAcroPDPage;
end;
class function CoAcroPDPage.CreateRemote(const MachineName: string): CAcroPDPage;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroPDPage) as CAcroPDPage;
end;
class function CoAcroPDTextSelect.Create: CAcroPDTextSelect;
begin
Result := CreateComObject(CLASS_AcroPDTextSelect) as CAcroPDTextSelect;
end;
class function CoAcroPDTextSelect.CreateRemote(const MachineName: string): CAcroPDTextSelect;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroPDTextSelect) as CAcroPDTextSelect;
end;
class function CoAcroPDAnnot.Create: CAcroPDAnnot;
begin
Result := CreateComObject(CLASS_AcroPDAnnot) as CAcroPDAnnot;
end;
class function CoAcroPDAnnot.CreateRemote(const MachineName: string): CAcroPDAnnot;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroPDAnnot) as CAcroPDAnnot;
end;
class function CoAcroPDBookmark.Create: CAcroPDBookmark;
begin
Result := CreateComObject(CLASS_AcroPDBookmark) as CAcroPDBookmark;
end;
class function CoAcroPDBookmark.CreateRemote(const MachineName: string): CAcroPDBookmark;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroPDBookmark) as CAcroPDBookmark;
end;
class function CoAcroRect.Create: CAcroRect;
begin
Result := CreateComObject(CLASS_AcroRect) as CAcroRect;
end;
class function CoAcroRect.CreateRemote(const MachineName: string): CAcroRect;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroRect) as CAcroRect;
end;
class function CoAcroPoint.Create: CAcroPoint;
begin
Result := CreateComObject(CLASS_AcroPoint) as CAcroPoint;
end;
class function CoAcroPoint.CreateRemote(const MachineName: string): CAcroPoint;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroPoint) as CAcroPoint;
end;
class function CoAcroTime.Create: CAcroTime;
begin
Result := CreateComObject(CLASS_AcroTime) as CAcroTime;
end;
class function CoAcroTime.CreateRemote(const MachineName: string): CAcroTime;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroTime) as CAcroTime;
end;
class function CoAcroHiliteList.Create: CAcroHiliteList;
begin
Result := CreateComObject(CLASS_AcroHiliteList) as CAcroHiliteList;
end;
class function CoAcroHiliteList.CreateRemote(const MachineName: string): CAcroHiliteList;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroHiliteList) as CAcroHiliteList;
end;
class function CoAcroAXDoc.Create: IAcroAXDoc;
begin
Result := CreateComObject(CLASS_AcroAXDoc) as IAcroAXDoc;
end;
class function CoAcroAXDoc.CreateRemote(const MachineName: string): IAcroAXDoc;
begin
Result := CreateRemoteComObject(MachineName, CLASS_AcroAXDoc) as IAcroAXDoc;
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment