#include <PdfPublishDocument.h>
|
| ODRX_DECLARE_MEMBERS (OdDocument) |
|
| ODRX_HEAP_OPERATORS () |
|
virtual | ~OdDocument () |
|
void | setInformation (const OdString &title, const OdString &author, const OdString &subject, const OdString &creator) |
|
void | addJavaScript (const OdString &name, const OdString &source, const Source::Type source_type=Source::kCode) |
|
void | addIconImage (const OdString &name, const OdImagePtr &image) |
|
void | addPage (const OdPagePtr &page) |
|
void | addAttachment (const OdString &file_name, const OdString &description) |
|
void | setUserPassword (const OdString &user_password) |
|
void | setOwnerPassword (const OdString &owner_password) |
|
void | setAccessPermissionFlags (const AccessPermissions::AccessPermissionsFlags flags) |
|
void | getInformation (OdString &title, OdString &author, OdString &subject, OdString &creator) const |
|
void | getJavaScripts (OdStringArray &names, OdStringArray &sources, OdSourceTypeArray &source_types) const |
|
void | getIconImages (OdStringArray &names, OdImagePtrArray &images) const |
|
void | getPages (OdPagePtrArray &pages) const |
|
void | getAttachments (OdStringArray &file_names, OdStringArray &descriptions) |
|
void | getUserPassword (OdString &user_password) const |
|
void | getOwnerPassword (OdString &owner_password) const |
|
AccessPermissions::AccessPermissionsFlags | getAccessPermissionFlags () const |
|
void | setHostServices (OdDbBaseHostAppServices *pHostApp) |
|
OdDbBaseHostAppServices * | appServices () const |
|
| ODRX_DECLARE_MEMBERS (OdObject) |
|
| ODRX_HEAP_OPERATORS () |
|
virtual | ~OdObject () |
|
virtual bool | isEmpty () const |
|
virtual bool | isValid () const |
|
virtual void | clear () |
|
| ODRX_HEAP_OPERATORS () |
|
| OdRxObject () |
|
virtual | ~OdRxObject () |
|
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
|
virtual OdRxObject * | x (const OdRxClass *pClass) const |
|
virtual OdRxClass * | isA () const |
|
virtual void | addRef ()=0 |
|
virtual void | release ()=0 |
|
virtual long | numRefs () const |
|
bool | isKindOf (const OdRxClass *pClass) const |
|
virtual OdRxObjectPtr | clone () const |
|
virtual void | copyFrom (const OdRxObject *pSource) |
|
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
|
virtual bool | isEqualTo (const OdRxObject *pOther) const |
|
This class implements working with a .pdf document created with Publish SDK. A document is a container for other elements and controls (such as <link OdPdfPublish::OdPage, pages>, <link OdPdfPublish::OdImage, images>, <link OdPdfPublish::OdLink, links>, <link OdPdfPublish::OdAnnotation, annotations>, and so on).
Definition at line 51 of file PdfPublishDocument.h.
◆ OdDocument()
OdPdfPublish::OdDocument::OdDocument |
( |
| ) |
|
|
protected |
◆ ~OdDocument()
virtual OdPdfPublish::OdDocument::~OdDocument |
( |
| ) |
|
|
virtual |
Destroys the Publish SDK document.
◆ addAttachment()
void OdPdfPublish::OdDocument::addAttachment |
( |
const OdString & |
file_name, |
|
|
const OdString & |
description |
|
) |
| |
Adds a new attachment file to the ODA Publish document.
- Parameters
-
file_name | [in] A string that contains the name of the file to be attached. |
description | [in] A string that contains the description of the file to be attached. |
◆ addIconImage()
void OdPdfPublish::OdDocument::addIconImage |
( |
const OdString & |
name, |
|
|
const OdImagePtr & |
image |
|
) |
| |
◆ addJavaScript()
Adds a new JavaScript scenario to the Publish SDK document.
- Parameters
-
name | [in] A name of a JavaScript scenario. |
source | [in] Source code text of a JavaScript scenario. |
source_type | [in] JavaScript scenario source type. |
- See also
- <link OdPdfPublish::Source::Type, Source::Type enumeration>.
◆ addPage()
void OdPdfPublish::OdDocument::addPage |
( |
const OdPagePtr & |
page | ) |
|
◆ appServices()
Gets the current application services object for the document.
- Returns
- Returns a pointer to the database application services object.
◆ getAccessPermissionFlags()
Retrieves the current access permission flags.
- Returns
- A value of the AccessPermissionsFlags data type that represents the current value of access permission flags.
◆ getAttachments()
Retrieves names of files currently attached to the Publish document. The method fills passed string arrays with file names and descriptions; then returns them to a calling subroutine.
- Parameters
-
file_names | [out] A placeholder for names of attached files. |
descriptions | [out] A placeholder for descriptions of attached files. |
◆ getIconImages()
void OdPdfPublish::OdDocument::getIconImages |
( |
OdStringArray & |
names, |
|
|
OdImagePtrArray & |
images |
|
) |
| const |
Returns a collection of icon <link OdPdfPublish::OdImage, images> from the Publish SDK document. This method fills the passed string array and smart pointer array with image names and pointers to image objects, then returns them to a calling subroutine.
- Parameters
-
names | [out] A placeholder for icon image names. |
images | [out] A placeholder for an array of smart pointers that point to the document icon images. |
- See also
- <link OdPdfPublish::OdImage, OdImage class>.
◆ getInformation()
Returns the current common information about the Publish SDK document. This method fills the passed strings and returns them to a calling subroutine.
- Parameters
-
title | [out] A placeholder for the document title. |
author | [out] A placeholder for the document author. |
subject | [out] A placeholder for the document subject. |
creator | [out] A placeholder for the information about the document creator. |
◆ getJavaScripts()
Returns the collection of JavaScript scenarios encapsulated in the Publish SDK document. This method fills the passed arrays with names, source code text and source code types, then returns them to a calling subroutine.
- Parameters
-
names | [out] A placeholder for JavaScript scenario names. |
sources | [out] A placeholder for JavaScript scenario source code text. |
source_types | [out] A placeholder for JavaScript scenario source code types. |
◆ getOwnerPassword()
void OdPdfPublish::OdDocument::getOwnerPassword |
( |
OdString & |
owner_password | ) |
const |
Retrieves the current owner password for the output PDF document.
- Parameters
-
owner_password | [out] A placeholder for the current PDF document owner password. |
◆ getPages()
void OdPdfPublish::OdDocument::getPages |
( |
OdPagePtrArray & |
pages | ) |
const |
Returns the array of <link OdPdfPublish::OdPage, pages> that the Publish SDK document contains. This method fills the passed array with the OdPage object that represents the document pages and returns it to a calling subroutine.
- Parameters
-
pages | [out] A placeholder for the document pages array. |
- See also
- <link OdPdfPublish::OdPage, OdPage class>.
◆ getUserPassword()
void OdPdfPublish::OdDocument::getUserPassword |
( |
OdString & |
user_password | ) |
const |
Retrieves the current user password for the output PDF document.
- Parameters
-
user_password | [out] A placeholder for the current PDF document user password. |
◆ ODRX_DECLARE_MEMBERS()
OdPdfPublish::OdDocument::ODRX_DECLARE_MEMBERS |
( |
OdDocument |
| ) |
|
◆ ODRX_HEAP_OPERATORS()
OdPdfPublish::OdDocument::ODRX_HEAP_OPERATORS |
( |
| ) |
|
◆ setAccessPermissionFlags()
Sets a new access permission flags value for the output PDF document.
- Parameters
-
flags | [in] An instance of access permission flags to be set. |
◆ setHostServices()
Sets a new application services object for the document.
- Parameters
-
pHostApp | [in] A pointer to a database application services object. |
◆ setInformation()
Sets common information about the Publish SDK document.
- Parameters
-
title | [in] A string that contains the document title. |
author | [in] A string that contains the document author. |
subject | [in] A string that contains the document subject. |
creator | [in] A string that contains information about the document creator. |
◆ setOwnerPassword()
void OdPdfPublish::OdDocument::setOwnerPassword |
( |
const OdString & |
owner_password | ) |
|
Sets a new owner password for the output PDF document.
- Parameters
-
owner_password | [in] A new value for the output document's owner password. |
◆ setUserPassword()
void OdPdfPublish::OdDocument::setUserPassword |
( |
const OdString & |
user_password | ) |
|
Sets a new user password for the output PDF document.
- Parameters
-
user_password | [in] A new value for the output document's user password. |
The documentation for this class was generated from the following file: