#include <PdfPublishDocument.h>
|
| | ODRX_DECLARE_MEMBERS (OdDocument) |
| |
| | ODRX_HEAP_OPERATORS () |
| |
| virtual | ~OdDocument () |
| |
| void | setVersion (const OdPDF::PDFFormatVersions version) |
| |
| 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 OdAttachedFilePtr &file) |
| |
| void | setCollection (const OdCollectionPtr &collection) |
| |
| void | setUserPassword (const OdString &user_password) |
| |
| void | setOwnerPassword (const OdString &owner_password) |
| |
| void | setAccessPermissionFlags (const AccessPermissions::AccessPermissionsFlags flags) |
| |
| void | appendRootBookmark (const OdBookmarkPtr bookmark) |
| |
| void | setRootBookmarks (const OdBookmarkPtrArray &bookmarks) |
| |
| void | getVersion (OdPDF::PDFFormatVersions &version) const |
| |
| 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 (OdAttachedFilePtrArray &files) const |
| |
| void | getCollection (OdCollectionPtr &collection) const |
| |
| void | getUserPassword (OdString &user_password) const |
| |
| void | getOwnerPassword (OdString &owner_password) const |
| |
| AccessPermissions::AccessPermissionsFlags | getAccessPermissionFlags () const |
| |
| void | getRootBookmarks (OdBookmarkPtrArray &bookmarks) 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 54 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 OdAttachedFilePtr & | file | ) |
|
Adds a new attachment file to the ODA Publish document.
- Parameters
-
| file | [in] A smart pointer to a attached file object. |
◆ 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 | ) |
|
◆ appendRootBookmark()
| void OdPdfPublish::OdDocument::appendRootBookmark |
( |
const OdBookmarkPtr | bookmark | ) |
|
◆ appServices()
Gets the current application services object for the document.
- Returns
- Returns a pointer to the database application services object.
◆ getAccessPermissionFlags()
◆ getAttachments()
| void OdPdfPublish::OdDocument::getAttachments |
( |
OdAttachedFilePtrArray & | files | ) |
const |
Returns a collection of attached file object. The method fills a passed collection of attached file object and returns it to the calling subroutine.
- Parameters
-
| files | [out] A placeholder for collection of attached file object. |
◆ getCollection()
| void OdPdfPublish::OdDocument::getCollection |
( |
OdCollectionPtr & | collection | ) |
const |
Returns the current collection object. The method fills a passed collection object and returns it to the calling subroutine.
- Parameters
-
| collection | [out] A placeholder for collection object. |
◆ 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] An <exref target="https://docs.opendesign.com/tkernel/OdString.html">OdString</exref> object that acts as 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>.
◆ getRootBookmarks()
| void OdPdfPublish::OdDocument::getRootBookmarks |
( |
OdBookmarkPtrArray & | bookmarks | ) |
const |
Returns root bookmarks for the current bookmark from the PDF document. The method fills the passed array with smart pointers to <link OdPdfPublish::OdBookmark, OdBookmark> objects that represents the child bookmarks of the current bookmark and returns it to a calling subroutine.
- Parameters
-
- See also
- <link OdPdfPublish::OdBookmark, OdBookmark class>.
◆ getUserPassword()
| void OdPdfPublish::OdDocument::getUserPassword |
( |
OdString & | user_password | ) |
const |
Retrieves the current user password for the output PDF document.
- Parameters
-
| user_password | [out] An <exref target="https://docs.opendesign.com/tkernel/OdString.html">OdString</exref> object that acts as a placeholder for the current PDF document user password. |
◆ getVersion()
Returns PDF format version for the Publish SDK document. This method fills the passed the value of the <link OdPDF::PDFFormatVersions, PDF format version> and returns them to a calling subroutine.
- Parameters
-
| version | [out] A placeholder for the PDF format version value. |
◆ ODRX_DECLARE_MEMBERS()
| OdPdfPublish::OdDocument::ODRX_DECLARE_MEMBERS |
( |
OdDocument | | ) |
|
◆ ODRX_HEAP_OPERATORS()
| OdPdfPublish::OdDocument::ODRX_HEAP_OPERATORS |
( |
| ) |
|
◆ setAccessPermissionFlags()
◆ setCollection()
| void OdPdfPublish::OdDocument::setCollection |
( |
const OdCollectionPtr & | collection | ) |
|
Sets a collection object to the ODA Publish document.
- Parameters
-
| collection | [in] A smart pointer to a collection object. |
◆ 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 <exref target="https://docs.opendesign.com/tkernel/OdString.html">string</exref> that contains a new value for the output document's owner password. |
◆ setRootBookmarks()
| void OdPdfPublish::OdDocument::setRootBookmarks |
( |
const OdBookmarkPtrArray & | bookmarks | ) |
|
◆ setUserPassword()
| void OdPdfPublish::OdDocument::setUserPassword |
( |
const OdString & | user_password | ) |
|
Sets a new user password for the output PDF document.
- Parameters
-
| user_password | [in] A <exref target="https://docs.opendesign.com/tkernel/OdString.html">string</exref> that contains a new value for the output document's user password. |
◆ setVersion()
Sets PDF format version for the Publish SDK document.
- Parameters
-
The documentation for this class was generated from the following file: