![]() |
PDFix SDK
6.19.0
|
#include <pdfix.h>
Public Member Functions | |
virtual int | Release ()=0 |
virtual int | GetRefNum ()=0 |
Returns the current number of references to the page object. More... | |
virtual void | GetCropBox (PdfRect *crop_box) const =0 |
Gets the crop box for a page. The crop box is the region of the page to display and print. More... | |
virtual void | GetMediaBox (PdfRect *media_box) const =0 |
virtual PdfRotate | GetRotate () const =0 |
Gets the rotation value for a page. More... | |
virtual bool | SetRotate (PdfRotate rotate)=0 |
Sets the rotation value for a page. More... | |
virtual PdfRotate | GetLogicalRotate ()=0 |
Gets the rotation value of elements(texts) on a page. More... | |
virtual void | GetDefaultMatrix (PdfMatrix *matrix) const =0 |
virtual int | GetNumber () const =0 |
Gets the page number for the specified page. More... | |
virtual PdePageMap * | AcquirePageMap ()=0 |
virtual PdfPageView * | AcquirePageView (float zoom, PdfRotate rotate)=0 |
virtual int | GetNumAnnots () const =0 |
virtual PdfAnnot * | GetAnnot (int index)=0 |
Acquires the requested annotation on the page. More... | |
virtual bool | RemoveAnnot (int index, PdfRemoveAnnotFlags flags)=0 |
virtual bool | AddAnnot (int index, PdfAnnot *annot)=0 |
Add an annotation to the page at specified position. More... | |
virtual PdfAnnot * | CreateAnnot (PdfAnnotSubtype subtype, PdfRect *rect)=0 |
virtual int | GetNumAnnotsAtPoint (const PdfPoint *point) const =0 |
Gets the number of annotations that reside under the given point. More... | |
virtual PdfAnnot * | GetAnnotAtPoint (const PdfPoint *point, int index)=0 |
Gets the requested annotation that resides under the given point. More... | |
virtual int | GetNumAnnotsAtRect (const PdfRect *rect) const =0 |
virtual PdfAnnot * | GetAnnotAtRect (const PdfRect *rect, int index)=0 |
Gets the requested annotation that resides under the given rectangle. More... | |
virtual bool | DrawContent (PdfPageRenderParams *params, PdfCancelProc cancel_proc, void *cancel_data)=0 |
virtual PdsContent * | GetContent ()=0 |
Gets a PdsContent from the PdfPage object's contents and resources. More... | |
virtual PdsDictionary * | GetResources (const wchar_t *res_type, bool create)=0 |
virtual PdsDictionary * | GetObject ()=0 |
Gets the dictionary object associated with the page. More... | |
virtual bool | FlattenFormXObjects ()=0 |
Flatten all Form XObjects on the page into main page content. More... | |
virtual bool | CloneFormXObjects ()=0 |
Clone orm XObjects on the page so that each XObject is referenced only once. More... | |
virtual bool | FlattenAnnot (PdfAnnot *annot)=0 |
virtual PdfPageContentFlags | GetContentFlags ()=0 |
Checks for various content objects in the page content. More... | |
virtual bool | SetContent ()=0 |
Write all pending page content modifications to the content stream. More... | |
virtual PdfDoc * | GetDoc ()=0 |
Gets a reference to a document object. More... | |
virtual PdeWordList * | AcquireWordList (PdfWordFinderAlgorithm alg)=0 |
virtual PdfPageFlags | GetFlags ()=0 |
Get the page flags. More... | |
virtual bool | ClearFlags ()=0 |
Clears the page flags. More... | |
virtual PdsForm * | CreateFormFromObject (PdsStream *stream)=0 |
Create the PdsForm object from an existing PdsStream object (XObject) on a page. More... | |
PdfPage class.
A PdfPage is a page in a document. Among other associated objects, a page contains PdePageMap, that represents the page content.
|
pure virtual |
Generates a PdePageMap from the PdfPage's elements. The PdePageMap is cached, so that subsequent calls on the same PDPage return the same PdePageMap and increments the reference count. The PdePageMap remains in the cache as long as page exists or PdePageMap::Release was not called. Call PdePageMap::Release to release pagemap resources if necessary. NOTE: Acquisition of the page map increments page's reference count.
|
pure virtual |
Generates a PdfPageView from the PdfPage's elements. The PdfPageView is cached, so that subsequent calls on the same PDPage and same input parameters return the same PdfPageView and increments the reference count. The PdePageMap remains in the cache as long as page exists or PdfPageView::Release was not called. Call PdfPageView::Release to release pagemap resources if necessary. NOTE: Acquisition of the page view increments page's reference count.
zoom | Expected zoom of the page view. |
rotate | Expected rotation of the page view. |
|
pure virtual |
Acquire all words on page. NOTE: Acquisition of the word list increments document's reference count.
alg | pass kWordFinderAlgLatest to use the lastest algorithm |
|
pure virtual |
Add an annotation to the page at specified position.
index | Where to add the annotation in the page's annotation array. |
annot | The annotation to add. |
|
pure virtual |
Clears the page flags.
|
pure virtual |
Clone orm XObjects on the page so that each XObject is referenced only once.
|
pure virtual |
Creates a new annotation, associated with the specified page, but not added to the page. Use AddAnnot() to add the annotation to the page.
subtype | Define a subtype of the annotation. |
rect | Pointer to a rectangle specifying the annotation's bounds, specified in user space coordinates. |
|
pure virtual |
Draws the contents of a page into the page view PsImage. This method just draws a bitmap. Provides control over the rendering with respect to PdfPageRenderParams. The PsImage remains in the cache as the page view class exists or next PdfPageViewDrawPage method is called.
params | Rendering parameters. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
|
pure virtual |
Flatten annotation appearance to the page The user must call PdfPage::SetContent to write changes to the page content
annot | The annotation to flatten. |
|
pure virtual |
Flatten all Form XObjects on the page into main page content.
|
pure virtual |
Acquires the requested annotation on the page.
index | The index of annotation to obtain. |
Gets the requested annotation that resides under the given point.
point | The point to test. |
index | Index of annotation to obtain. |
Gets the requested annotation that resides under the given rectangle.
rect | The rectangle to test. |
index | Index of annotation to obtain. |
|
pure virtual |
Gets a PdsContent from the PdfPage object's contents and resources.
|
pure virtual |
Checks for various content objects in the page content.
|
pure virtual |
Gets the crop box for a page. The crop box is the region of the page to display and print.
crop_box | (Filled by the method) Pointer to a rectangle specifying the page's crop box, specified in user space coordinates. |
|
pure virtual |
Gets the matrix that transforms user space coordinates to rotated and cropped coordinates. The origin of this space is the bottom - left of the rotated, cropped page. Y is increasing.
matrix | (Filled by the method) Pointer to the default transformation matrix. |
|
pure virtual |
Gets a reference to a document object.
|
pure virtual |
Get the page flags.
|
pure virtual |
Gets the rotation value of elements(texts) on a page.
|
pure virtual |
Gets the media box for a page. The media box is the 'natural size' of the page, for example, the dimensions of an A4 sheet of paper.
media_box | (Filled by the method) Pointer to a rectangle specifying the page's media box, specified in user space coordinates. |
|
pure virtual |
Gets the number of annotations on a page. Annotations associated with pop-up windows (such as strikeouts) are counted as two annotations. Widget annotations(form fields) are included in the count.
|
pure virtual |
Gets the number of annotations that reside under the given point.
point | The point to test. |
|
pure virtual |
Gets the number of annotations that reside under the given rectangle. It returns each annotation that have intersection the given rectangle.
rect | The rectangle to test. |
|
pure virtual |
Gets the page number for the specified page.
|
pure virtual |
Gets the dictionary object associated with the page.
|
pure virtual |
Returns the current number of references to the page object.
|
pure virtual |
Gets the page resources dictionary. It can be either directly in the page object or it may be in the page tree stared with multiple pages.
res_type | Name of the resource type (ExtGState, ColorSpace, Pattern, Shading, XObject, Font, and Properties). |
create | The page resources objects is created if does not exists. |
|
pure virtual |
Gets the rotation value for a page.
|
pure virtual |
Releases page's resources. Decrements a page's reference count. The document will not be released until the reference count is zero, or the application terminates.
|
pure virtual |
Removes an annotation from the specified page. Annotations are stored in arrays, which are automatically compressed when an annotation is removed. For this reason, if you use a loop in which you remove annotations, structure the code so the loop processes from the highest to the lowest index.
index | The index of annotation to remove. |
flags | PdfRemoveAnnotFlags to specify what other connected annotations will be removed. |
|
pure virtual |
Write all pending page content modifications to the content stream.
|
pure virtual |
Sets the rotation value for a page.
rotate | Rotation value to be set for a given page. It must be one of the PdfRotate values. |