|
Haru Free PDF Library
|
Functions | |
| HPDF_Destination | HPDF_Page_CreateDestination (HPDF_Page page) |
| Create new destination object for the page. More... | |
| HPDF_STATUS | HPDF_Destination_SetXYZ (HPDF_Destination dst, HPDF_REAL left, HPDF_REAL top, HPDF_REAL zoom) |
Define page appearance with three parameters which are left, top and zoom. More... | |
| HPDF_STATUS | HPDF_Destination_SetFit (HPDF_Destination dst) |
| Set page appearance to display entire page within the window. More... | |
| HPDF_STATUS | HPDF_Destination_SetFitH (HPDF_Destination dst, HPDF_REAL top) |
Define page appearance to fit page width within the window and set top position of the page top parameter. More... | |
| HPDF_STATUS | HPDF_Destination_SetFitV (HPDF_Destination dst, HPDF_REAL left) |
Define page appearance to fit page height within the window and set left position of the page left parameter. More... | |
| HPDF_STATUS | HPDF_Destination_SetFitR (HPDF_Destination dst, HPDF_REAL left, HPDF_REAL bottom, HPDF_REAL right, HPDF_REAL top) |
Define page appearance to fit page within the rectangle specified by left, bottom, right and top. More... | |
| HPDF_STATUS | HPDF_Destination_SetFitB (HPDF_Destination dst) |
| Define page appearance to fit page bounding box within the window. More... | |
| HPDF_STATUS | HPDF_Destination_SetFitBH (HPDF_Destination dst, HPDF_REAL top) |
Define page appearance to fit page bounding box width within the window and set top position of page to value of top parameter. More... | |
| HPDF_STATUS | HPDF_Destination_SetFitBV (HPDF_Destination dst, HPDF_REAL left) |
Define page appearance to fit page bounding box height within the window and set left position of page to value of left parameter. More... | |
| HPDF_Annotation | HPDF_Page_CreateTextAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
| Create new text annotation object for the page. More... | |
| HPDF_Annotation | HPDF_Page_CreateLinkAnnot (HPDF_Page page, HPDF_Rect rect, HPDF_Destination dst) |
| Create new link annotation object for the page. More... | |
| HPDF_Annotation | HPDF_Page_CreateURILinkAnnot (HPDF_Page page, HPDF_Rect rect, const char *uri) |
| Create new web link annotation object for the page. More... | |
| HPDF_STATUS | HPDF_LinkAnnot_SetHighlightMode (HPDF_Annotation annot, HPDF_AnnotHighlightMode mode) |
| Define link annotation mouse click appearance. More... | |
| HPDF_STATUS | HPDF_LinkAnnot_SetBorderStyle (HPDF_Annotation annot, HPDF_REAL width, HPDF_UINT16 dash_on, HPDF_UINT16 dash_off) |
| Define link annotation border style. More... | |
| HPDF_STATUS | HPDF_TextAnnot_SetIcon (HPDF_Annotation annot, HPDF_AnnotIcon icon) |
| Define link annotation icon. More... | |
| HPDF_STATUS | HPDF_TextAnnot_SetOpened (HPDF_Annotation annot, HPDF_BOOL opened) |
| Define whether link annotation is initially opened. More... | |
| HPDF_STATUS | HPDF_Annotation_SetBorderStyle (HPDF_Annotation annot, HPDF_BSSubtype subtype, HPDF_REAL width, HPDF_UINT16 dash_on, HPDF_UINT16 dash_off, HPDF_UINT16 dash_phase) |
| Define text annotation border appearance. More... | |
Routines for processing navigation things
| HPDF_STATUS HPDF_Annotation_SetBorderStyle | ( | HPDF_Annotation | annot, |
| HPDF_BSSubtype | subtype, | ||
| HPDF_REAL | width, | ||
| HPDF_UINT16 | dash_on, | ||
| HPDF_UINT16 | dash_off, | ||
| HPDF_UINT16 | dash_phase | ||
| ) |
Define text annotation border appearance.
| annot | Annotation object handle. |
| subtype | Border style subtype. See _HPDF_BSSubtype. |
| width | Annotation border width |
| dash_on,dash_off,dash_phase | Dash style |
| HPDF_STATUS HPDF_Destination_SetFit | ( | HPDF_Destination | dst | ) |
Set page appearance to display entire page within the window.
| dst | Destination object handle. |
| HPDF_STATUS HPDF_Destination_SetFitB | ( | HPDF_Destination | dst | ) |
Define page appearance to fit page bounding box within the window.
| dst | Destination object handle. |
| HPDF_STATUS HPDF_Destination_SetFitBH | ( | HPDF_Destination | dst, |
| HPDF_REAL | top | ||
| ) |
Define page appearance to fit page bounding box width within the window and set top position of page to value of top parameter.
| dst | Destination object handle. |
| top | Top coordinate of the page. |
| HPDF_STATUS HPDF_Destination_SetFitBV | ( | HPDF_Destination | dst, |
| HPDF_REAL | left | ||
| ) |
Define page appearance to fit page bounding box height within the window and set left position of page to value of left parameter.
| dst | Destination object handle. |
| left | Left coordinate of the page. |
| HPDF_STATUS HPDF_Destination_SetFitH | ( | HPDF_Destination | dst, |
| HPDF_REAL | top | ||
| ) |
Define page appearance to fit page width within the window and set top position of the page top parameter.
| dst | Destination object handle. |
| top | Top coordinate of the page. |
| HPDF_STATUS HPDF_Destination_SetFitR | ( | HPDF_Destination | dst, |
| HPDF_REAL | left, | ||
| HPDF_REAL | bottom, | ||
| HPDF_REAL | right, | ||
| HPDF_REAL | top | ||
| ) |
Define page appearance to fit page within the rectangle specified by left, bottom, right and top.
| dst | Destination object handle. |
| left | Left coordinate of the page. |
| bottom | Bottom coordinate of the page. |
| right | Right coordinate of the page. |
| top | Top coordinate of the page. |
| HPDF_STATUS HPDF_Destination_SetFitV | ( | HPDF_Destination | dst, |
| HPDF_REAL | left | ||
| ) |
Define page appearance to fit page height within the window and set left position of the page left parameter.
| dst | Destination object handle. |
| left | Left coordinate of the page. |
| HPDF_STATUS HPDF_Destination_SetXYZ | ( | HPDF_Destination | dst, |
| HPDF_REAL | left, | ||
| HPDF_REAL | top, | ||
| HPDF_REAL | zoom | ||
| ) |
Define page appearance with three parameters which are left, top and zoom.
| dst | Destination object handle. |
| left | The left coordinate of the page. |
| top | The top coordinate of the page. |
| zoom | The page magnified factor. Value must be between 0.08 (8%) to 32 (3200%). |
| HPDF_STATUS HPDF_LinkAnnot_SetBorderStyle | ( | HPDF_Annotation | annot, |
| HPDF_REAL | width, | ||
| HPDF_UINT16 | dash_on, | ||
| HPDF_UINT16 | dash_off | ||
| ) |
Define link annotation border style.
| annot | Annotation object handle. |
| width | Annotation border width |
| dash_on,dash_off | Dash style parameters |
| HPDF_STATUS HPDF_LinkAnnot_SetHighlightMode | ( | HPDF_Annotation | annot, |
| HPDF_AnnotHighlightMode | mode | ||
| ) |
Define link annotation mouse click appearance.
| annot | Annotation object handle. |
| mode | Link annotation highlight mode. |
| HPDF_Destination HPDF_Page_CreateDestination | ( | HPDF_Page | page | ) |
Create new destination object for the page.
| page | Page object handle. |
NULL.| HPDF_Annotation HPDF_Page_CreateLinkAnnot | ( | HPDF_Page | page, |
| HPDF_Rect | rect, | ||
| HPDF_Destination | dst | ||
| ) |
Create new link annotation object for the page.
| page | Page object handle. |
| rect | Rectangle clickable area. |
| dst | Handle of destination object to jump to. |
NULL.| HPDF_Annotation HPDF_Page_CreateTextAnnot | ( | HPDF_Page | page, |
| HPDF_Rect | rect, | ||
| const char * | text, | ||
| HPDF_Encoder | encoder | ||
| ) |
Create new text annotation object for the page.
| page | Page object handle. |
| rect | Rectangle where annotation is displayed. |
| text | Text to be displayed. |
| encoder | Encoder handle which is used to encode text. If it is NULL, PDFDocEncoding is used. |
NULL.| HPDF_Annotation HPDF_Page_CreateURILinkAnnot | ( | HPDF_Page | page, |
| HPDF_Rect | rect, | ||
| const char * | uri | ||
| ) |
Create new web link annotation object for the page.
| page | Page object handle. |
| rect | Rectangle of clickable area. |
| uri | Destination URI to jump to. |
NULL.| HPDF_STATUS HPDF_TextAnnot_SetIcon | ( | HPDF_Annotation | annot, |
| HPDF_AnnotIcon | icon | ||
| ) |
Define link annotation icon.
| annot | Annotation object handle. |
| icon | Link annotation icon type. |
| HPDF_STATUS HPDF_TextAnnot_SetOpened | ( | HPDF_Annotation | annot, |
| HPDF_BOOL | opened | ||
| ) |
Define whether link annotation is initially opened.
| annot | Annotation object handle. |
| opened | HPDF_TRUE if annotation initially displayed open. |