CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdPdfPublish::OdPage Class Reference

#include <PdfPublishPage.h>

Inheritance diagram for OdPdfPublish::OdPage:
OdPdfPublish::OdObject OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdPage)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdPage ()
 
void setFormat (Page::Format format)
 
void setOrientation (Page::Orientation orientation)
 
void setPaperSize (const Page::PaperUnits units, const double width, const double height)
 
void addAnnotation (const OdAnnotationPtr &annotation, const OdRect &location)
 
void addText (const OdTextPtr &text, const OdRect &location, const double rotation=0.)
 
void addImage (const OdImagePtr &image, const OdRect &location, const double rotation=0.)
 
void addTable (const OdTablePtr &table, const OdRect &location)
 
void addLink (const OdLinkPtr &link, const OdRect &location)
 
void addButton (const OdButtonPtr &button, const OdRect &location)
 
void addTextField (const OdTextFieldPtr &text_field, const OdRect &location)
 
void addSlideTable (const OdSlideTablePtr &slide_table, const OdRect &location)
 
void addCheckBox (const OdCheckBoxPtr &check_box, const OdRect &location)
 
void addRadioButton (const OdRadioButtonPtr &radio_button, const OdRect &location)
 
void addListBox (const OdListBoxPtr &list_box, const OdRect &location)
 
void addDropDownList (const OdDropDownListPtr &drop_down_list, const OdRect &location)
 
void addSignatureField (const OdSignatureFieldPtr &signature_field, const OdRect &location)
 
void add2dGeometry (const Od2dGeometryReferencePtr &geom, const OdRect &location)
 
void add2dGeometry (const Od2dGeometryReferencePtr &geom)
 
void addCADReference (const OdCADReferencePtr &CADreferense, const OdRect &location)
 
void addCADReference (const OdCADReferencePtr &CADreferense)
 
void addStickyNote (const OdStickyNotePtr &note, const OdRect &location)
 
void addWatermark (const OdWatermarkPtr &watermark, const OdRect &location)
 
void addJavaScriptActionByField (const OdString &field_name, const OdString &source, const Action::Type action_type, const Source::Type source_type=Source::kCode)
 
void getFormat (Page::Format &format) const
 
void getOrientation (Page::Orientation &orientation) const
 
void getPaperSize (const Page::PaperUnits units, double &width, double &height) const
 
void getAnnotations (OdAnnotationPtrArray &annotations, OdRectArray &locations) const
 
void getTexts (OdTextPtrArray &texts, OdRectArray &locations, OdDoubleArray &rotations) const
 
void getImages (OdImagePtrArray &images, OdRectArray &locations, OdDoubleArray &rotations) const
 
void getTables (OdTablePtrArray &tables, OdRectArray &locations) const
 
void getLinks (OdLinkPtrArray &links, OdRectArray &locations) const
 
void getButtons (OdButtonPtrArray &buttons, OdRectArray &locations) const
 
void getCheckBoxes (OdCheckBoxPtrArray &check_boxes, OdRectArray &locations) const
 
void getRadioButtons (OdRadioButtonPtrArray &radio_buttons, OdRectArray &locations) const
 
void getListBoxes (OdListBoxPtrArray &list_boxes, OdRectArray &locations) const
 
void getDropDownLists (OdDropDownListPtrArray &drop_down_lists, OdRectArray &locations) const
 
void getSignatureFields (OdSignatureFieldPtrArray &signature_fields, OdRectArray &locations) const
 
void getTextFields (OdTextFieldPtrArray &text_fields, OdRectArray &locations) const
 
void getSlideTables (OdSlideTablePtrArray &slide_tables, OdRectArray &locations) const
 
void getJavaScriptActionsByField (const OdString &field_name, OdStringArray &sources, OdActionTypeArray &action_types, OdSourceTypeArray &source_types) const
 
void get2dGeoms (Od2dGeometryReferencePtrArray &geoms, OdRectArray &locations) const
 
