|
const char * | HPDF_GetVersion (void) |
|
HPDF_Doc | HPDF_NewEx (HPDF_Error_Handler user_error_fn, HPDF_Alloc_Func user_alloc_fn, HPDF_Free_Func user_free_fn, HPDF_UINT mem_pool_buf_size, void *user_data) |
| Create an instance of a document object and initialize it. More...
|
|
HPDF_Doc | HPDF_New (HPDF_Error_Handler user_error_fn, void *user_data) |
| Create an instance of a document object and initialize it. More...
|
|
HPDF_STATUS | HPDF_SetErrorHandler (HPDF_Doc pdf, HPDF_Error_Handler user_error_fn) |
| Set a user-defined error handler for document. If subsequent function calls fail, the error handler is called. More...
|
|
void | HPDF_Free (HPDF_Doc pdf) |
| Revoke a document object and all resources. More...
|
|
HPDF_MMgr | HPDF_GetDocMMgr (HPDF_Doc doc) |
|
HPDF_STATUS | HPDF_NewDoc (HPDF_Doc pdf) |
| Create a new document. If doc object already has a document, the current document is revoked. More...
|
|
void | HPDF_FreeDoc (HPDF_Doc pdf) |
| Revoke the current document. More...
|
|
HPDF_BOOL | HPDF_HasDoc (HPDF_Doc pdf) |
| Check if document handle is valid. More...
|
|
void | HPDF_FreeDocAll (HPDF_Doc pdf) |
| Revoke the current document. More...
|
|
HPDF_STATUS | HPDF_SaveToStream (HPDF_Doc pdf) |
| Saves the current document to a temporary stream of a document object. More...
|
|
HPDF_STATUS | HPDF_GetContents (HPDF_Doc pdf, HPDF_BYTE *buf, HPDF_UINT32 *size) |
|
HPDF_UINT32 | HPDF_GetStreamSize (HPDF_Doc pdf) |
| Gets the size of the temporary stream of the document. More...
|
|
HPDF_STATUS | HPDF_ReadFromStream (HPDF_Doc pdf, HPDF_BYTE *buf, HPDF_UINT32 *size) |
| Copies the data from the temporary stream of the document into buffer buf . More...
|
|
HPDF_STATUS | HPDF_ResetStream (HPDF_Doc pdf) |
| Rewind temporary stream of the document. More...
|
|
HPDF_STATUS | HPDF_SaveToFile (HPDF_Doc pdf, const char *filename) |
| Saves the current document to file. More...
|
|
HPDF_STATUS | HPDF_GetError (HPDF_Doc pdf) |
| Return the last error code of specified document object. More...
|
|
HPDF_STATUS | HPDF_GetErrorDetail (HPDF_Doc pdf) |
|
void | HPDF_ResetError (HPDF_Doc pdf) |
| Cleanup document error. More...
|
|
HPDF_STATUS | HPDF_CheckError (HPDF_Error error) |
| Check error code. More...
|
|
HPDF_STATUS | HPDF_SetPagesConfiguration (HPDF_Doc pdf, HPDF_UINT page_per_pages) |
| Specify number of pages Pages object can own. More...
|
|
HPDF_Page | HPDF_GetPageByIndex (HPDF_Doc pdf, HPDF_UINT index) |
|
HPDF_MMgr | HPDF_GetPageMMgr (HPDF_Page page) |
|
HPDF_PageLayout | HPDF_GetPageLayout (HPDF_Doc pdf) |
| Return page display layout. More...
|
|
HPDF_STATUS | HPDF_SetPageLayout (HPDF_Doc pdf, HPDF_PageLayout layout) |
| Set page display layout. If attribute is not set, the setting of the viewer application is used. More...
|
|
HPDF_PageMode | HPDF_GetPageMode (HPDF_Doc pdf) |
| Return page display mode. More...
|
|
HPDF_STATUS | HPDF_SetPageMode (HPDF_Doc pdf, HPDF_PageMode mode) |
| Set document display mode. More...
|
|
HPDF_UINT | HPDF_GetViewerPreference (HPDF_Doc pdf) |
|
HPDF_STATUS | HPDF_SetViewerPreference (HPDF_Doc pdf, HPDF_UINT value) |
|
HPDF_STATUS | HPDF_SetOpenAction (HPDF_Doc pdf, HPDF_Destination open_action) |
| Set the first page to appear when a document is opened. More...
|
|
HPDF_Page | HPDF_GetCurrentPage (HPDF_Doc pdf) |
| Get handle of current page object. More...
|
|
HPDF_Page | HPDF_AddPage (HPDF_Doc pdf) |
| Create new page and add it after the last page of document. More...
|
|
HPDF_Page | HPDF_InsertPage (HPDF_Doc pdf, HPDF_Page page) |
| Create new page and insert it just before specified page. More...
|
|
HPDF_STATUS | HPDF_AddPageLabel (HPDF_Doc pdf, HPDF_UINT page_num, HPDF_PageNumStyle style, HPDF_UINT first_page, const char *prefix) |
| Add page labeling range for document. More...
|
|
HPDF_STATUS | HPDF_Page_SetWidth (HPDF_Page page, HPDF_REAL value) |
| Change page width. More...
|
|
HPDF_STATUS | HPDF_Page_SetHeight (HPDF_Page page, HPDF_REAL value) |
| Change page height. More...
|
|
HPDF_STATUS | HPDF_Page_SetBoundary (HPDF_Page page, HPDF_PageBoundary boundary, HPDF_REAL left, HPDF_REAL bottom, HPDF_REAL right, HPDF_REAL top) |
|
HPDF_STATUS | HPDF_Page_SetSize (HPDF_Page page, HPDF_PageSizes size, HPDF_PageDirection direction) |
| Change page size and direction to a predefined ones. More...
|
|
HPDF_STATUS | HPDF_Page_SetRotate (HPDF_Page page, HPDF_UINT16 angle) |
| Set rotation angle of the page. More...
|
|
HPDF_STATUS | HPDF_Page_SetZoom (HPDF_Page page, HPDF_REAL zoom) |
|
HPDF_Font | HPDF_GetFont (HPDF_Doc pdf, const char *font_name, const char *encoding_name) |
| Get requested font object handle. More...
|
|
const char * | HPDF_LoadType1FontFromFile (HPDF_Doc pdf, const char *afm_filename, const char *data_filename) |
| Load Type1 font from external file and register it in the document object. More...
|
|
HPDF_FontDef | HPDF_GetTTFontDefFromFile (HPDF_Doc pdf, const char *filename, HPDF_BOOL embedding) |
|
const char * | HPDF_LoadTTFontFromFile (HPDF_Doc pdf, const char *filename, HPDF_BOOL embedding) |
| Load TrueType font from external .ttf file and register it in the document object. More...
|
|
const char * | HPDF_LoadTTFontFromFile2 (HPDF_Doc pdf, const char *filename, HPDF_UINT index, HPDF_BOOL embedding) |
| Load TrueType font from TrueType collection file *.ttc and register it in the document object. More...
|
|
HPDF_STATUS | HPDF_UseJPFonts (HPDF_Doc pdf) |
| Enable Japanese fonts. Application can use following Japanese fonts after HPDF_UseJPFonts() call: More...
|
|
HPDF_STATUS | HPDF_UseKRFonts (HPDF_Doc pdf) |
| Enable Korean fonts. Application can use following Korean fonts after HPDF_UseKRFonts() call: More...
|
|
HPDF_STATUS | HPDF_UseCNSFonts (HPDF_Doc pdf) |
| Enable simplified Chinese fonts. Application can use following simplified Chinese fonts after HPDF_UseCNSFonts() call: More...
|
|
HPDF_STATUS | HPDF_UseCNTFonts (HPDF_Doc pdf) |
| Enable traditional Chinese fonts. Application can use following traditional Chinese fonts after HPDF_UseCNTFonts() call: More...
|
|
HPDF_Outline | HPDF_CreateOutline (HPDF_Doc pdf, HPDF_Outline parent, const char *title, HPDF_Encoder encoder) |
| Create new outline object. More...
|
|
HPDF_STATUS | HPDF_Outline_SetOpened (HPDF_Outline outline, HPDF_BOOL opened) |
| Set whether this outline node is opened when the outline is displayed for the first time. More...
|
|
HPDF_STATUS | HPDF_Outline_SetDestination (HPDF_Outline outline, HPDF_Destination dst) |
| Set target destination object to jump to when outline object is clicked. More...
|
|
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_Encoder | HPDF_GetEncoder (HPDF_Doc pdf, const char *encoding_name) |
| Get encoder object handle by specified encoding name. More...
|
|
HPDF_Encoder | HPDF_GetCurrentEncoder (HPDF_Doc pdf) |
| Get current encoder handle of document object. More...
|
|
HPDF_STATUS | HPDF_SetCurrentEncoder (HPDF_Doc pdf, const char *encoding_name) |
| Set current encoder for document. More...
|
|
HPDF_EncoderType | HPDF_Encoder_GetType (HPDF_Encoder encoder) |
| Get encoder object type. More...
|
|
HPDF_ByteType | HPDF_Encoder_GetByteType (HPDF_Encoder encoder, const char *text, HPDF_UINT index) |
| Get byte type of a text char at index position. More...
|
|
HPDF_UNICODE | HPDF_Encoder_GetUnicode (HPDF_Encoder encoder, HPDF_UINT16 code) |
| Convert a specified character code to Unicode value. More...
|
|
HPDF_WritingMode | HPDF_Encoder_GetWritingMode (HPDF_Encoder encoder) |
| Get writing mode for the encoding object. More...
|
|
HPDF_STATUS | HPDF_UseJPEncodings (HPDF_Doc pdf) |
| Enable Japanese encodings. More...
|
|
HPDF_STATUS | HPDF_UseKREncodings (HPDF_Doc pdf) |
| Enable Korean encodings. More...
|
|
HPDF_STATUS | HPDF_UseCNSEncodings (HPDF_Doc pdf) |
| Enable simplified Chinese encodings. More...
|
|
HPDF_STATUS | HPDF_UseCNTEncodings (HPDF_Doc pdf) |
| Enable traditional Chinese encodings. More...
|
|
HPDF_STATUS | HPDF_UseUTFEncodings (HPDF_Doc pdf) |
| Enable UTF-8 encoding. More...
|
|
HPDF_XObject | HPDF_Page_CreateXObjectFromImage (HPDF_Doc pdf, HPDF_Page page, HPDF_Rect rect, HPDF_Image image, HPDF_BOOL zoom) |
|
HPDF_XObject | HPDF_Page_CreateXObjectAsWhiteRect (HPDF_Doc pdf, HPDF_Page page, HPDF_Rect rect) |
|
HPDF_Annotation | HPDF_Page_Create3DAnnot (HPDF_Page page, HPDF_Rect rect, HPDF_BOOL tb, HPDF_BOOL np, HPDF_U3D u3d, HPDF_Image ap) |
|
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_CreateFreeTextAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateLineAnnot (HPDF_Page page, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateWidgetAnnot_WhiteOnlyWhilePrint (HPDF_Doc pdf, HPDF_Page page, HPDF_Rect rect) |
|
HPDF_Annotation | HPDF_Page_CreateWidgetAnnot (HPDF_Page page, HPDF_Rect rect) |
|
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_Annotation | HPDF_Page_CreateTextMarkupAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder, HPDF_AnnotType subType) |
|
HPDF_Annotation | HPDF_Page_CreateHighlightAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateUnderlineAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateSquigglyAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateStrikeOutAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreatePopupAnnot (HPDF_Page page, HPDF_Rect rect, HPDF_Annotation parent) |
|
HPDF_Annotation | HPDF_Page_CreateStampAnnot (HPDF_Page page, HPDF_Rect rect, HPDF_StampAnnotName name, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateProjectionAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateSquareAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_Annotation | HPDF_Page_CreateCircleAnnot (HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder) |
|
HPDF_STATUS | HPDF_LinkAnnot_SetHighlightMode (HPDF_Annotation annot, HPDF_AnnotHighlightMode mode) |
| Define link annotation mouse click appearance. More...
|
|
HPDF_STATUS | HPDF_LinkAnnot_SetJavaScript (HPDF_Annotation annot, HPDF_JavaScript javascript) |
|
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_Annot_SetRGBColor (HPDF_Annotation annot, HPDF_RGBColor color) |
|
HPDF_STATUS | HPDF_Annot_SetCMYKColor (HPDF_Annotation annot, HPDF_CMYKColor color) |
|
HPDF_STATUS | HPDF_Annot_SetGrayColor (HPDF_Annotation annot, HPDF_REAL color) |
|
HPDF_STATUS | HPDF_Annot_SetNoColor (HPDF_Annotation annot) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetTitle (HPDF_Annotation annot, const char *name) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetSubject (HPDF_Annotation annot, const char *name) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetCreationDate (HPDF_Annotation annot, HPDF_Date value) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetTransparency (HPDF_Annotation annot, HPDF_REAL value) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetIntent (HPDF_Annotation annot, HPDF_AnnotIntent intent) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetPopup (HPDF_Annotation annot, HPDF_Annotation popup) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetRectDiff (HPDF_Annotation annot, HPDF_Rect rect) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetCloudEffect (HPDF_Annotation annot, HPDF_INT cloudIntensity) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetInteriorRGBColor (HPDF_Annotation annot, HPDF_RGBColor color) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetInteriorCMYKColor (HPDF_Annotation annot, HPDF_CMYKColor color) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetInteriorGrayColor (HPDF_Annotation annot, HPDF_REAL color) |
|
HPDF_STATUS | HPDF_MarkupAnnot_SetInteriorTransparent (HPDF_Annotation annot) |
|
HPDF_STATUS | HPDF_TextMarkupAnnot_SetQuadPoints (HPDF_Annotation annot, HPDF_Point lb, HPDF_Point rb, HPDF_Point rt, HPDF_Point lt) |
|
HPDF_STATUS | HPDF_Annot_Set3DView (HPDF_MMgr mmgr, HPDF_Annotation annot, HPDF_Annotation annot3d, HPDF_Dict view) |
|
HPDF_STATUS | HPDF_PopupAnnot_SetOpened (HPDF_Annotation annot, HPDF_BOOL opened) |
|
HPDF_STATUS | HPDF_FreeTextAnnot_SetLineEndingStyle (HPDF_Annotation annot, HPDF_LineAnnotEndingStyle startStyle, HPDF_LineAnnotEndingStyle endStyle) |
|
HPDF_STATUS | HPDF_FreeTextAnnot_Set3PointCalloutLine (HPDF_Annotation annot, HPDF_Point startPoint, HPDF_Point kneePoint, HPDF_Point endPoint) |
|
HPDF_STATUS | HPDF_FreeTextAnnot_Set2PointCalloutLine (HPDF_Annotation annot, HPDF_Point startPoint, HPDF_Point endPoint) |
|
HPDF_STATUS | HPDF_FreeTextAnnot_SetDefaultStyle (HPDF_Annotation annot, const char *style) |
|
HPDF_STATUS | HPDF_LineAnnot_SetPosition (HPDF_Annotation annot, HPDF_Point startPoint, HPDF_LineAnnotEndingStyle startStyle, HPDF_Point endPoint, HPDF_LineAnnotEndingStyle endStyle) |
|
HPDF_STATUS | HPDF_LineAnnot_SetLeader (HPDF_Annotation annot, HPDF_INT leaderLen, HPDF_INT leaderExtLen, HPDF_INT leaderOffsetLen) |
|
HPDF_STATUS | HPDF_LineAnnot_SetCaption (HPDF_Annotation annot, HPDF_BOOL showCaption, HPDF_LineAnnotCapPosition position, HPDF_INT horzOffset, HPDF_INT vertOffset) |
|
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...
|
|
HPDF_STATUS | HPDF_ProjectionAnnot_SetExData (HPDF_Annotation annot, HPDF_ExData exdata) |
|
HPDF_3DMeasure | HPDF_Page_Create3DC3DMeasure (HPDF_Page page, HPDF_Point3D firstanchorpoint, HPDF_Point3D textanchorpoint) |
|
HPDF_3DMeasure | HPDF_Page_CreatePD33DMeasure (HPDF_Page page, HPDF_Point3D annotationPlaneNormal, HPDF_Point3D firstAnchorPoint, HPDF_Point3D secondAnchorPoint, HPDF_Point3D leaderLinesDirection, HPDF_Point3D measurementValuePoint, HPDF_Point3D textYDirection, HPDF_REAL value, const char *unitsString) |
|
HPDF_STATUS | HPDF_3DMeasure_SetName (HPDF_3DMeasure measure, const char *name) |
|
HPDF_STATUS | HPDF_3DMeasure_SetColor (HPDF_3DMeasure measure, HPDF_RGBColor color) |
|
HPDF_STATUS | HPDF_3DMeasure_SetTextSize (HPDF_3DMeasure measure, HPDF_REAL textsize) |
|
HPDF_STATUS | HPDF_3DC3DMeasure_SetTextBoxSize (HPDF_3DMeasure measure, HPDF_INT32 x, HPDF_INT32 y) |
|
HPDF_STATUS | HPDF_3DC3DMeasure_SetText (HPDF_3DMeasure measure, const char *text, HPDF_Encoder encoder) |
|
HPDF_STATUS | HPDF_3DC3DMeasure_SetProjectionAnotation (HPDF_3DMeasure measure, HPDF_Annotation projectionanotation) |
|
HPDF_ExData | HPDF_Page_Create3DAnnotExData (HPDF_Page page) |
|
HPDF_STATUS | HPDF_3DAnnotExData_Set3DMeasurement (HPDF_ExData exdata, HPDF_3DMeasure measure) |
|
HPDF_Dict | HPDF_Page_Create3DView (HPDF_Page page, HPDF_U3D u3d, HPDF_Annotation annot3d, const char *name) |
|
HPDF_STATUS | HPDF_3DView_Add3DC3DMeasure (HPDF_Dict view, HPDF_3DMeasure measure) |
|
HPDF_Image | HPDF_LoadPngImageFromMem (HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT size) |
| Load PNG image from buffer. More...
|
|
HPDF_Image | HPDF_LoadPngImageFromFile (HPDF_Doc pdf, const char *filename) |
| Load external PNG image file. More...
|
|
HPDF_Image | HPDF_LoadPngImageFromFile2 (HPDF_Doc pdf, const char *filename) |
| Load external PNG image file. More...
|
|
HPDF_Image | HPDF_LoadJpegImageFromFile (HPDF_Doc pdf, const char *filename) |
| Load external JPEG image file. More...
|
|
HPDF_Image | HPDF_LoadJpegImageFromMem (HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT size) |
| Load JPEG image from buffer. More...
|
|
HPDF_Image | HPDF_LoadU3DFromFile (HPDF_Doc pdf, const char *filename) |
|
HPDF_Image | HPDF_LoadU3DFromMem (HPDF_Doc pdf, const HPDF_BYTE *buffer, HPDF_UINT size) |
|
HPDF_Image | HPDF_Image_LoadRaw1BitImageFromMem (HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT width, HPDF_UINT height, HPDF_UINT line_width, HPDF_BOOL black_is1, HPDF_BOOL top_is_first) |
|
HPDF_Image | HPDF_LoadRawImageFromFile (HPDF_Doc pdf, const char *filename, HPDF_UINT width, HPDF_UINT height, HPDF_ColorSpace color_space) |
| Load raw format image. More...
|
|
HPDF_Image | HPDF_LoadRawImageFromMem (HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT width, HPDF_UINT height, HPDF_ColorSpace color_space, HPDF_UINT bits_per_component) |
| Load raw format image. More...
|
|
HPDF_STATUS | HPDF_Image_AddSMask (HPDF_Image image, HPDF_Image smask) |
|
HPDF_Point | HPDF_Image_GetSize (HPDF_Image image) |
| Get size of the image of an image object. More...
|
|
HPDF_STATUS | HPDF_Image_GetSize2 (HPDF_Image image, HPDF_Point *size) |
| Get size of the image of an image object to parameter. More...
|
|
HPDF_UINT | HPDF_Image_GetWidth (HPDF_Image image) |
| Get image width of an image object. More...
|
|
HPDF_UINT | HPDF_Image_GetHeight (HPDF_Image image) |
| Get image height of an image object. More...
|
|
HPDF_UINT | HPDF_Image_GetBitsPerComponent (HPDF_Image image) |
| Get bit count used to describe each color component. More...
|
|
const char * | HPDF_Image_GetColorSpace (HPDF_Image image) |
| Get image color space name. More...
|
|
HPDF_STATUS | HPDF_Image_SetColorMask (HPDF_Image image, HPDF_UINT rmin, HPDF_UINT rmax, HPDF_UINT gmin, HPDF_UINT gmax, HPDF_UINT bmin, HPDF_UINT bmax) |
| Sets transparent color of the image by the RGB range values. More...
|
|
HPDF_STATUS | HPDF_Image_SetMaskImage (HPDF_Image image, HPDF_Image mask_image) |
| Set image mask. More...
|
|
HPDF_STATUS | HPDF_SetInfoAttr (HPDF_Doc pdf, HPDF_InfoType type, const char *value) |
| Set the text of info dictionary attribute using current encoding of the document. If encoding is not set, PDFDocEncoding is used. More...
|
|
const char * | HPDF_GetInfoAttr (HPDF_Doc pdf, HPDF_InfoType type) |
| Get attribute value from info dictionary. More...
|
|
HPDF_STATUS | HPDF_SetInfoDateAttr (HPDF_Doc pdf, HPDF_InfoType type, HPDF_Date value) |
| Set datetime attribute at info dictionary. More...
|
|
HPDF_STATUS | HPDF_SetPassword (HPDF_Doc pdf, const char *owner_password, const char *user_password) |
| Sets a password for the document. If the password is set, document contents is encrypted. More...
|
|
HPDF_STATUS | HPDF_SetPermission (HPDF_Doc pdf, HPDF_UINT permission) |
| Set the permission flags for the document. More...
|
|
HPDF_STATUS | HPDF_SetEncryptionMode (HPDF_Doc pdf, HPDF_EncryptMode mode, HPDF_UINT key_len) |
| Set the encryption mode. As the side effect, ups the version of PDF to 1.4 when the mode is set to HPDF_ENCRYPT_R3. More...
|
|
HPDF_STATUS | HPDF_SetCompressionMode (HPDF_Doc pdf, HPDF_UINT mode) |
| Set compression mode. More...
|
|
const char * | HPDF_Font_GetFontName (HPDF_Font font) |
| Get name of the font. More...
|
|
const char * | HPDF_Font_GetEncodingName (HPDF_Font font) |
| Get encoding name of the font. More...
|
|
HPDF_INT | HPDF_Font_GetUnicodeWidth (HPDF_Font font, HPDF_UNICODE code) |
| Get width of a Unicode character in a specific font. More...
|
|
HPDF_Box | HPDF_Font_GetBBox (HPDF_Font font) |
| Get bounding box of the font. More...
|
|
HPDF_INT | HPDF_Font_GetAscent (HPDF_Font font) |
| Get vertical ascent of the font. More...
|
|
HPDF_INT | HPDF_Font_GetDescent (HPDF_Font font) |
| Get vertical descent of the font. More...
|
|
HPDF_UINT | HPDF_Font_GetXHeight (HPDF_Font font) |
| Get the distance from the baseline and the mean line of lowercase letters in a font. More...
|
|
HPDF_UINT | HPDF_Font_GetCapHeight (HPDF_Font font) |
| Get the distance from the baseline and the mean line of uppercase letters in a font. More...
|
|
HPDF_TextWidth | HPDF_Font_TextWidth (HPDF_Font font, const HPDF_BYTE *text, HPDF_UINT len) |
| Get total width of the text, number of characters, and number of words. More...
|
|
HPDF_UINT | HPDF_Font_MeasureText (HPDF_Font font, const HPDF_BYTE *text, HPDF_UINT len, HPDF_REAL width, HPDF_REAL font_size, HPDF_REAL char_space, HPDF_REAL word_space, HPDF_BOOL wordwrap, HPDF_REAL *real_width) |
| Calculate byte length which can be included within the specified width. More...
|
|
HPDF_EmbeddedFile | HPDF_AttachFile (HPDF_Doc pdf, const char *file) |
|
HPDF_ExtGState | HPDF_CreateExtGState (HPDF_Doc pdf) |
|
HPDF_STATUS | HPDF_ExtGState_SetAlphaStroke (HPDF_ExtGState ext_gstate, HPDF_REAL value) |
|
HPDF_STATUS | HPDF_ExtGState_SetAlphaFill (HPDF_ExtGState ext_gstate, HPDF_REAL value) |
|
HPDF_STATUS | HPDF_ExtGState_SetBlendMode (HPDF_ExtGState ext_gstate, HPDF_BlendMode mode) |
|
HPDF_REAL | HPDF_Page_TextWidth (HPDF_Page page, const char *text) |
| Get text width in current font size, character spacing and word spacing. More...
|
|
HPDF_UINT | HPDF_Page_MeasureText (HPDF_Page page, const char *text, HPDF_REAL width, HPDF_BOOL wordwrap, HPDF_REAL *real_width) |
| Calculate byte length which can be included within the specified width. More...
|
|
HPDF_REAL | HPDF_Page_GetWidth (HPDF_Page page) |
| Get page width. More...
|
|
HPDF_REAL | HPDF_Page_GetHeight (HPDF_Page page) |
| Get page height. More...
|
|
HPDF_UINT16 | HPDF_Page_GetGMode (HPDF_Page page) |
| Get current graphics mode. More...
|
|
HPDF_Point | HPDF_Page_GetCurrentPos (HPDF_Page page) |
| Get current position for path painting. More...
|
|
HPDF_STATUS | HPDF_Page_GetCurrentPos2 (HPDF_Page page, HPDF_Point *pos) |
|
HPDF_Point | HPDF_Page_GetCurrentTextPos (HPDF_Page page) |
| Get current position for text showing. More...
|
|
HPDF_STATUS | HPDF_Page_GetCurrentTextPos2 (HPDF_Page page, HPDF_Point *pos) |
|
HPDF_Font | HPDF_Page_GetCurrentFont (HPDF_Page page) |
| Get page current font handle. More...
|
|
HPDF_REAL | HPDF_Page_GetCurrentFontSize (HPDF_Page page) |
| Get page current font size. More...
|
|
HPDF_TransMatrix | HPDF_Page_GetTransMatrix (HPDF_Page page) |
| Get page current transformation matrix. More...
|
|
HPDF_REAL | HPDF_Page_GetLineWidth (HPDF_Page page) |
| Get page current line width. More...
|
|
HPDF_LineCap | HPDF_Page_GetLineCap (HPDF_Page page) |
| Get page current line cap. More...
|
|
HPDF_LineJoin | HPDF_Page_GetLineJoin (HPDF_Page page) |
| Get page current line join. More...
|
|
HPDF_REAL | HPDF_Page_GetMiterLimit (HPDF_Page page) |
| Get page current miter limit. More...
|
|
HPDF_DashMode | HPDF_Page_GetDash (HPDF_Page page) |
| Get page current line dash pattern. More...
|
|
HPDF_REAL | HPDF_Page_GetFlat (HPDF_Page page) |
| Get page current flatness value. More...
|
|
HPDF_REAL | HPDF_Page_GetCharSpace (HPDF_Page page) |
| Get page current character spacing value. More...
|
|
HPDF_REAL | HPDF_Page_GetWordSpace (HPDF_Page page) |
| Get page current word spacing value. More...
|
|
HPDF_REAL | HPDF_Page_GetHorizontalScalling (HPDF_Page page) |
| Get page current horizontal scaling value for text showing. More...
|
|
HPDF_REAL | HPDF_Page_GetTextLeading (HPDF_Page page) |
| Get page current text leading value. More...
|
|
HPDF_TextRenderingMode | HPDF_Page_GetTextRenderingMode (HPDF_Page page) |
| Get page current text rendering mode. More...
|
|
HPDF_REAL | HPDF_Page_GetTextRaise (HPDF_Page page) |
|
HPDF_REAL | HPDF_Page_GetTextRise (HPDF_Page page) |
| Get page current text rise value. More...
|
|
HPDF_RGBColor | HPDF_Page_GetRGBFill (HPDF_Page page) |
| Get page current filling color value (RGB). More...
|
|
HPDF_RGBColor | HPDF_Page_GetRGBStroke (HPDF_Page page) |
| Get page current stroke color value (RGB). More...
|
|
HPDF_CMYKColor | HPDF_Page_GetCMYKFill (HPDF_Page page) |
| Get page current filling color value (CMYK). More...
|
|
HPDF_CMYKColor | HPDF_Page_GetCMYKStroke (HPDF_Page page) |
| Get page current stroke color value (CMYK). More...
|
|
HPDF_REAL | HPDF_Page_GetGrayFill (HPDF_Page page) |
| Get page current filling color value (Gray). More...
|
|
HPDF_REAL | HPDF_Page_GetGrayStroke (HPDF_Page page) |
| Get page current stroke color value (Gray). More...
|
|
HPDF_ColorSpace | HPDF_Page_GetStrokingColorSpace (HPDF_Page page) |
| Get page current stroke color space. More...
|
|
HPDF_ColorSpace | HPDF_Page_GetFillingColorSpace (HPDF_Page page) |
| Get page current filling color space. More...
|
|
HPDF_TransMatrix | HPDF_Page_GetTextMatrix (HPDF_Page page) |
| Get page current text transformation matrix. More...
|
|
HPDF_UINT | HPDF_Page_GetGStateDepth (HPDF_Page page) |
| Get page current graphics state stack depth. More...
|
|
HPDF_STATUS | HPDF_Page_SetLineWidth (HPDF_Page page, HPDF_REAL line_width) |
| Set width of the line used to stroke paths. More...
|
|
HPDF_STATUS | HPDF_Page_SetLineCap (HPDF_Page page, HPDF_LineCap line_cap) |
| Set lines endpoints shape style. More...
|
|
HPDF_STATUS | HPDF_Page_SetLineJoin (HPDF_Page page, HPDF_LineJoin line_join) |
| Set line join shape style. More...
|
|
HPDF_STATUS | HPDF_Page_SetMiterLimit (HPDF_Page page, HPDF_REAL miter_limit) |
| Set miter limit for line joins. More...
|
|
HPDF_STATUS | HPDF_Page_SetDash (HPDF_Page page, const HPDF_REAL *dash_pattern, HPDF_UINT num_elem, HPDF_REAL phase) |
| Set dash pattern for lines in the page. More...
|
|
HPDF_STATUS | HPDF_Page_SetFlat (HPDF_Page page, HPDF_REAL flatness) |
|
HPDF_STATUS | HPDF_Page_SetExtGState (HPDF_Page page, HPDF_ExtGState ext_gstate) |
| Apply graphics state to page. More...
|
|
HPDF_STATUS | HPDF_Page_SetShading (HPDF_Page page, HPDF_Shading shading) |
|
HPDF_STATUS | HPDF_Page_GSave (HPDF_Page page) |
| Save the page's current graphics state to the stack. More...
|
|
HPDF_STATUS | HPDF_Page_GRestore (HPDF_Page page) |
| Restore graphics state which is saved by HPDF_Page_GSave(). More...
|
|
HPDF_STATUS | HPDF_Page_Concat (HPDF_Page page, HPDF_REAL a, HPDF_REAL b, HPDF_REAL c, HPDF_REAL d, HPDF_REAL x, HPDF_REAL y) |
| Concatenate the page's transformation matrix and specified matrix. More...
|
|
HPDF_STATUS | HPDF_Page_Translate (HPDF_Page page, HPDF_REAL dx, HPDF_REAL dy) |
| Concatenate the page's transformation matrix with translation matrix. More...
|
|
HPDF_STATUS | HPDF_Page_Scale (HPDF_Page page, HPDF_REAL sx, HPDF_REAL sy) |
| Concatenate the page's transformation matrix with scale matrix. More...
|
|
HPDF_STATUS | HPDF_Page_RotateDeg (HPDF_Page page, HPDF_REAL degrees) |
| Concatenate the page's transformation matrix with rotate matrix. More...
|
|
HPDF_STATUS | HPDF_Page_Rotate (HPDF_Page page, HPDF_REAL a) |
| Concatenate the page's transformation matrix with rotate matrix. More...
|
|
HPDF_STATUS | HPDF_Page_Skew (HPDF_Page page, HPDF_REAL a, HPDF_REAL b) |
| Concatenate the page's transformation matrix with skew matrix. More...
|
|
HPDF_STATUS | HPDF_Page_MoveTo (HPDF_Page page, HPDF_REAL x, HPDF_REAL y) |
| Start new subpath and move current point for drawing path. More...
|
|
HPDF_STATUS | HPDF_Page_LineTo (HPDF_Page page, HPDF_REAL x, HPDF_REAL y) |
| Append path from current point to specified point. More...
|
|
HPDF_STATUS | HPDF_Page_CurveTo (HPDF_Page page, HPDF_REAL x1, HPDF_REAL y1, HPDF_REAL x2, HPDF_REAL y2, HPDF_REAL x3, HPDF_REAL y3) |
| Append Bézier curve to current path using control points (x1, y1) and (x2, y2) and (x3, y3), then set current point to (x3, y3). More...
|
|
HPDF_STATUS | HPDF_Page_CurveTo2 (HPDF_Page page, HPDF_REAL x2, HPDF_REAL y2, HPDF_REAL x3, HPDF_REAL y3) |
| Append Bézier curve to current path using current point and (x2, y2) and (x3, y3) as control points. Then current point is set to (x3, y3). More...
|
|
HPDF_STATUS | HPDF_Page_CurveTo3 (HPDF_Page page, HPDF_REAL x1, HPDF_REAL y1, HPDF_REAL x3, HPDF_REAL y3) |
| Append Bézier curve to the current path using two spesified points. The point (x1, y1) and the point (x3, y3) are used as the control points for a Bézier curve and current point is moved to the point (x3, y3). More...
|
|
HPDF_STATUS | HPDF_Page_ClosePath (HPDF_Page page) |
| Append straight line from current point to the start point of subpath. More...
|
|
HPDF_STATUS | HPDF_Page_Rectangle (HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL width, HPDF_REAL height) |
| Append rectangle to the current path. More...
|
|
HPDF_STATUS | HPDF_Page_Stroke (HPDF_Page page) |
| Paint current path. More...
|
|
HPDF_STATUS | HPDF_Page_ClosePathStroke (HPDF_Page page) |
| Close and paint current path. More...
|
|
HPDF_STATUS | HPDF_Page_Fill (HPDF_Page page) |
| Fill current path using non-zero winding number rule. More...
|
|
HPDF_STATUS | HPDF_Page_Eofill (HPDF_Page page) |
| Fill current path using even-odd rule. More...
|
|
HPDF_STATUS | HPDF_Page_FillStroke (HPDF_Page page) |
| Fill current path using the even-odd rule. More...
|
|
HPDF_STATUS | HPDF_Page_EofillStroke (HPDF_Page page) |
| Fill current path using the even-odd rule and then paint the path. More...
|
|
HPDF_STATUS | HPDF_Page_ClosePathFillStroke (HPDF_Page page) |
| Close current path, fill current path using the non-zero winding number rule, then paint path. More...
|
|
HPDF_STATUS | HPDF_Page_ClosePathEofillStroke (HPDF_Page page) |
| Close current path, fill current path using the even-odd rule and then paint the path. More...
|
|
HPDF_STATUS | HPDF_Page_EndPath (HPDF_Page page) |
| Finish path object without filling or painting. More...
|
|
HPDF_STATUS | HPDF_Page_Clip (HPDF_Page page) |
| Modify current clipping path by intersecting it with current path using the nonzero winding number rule. More...
|
|
HPDF_STATUS | HPDF_Page_Eoclip (HPDF_Page page) |
| Modifies the current clipping path by intersecting it with current path using the even-odd rule. Clipping path is only modified after succeeding painting operator. To avoid painting current path, use HPDF_Page_EndPath(). More...
|
|
HPDF_STATUS | HPDF_Page_BeginText (HPDF_Page page) |
| Begin text object and set text position to (0, 0) . More...
|
|
HPDF_STATUS | HPDF_Page_EndText (HPDF_Page page) |
| Finish text object. More...
|
|
HPDF_STATUS | HPDF_Page_SetCharSpace (HPDF_Page page, HPDF_REAL value) |
| Set text character spacing. More...
|
|
HPDF_STATUS | HPDF_Page_SetWordSpace (HPDF_Page page, HPDF_REAL value) |
| Set text word spacing. More...
|
|
HPDF_STATUS | HPDF_Page_SetHorizontalScalling (HPDF_Page page, HPDF_REAL value) |
| Set text horizontal scaling. More...
|
|
HPDF_STATUS | HPDF_Page_SetTextLeading (HPDF_Page page, HPDF_REAL value) |
| Set text leading (line spacing). More...
|
|
HPDF_STATUS | HPDF_Page_SetFontAndSize (HPDF_Page page, HPDF_Font font, HPDF_REAL size) |
| Set the type of font and size leading. More...
|
|
HPDF_STATUS | HPDF_Page_SetTextRenderingMode (HPDF_Page page, HPDF_TextRenderingMode mode) |
| Set text rendering mode. More...
|
|
HPDF_STATUS | HPDF_Page_SetTextRise (HPDF_Page page, HPDF_REAL value) |
| Move text position in vertical direction by the amount of value . More...
|
|
HPDF_STATUS | HPDF_Page_SetTextRaise (HPDF_Page page, HPDF_REAL value) |
| Move text position in vertical direction by the amount of value . More...
|
|
HPDF_STATUS | HPDF_Page_MoveTextPos (HPDF_Page page, HPDF_REAL x, HPDF_REAL y) |
| Change current text position using the specified offset values. More...
|
|
HPDF_STATUS | HPDF_Page_MoveTextPos2 (HPDF_Page page, HPDF_REAL x, HPDF_REAL y) |
| Change current text position using the specified offset values. More...
|
|
HPDF_STATUS | HPDF_Page_SetTextMatrix (HPDF_Page page, HPDF_REAL a, HPDF_REAL b, HPDF_REAL c, HPDF_REAL d, HPDF_REAL x, HPDF_REAL y) |
|
HPDF_STATUS | HPDF_Page_MoveToNextLine (HPDF_Page page) |
| Move current position for text showing depending on current text showing point and text leading. More...
|
|
HPDF_STATUS | HPDF_Page_ShowText (HPDF_Page page, const char *text) |
| Put text at the current text position on the page. More...
|
|
HPDF_STATUS | HPDF_Page_ShowTextNextLine (HPDF_Page page, const char *text) |
| Move current text position to the start of the next line, then put the text at the current text position on the page. More...
|
|
HPDF_STATUS | HPDF_Page_ShowTextNextLineEx (HPDF_Page page, HPDF_REAL word_space, HPDF_REAL char_space, const char *text) |
| Move current text position to the start of the next line, then set word spacing and character spacing, finally put the text at the current text position on the page. More...
|
|
HPDF_STATUS | HPDF_Page_SetGrayFill (HPDF_Page page, HPDF_REAL value) |
| Set the filling color (Gray). More...
|
|
HPDF_STATUS | HPDF_Page_SetGrayStroke (HPDF_Page page, HPDF_REAL value) |
| Set stroking color (Gray). More...
|
|
HPDF_STATUS | HPDF_Page_SetRGBFill (HPDF_Page page, HPDF_REAL r, HPDF_REAL g, HPDF_REAL b) |
| Set filling color (RGB). More...
|
|
HPDF_STATUS | HPDF_Page_SetRGBStroke (HPDF_Page page, HPDF_REAL r, HPDF_REAL g, HPDF_REAL b) |
| Set stroke color (RGB). More...
|
|
HPDF_STATUS | HPDF_Page_SetRGBStrokeHex (HPDF_Page page, HPDF_UINT8 r, HPDF_UINT8 g, HPDF_UINT8 b) |
| Set stroke color (RGB) using HPDF_UINT8 values. More...
|
|
HPDF_STATUS | HPDF_Page_SetCMYKFill (HPDF_Page page, HPDF_REAL c, HPDF_REAL m, HPDF_REAL y, HPDF_REAL k) |
| Set filling color (CMYK). More...
|
|
HPDF_STATUS | HPDF_Page_SetCMYKStroke (HPDF_Page page, HPDF_REAL c, HPDF_REAL m, HPDF_REAL y, HPDF_REAL k) |
| Set stroke color (CMYK). More...
|
|
HPDF_Shading | HPDF_Shading_New (HPDF_Doc pdf, HPDF_ShadingType type, HPDF_ColorSpace colorSpace, HPDF_REAL xMin, HPDF_REAL xMax, HPDF_REAL yMin, HPDF_REAL yMax) |
|
HPDF_STATUS | HPDF_Shading_AddVertexRGB (HPDF_Shading shading, HPDF_Shading_FreeFormTriangleMeshEdgeFlag edgeFlag, HPDF_REAL x, HPDF_REAL y, HPDF_UINT8 r, HPDF_UINT8 g, HPDF_UINT8 b) |
|
HPDF_STATUS | HPDF_Page_ExecuteXObject (HPDF_Page page, HPDF_XObject obj) |
| Draw XObject using current graphics context. More...
|
|
HPDF_STATUS | HPDF_Page_New_Content_Stream (HPDF_Page page, HPDF_Dict *new_stream) |
| Create new content stream on the page. More...
|
|
HPDF_STATUS | HPDF_Page_Insert_Shared_Content_Stream (HPDF_Page page, HPDF_Dict shared_stream) |
| Insert content stream to the page. More...
|
|
HPDF_STATUS | HPDF_Page_DrawImage (HPDF_Page page, HPDF_Image image, HPDF_REAL x, HPDF_REAL y, HPDF_REAL width, HPDF_REAL height) |
| Show an image in one operation. More...
|
|
HPDF_STATUS | HPDF_Page_Circle (HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL radius) |
| Append circle to current path. More...
|
|
HPDF_STATUS | HPDF_Page_Ellipse (HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL x_radius, HPDF_REAL y_radius) |
| Append ellipse to current path. More...
|
|
HPDF_STATUS | HPDF_Page_Arc (HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL radius, HPDF_REAL ang1, HPDF_REAL ang2) |
| Append circle arc to current path. More...
|
|
HPDF_STATUS | HPDF_Page_TextOut (HPDF_Page page, HPDF_REAL xpos, HPDF_REAL ypos, const char *text) |
| Put text to the specified position. More...
|
|
HPDF_STATUS | HPDF_Page_TextRect (HPDF_Page page, HPDF_REAL left, HPDF_REAL top, HPDF_REAL right, HPDF_REAL bottom, const char *text, HPDF_TextAlignment align, HPDF_UINT *len) |
| Put text inside the specified region. More...
|
|
HPDF_STATUS | HPDF_Page_SetSlideShow (HPDF_Page page, HPDF_TransitionStyle type, HPDF_REAL disp_time, HPDF_REAL trans_time) |
| Configure slide transition of the page. More...
|
|
HPDF_OutputIntent | HPDF_ICC_LoadIccFromMem (HPDF_Doc pdf, HPDF_MMgr mmgr, HPDF_Stream iccdata, HPDF_Xref xref, int numcomponent) |
|
HPDF_OutputIntent | HPDF_LoadIccProfileFromFile (HPDF_Doc pdf, const char *icc_file_name, int numcomponent) |
|
HPDF_STATUS | HPDF_Page_RawWrite (HPDF_Page page, char *data) |
| Write raw commands to page stream This command allow user to write some data to page stream unconditionally. More...
|
|