// Created by Microsoft (R) C/C++ Compiler Version 14.00.50727.42 (6e51b314).
//
// d:\skola\bc\semestralka\inks\inks\release\pdfcreatorpilot2.tli
//
// Wrapper implementations for Win32 type library PDFCreatorPilot2.DLL
// compiler-generated file created 08/02/06 at 01:18:25 - DO NOT EDIT!

#pragma once

//
// interface IpiPDFDocument2 wrapper method implementations
//

inline VARIANT_BOOL IpiPDFDocument2::GetAborted ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Aborted(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL IpiPDFDocument2::GetAutoCreateURL ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoCreateURL(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutAutoCreateURL ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_AutoCreateURL(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline unsigned long IpiPDFDocument2::GetHDC ( ) {
    unsigned long _result = 0;
    HRESULT _hr = get_HDC(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum TxCompressionType IpiPDFDocument2::GetCompression ( ) {
    enum TxCompressionType _result;
    HRESULT _hr = get_Compression(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutCompression ( enum TxCompressionType Value ) {
    HRESULT _hr = put_Compression(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetFileName ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_FileName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutFileName ( _bstr_t Value ) {
    HRESULT _hr = put_FileName(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetJPEGQuality ( ) {
    long _result = 0;
    HRESULT _hr = get_JPEGQuality(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutJPEGQuality ( long Value ) {
    HRESULT _hr = put_JPEGQuality(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetNonEmbeddedFonts ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_NonEmbeddedFonts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutNonEmbeddedFonts ( _bstr_t Value ) {
    HRESULT _hr = put_NonEmbeddedFonts(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetOnePass ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_OnePass(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutOnePass ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_OnePass(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline DATE IpiPDFDocument2::GetDocumentInfo_CreationDate ( ) {
    DATE _result = 0;
    HRESULT _hr = get_DocumentInfo_CreationDate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutDocumentInfo_CreationDate ( DATE Value ) {
    HRESULT _hr = put_DocumentInfo_CreationDate(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetDocumentInfo_Creator ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DocumentInfo_Creator(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutDocumentInfo_Creator ( _bstr_t Value ) {
    HRESULT _hr = put_DocumentInfo_Creator(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetDocumentInfo_Keywords ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DocumentInfo_Keywords(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutDocumentInfo_Keywords ( _bstr_t Value ) {
    HRESULT _hr = put_DocumentInfo_Keywords(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetDocumentInfo_Subject ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DocumentInfo_Subject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutDocumentInfo_Subject ( _bstr_t Value ) {
    HRESULT _hr = put_DocumentInfo_Subject(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetDocumentInfo_Title ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DocumentInfo_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutDocumentInfo_Title ( _bstr_t Value ) {
    HRESULT _hr = put_DocumentInfo_Title(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetDocumentInfo_Author ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_DocumentInfo_Author(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutDocumentInfo_Author ( _bstr_t Value ) {
    HRESULT _hr = put_DocumentInfo_Author(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetOwnerPassword ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_OwnerPassword(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutOwnerPassword ( _bstr_t Value ) {
    HRESULT _hr = put_OwnerPassword(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPageCount ( ) {
    long _result = 0;
    HRESULT _hr = get_PageCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::GetPageHeight ( ) {
    long _result = 0;
    HRESULT _hr = get_PageHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum TxPageLayout IpiPDFDocument2::GetPageLayout ( ) {
    enum TxPageLayout _result;
    HRESULT _hr = get_PageLayout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPageLayout ( enum TxPageLayout Value ) {
    HRESULT _hr = put_PageLayout(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxPageMode IpiPDFDocument2::GetPageMode ( ) {
    enum TxPageMode _result;
    HRESULT _hr = get_PageMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPageMode ( enum TxPageMode Value ) {
    HRESULT _hr = put_PageMode(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPageWidth ( ) {
    long _result = 0;
    HRESULT _hr = get_PageWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::GetPageNumber ( ) {
    long _result = 0;
    HRESULT _hr = get_PageNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL IpiPDFDocument2::GetPrinting ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_Printing(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL IpiPDFDocument2::GetProtectionEnabled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ProtectionEnabled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutProtectionEnabled ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ProtectionEnabled(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetProtectionOptions_coPrint ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ProtectionOptions_coPrint(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutProtectionOptions_coPrint ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ProtectionOptions_coPrint(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetProtectionOptions_coModifyStructure ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ProtectionOptions_coModifyStructure(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutProtectionOptions_coModifyStructure ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ProtectionOptions_coModifyStructure(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetProtectionOptions_coModifyAnnotation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ProtectionOptions_coModifyAnnotation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutProtectionOptions_coModifyAnnotation ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ProtectionOptions_coModifyAnnotation(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetProtectionOptions_coCopyInformation ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ProtectionOptions_coCopyInformation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutProtectionOptions_coCopyInformation ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ProtectionOptions_coCopyInformation(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetResolution ( ) {
    long _result = 0;
    HRESULT _hr = get_Resolution(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutResolution ( long Value ) {
    HRESULT _hr = put_Resolution(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetUserPassword ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_UserPassword(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutUserPassword ( _bstr_t Value ) {
    HRESULT _hr = put_UserPassword(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetViewerPreferences_vpHideToolBar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ViewerPreferences_vpHideToolBar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutViewerPreferences_vpHideToolBar ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ViewerPreferences_vpHideToolBar(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetViewerPreferences_vpHideMenuBar ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ViewerPreferences_vpHideMenuBar(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutViewerPreferences_vpHideMenuBar ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ViewerPreferences_vpHideMenuBar(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetViewerPreferences_vpHideWindowUI ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ViewerPreferences_vpHideWindowUI(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutViewerPreferences_vpHideWindowUI ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ViewerPreferences_vpHideWindowUI(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetViewerPreferences_vpFitWindow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ViewerPreferences_vpFitWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutViewerPreferences_vpFitWindow ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ViewerPreferences_vpFitWindow(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetViewerPreferences_vpCenterWindow ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_ViewerPreferences_vpCenterWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutViewerPreferences_vpCenterWindow ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_ViewerPreferences_vpCenterWindow(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IpiPDFDocument2::Abort ( ) {
    HRESULT _hr = raw_Abort();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::AddImageFromFilename ( _bstr_t FileName, enum TxImageCompressionType Compression ) {
    long _result = 0;
    HRESULT _hr = raw_AddImageFromFilename(FileName, Compression, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::BeginDoc ( ) {
    HRESULT _hr = raw_BeginDoc();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::CreateGoToPageAction ( long PageIndex, long TopOffset ) {
    long _result = 0;
    HRESULT _hr = raw_CreateGoToPageAction(PageIndex, TopOffset, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::CreateJavascriptAction ( _bstr_t Javascript ) {
    long _result = 0;
    HRESULT _hr = raw_CreateJavascriptAction(Javascript, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::CreateResetFormAction ( ) {
    long _result = 0;
    HRESULT _hr = raw_CreateResetFormAction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::CreateSubmitFormAction ( _bstr_t URL, VARIANT_BOOL SendEmpty, enum TxPDFSubmitType SubmitType ) {
    long _result = 0;
    HRESULT _hr = raw_CreateSubmitFormAction(URL, SendEmpty, SubmitType, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::CreateVisibleControlAction ( VARIANT_BOOL Visible ) {
    long _result = 0;
    HRESULT _hr = raw_CreateVisibleControlAction(Visible, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::CreateWaterMark ( ) {
    long _result = 0;
    HRESULT _hr = raw_CreateWaterMark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::EndDoc ( ) {
    HRESULT _hr = raw_EndDoc();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::GetCurrentPageIndex ( ) {
    long _result = 0;
    HRESULT _hr = raw_GetCurrentPageIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::NewPage ( ) {
    HRESULT _hr = raw_NewPage();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::SetCurrentPage ( long NewIndex ) {
    HRESULT _hr = raw_SetCurrentPage(NewIndex);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::GetPDFPAGE_Height ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFPAGE_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_Height ( long Value ) {
    HRESULT _hr = put_PDFPAGE_Height(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxPDFPageOrientation IpiPDFDocument2::GetPDFPAGE_Orientation ( ) {
    enum TxPDFPageOrientation _result;
    HRESULT _hr = get_PDFPAGE_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_Orientation ( enum TxPDFPageOrientation Value ) {
    HRESULT _hr = put_PDFPAGE_Orientation(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxPDFPageRotate IpiPDFDocument2::GetPDFPAGE_PageRotate ( ) {
    enum TxPDFPageRotate _result;
    HRESULT _hr = get_PDFPAGE_PageRotate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_PageRotate ( enum TxPDFPageRotate Value ) {
    HRESULT _hr = put_PDFPAGE_PageRotate(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFPAGE_TextInitiated ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFPAGE_TextInitiated(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::GetPDFPAGE_Thumbnail ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFPAGE_Thumbnail(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_Thumbnail ( long Value ) {
    HRESULT _hr = put_PDFPAGE_Thumbnail(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFPAGE_Watermark ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFPAGE_Watermark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_Watermark ( long Value ) {
    HRESULT _hr = put_PDFPAGE_Watermark(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFPAGE_Width ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFPAGE_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_Width ( long Value ) {
    HRESULT _hr = put_PDFPAGE_Width(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Arc ( double X1, double Y1, double X2, double Y2, double X3, double Y3, double X4, double Y4, double * RetValue_X, double * RetValue_Y ) {
    HRESULT _hr = raw_PDFPAGE_Arc(X1, Y1, X2, Y2, X3, Y3, X4, Y4, RetValue_X, RetValue_Y);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Arc2 ( double X1, double Y1, double X2, double Y2, double BeginAngle, double EndAngle, double * currentX, double * currentY ) {
    HRESULT _hr = raw_PDFPAGE_Arc2(X1, Y1, X2, Y2, BeginAngle, EndAngle, currentX, currentY);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_BeginText ( ) {
    HRESULT _hr = raw_PDFPAGE_BeginText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Circle ( double X, double Y, double R ) {
    HRESULT _hr = raw_PDFPAGE_Circle(X, Y, R);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Clip ( ) {
    HRESULT _hr = raw_PDFPAGE_Clip();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_ClosePath ( ) {
    HRESULT _hr = raw_PDFPAGE_ClosePath();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Comment ( _bstr_t Text ) {
    HRESULT _hr = raw_PDFPAGE_Comment(Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::PDFPAGE_CreateControl_Button ( _bstr_t ControlName, long X, long Y, long X1, long Y1 ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_CreateControl_Button(ControlName, X, Y, X1, Y1, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFPAGE_CreateControl_Checkbox ( _bstr_t ControlName, long X, long Y, long X1, long Y1 ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_CreateControl_Checkbox(ControlName, X, Y, X1, Y1, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFPAGE_CreateControl_Combobox ( _bstr_t ControlName, long X, long Y, long X1, long Y1 ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_CreateControl_Combobox(ControlName, X, Y, X1, Y1, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFPAGE_CreateControl_RadioButton ( _bstr_t ControlName, long X, long Y, long X1, long Y1 ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_CreateControl_RadioButton(ControlName, X, Y, X1, Y1, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_CurveTo ( double X1, double Y1, double X2, double Y2, double X3, double Y3 ) {
    HRESULT _hr = raw_PDFPAGE_CurveTo(X1, Y1, X2, Y2, X3, Y3);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Ellipse ( double X1, double Y1, double X2, double Y2 ) {
    HRESULT _hr = raw_PDFPAGE_Ellipse(X1, Y1, X2, Y2);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_EndText ( ) {
    HRESULT _hr = raw_PDFPAGE_EndText();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_EoClip ( ) {
    HRESULT _hr = raw_PDFPAGE_EoClip();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_EoFill ( ) {
    HRESULT _hr = raw_PDFPAGE_EoFill();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_EoFillAndStroke ( ) {
    HRESULT _hr = raw_PDFPAGE_EoFillAndStroke();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Fill ( ) {
    HRESULT _hr = raw_PDFPAGE_Fill();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_FillAndStroke ( ) {
    HRESULT _hr = raw_PDFPAGE_FillAndStroke();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_GStateRestore ( ) {
    HRESULT _hr = raw_PDFPAGE_GStateRestore();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_GStateSave ( ) {
    HRESULT _hr = raw_PDFPAGE_GStateSave();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline double IpiPDFDocument2::PDFPAGE_GetTextWidth ( _bstr_t Text ) {
    double _result = 0;
    HRESULT _hr = raw_PDFPAGE_GetTextWidth(Text, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_LineTo ( double X, double Y ) {
    HRESULT _hr = raw_PDFPAGE_LineTo(X, Y);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_MoveTo ( double X, double Y ) {
    HRESULT _hr = raw_PDFPAGE_MoveTo(X, Y);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_NewPath ( ) {
    HRESULT _hr = raw_PDFPAGE_NewPath();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_NoDash ( ) {
    HRESULT _hr = raw_PDFPAGE_NoDash();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Pie ( double X1, double Y1, double X2, double Y2, double X3, double Y3, double X4, double Y4 ) {
    HRESULT _hr = raw_PDFPAGE_Pie(X1, Y1, X2, Y2, X3, Y3, X4, Y4);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Pie2 ( double X1, double Y1, double X2, double Y2, double BeginAngle, double EndAngle ) {
    HRESULT _hr = raw_PDFPAGE_Pie2(X1, Y1, X2, Y2, BeginAngle, EndAngle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_RectRotated ( double X, double Y, double X1, double Y1, double Angle ) {
    HRESULT _hr = raw_PDFPAGE_RectRotated(X, Y, X1, Y1, Angle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Rectangle ( double X, double Y, double X1, double Y1 ) {
    HRESULT _hr = raw_PDFPAGE_Rectangle(X, Y, X1, Y1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Rotate ( double Angle ) {
    HRESULT _hr = raw_PDFPAGE_Rotate(Angle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_RotateText ( double Degrees ) {
    HRESULT _hr = raw_PDFPAGE_RotateText(Degrees);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_RoundRect ( long X, long Y, long X1, long Y1, long roundX, long roundY ) {
    HRESULT _hr = raw_PDFPAGE_RoundRect(X, Y, X1, Y1, roundX, roundY);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Scale ( double SX, double SY ) {
    HRESULT _hr = raw_PDFPAGE_Scale(SX, SY);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::PDFPAGE_SetAction ( long X, long Y, long X1, long Y1, long ActionIndex ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_SetAction(X, Y, X1, Y1, ActionIndex, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetActiveFont ( _bstr_t FontName, VARIANT_BOOL FontStyle_Bold, VARIANT_BOOL FontStyle_Italic, VARIANT_BOOL FontStyle_Underline, VARIANT_BOOL FontStyle_StrikeOut, double FontSize, enum TxFontCharset FontCharset ) {
    HRESULT _hr = raw_PDFPAGE_SetActiveFont(FontName, FontStyle_Bold, FontStyle_Italic, FontStyle_Underline, FontStyle_StrikeOut, FontSize, FontCharset);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::PDFPAGE_SetAnnotation ( long X, long Y, long X1, long Y1, _bstr_t Title, _bstr_t Text, OLE_COLOR Color, VARIANT_BOOL AnnotationFlag_afPrint, VARIANT_BOOL AnnotationFlag_afNoZoom, VARIANT_BOOL AnnotationFlag_afNoRotate, VARIANT_BOOL AnnotationFlag_afInVisible, VARIANT_BOOL AnnotationFlag_afHidden, VARIANT_BOOL AnnotationFlag_afNoView, VARIANT_BOOL AnnotationFlag_afReadOnly, VARIANT_BOOL Opened, enum TxFontCharset FontCharset ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_SetAnnotation(X, Y, X1, Y1, Title, Text, Color, AnnotationFlag_afPrint, AnnotationFlag_afNoZoom, AnnotationFlag_afNoRotate, AnnotationFlag_afInVisible, AnnotationFlag_afHidden, AnnotationFlag_afNoView, AnnotationFlag_afReadOnly, Opened, FontCharset, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetCMYKColor ( double C, double M, double Y, double K ) {
    HRESULT _hr = raw_PDFPAGE_SetCMYKColor(C, M, Y, K);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetCMYKColorFill ( double C, double M, double Y, double K ) {
    HRESULT _hr = raw_PDFPAGE_SetCMYKColorFill(C, M, Y, K);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetSMYKColorStroke ( double C, double M, double Y, double K ) {
    HRESULT _hr = raw_PDFPAGE_SetSMYKColorStroke(C, M, Y, K);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetCharacterSpacing ( double Spacing ) {
    HRESULT _hr = raw_PDFPAGE_SetCharacterSpacing(Spacing);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetDash ( _bstr_t DashSpec ) {
    HRESULT _hr = raw_PDFPAGE_SetDash(DashSpec);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetFlat ( long Flatness ) {
    HRESULT _hr = raw_PDFPAGE_SetFlat(Flatness);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetGray ( double Gray ) {
    HRESULT _hr = raw_PDFPAGE_SetGray(Gray);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetGrayFill ( double Gray ) {
    HRESULT _hr = raw_PDFPAGE_SetGrayFill(Gray);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetGrayStroke ( double Gray ) {
    HRESULT _hr = raw_PDFPAGE_SetGrayStroke(Gray);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetLineCap ( enum TxPDFLineCap LineCap ) {
    HRESULT _hr = raw_PDFPAGE_SetLineCap(LineCap);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetLineJoin ( enum TxPDFLineJoin LineJoin ) {
    HRESULT _hr = raw_PDFPAGE_SetLineJoin(LineJoin);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetLineWidth ( double lw ) {
    HRESULT _hr = raw_PDFPAGE_SetLineWidth(lw);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetLinkToPage ( long X, long Y, long X1, long Y1, long PageIndex, long TopOffset ) {
    HRESULT _hr = raw_PDFPAGE_SetLinkToPage(X, Y, X1, Y1, PageIndex, TopOffset);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetMiterLimit ( double MiterLimit ) {
    HRESULT _hr = raw_PDFPAGE_SetMiterLimit(MiterLimit);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetRGBColor ( double R, double G, double B ) {
    HRESULT _hr = raw_PDFPAGE_SetRGBColor(R, G, B);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetRGBColorFill ( double R, double G, double B ) {
    HRESULT _hr = raw_PDFPAGE_SetRGBColorFill(R, G, B);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetRGBColorStroke ( double R, double G, double B ) {
    HRESULT _hr = raw_PDFPAGE_SetRGBColorStroke(R, G, B);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetTextPosition ( double X, double Y ) {
    HRESULT _hr = raw_PDFPAGE_SetTextPosition(X, Y);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetTextRenderingMode ( enum TxTextRenderingMode Mode ) {
    HRESULT _hr = raw_PDFPAGE_SetTextRenderingMode(Mode);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetTextRise ( double Rise ) {
    HRESULT _hr = raw_PDFPAGE_SetTextRise(Rise);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetURL ( long X, long Y, long X1, long Y1, _bstr_t URL ) {
    HRESULT _hr = raw_PDFPAGE_SetURL(X, Y, X1, Y1, URL);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetWordSpacing ( double Spacing ) {
    HRESULT _hr = raw_PDFPAGE_SetWordSpacing(Spacing);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_ShowImage ( long ImageIndex, double X, double Y, double W, double H, double Angle ) {
    HRESULT _hr = raw_PDFPAGE_ShowImage(ImageIndex, X, Y, W, H, Angle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SkewText ( double Alpha, double Beta ) {
    HRESULT _hr = raw_PDFPAGE_SkewText(Alpha, Beta);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Stroke ( ) {
    HRESULT _hr = raw_PDFPAGE_Stroke();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_TextBox ( long X, long Y, long X1, long Y1, _bstr_t Text, enum TxHorJust Hor, enum TxVertJust Vert ) {
    HRESULT _hr = raw_PDFPAGE_TextBox(X, Y, X1, Y1, Text, Hor, Vert);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_TextOut ( double X, double Y, double Orientation, _bstr_t TextStr ) {
    HRESULT _hr = raw_PDFPAGE_TextOut(X, Y, Orientation, TextStr);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_TextShow ( _bstr_t TextStr ) {
    HRESULT _hr = raw_PDFPAGE_TextShow(TextStr);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Translate ( double XT, double YT ) {
    HRESULT _hr = raw_PDFPAGE_Translate(XT, YT);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline enum TxPDFPageSize IpiPDFDocument2::GetPDFPAGE_Size ( ) {
    enum TxPDFPageSize _result;
    HRESULT _hr = get_PDFPAGE_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_Size ( enum TxPDFPageSize Value ) {
    HRESULT _hr = put_PDFPAGE_Size(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFPAGE_CanvasOver ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFPAGE_CanvasOver(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFPAGE_CanvasOver ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFPAGE_CanvasOver(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IpiPDFDocument2::PDFPAGE_SetHorizontalScaling ( double Scale ) {
    HRESULT _hr = raw_PDFPAGE_SetHorizontalScaling(Scale);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_Concat ( double A, double B, double C, double D, double E, double F ) {
    HRESULT _hr = raw_PDFPAGE_Concat(A, B, C, D, E, F);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IpiPDFDocument2::GetAutoLaunch ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_AutoLaunch(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutAutoLaunch ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_AutoLaunch(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetOpenDocumentAction ( ) {
    long _result = 0;
    HRESULT _hr = get_OpenDocumentAction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutOpenDocumentAction ( long Value ) {
    HRESULT _hr = put_OpenDocumentAction(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetSwitchedToWatermark ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_SwitchedToWatermark(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutSwitchedToWatermark ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_SwitchedToWatermark(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxPDFVersion IpiPDFDocument2::GetVersion ( ) {
    enum TxPDFVersion _result;
    HRESULT _hr = get_Version(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutVersion ( enum TxPDFVersion Value ) {
    HRESULT _hr = put_Version(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::CreateImportDataAction ( _bstr_t FileName ) {
    long _result = 0;
    HRESULT _hr = raw_CreateImportDataAction(FileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::CreateURLAction ( _bstr_t URL ) {
    long _result = 0;
    HRESULT _hr = raw_CreateURLAction(URL, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_PlayMetaFile ( unsigned long hMetafile ) {
    HRESULT _hr = raw_PDFPAGE_PlayMetaFile(hMetafile);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_PlayMetaFileEx ( unsigned long hMetafile, double X, double Y, double XScale, double YScale ) {
    HRESULT _hr = raw_PDFPAGE_PlayMetaFileEx(hMetafile, X, Y, XScale, YScale);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::GetCurrentWaterMarkIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_CurrentWaterMarkIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutCurrentWaterMarkIndex ( long Value ) {
    HRESULT _hr = put_CurrentWaterMarkIndex(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IpiPDFDocument2::PDFPAGE_PlayMetaFileFromFileName ( _bstr_t FileName ) {
    HRESULT _hr = raw_PDFPAGE_PlayMetaFileFromFileName(FileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFPAGE_PlayMetaFileExFromFileName ( _bstr_t FileName, double X, double Y, double XScale, double YScale ) {
    HRESULT _hr = raw_PDFPAGE_PlayMetaFileExFromFileName(FileName, X, Y, XScale, YScale);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::GetPDFOUTLINES_Count ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFOUTLINES_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::PDFOUTLINES_Clear ( ) {
    HRESULT _hr = raw_PDFOUTLINES_Clear();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFOUTLINES_Delete ( long ItemIndex ) {
    HRESULT _hr = raw_PDFOUTLINES_Delete(ItemIndex);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::PDFOUTLINES_GetFirstNode ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINES_GetFirstNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINES_Add ( long Node, _bstr_t Title, long Action, enum TxFontCharset Charset ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINES_Add(Node, Title, Action, Charset, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINES_AddChild ( long Node, _bstr_t Title, long Action, enum TxFontCharset Charset ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINES_AddChild(Node, Title, Action, Charset, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINES_AddFirst ( long Node, _bstr_t Title, long Action, enum TxFontCharset Charset ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINES_AddFirst(Node, Title, Action, Charset, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINES_Insert ( long Node, _bstr_t Title, long Action, enum TxFontCharset Charset ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINES_Insert(Node, Title, Action, Charset, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::GetPDFOUTLINENODE_Action ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFOUTLINENODE_Action(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFOUTLINENODE_Action ( long Value ) {
    HRESULT _hr = put_PDFOUTLINENODE_Action(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxFontCharset IpiPDFDocument2::GetPDFOUTLINENODE_Charset ( ) {
    enum TxFontCharset _result;
    HRESULT _hr = get_PDFOUTLINENODE_Charset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFOUTLINENODE_Charset ( enum TxFontCharset Value ) {
    HRESULT _hr = put_PDFOUTLINENODE_Charset(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFOUTLINENODE_Count ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFOUTLINENODE_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFOUTLINENODE_Expanded ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFOUTLINENODE_Expanded(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFOUTLINENODE_Expanded ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFOUTLINENODE_Expanded(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFOUTLINENODE_HasChildren ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFOUTLINENODE_HasChildren(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetSubItem ( long Index ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetSubItem(Index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IpiPDFDocument2::GetPDFOUTLINENODE_Title ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFOUTLINENODE_Title(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFOUTLINENODE_Title ( _bstr_t Value ) {
    HRESULT _hr = put_PDFOUTLINENODE_Title(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IpiPDFDocument2::PDFOUTLINENODE_Delete ( ) {
    HRESULT _hr = raw_PDFOUTLINENODE_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::PDFOUTLINENODE_DeleteChildren ( ) {
    HRESULT _hr = raw_PDFOUTLINENODE_DeleteChildren();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetFirstChild ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetFirstChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetLastChild ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetLastChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetNext ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetNext(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetNextChild ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetNextChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetNextSibling ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetNextSibling(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetPrev ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetPrev(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetPrevChild ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetPrevChild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFOUTLINENODE_GetPrevSibling ( ) {
    long _result = 0;
    HRESULT _hr = raw_PDFOUTLINENODE_GetPrevSibling(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IpiPDFDocument2::SetCurrentPDFOutlineNode ( long Index ) {
    HRESULT _hr = raw_SetCurrentPDFOutlineNode(Index);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::AddControlToAction ( long ActionIndex, long ControlIndex ) {
    long _result = 0;
    HRESULT _hr = raw_AddControlToAction(ActionIndex, ControlIndex, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::GetPDFANNOTATION_Box_X ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Box_X(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Box_X ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_Box_X(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_Box_Y ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Box_Y(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Box_Y ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_Box_Y(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_Box_W ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Box_W(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Box_W ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_Box_W(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_Box_H ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Box_H(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Box_H ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_Box_H(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_BorderStyle ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_BorderStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_BorderStyle ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_BorderStyle(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Flags_afInvisible ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Flags_afInvisible(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Flags_afInvisible ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Flags_afInvisible(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Flags_afHidden ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Flags_afHidden(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Flags_afHidden ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Flags_afHidden(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Flags_afPrint ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Flags_afPrint(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Flags_afPrint ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Flags_afPrint(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Flags_afNoZoom ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Flags_afNoZoom(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Flags_afNoZoom ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Flags_afNoZoom(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Flags_afNoRotate ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Flags_afNoRotate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Flags_afNoRotate ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Flags_afNoRotate(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Flags_afNoView ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Flags_afNoView(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Flags_afNoView ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Flags_afNoView(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Flags_afReadOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Flags_afReadOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Flags_afReadOnly ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Flags_afReadOnly(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OLE_COLOR IpiPDFDocument2::GetPDFANNOTATION_BorderColor ( ) {
    OLE_COLOR _result;
    HRESULT _hr = get_PDFANNOTATION_BorderColor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_BorderColor ( OLE_COLOR Value ) {
    HRESULT _hr = put_PDFANNOTATION_BorderColor(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_ReadOnly ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_ReadOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_ReadOnly ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_ReadOnly(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Required ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Required(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Required ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Required(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_Name ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Name ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_Name(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OLE_COLOR IpiPDFDocument2::GetPDFANNOTATION_Color ( ) {
    OLE_COLOR _result;
    HRESULT _hr = get_PDFANNOTATION_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Color ( OLE_COLOR Value ) {
    HRESULT _hr = put_PDFANNOTATION_Color(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_Font_Name ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Font_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Name ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Name(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxFontCharset IpiPDFDocument2::GetPDFANNOTATION_Font_Charset ( ) {
    enum TxFontCharset _result;
    HRESULT _hr = get_PDFANNOTATION_Font_Charset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Charset ( enum TxFontCharset Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Charset(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Font_Style_fsBold ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Font_Style_fsBold(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Style_fsBold ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Style_fsBold(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Font_Style_fsItalic ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Font_Style_fsItalic(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Style_fsItalic ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Style_fsItalic(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Font_Style_fsUnderline ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Font_Style_fsUnderline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Style_fsUnderline ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Style_fsUnderline(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Font_Style_fsStrikeout ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Font_Style_fsStrikeout(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Style_fsStrikeout ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Style_fsStrikeout(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_Font_Size ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Font_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Size ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Size(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline OLE_COLOR IpiPDFDocument2::GetPDFANNOTATION_Font_Color ( ) {
    OLE_COLOR _result;
    HRESULT _hr = get_PDFANNOTATION_Font_Color(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Font_Color ( OLE_COLOR Value ) {
    HRESULT _hr = put_PDFANNOTATION_Font_Color(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_Hint_Caption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Hint_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Hint_Caption ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_Hint_Caption(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxFontCharset IpiPDFDocument2::GetPDFANNOTATION_Hint_Charset ( ) {
    enum TxFontCharset _result;
    HRESULT _hr = get_PDFANNOTATION_Hint_Charset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Hint_Charset ( enum TxFontCharset Value ) {
    HRESULT _hr = put_PDFANNOTATION_Hint_Charset(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnMouseUp ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnMouseUp(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnMouseUp ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnMouseUp(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnMouseDown ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnMouseDown(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnMouseDown ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnMouseDown(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnMouseEnter ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnMouseEnter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnMouseEnter ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnMouseEnter(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnMouseExit ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnMouseExit(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnMouseExit ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnMouseExit(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnSetFocus ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnSetFocus(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnSetFocus ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnSetFocus(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnLostFocus ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnLostFocus(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnLostFocus ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnLostFocus(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxAnnotationType IpiPDFDocument2::GetCurrentAnnotationType ( ) {
    enum TxAnnotationType _result;
    HRESULT _hr = get_CurrentAnnotationType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_Caption ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Caption ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_Caption(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnKeyPress ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnKeyPress(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnKeyPress ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnKeyPress(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnBeforeFormatting ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnBeforeFormatting(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnBeforeFormatting ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnBeforeFormatting(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnChange ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnChange(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnChange ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnChange(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_OnOtherControlChanged ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_OnOtherControlChanged(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_OnOtherControlChanged ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_OnOtherControlChanged(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Checked ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Checked(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Checked ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Checked(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_Items ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Items(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Items ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_Items(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_EditEnabled ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_EditEnabled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_EditEnabled ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_EditEnabled(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_Text ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Text(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Text ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_Text(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Multiline ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Multiline(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Multiline ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Multiline(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_IsPassword ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_IsPassword(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_IsPassword ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_IsPassword(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_ShowBorder ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_ShowBorder(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_ShowBorder ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_ShowBorder(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_MaxLength ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_MaxLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_MaxLength ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_MaxLength(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxHorJust IpiPDFDocument2::GetPDFANNOTATION_Justification ( ) {
    enum TxHorJust _result;
    HRESULT _hr = get_PDFANNOTATION_Justification(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Justification ( enum TxHorJust Value ) {
    HRESULT _hr = put_PDFANNOTATION_Justification(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetPDFANNOTATION_ExportValue ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_PDFANNOTATION_ExportValue(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IpiPDFDocument2::PutPDFANNOTATION_ExportValue ( _bstr_t Value ) {
    HRESULT _hr = put_PDFANNOTATION_ExportValue(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetPDFANNOTATION_Action ( ) {
    long _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Action(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Action ( long Value ) {
    HRESULT _hr = put_PDFANNOTATION_Action(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxTextAnnotationIcon IpiPDFDocument2::GetPDFANNOTATION_TextAnnotationIcon ( ) {
    enum TxTextAnnotationIcon _result;
    HRESULT _hr = get_PDFANNOTATION_TextAnnotationIcon(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_TextAnnotationIcon ( enum TxTextAnnotationIcon Value ) {
    HRESULT _hr = put_PDFANNOTATION_TextAnnotationIcon(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetPDFANNOTATION_Opened ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_PDFANNOTATION_Opened(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Opened ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_PDFANNOTATION_Opened(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline enum TxFontCharset IpiPDFDocument2::GetPDFANNOTATION_Charset ( ) {
    enum TxFontCharset _result;
    HRESULT _hr = get_PDFANNOTATION_Charset(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutPDFANNOTATION_Charset ( enum TxFontCharset Value ) {
    HRESULT _hr = put_PDFANNOTATION_Charset(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IpiPDFDocument2::GetGenerateInMemoryFile ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_GenerateInMemoryFile(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutGenerateInMemoryFile ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_GenerateInMemoryFile(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IpiPDFDocument2::GetOutputByteStream ( ) {
    BSTR _result = 0;
    HRESULT _hr = get_OutputByteStream(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline long IpiPDFDocument2::PDFPAGE_CreateControl_Edit ( _bstr_t ControlName, long X, long Y, long X1, long Y1 ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_CreateControl_Edit(ControlName, X, Y, X1, Y1, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::GetCurrentAnnotationIndex ( ) {
    long _result = 0;
    HRESULT _hr = get_CurrentAnnotationIndex(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutCurrentAnnotationIndex ( long Value ) {
    HRESULT _hr = put_CurrentAnnotationIndex(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t IpiPDFDocument2::GetBinaryImage ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_BinaryImage(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline HRESULT IpiPDFDocument2::NonEmbeddedFonts_Add ( _bstr_t FontName ) {
    HRESULT _hr = raw_NonEmbeddedFonts_Add(FontName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IpiPDFDocument2::StartEngine ( _bstr_t Email, _bstr_t Password ) {
    HRESULT _hr = raw_StartEngine(Email, Password);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::GetCurrentPDFOutlineNode ( ) {
    long _result = 0;
    HRESULT _hr = raw_GetCurrentPDFOutlineNode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum TxCryptoKeyLength IpiPDFDocument2::GetProtectionKeyLength ( ) {
    enum TxCryptoKeyLength _result;
    HRESULT _hr = get_ProtectionKeyLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutProtectionKeyLength ( enum TxCryptoKeyLength Value ) {
    HRESULT _hr = put_ProtectionKeyLength(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::AddImageFromBitmapHandle ( OLE_HANDLE AHandle, enum TxImageCompressionType Compression ) {
    long _result = 0;
    HRESULT _hr = raw_AddImageFromBitmapHandle(AHandle, Compression, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::AddImageFromBuffer ( VARIANT * Buffer, enum TxImageCompressionType Compression ) {
    long _result = 0;
    HRESULT _hr = raw_AddImageFromBuffer(Buffer, Compression, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::AddImageFromMemory ( LPSTR Buffer, long BufSize, enum TxImageCompressionType Compression ) {
    long _result = 0;
    HRESULT _hr = raw_AddImageFromMemory(Buffer, BufSize, Compression, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::PDFPAGE_TextOutBox ( long LTCornX, long LTCornY, long Interval, long BoxWidth, long BoxHeight, _bstr_t TextStr ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_TextOutBox(LTCornX, LTCornY, Interval, BoxWidth, BoxHeight, TextStr, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline enum TxFontEmbeddingType IpiPDFDocument2::GetFontEmbedStyle ( ) {
    enum TxFontEmbeddingType _result;
    HRESULT _hr = get_FontEmbedStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutFontEmbedStyle ( enum TxFontEmbeddingType Value ) {
    HRESULT _hr = put_FontEmbedStyle(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IpiPDFDocument2::PDFPAGE_UnicodeTextOut ( double X, double Y, double Orientation, LPWSTR Text ) {
    HRESULT _hr = raw_PDFPAGE_UnicodeTextOut(X, Y, Orientation, Text);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IpiPDFDocument2::PDFPAGE_UnicodeTextOutBox ( long LTCornX, long LTCornY, long Interval, long BoxWidth, long BoxHeight, LPWSTR TextStr ) {
    long _result = 0;
    HRESULT _hr = raw_PDFPAGE_UnicodeTextOutBox(LTCornX, LTCornY, Interval, BoxWidth, BoxHeight, TextStr, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline double IpiPDFDocument2::PDFPAGE_GetUnicodeTextWidth ( LPWSTR Text ) {
    double _result = 0;
    HRESULT _hr = raw_PDFPAGE_GetUnicodeTextWidth(Text, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL IpiPDFDocument2::GetUseScreenDC ( ) {
    VARIANT_BOOL _result = 0;
    HRESULT _hr = get_UseScreenDC(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IpiPDFDocument2::PutUseScreenDC ( VARIANT_BOOL Value ) {
    HRESULT _hr = put_UseScreenDC(Value);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IpiPDFDocument2::GetUsedDCResolution ( ) {
    long _result = 0;
    HRESULT _hr = raw_GetUsedDCResolution(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline unsigned long IpiPDFDocument2::GetUsedDC ( ) {
    unsigned long _result = 0;
    HRESULT _hr = raw_GetUsedDC(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IpiPDFDocument2::GetMemoryFileSize ( ) {
    long _result = 0;
    HRESULT _hr = get_MemoryFileSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}