void getCADReferences (OdCADReferencePtrArray &CADreferenses, OdRectArray &locations) const
 
void getStickyNotes (OdStickyNotePtrArray &notes, OdRectArray &locations) const
 
void getWatermarks (OdWatermarkPtrArray &watermarks, OdRectArray &locations) const
 
- Public Member Functions inherited from OdPdfPublish::OdObject
 ODRX_DECLARE_MEMBERS (OdObject)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdObject ()
 
virtual bool isEmpty () const
 
virtual bool isValid () const
 
virtual void clear ()
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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
 

Protected Member Functions

 OdPage ()
 
- Protected Member Functions inherited from OdPdfPublish::OdObject
 OdObject (OdPublishObjectImpl *pImpl)
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
static void rxInit ()
 
static void rxUninit ()
 

Detailed Description

This class implements a page object for a .pdf document created with Publish SDK. A page is determined by two properties: format (size of its sides) and orientation (which side aligns horizontally) and can contain a set of different controls and fields (such as <link OdPdfPublish::OdText, text labels>, <link OdPdfPublish::OdAnnotation, annotations>, <link OdPdfPublish::OdTextField, text fields>, <link OdPdfPublish::OdButton, buttons>, <link OdPdfPublish::OdLink, links>, etc.).

Definition at line 67 of file PdfPublishPage.h.

Constructor & Destructor Documentation

◆ OdPage()

OdPdfPublish::OdPage::OdPage ( )
protected

◆ ~OdPage()

virtual OdPdfPublish::OdPage::~OdPage ( )
virtual

Destroys a page object.

Member Function Documentation

◆ add2dGeometry() [1/2]

void OdPdfPublish::OdPage::add2dGeometry ( const Od2dGeometryReferencePtr & geom)

Adds a two-dimensional geometry reference to the page.

Parameters
geom[in] A smart pointer to the 2D geometry reference to be added.
Remarks
The location and size of the geometry is defined by the transformation matrix in the geometry reference object passed to the method (geom parameter).

◆ add2dGeometry() [2/2]

void OdPdfPublish::OdPage::add2dGeometry ( const Od2dGeometryReferencePtr & geom,
const OdRect & location )

Adds a two-dimensional geometry reference to the page.

Parameters
geom[in] A smart pointer to the 2D geometry reference to be added.
location[in] A location where to place the geometry.

◆ addAnnotation()

void OdPdfPublish::OdPage::addAnnotation ( const OdAnnotationPtr & annotation,
const OdRect & location )

Adds a new <link OdPdfPublish::OdAnnotation, annotation> to the page.

Parameters
annotation[in] A smart pointer to an annotation object that should be added.
location[in] A rectangle that specifies the location of an added annotation within the page. It determines where the annotation will be placed on the page.
See also
<link OdPdfPublish::OdAnnotation, OdAnnotation class>.

◆ addButton()

void OdPdfPublish::OdPage::addButton ( const OdButtonPtr & button,
const OdRect & location )

Adds a <link OdPdfPublish::OdButton, button control> to the page.

Parameters
button[in] A smart pointer to a button control that should be added.
location[in] A rectangle that specifies the location of an added button control within the page. It determines where the button control will be placed on the page.
See also
<link OdPdfPublish::OdButton, OdButton class>.

◆ addCADReference() [1/2]

void OdPdfPublish::OdPage::addCADReference ( const OdCADReferencePtr & CADreferense)

Adds a CAD reference object to the page.

Parameters
CADreferense[in] A smart pointer to a CAD reference object.
Remarks
The location and size of the CAD object is defined by the transformation matrix in the CAD reference object passed to the method (CADreference parameter).
See also
<link OdPdfPublish::OdCADReference, OdCADReference class>.

◆ addCADReference() [2/2]

void OdPdfPublish::OdPage::addCADReference ( const OdCADReferencePtr & CADreferense,
const OdRect & location )

Adds a CAD reference object to the page.

