![]() |
PDFix SDK
6.12.0
|
PdsContent class. More...
Public Member Functions | |
virtual PdsText * | AddNewText (int index, PdfFont *font, const PdfMatrix *matrix)=0 |
Creates and inserts a text object. More... | |
virtual PdsPath * | AddNewPath (int index, const PdfMatrix *matrix)=0 |
Creates and inserts an path object. More... | |
virtual PdsImage * | AddNewImage (int index, PdsStream *image_xobj, const PdfMatrix *matrix)=0 |
virtual bool | RemoveObject (PdsPageObject *object)=0 |
Removes an object from a PdsContent. More... | |
virtual int | GetNumObjects () const =0 |
Gets the number of objects. More... | |
virtual PdsPageObject * | GetObject (int index)=0 |
virtual PdsStream * | ToObject (PdfDoc *doc, const PdsContentParams *content_params)=0 |
This is the main method for converting a PdsContent into PDF contents and resources. More... | |
PdsContent class.
The PdsContent object is contains the modifiable contents of a PdfPage.
A PdsContent is a general object in a PDF page content, which may be of any PdsPageObject object type. The Object layer provides several methods that are not specific to any particular object.
|
pure virtual |
Creates and inserts an image object. The image data are to be specified as a stream.
index | A place where to insert new object into the content. Passing a value of kInsertAfterLast adds the object to the end. Passing a value of kInsertBeforeFirst adds the object to the beginning of the content. |
image_xobj | The image XObject created with CreateXObjectFromImage. |
matrix | A pointer to a PdfMatrix structure |
Creates and inserts an path object.
index | A place where to insert new object into the content. Passing a value of kInsertAfterLast adds the object to the end. Passing a value of kInsertBeforeFirst adds the object to the beginning of the content. |
matrix | A pointer to a PdfMatrix structure |
|
pure virtual |
Creates and inserts a text object.
index | A place where to insert new object into the content. Passing a value of kInsertAfterLast adds the object to the end. Passing a value of kInsertBeforeFirst adds the object to the beginning of the content. |
font | Font of the text. If font is null, default font (Helvetica) is used. |
matrix | Text transformation matrix |
|
pure virtual |
Gets the number of objects.
|
pure virtual |
Gets the requested object from a content. NOTE: This method does not copy the object.
index | Index of object to obtain. |
|
pure virtual |
Removes an object from a PdsContent.
|
pure virtual |
This is the main method for converting a PdsContent into PDF contents and resources.