![]() |
PDFix SDK
6.5.0
|
Public Member Functions | |
virtual void | Release ()=0 |
virtual void | GetCropBox (PdfRect *crop_box)=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)=0 |
virtual PdfRotate | GetRotate ()=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)=0 |
virtual int | GetNumber ()=0 |
Gets the page number for the specified page. More... | |
virtual PdePageMap * | CreatePageMap ()=0 |
virtual PdePageMap * | AcquirePageMap (PdfCancelProc cancel_proc, void *cancel_data)=0 |
virtual PdfPageView * | AcquirePageView (double zoom, PdfRotate rotate)=0 |
virtual int | GetNumAnnots ()=0 |
virtual PdfAnnot * | GetAnnot (int index)=0 |
Gets 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 PdfTextAnnot * | CreateTextAnnot (PdfRect *rect)=0 |
virtual PdfTextMarkupAnnot * | CreateTextMarkupAnnot (PdfAnnotSubtype subtype, PdfRect *rect)=0 |
virtual PdfTextAnnot * | AddNewTextAnnot (int index, PdfRect *rect)=0 |
Create and add new text annotation to the page. More... | |
virtual PdfLinkAnnot * | AddNewLinkAnnot (int index, PdfRect *rect)=0 |
Create and add new link annotation to the page. More... | |
virtual PdfTextMarkupAnnot * | AddNewTextMarkupAnnot (int index, PdfRect *rect, PdfAnnotSubtype subtype)=0 |
Create and add new text markup annotation to the page. More... | |
virtual PdfAnnot * | AddNewAnnot (int index, PdfRect *rect, PdfAnnotSubtype subtype)=0 |
Create and add new annotation to the page at specified position. More... | |
virtual int | GetNumAnnotsAtPoint (PdfPoint *point)=0 |
Gets the number of annotations that reside under the given point. More... | |
virtual PdfAnnot * | GetAnnotAtPoint (PdfPoint *point, int index)=0 |
Gets the requested annotation that resides under the given point. More... | |
virtual int | GetNumAnnotsAtRect (PdfRect *rect)=0 |
virtual PdfAnnot * | GetAnnotAtRect (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 PdfPageContentFlags | GetContentFlags ()=0 |
Checks for various content objects in the page content. More... | |
virtual bool | SetContent ()=0 |
Write modified page content to the content stream. More... | |
virtual PdfDoc * | GetDoc ()=0 |
Gets a reference to a document object. 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.
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
|
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.
zoom | Expected zoom of the page view. |
rotate | Expected rotation of the page view. |
|
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 |
Create and add new annotation to the page at specified position.
index | Where to add the annotation in the page's annotation array. |
rect | Pointer to a rectangle specifying the annotation's bounds, specified in user space coordinates. If it's null, use PdfTextMarkupAnnot::AddQuad to specify the size and location of an annotation on its page. |
|
pure virtual |
Create and add new link annotation to the page.
index | Where to add the annotation in the page's annotation array. |
rect | Pointer to a rectangle specifying the annotation's bounds, specified in user space coordinates. If it's null, use PdfLinkAnnot::AddQuad to specify the size and location of an annotation on its page. |
|
pure virtual |
Create and add new text annotation to the page.
index | Where to add the annotation in the page's annotation array. Passing a value of -1 adds the annotation to the end of the array (this is generally what you should do unless you have a need to place the annotation at a special location in the array). Passing a value of 0 adds the annotation to the beginning of the array. |
rect | Pointer to a rectangle specifying the annotation's bounds, specified in user space coordinates. |
|
pure virtual |
Create and add new text markup annotation to the page.
subtype | Define a subtype of the text markup annotation. Must be one of kAnnotHighlight, kAnnotUnderline, kAnnotSquiggly, kAnnotStrikeOut. |
index | Where to add the annotation in the page's annotation array. |
rect | Pointer to a rectangle specifying the annotation's bounds, specified in user space coordinates. If it's null, use PdfTextMarkupAnnot::AddQuad to specify the size and location of an annotation on its page. |
|
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 |
Creates a PdePageMap from the PdfPage's elements.and increments the reference count. Call PdePageMap::AcquireElements to parse page objects. 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.
|
pure virtual |
Creates a new text 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 |
Creates a new textmarkup 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 all Form XObjects on the page into main page content.
|
pure virtual |
Gets 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 | (Filled by the method) Index of annotation to obtain. |
Gets the requested annotation that resides under the given rectangle.
rect | The rectangle to test. |
index | (Filled by the method) 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 |
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 |
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.
page | The page to release. |
|
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 modified page content 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. |