Parameters
CADreferense[in] A smart pointer to a CAD reference object.
location[in] A rectangle that specifies the page area where the CAD reference should be added.
See also
<link OdPdfPublish::OdCADReference, OdCADReference class>.

◆ addCheckBox()

void OdPdfPublish::OdPage::addCheckBox ( const OdCheckBoxPtr & check_box,
const OdRect & location )

Adds a <link OdPdfPublish::OdCheckBox, checkbox> to the page.

Parameters
check_box[in] A smart pointer to a checkbox object that should be added.
location[in] A rectangle that specifies the location of an added checkbox within the page. It determines where the checkbox is placed on the page.
See also
<link OdPdfPublish::OdCheckBox, OdCheckBox class>.

◆ addDropDownList()

void OdPdfPublish::OdPage::addDropDownList ( const OdDropDownListPtr & drop_down_list,
const OdRect & location )

Adds a <link OdPdfPublish::OdDropDownList, drop-down list> (combo box) to the page.

Parameters
drop_down_list[in] A smart pointer to a drop-down list object that should be added.
location[in] A rectangle that specifies the location of an added drop-down list within the page. It determines where the drop-down list is placed on the page.
See also
<link OdPdfPublish::OdDropDownList, OdDropDownList class>.

◆ addImage()

void OdPdfPublish::OdPage::addImage ( const OdImagePtr & image,
const OdRect & location,
const double rotation = 0. )

Adds an <link OdPdfPublish::OdImage, image> to the page.

Parameters
image[in] A smart pointer to an image object that should be added.
location[in] A rectangle that specifies the location of an added image within the page. It determines where the image will be placed on the page.
rotation[in] A rotation angle value to be set.
See also
<link OdPdfPublish::OdImage, OdImage class>.

◆ addJavaScriptActionByField()

void OdPdfPublish::OdPage::addJavaScriptActionByField ( const OdString & field_name,
const OdString & source,
const Action::Type action_type,
const Source::Type source_type = Source::kCode )

Adds a JavaScript scenario for a specified field on the page.

Parameters
field_name[in] A field name to add JavaScript scenario.
source[in] JavaScript scenario source text.
action_type[in] An action type that triggers the JavaScript scenario.
source_type[in] A JavaScript scenario source type.
Remarks
The field_name parameter should contain the name of a <link OdPdfPublish::OdButton, button>, <link OdPdfPublish::OdCheckBox, checkbox> or other control object. The specified JavaScript scenario runs when the <link OdPdfPublish::Action::Type, event> specified with the action_type occurs.
See also
<link OdPdfPublish::Action::Type, Action::Type enumeration>. <link OdPdfPublish::Source::Type, Source::Type enumeration>.

◆ addLink()

void OdPdfPublish::OdPage::addLink ( const OdLinkPtr & link,
const OdRect & location )

Adds a <link OdPdfPublish::OdLink, link> to the page.

Parameters
link[in] A smart pointer to a link object that should be added.
location[in] A rectangle that specifies the location of an added link within the page. It determines where the link will be placed on the page.
See also
<link OdPdfPublish::OdLink, OdLink class>.

◆ addListBox()

void OdPdfPublish::OdPage::addListBox ( const OdListBoxPtr & list_box,
const OdRect & location )

Adds a <link OdPdfPublish::OdListBox, list box> to the page.

Parameters
list_box[in] A smart pointer to a list box object that should be added.
location[in] A rectangle that specifies the location of an added list box within the page. It determines where the list box is placed on the page.
See also
<link OdPdfPublish::OdListBox, OdListBox class>.

◆ addRadioButton()

void OdPdfPublish::OdPage::addRadioButton ( const OdRadioButtonPtr & radio_button,
const OdRect & location )

Adds a <link OdPdfPublish::OdRadioButton, radio button> to the page.

Parameters
radio_button[in] A smart pointer to a radio button object that should be added.
location[in] A rectangle that specifies the location of an added radio button within the page. It determines where the radio button is placed on the page.
See also
<link OdPdfPublish::OdRadioButton, OdRadioButton class>.

