![]() | InDesign SDK 20.5 |
#include <IPDFLibraryUtilsPublic.h>

Public Types | |
| enum | { kDefaultIID = IID_IPDFLIBRARYUTILSPUBLIC } |
Public Member Functions | |
| virtual bool16 | IsPDFExportPort (IPMUnknown const *port) const =0 |
| virtual void | AcquirePDFLibrary () const =0 |
| virtual void | ReleasePDFLibrary () const =0 |
| virtual bool16 | IsLibraryAvailable () const =0 |
| virtual bool | GetPDDocForPDFExportPort (IPMUnknown *port, PDDoc &document) const =0 |
| virtual bool | GetPDPageForPDFExportPort (IPMUnknown *port, PDPage &page) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A collection of PDF-specific utilities. These replace and extend functionality found in IPDFLibrary and IPDFDocPort.
| pure virtual |
Acquires the PDF library, ensuring that it is initialized.
Note: Call IsLibraryAvailable() to determine if the library is available for use.
Note: This call must be matched with a call to ReleasePDFLibrary(), even when IsLibraryAvailable() returns kFalse.
| pure virtual |
Retrieves PDDoc object stored by the specified port, which is assumed to be a PDF export port (ie., that a call to IsPDFExportPort() for the port would return kTrue).
| port | [IN] The port object from which to retrieve a PDDoc |
| document | [OUT] The PDDoc stored by the port |
| pure virtual |
Retrieves the current PDPage object stored by the specified port, which is assumed to be a PDF export port (ie., that a call to IsPDFExportPort() for the port would return kTrue).
| port | [IN] The port object from which to retrieve a PDPage |
| page | [OUT] The current PDPage stored by the port |
| pure virtual |
Determines whether the PDF library is available for use.
| pure virtual |
Determines whether the specified object is a PDF export port.
| port | The object to test |
| pure virtual |
Releases the PDF library, ensuring that it is terminated when no longer needed.