◆ addSignatureField()

void OdPdfPublish::OdPage::addSignatureField ( const OdSignatureFieldPtr & signature_field,
const OdRect & location )

Adds a <link OdPdfPublish::OdSignatureField, signature field> to the page.

Parameters
signature_field[in] A smart pointer to a signature field object that should be added.
location[in] A rectangle that specifies the location of an added signature field within the page. It determines where the signature field is placed on the page.
See also
<link OdPdfPublish::OdSignatureField, OdSignatureField class>.

◆ addSlideTable()

void OdPdfPublish::OdPage::addSlideTable ( const OdSlideTablePtr & slide_table,
const OdRect & location )

Adds a <link OdPdfPublish::OdSlideTable, table with slides> to the page.

Parameters
slide_table[in] A smart pointer to a slide table object that should be added.
location[in] A rectangle that specifies the location of an added slide table within the page. It determines where the slide table is placed on the page.
See also
<link OdPdfPublish::OdSlideTable, OdSlideTable class>.

◆ addStickyNote()

void OdPdfPublish::OdPage::addStickyNote ( const OdStickyNotePtr & note,
const OdRect & location )

Adds a <link OdPdfPublish::OdStickyNote, sticky note> object to the <link OdPdfPublish::OdPage, page>.

Parameters
note[in] A smart pointer to a <link OdPdfPublish::OdStickyNote, sticky note> object.
location[in] A <link OdPdfPublish::OdRect, rectangle> that specifies the page area where the <link OdPdfPublish::OdStickyNote, sticky note> appears.
Remarks
The size and appearance of the <link OdPdfPublish::OdStickyNote, sticky note> object icon is predefined and depends on the viewer application. The position of the icon is specified by the center of the specified rectangle.
See also
<link OdPdfPublish::OdStickyNote, OdStickyNote class>.

◆ addTable()

void OdPdfPublish::OdPage::addTable ( const OdTablePtr & table,
const OdRect & location )

Adds a <link OdPdfPublish::OdTable, table> to the page.

Parameters
table[in] A smart pointer to a table object that should be added.
location[in] A rectangle that specifies the location of an added table within the page. It determines where the table will be placed on the page.
See also
<link OdPdfPublish::OdTable, OdTable class>.

◆ addText()

void OdPdfPublish::OdPage::addText ( const OdTextPtr & text,
const OdRect & location,
const double rotation = 0. )

Adds a <link OdPdfPublish::OdText, text> label to the page.

Parameters
text[in] A smart pointer to a text label that should be added.
location[in] A rectangle that specifies the location of an added text label within the page. It determines where the text will be placed on the page.
rotation[in] A rotation angle value to be set.
Remarks
The location determines the bottom left position of the bounding box of text on the page.
See also
<link OdPdfPublish::OdText, OdText class>.

◆ addTextField()

void OdPdfPublish::OdPage::addTextField ( const OdTextFieldPtr & text_field,
const OdRect & location )

Adds a <link OdPdfPublish::OdTextField, text field> to the page.

Parameters
text_field[in] A smart pointer to a text field object that should be added.
location[in] A rectangle that specifies the location of an added text field within the page. It determines where the text field will be placed on the page.
See also
<link OdPdfPublish::OdTextField, OdTextField class>.

◆ addWatermark()

void OdPdfPublish::OdPage::addWatermark ( const OdWatermarkPtr & watermark,
const OdRect & location )

Adds a <link OdPdfPublish::OdWatermark, watermark> label to the page.

Parameters
watermark[in] A smart pointer to a <link OdPdfPublish::OdWatermark, watermark object> that should be added.
location[in] A <link OdPdfPublish::OdRect, rectangle> that specifies the location of the watermark object within the page. It determines where the watermark text is placed on the page.
Remarks
The inserted <link OdPdfPublish::OdWatermark, watermark object> is scaled to the location rectangle size.
See also
<link OdPdfPublish::OdWatermark, OdWatermark class>.

◆ get2dGeoms()

void OdPdfPublish::OdPage::get2dGeoms ( Od2dGeometryReferencePtrArray & geoms,
OdRectArray & locations ) const

Returns two-dimensional geometry references previously added to the page. The method fills two passed arrays with geometry references and their locations, then returns these arrays to a calling subroutine.

Parameters
geoms[out] A placeholder for geometry references array.
locations[out] A placeholder for geometry locations array.

◆ getAnnotations()

void OdPdfPublish::OdPage::getAnnotations ( OdAnnotationPtrArray & annotations,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdAnnotation, annotations> that the page contains and their locations. The method fills two passed arrays with annotation objects and their locations, then returns these arrays to a calling subroutine.

Parameters
annotations[out] A placeholder for the page annotations array.
locations[out] A placeholder for the annotation locations array.
See also
<link OdPdfPublish::OdAnnotation, OdAnnotation class>.

◆ getButtons()

void OdPdfPublish::OdPage::getButtons ( OdButtonPtrArray & buttons,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdButton, buttons> that the page contains and their locations. The method fills two passed arrays with button objects and their locations, then returns these arrays to a calling subroutine.

Parameters
buttons[out] A placeholder for the page buttons array.
locations[out] A placeholder for the link locations array.
See also
<link OdPdfPublish::OdButton, OdButton class>.

◆ getCADReferences()

void OdPdfPublish::OdPage::getCADReferences ( OdCADReferencePtrArray & CADreferenses,
OdRectArray & locations ) const

Returns all CAD references previously added to the page. The method fills two passed arrays with CAD references and their locations, then returns these arrays to a calling subroutine.

Parameters
CADreferenses[out] A placeholder for CAD references array.
locations[out] A placeholder for geometry locations array.

◆ getCheckBoxes()

void OdPdfPublish::OdPage::getCheckBoxes ( OdCheckBoxPtrArray & check_boxes,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdCheckBox, checkboxes> that the page contains and their locations. The method fills two passed arrays with checkbox objects and their locations, then returns these arrays to a calling subroutine.

Parameters
check_boxes[out] A placeholder for the page checkboxes array.
locations[out] A placeholder for the checkbox locations array.
See also
<link OdPdfPublish::OdCheckBox, OdCheckBox class>.

◆ getDropDownLists()

void OdPdfPublish::OdPage::getDropDownLists ( OdDropDownListPtrArray & drop_down_lists,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdDropDownList, drop-down lists> that the page contains and their locations. The method fills two passed arrays with drop-down list objects and their locations, then returns these arrays to a calling subroutine.

Parameters
drop_down_lists[out] A placeholder for the page drop-down lists array.
locations[out] A placeholder for the drop-down list locations array.

<link OdPdfPublish::OdDropDownList, OdDropDownList class>.

◆ getFormat()

void OdPdfPublish::OdPage::getFormat ( Page::Format & format) const

Returns the current page format.

Parameters
format[out] A placeholder for the <link OdPdfPublish::Page::Format, format> value. The method stores the format value in this placeholder and returns it to the calling subroutine.
See also
<link OdPdfPublish::Page::Format, Page::Format enumeration>.

◆ getImages()

void OdPdfPublish::OdPage::getImages ( OdImagePtrArray & images,
OdRectArray & locations,
OdDoubleArray & rotations ) const

Returns all <link OdPdfPublish::OdImage, images> that the page contains and their locations. The method fills three passed arrays with image objects, their locations, and their rotation angles, then returns these arrays to a calling subroutine.

Parameters
images[out] A placeholder for the page images array.
locations[out] A placeholder for the image locations array.
rotations[out] A placeholder for the array rotation angles for images.
See also
<link OdPdfPublish::OdImage, OdImage class>.

◆ getJavaScriptActionsByField()

void OdPdfPublish::OdPage::getJavaScriptActionsByField ( const OdString & field_name,
OdStringArray & sources,
OdActionTypeArray & action_types,
OdSourceTypeArray & source_types ) const

Returns all JavaScript scenarios previously added to the page's field. The method fills passed arrays with scenario source text, action types and source types, then returns these arrays to a calling subroutine.

Parameters
field_name[in] A field name.
sources[out] A placeholder for JavaScript scenario source text.
action_types[out] An placeholder for action types.
source_types[out] An placeholder for source types.
See also
<link OdPdfPublish::Action::Type, Action::Type enumeration>.

◆ getLinks()

void OdPdfPublish::OdPage::getLinks ( OdLinkPtrArray & links,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdLink, links> that the page contains and their locations. The method fills two passed arrays with link objects and their locations, then returns these arrays to a calling subroutine.

Parameters
links[out] A placeholder for the page links array.
locations[out] A placeholder for the link locations array.
See also
<link OdPdfPublish::OdLink, OdLink class>.

◆ getListBoxes()

void OdPdfPublish::OdPage::getListBoxes ( OdListBoxPtrArray & list_boxes,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdListBox, list boxes> that the page contains and their locations. The method fills two passed arrays with list box objects and their locations, then returns these arrays to a calling subroutine.

Parameters
list_boxes[out] A placeholder for the page list boxes array.
locations[out] A placeholder for the list box locations array.
See also
<link OdPdfPublish::OdListBox, OdListBox class>.

◆ getOrientation()

void OdPdfPublish::OdPage::getOrientation ( Page::Orientation & orientation) const

Returns the current <link OdPdfPublish::Page::Orientation, page orientation> value.

Parameters
orientation[out] A placeholder for the orientation value. The method stores the page orientation value in this placeholder and returns it to the calling subroutine.
See also
<link OdPdfPublish::Page::Orientation, Page::Orientation enumeration>.

◆ getPaperSize()

void OdPdfPublish::OdPage::getPaperSize ( const Page::PaperUnits units,
double & width,
double & height ) const

Returns the current page size. The method fills two passed double values with width and height values, then returns them to a calling subroutine.

Parameters
units[in] The <link OdPdfPublish::Page::PaperUnits, paper size> unit.
width[out] A placeholder for the paper width value.
height[out] A placeholder for the paper height value.
See also
<link OdPdfPublish::Page::PaperUnits, Page::PaperUnits enumeration>.

◆ getRadioButtons()

void OdPdfPublish::OdPage::getRadioButtons ( OdRadioButtonPtrArray & radio_buttons,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdRadioButton, radio buttons> that the page contains and their locations. The method fills two passed arrays with radio button objects and their locations, then returns these arrays to a calling subroutine.

Parameters
radio_buttons[out] A placeholder for the page radio buttons array.
locations[out] A placeholder for the radio button locations array.
See also
<link OdPdfPublish::OdRadioButton, OdRadioButton class>.

◆ getSignatureFields()

void OdPdfPublish::OdPage::getSignatureFields ( OdSignatureFieldPtrArray & signature_fields,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdSignatureField, signature fields> that the page contains and their locations. The method fills two passed arrays with signature field objects and their locations, then returns these arrays to a calling subroutine.

Parameters
signature_fields[out] A placeholder for the page signature fields array.
locations[out] A placeholder for the signature field locations array.
See also
<link OdPdfPublish::OdSignatureField, OdSignatureField class>.

◆ getSlideTables()

void OdPdfPublish::OdPage::getSlideTables ( OdSlideTablePtrArray & slide_tables,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdSlideTable, slide tables>, which the page contains, and their locations. The method fills two passed arrays with slide table objects and their locations, then returns these arrays to a calling subroutine.

Parameters
slide_tables[out] A placeholder for the page slide tables array.
locations[out] A placeholder for the slide table locations array.
See also
<link OdPdfPublish::OdSlideTable, OdSlideTable class>.

◆ getStickyNotes()

void OdPdfPublish::OdPage::getStickyNotes ( OdStickyNotePtrArray & notes,
OdRectArray & locations ) const

Returns an array of <link OdPdfPublish::OdStickyNote, sticky notes> which the <link OdPdfPublish::OdPage, page> contains. The method fills two passed arrays with smart pointers to <link OdPdfPublish::OdStickyNote, sticky note> objects and their locations (represented with rectangles), then returns these arrays to a calling subroutine.

Parameters
notes[out] A placeholder for the array of smart pointers to <link OdPdfPublish::OdStickyNote, sticky note objects>.
locations[out] A placeholder for the array of <link OdPdfPublish::OdRect, rectangles>, which represent geometry locations of <link OdPdfPublish::OdStickyNote, sticky notes>.

◆ getTables()

void OdPdfPublish::OdPage::getTables ( OdTablePtrArray & tables,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdTable, tables> that the page contains and their locations. The method fills two passed arrays with table objects and their locations, then returns these arrays to a calling subroutine.

Parameters
tables[out] A placeholder for the page tables array.
locations[out] A placeholder for the table locations array.

<link OdPdfPublish::OdTable, OdTable class>.

◆ getTextFields()

void OdPdfPublish::OdPage::getTextFields ( OdTextFieldPtrArray & text_fields,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdTextField, text fields>, which the page contains, and their locations. The method fills two passed arrays with text field objects and their locations, then returns these arrays to a calling subroutine.

Parameters
text_fields[out] A placeholder for the page text fields array.
locations[out] A placeholder for the text field locations array.
See also
<link OdPdfPublish::OdTextField, OdTextField class>.

◆ getTexts()

void OdPdfPublish::OdPage::getTexts ( OdTextPtrArray & texts,
OdRectArray & locations,
OdDoubleArray & rotations ) const

Returns all <link OdPdfPublish::OdText, text labels> that the page contains and their locations. The method fills three passed arrays with text label objects, their locations, and their rotation angles, then returns these arrays to a calling subroutine.

Parameters
texts[out] A placeholder for the page text labels array.
locations[out] A placeholder for the text label locations array.
rotations[out] A placeholder for the array of rotation angles for text labels.
See also
<link OdPdfPublish::OdText, OdText class>.

◆ getWatermarks()

void OdPdfPublish::OdPage::getWatermarks ( OdWatermarkPtrArray & watermarks,
OdRectArray & locations ) const

Returns all <link OdPdfPublish::OdWatermark, watermarks> that the page contains and their locations. The method fills two passed arrays with <link OdPdfPublish::OdWatermark, watermark objects> and their locations, then returns these arrays to a calling subroutine.

Parameters
watermarks[out] A placeholder for the page watermark array.
locations[out] A placeholder for the watermark locations array.
See also
<link OdPdfPublish::OdWatermark, OdWatermark class>.

◆ ODRX_DECLARE_MEMBERS()

OdPdfPublish::OdPage::ODRX_DECLARE_MEMBERS ( OdPage )

◆ ODRX_HEAP_OPERATORS()

OdPdfPublish::OdPage::ODRX_HEAP_OPERATORS ( )

◆ setFormat()

void OdPdfPublish::OdPage::setFormat ( Page::Format format)

Sets the page format.

Parameters
format[in] A new page <link OdPdfPublish::Page::Format, format> value.
See also
<link OdPdfPublish::Page::Format, Page::Format enumeration>.

◆ setOrientation()

void OdPdfPublish::OdPage::setOrientation ( Page::Orientation orientation)

Sets the page orientation.

Parameters
orientation[in] A new page orientation value.
See also
<link OdPdfPublish::Page::Orientation, Page::Orientation enumeration>.

◆ setPaperSize()

void OdPdfPublish::OdPage::setPaperSize ( const Page::PaperUnits units,
const double width,
const double height )

Sets a new page size.

Parameters
units[in] Paper size units.
width[out] A paper width value.
height[out] A paper height value.
See also
<link OdPdfPublish::Page::PaperUnits, Page::PaperUnits enumeration>.

The documentation for this class was generated from the following file: