FPDFEDITBASE

Classes

struct  FPDF_FILEWRITE
 Structure for custom file write. More...

Files

file  fpdfeditbase.h
 

Header file for the Ebase module - provides the base functions for document editing.


Defines

#define DLLEXPORT
#define STDCALL
#define CDECL
#define FPDF_ARGB(a, r, g, b)   ((((FPDF_DWORD)(((FPDF_BYTE)(b)|((FPDF_WORD)((FPDF_BYTE)(g))<<8))|(((FPDF_DWORD)(FPDF_BYTE)(r))<<16)))) | (((FPDF_DWORD)(FPDF_BYTE)(a))<<24))
#define FPDF_GetBValue(argb)   ((FPDF_BYTE)(argb))
#define FPDF_GetGValue(argb)   ((FPDF_BYTE)(((FPDF_DWORD)(argb)) >> 8))
#define FPDF_GetRValue(argb)   ((FPDF_BYTE)((argb)>>16))
#define FPDF_GetAValue(argb)   ((FPDF_BYTE)((argb)>>24))
#define FPDF_SetMetaText   FPDF_SetMetaTextA
#define FPDF_VIEWERREF_SetUI   FPDF_VIEWERREF_SetUIA
#define FPDF_VIEWERREF_PrintScaling   FPDF_VIEWERREF_PrintScalingA
#define FPDFAction_SetFilePath   FPDFAction_SetFilePathA
#define FPDFBookmark_AddBookmark   FPDFBookmark_AddBookmarkA
#define FPDFBookmark_SetTitle   FPDFBookmark_SetTitleA
#define FPDF_INCREMENTAL   1
 Incremental.
#define FPDF_NO_INCREMENTAL   2
 No Incremental.

Functions

DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument ()
DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsFile (FPDF_DOCUMENT document, char *file_name, FPDF_DWORD permissions, FPDF_LPCBYTE UserPwd, long nUserPwdLen, FPDF_LPCBYTE OwnerPwd, long nOwnerPwdLen)
DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveDocument (FPDF_DOCUMENT document, FPDF_FILEWRITE *pFileWrite, FPDF_DWORD permissions, FPDF_LPCBYTE UserPwd, long nUserPwdLen, FPDF_LPCBYTE OwnerPwd, long nOwnerPwdLen, FPDF_DWORD flags)
DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy (FPDF_DOCUMENT document, FPDF_FILEWRITE *pFileWrite, FPDF_DWORD flags)
DLLEXPORT FPDF_BOOL STDCALL FPDF_SetMetaTextA (FPDF_DOCUMENT document, FPDF_BYTESTRING tag, FPDF_BYTESTRING value)
DLLEXPORT FPDF_BOOL STDCALL FPDF_SetMetaTextW (FPDF_DOCUMENT document, FPDF_WIDESTRING tag, FPDF_WIDESTRING value)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetUIA (FPDF_DOCUMENT document, FPDF_BYTESTRING tag)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetUIW (FPDF_DOCUMENT document, FPDF_BYTESTRING tag)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetUIA (FPDF_DOCUMENT document, FPDF_BYTESTRING tag, FPDF_BOOL value)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetUIW (FPDF_DOCUMENT document, FPDF_WIDESTRING tag, FPDF_BOOL value)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_ViewArea (FPDF_DOCUMENT document, int nRectType)
DLLEXPORT void STDCALL FPDF_VIEWERREF_GetPrintPageRange (FPDF_DOCUMENT document, int *from, int *to)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetPrintPageRange (FPDF_DOCUMENT document, int from, int to)
DLLEXPORT int STDCALL FPDF_VIEWERREF_GetNumCoipes (FPDF_DOCUMENT document)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetNumCoipes (FPDF_DOCUMENT document, int value)
DLLEXPORT int STDCALL FPDF_VIEWERREF_GetPrintClip (FPDF_DOCUMENT document)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetPrintClip (FPDF_DOCUMENT document, int nRectType)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_PrintScalingA (FPDF_DOCUMENT document, FPDF_BYTESTRING value)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_PrintScalingW (FPDF_DOCUMENT document, FPDF_WIDESTRING value)
DLLEXPORT int STDCALL FPDF_VIEWERREF_GetPrintArea (FPDF_DOCUMENT document)
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetPrintArea (FPDF_DOCUMENT document, int nRectType)
DLLEXPORT FPDF_ACTION STDCALL FPDF_CreateAction (FPDF_DOCUMENT document, int actiontype)
DLLEXPORT FPDF_BOOL STDCALL FPDF_DeleteAction (FPDF_ACTION action)
DLLEXPORT FPDF_BOOL STDCALL FPDFAction_SetFilePathA (FPDF_ACTION action, FPDF_BYTESTRING pFilePath, FPDF_BOOL bURL)
DLLEXPORT FPDF_BOOL STDCALL FPDFAction_SetFilePathW (FPDF_ACTION action, FPDF_WIDESTRING pFilePath, FPDF_BOOL bURL)
DLLEXPORT FPDF_BOOL STDCALL FPDFAction_SetURI (FPDF_ACTION action, FPDF_BYTESTRING csURI)
DLLEXPORT unsigned long STDCALL FPDFAction_GetURI (FPDF_DOCUMENT document, FPDF_ACTION action, void *buffer, unsigned long buflen)
DLLEXPORT FPDF_BOOL STDCALL FPDFAction_SetDest (FPDF_ACTION action, FPDF_DEST dest)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetPageIndex (FPDF_DOCUMENT document, FPDF_DEST dest, int page_index)
DLLEXPORT FPDF_DEST STDCALL FPDF_CreateDest (int mode)
DLLEXPORT FPDF_BOOL STDCALL FPDF_DeleteDest (FPDF_DEST dest)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetZoomMode (FPDF_DEST dest, int mode)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetXYZParam (FPDF_DEST dest, double x, double y, double z)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFITHORZParam (FPDF_DEST dest, double param)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFITVERTParam (FPDF_DEST dest, double param)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFitRectParam (FPDF_DEST dest, double left, double bottom, double right, double top)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFitBHorzParam (FPDF_DEST dest, double param)
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFitBVertParam (FPDF_DEST dest, double param)
DLLEXPORT FPDF_BOOKMARK STDCALL FPDFBookmark_AddBookmarkA (FPDF_DOCUMENT document, FPDF_BOOKMARK parent, FPDF_BOOKMARK InsterAfter, FPDF_BYTESTRING titlename)
DLLEXPORT FPDF_BOOKMARK STDCALL FPDFBookmark_AddBookmarkW (FPDF_DOCUMENT document, FPDF_BOOKMARK parent, FPDF_BOOKMARK InsterAfter, FPDF_WIDESTRING titlename)
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_DeleteBookmark (FPDF_DOCUMENT document, FPDF_BOOKMARK bookmark)
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetTitleA (FPDF_BOOKMARK bookmark, FPDF_BYTESTRING titlename)
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetTitleW (FPDF_BOOKMARK bookmark, FPDF_WIDESTRING titlename)
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetColorRef (FPDF_BOOKMARK bookmark, unsigned long color)
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetFontStyle (FPDF_BOOKMARK bookmark, unsigned long fontstyle)
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetAction (FPDF_BOOKMARK bookmark, FPDF_ACTION action)
DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New (FPDF_DOCUMENT document, int page_index, double width, double height)
DLLEXPORT void STDCALL FPDFPage_Delete (FPDF_DOCUMENT document, int page_index)
DLLEXPORT void STDCALL FPDFPage_InsertObject (FPDF_PAGE page, FPDF_PAGEOBJECT page_obj)
DLLEXPORT void STDCALL FPDFPage_DeleteObject (FPDF_PAGE page, int index)
DLLEXPORT int STDCALL FPDFPage_CountObject (FPDF_PAGE page)
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject (FPDF_PAGE page, int index)
DLLEXPORT int STDCALL FPDFPage_GetPageObjectIndex (FPDF_PAGE page, FPDF_PAGEOBJECT page_obj)
DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent (FPDF_PAGE page)
DLLEXPORT void STDCALL FPDFPageObj_Transform (FPDF_PAGEOBJECT page_object, double a, double b, double c, double d, double e, double f)
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_Clone (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_Free (FPDF_PAGEOBJECT page_object)
DLLEXPORT int STDCALL FPDFPageObj_GetType (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_GetBBox (FPDF_PAGEOBJECT page_object, double *left, double *bottom, double *right, double *top)
DLLEXPORT int STDCALL FPDFPageObj_GetClipCount (FPDF_PAGEOBJECT page_object)
DLLEXPORT FPDF_PATH STDCALL FPDFPageObj_GetClip (FPDF_PAGEOBJECT page_object, int index)
DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_AddClip (FPDF_PAGEOBJECT page_object, FPDF_PATH path, int type)
DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_AppendPathToClip (FPDF_PAGEOBJECT page_object, FPDF_PATH path, int type)
DLLEXPORT void STDCALL FPDFPageObj_RemoveClip (FPDF_PAGEOBJECT page_object, int index)
DLLEXPORT FPDF_DWORD STDCALL FPDFPageObj_GetFillColor (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetFillColor (FPDF_PAGEOBJECT page_object, FPDF_DWORD argb)
DLLEXPORT FPDF_DWORD STDCALL FPDFPageObj_GetStrokeColor (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetStrokeColor (FPDF_PAGEOBJECT page_object, FPDF_DWORD argb)
DLLEXPORT double STDCALL FPDFPageObj_GetLineWidth (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetLineWidth (FPDF_PAGEOBJECT page_object, double width)
DLLEXPORT int STDCALL FPDFPageObj_GetLineCapStyle (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetLineCapStyle (FPDF_PAGEOBJECT page_object, int style)
DLLEXPORT int STDCALL FPDFPageObj_GetLineJoinStyle (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetLineJoinStyle (FPDF_PAGEOBJECT page_object, int style)
DLLEXPORT double STDCALL FPDFPageObj_GetMiterLimit (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetMiterLimit (FPDF_PAGEOBJECT page_object, double miter_limit)
DLLEXPORT int STDCALL FPDFPageObj_GetDashCount (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetDashCount (FPDF_PAGEOBJECT page_object, int count)
DLLEXPORT double STDCALL FPDFPageObj_GetDashArray (FPDF_PAGEOBJECT page_object, int index)
DLLEXPORT void STDCALL FPDFPageObj_SetDashArray (FPDF_PAGEOBJECT page_object, int index, double dash_value)
DLLEXPORT double STDCALL FPDFPageObj_GetDashPhase (FPDF_PAGEOBJECT page_object)
DLLEXPORT void STDCALL FPDFPageObj_SetDashPhase (FPDF_PAGEOBJECT page_object, double phase_value)
 _FPDFEDITBASE_H_

PDF document permissions, according to PDF Reference, Table 3.20

#define FPDF_PERM_PRINT   0x0004
 bit 3. Print the document.
#define FPDF_PERM_MODIFY   0x0008
 bit 4. Modify the contents of the document by operations other than those controlled by bits 6, 9, and 11.
#define FPDF_PERM_EXTRACT   0x0010
 bit 5. Copy or otherwise extract text and graphics from the document by operations other than that is controlled by bit 10.
#define FPDF_PERM_ANNOT_FORM   0x0020
 bit 6. Add or modify text annotations and fill in interactive form fields.If bit 4 is also set, create or modify interactive form fields
#define FPDF_PERM_FILL_FORM   0x0100
 bit 9. Fill in existing interactive form fields (including signature fields), even if bit 6 is clear.
#define FPDF_PERM_EXTRACT_ACCESS   0x0200
 bit 10. Extract text and graphics.
#define FPDF_PERM_ASSEMBLE   0x0400
 bit 11. Assemble the document, even if bit 4 is clear.
#define FPDF_PERM_PRINT_HIGH   0x0800
 bit 12. Print the document to a representation, which a faithful digital copy of the PDF content could be generated.

Flags for Action type

#define PDFACTION_UNSUPPORTED   0
 Unsupported action type.
#define PDFACTION_GOTO   1
 Go to a destination within current document.
#define PDFACTION_REMOTEGOTO   2
 Go to a destination within another document.
#define PDFACTION_URI   3
 Universal Resource Identifier, including web pages and other Internet based resources.
#define PDFACTION_LAUNCH   4
 Launch an application or open a file.

Flags for zoom modes

#define PDFZOOM_XYZ   1
 Zoom level with specified offset.
#define PDFZOOM_FITPAGE   2
 Fit both the width and height of the page (whichever smaller).
#define PDFZOOM_FITHORZ   3
 Fit the page width.
#define PDFZOOM_FITVERT   4
 Fit the page height.
#define PDFZOOM_FITRECT   5
 Fit a specific rectangle area within the window.
#define PDFZOOM_FITBBOX   6
 Fit the bounding box entirely within the window both horizontally and vertically.
#define PDFZOOM_FITBHORZ   7
 The contents of the page magnified just enough to fit the entire width of its bounding box within the window.
#define PDFZOOM_FITBVERT   8
 The contents of the page magnified just enough to fit the entire height of its bounding box within the window.

Flags for Bookmark Font Style

#define FONTNORMAL   0x00
 Normal typeface.
#define FONTITALIC   0x01
 Italic.
#define FONTBOLD   0x02
 Bold.

Index values for getting boxes, used in xxx_GetRectangle and xxx_GetBBox functions.

#define FPDF_RECT_PAGE   0
 The visible rectangle.
#define FPDF_RECT_PAGE   0
 The visible rectangle.
#define FPDF_RECT_BOUNDING   1
 The bounding box of the all object in this page.
#define FPDF_RECT_BOUNDING   1
 The bounding box of the all object in this page.
#define FPDF_RECT_MEDIABOX   2
 The boundaries of the physical medium on which the page is to be printed.
#define FPDF_RECT_MEDIABOX   2
 The boundaries of the physical medium on which the page is to be printed.
#define FPDF_RECT_CROPBOX   3
 The region to which the contents of the page are to be clipped (cropped) when displayed or printed.
#define FPDF_RECT_CROPBOX   3
 The region to which the contents of the page are to be clipped (cropped) when displayed or printed.
#define FPDF_RECT_TRIMBOX   4
 The region to which the contents of the page should be clipped when output in a production environment.
#define FPDF_RECT_TRIMBOX   4
 The region to which the contents of the page should be clipped when output in a production environment.
#define FPDF_RECT_ARTBOX   5
 The intended dimensions of the finished page after trimming.
#define FPDF_RECT_ARTBOX   5
 The intended dimensions of the finished page after trimming.
#define FPDF_RECT_BLEEDBOX   6
 The extent of the page's meaningful content (including potential white space) as intended by the page's creator.
#define FPDF_RECT_BLEEDBOX   6
 The extent of the page's meaningful content (including potential white space) as intended by the page's creator.

The page object constants.

#define FPDF_PAGEOBJ_TEXT   1
 Text object.
#define FPDF_PAGEOBJ_PATH   2
 Path object.
#define FPDF_PAGEOBJ_IMAGE   3
 Image object.
#define FPDF_PAGEOBJ_SHADING   4
 Shading object.
#define FPDF_PAGEOBJ_FORM   5
 From object.

Fill mode types

#define FPDF_FILL_NULL   0
 No fill color.
#define FPDF_FILL_ALTERNATE   1
 Represents a fill mode in which the system fills the area between odd-numbered and even-numbered polygon sides on each scan line.
#define FPDF_FILL_WINDING   2
 Represents a fill mode in which the system uses the direction in which a figure was drawn to determine whether to fill the area.

Line cap styles

#define FPDF_LINECAP_BUTT   0
 The stroke is squared off at the endpoint of the path. There is no projection beyond the end of the path.
#define FPDF_LINECAP_ROUND   1
 A semicircular arc with a diameter equal to the line width is drawn around the endpoint and filled in.
#define FPDF_LINECAP_PROJECT   2
 The stroke continues beyond the endpoint of the path for a distance equal to half the line width and is squared off.

Line join styles

#define FPDF_LINEJOIN_MITER   0
 The outer edges of the strokes for the two segments are extended until they meet at an angle.
#define FPDF_LINEJOIN_ROUND   1
 An arc of a circle with a diameter equal to the line width is drawn around the point where the two segments meet, connecting the outer edges of the strokes for the two segments.
#define FPDF_LINEJOIN_BEVEL   2
 The two segments are finished with butt caps and the resulting notch beyond the ends of the segments is filled with a triangle.

Detailed Description

Header file for the Ebase module


Function Documentation

DLLEXPORT FPDF_ACTION STDCALL FPDF_CreateAction ( FPDF_DOCUMENT  document,
int  actiontype 
)

Creates an action.

Parameters:
[in]document- Handle to a document that will contains the action.
[in]actiontype- The type of the action. The values are defined above.
Return values:
Handleto a action or NULL if an error occurs.
DLLEXPORT FPDF_DEST STDCALL FPDF_CreateDest ( int  mode)

Creates destination.

Parameters:
[in]mode- The mode of destination. Refer to the fpdfdoc.h, the definition of zoom mode.
Return values:
Handleto a destination or NULL if an error occurs.
DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument ( )

Creates a new PDF document.

Return values:
Ahandle to a document. If failed, NULL is returned.
DLLEXPORT FPDF_BOOL STDCALL FPDF_DeleteAction ( FPDF_ACTION  action)

Deletes an action.

Parameters:
[in]action- Handle to a action.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_DeleteDest ( FPDF_DEST  dest)

Deletes destination.

Parameters:
[in]dest- Handle to the destination returned by the FPDF_CreateDest.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy ( FPDF_DOCUMENT  document,
FPDF_FILEWRITE pFileWrite,
FPDF_DWORD  flags 
)

Saves the copy of a specified document in custom way.

Parameters:
[in]document- Handle to a document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument.
[in]pFileWrite- A pointer to a custom file write structure.
[in]flags- A creating flags.The values are defined above.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsFile ( FPDF_DOCUMENT  document,
char *  file_name,
FPDF_DWORD  permissions,
FPDF_LPCBYTE  UserPwd,
long  nUserPwdLen,
FPDF_LPCBYTE  OwnerPwd,
long  nOwnerPwdLen 
)

Saves the specified document with a new name or format.

Parameters:
[in]document- Handle to a document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument.
[in]file_name- The path of PDF file that is different from the currently opened file path(including extension).//Õâ¾ä»°ºÍÔ­À´µÄ2.0²»Ò»Ñù£¬È·ÈÏÏÂ
[in]permissions- The PDF document permissions defined above.
[in]UserPwd- A 32-byte string user's password. Could be NULL.
[in]nUserPwdLen- The length of the UserPwd.
[in]OwnerPwd- A 32-byte string owner's password. Could be NULL.
[in]nOwnerPwdLen- The length of the OwnerPwd.
Note:
The new file_name should be different from the old one.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveDocument ( FPDF_DOCUMENT  document,
FPDF_FILEWRITE pFileWrite,
FPDF_DWORD  permissions,
FPDF_LPCBYTE  UserPwd,
long  nUserPwdLen,
FPDF_LPCBYTE  OwnerPwd,
long  nOwnerPwdLen,
FPDF_DWORD  flags 
)

Saves the specified document in a custom way.

Parameters:
[in]document- Handle to a document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument.
[in]pFileWrite- A pointer to a custom file write structure.
[in]permissions- The PDF document permissions that is defined above.
[in]UserPwd- A 32-byte string user's password. Could be NULL.
[in]nUserPwdLen- The length of the UserPwd.
[in]OwnerPwd- A 32-byte string owner's password. Could be NULL.
[in]nOwnerPwdLen- The length of the OwnerPwd.
[in]flags- The creating flags.The values are defined above.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_SetMetaTextA ( FPDF_DOCUMENT  document,
FPDF_BYTESTRING  tag,
FPDF_BYTESTRING  value 
)

Sets PDF document info

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument.
[in]tag- The key string of the document info. It could be "Title","Subject","Author", "Keywords","Creator" and other document information string.
[in]value- The information the user want to set it to.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT int STDCALL FPDF_VIEWERREF_GetNumCoipes ( FPDF_DOCUMENT  document)

Gets the number of the printing pages.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
Return values:
Returnthe setting number of printing pages.
DLLEXPORT int STDCALL FPDF_VIEWERREF_GetPrintArea ( FPDF_DOCUMENT  document)

Gets the printing area range.

Parameters:
[in]doc- Handle to a document returned by FPDF_loadDocument function.
Return values:
Returnthe setting area range's type of printing. The type value is defined by the viewer reference above.
DLLEXPORT int STDCALL FPDF_VIEWERREF_GetPrintClip ( FPDF_DOCUMENT  document)

Gets the cutting area of the printing page.

Parameters:
[in]doc- Document returned by FPDF_loadDocument function.
Return values:
Returnthe cutting area's type of the printing page. The type value is defined by the viewer reference above.
DLLEXPORT void STDCALL FPDF_VIEWERREF_GetPrintPageRange ( FPDF_DOCUMENT  document,
int *  from,
int *  to 
)

Gets the page number of the printing pages.

Parameters:
[in]doc- Handle to a document returned by FPDF_loadDocument function.
[in]form- Get the start page.
[in]to- Get the end page.
Return values:
None
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetUIA ( FPDF_DOCUMENT  document,
FPDF_BYTESTRING  tag 
)

Gets viewer preference information

Parameters:
[in]doc- Handle to a document returned by FPDF_loadDocument function.
[in]tag- Flag bit, can be "HideToolbar", "HideMenubar", "HideWindowUI", "FitWindow", "CenterWindow" and other characters info
Return values:
Returnthe specified tag value.
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_PrintScalingA ( FPDF_DOCUMENT  document,
FPDF_BYTESTRING  value 
)

Sets the zoom proportion of print.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]value- Set as None or AppDefault that is supported by the application.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetNumCoipes ( FPDF_DOCUMENT  document,
int  value 
)

Sets the printing quantity.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]value- Quantity value.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetPrintArea ( FPDF_DOCUMENT  document,
int  nRectType 
)

Sets the printing area range.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]nRectType- The type of page boundary. The values are defined above.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetPrintClip ( FPDF_DOCUMENT  document,
int  nRectType 
)

Sets the cutting area of the printing page. The name of the page boundary to which the contents of a page are to be clipped when printing the document.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]nRectType- Set the type of cutting area defined by the viewer reference above.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetPrintPageRange ( FPDF_DOCUMENT  document,
int  from,
int  to 
)

Sets the printing page number of the document.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]printPageRange- Page number range. Negative is invalid.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_SetUIA ( FPDF_DOCUMENT  document,
FPDF_BYTESTRING  tag,
FPDF_BOOL  value 
)

Sets viewer preference info.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]tag- Flag bit, can be "HideToolbar", "HideMenubar", "HideWindowUI", "FitWindow", "CenterWindow" and other characters info.
[in]value- Setting value.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_ViewArea ( FPDF_DOCUMENT  document,
int  nRectType 
)

Sets the area range of displaying page.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]value- Set the boundary of the printing page.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT unsigned long STDCALL FPDFAction_GetURI ( FPDF_DOCUMENT  document,
FPDF_ACTION  action,
void *  buffer,
unsigned long  buflen 
)

Gets the URI path of Action.

Parameters:
[in]action- Handle to a action.
[out]buffer- The buffer that will contain URL.
[in]buflen- The length of URL path.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFAction_SetDest ( FPDF_ACTION  action,
FPDF_DEST  dest 
)

Sets the type of action's destination.

Parameters:
[in]action- Handle to a action.
[out]dest- Handle to a destination, returned by FPDF_CreateDest.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFAction_SetFilePathA ( FPDF_ACTION  action,
FPDF_BYTESTRING  pFilePath,
FPDF_BOOL  bURL 
)

Sets the file path of action. The path can be URL.

Parameters:
[in]action- Handle to a action.
[in]pFilePath- File path.
[in]bURL- Whether the path is URL.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFAction_SetURI ( FPDF_ACTION  action,
FPDF_BYTESTRING  csURI 
)

Sets the URI path of Action

Parameters:
[in]action- Handle to a action.
[in]pFilePath- URL address.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOKMARK STDCALL FPDFBookmark_AddBookmarkA ( FPDF_DOCUMENT  document,
FPDF_BOOKMARK  parent,
FPDF_BOOKMARK  InsterAfter,
FPDF_BYTESTRING  titlename 
)

Adds the bookmark to the document.

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]parent- Parent node.
[in]InsterAfter- Former node.
[in]titlename- Bookmark name.
Return values:
Returnthe setting bookmark object, if successful. If failed, NULL is returned.
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_DeleteBookmark ( FPDF_DOCUMENT  document,
FPDF_BOOKMARK  bookmark 
)

Deletes the bookmark object

Parameters:
[in]document- Handle to a document returned by FPDF_loadDocument function.
[in]bookmark- Handle to a bookmark.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetAction ( FPDF_BOOKMARK  bookmark,
FPDF_ACTION  action 
)

Sets the action actuation of bookmark.

Parameters:
[in]bookmark- Handle to a bookmark.
[in]action- Handle to action.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetColorRef ( FPDF_BOOKMARK  bookmark,
unsigned long  color 
)

Sets the bookmark color. The color value such as (0xFF00FF).

Parameters:
[in]bookmark- Handle to a bookmark.
[in]color- Set color value.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetFontStyle ( FPDF_BOOKMARK  bookmark,
unsigned long  fontstyle 
)

Sets the bookmark font (such as bold, italic and so on).

Parameters:
[in]bookmark- Handle to a bookmark.
[in]Fontstyle- Font type defined by the value above.
Note:
The bookmark font style such as bold,italic and so on.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFBookmark_SetTitleA ( FPDF_BOOKMARK  bookmark,
FPDF_BYTESTRING  titlename 
)

Sets the bookmark title.

Parameters:
[in]bookmark- Handle to a bookmark.
[in]titlename- Title name.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFitBHorzParam ( FPDF_DEST  dest,
double  param 
)

Sets the parameters of FitBHorz zoom mode.

Parameters:
[in]dest- Handle to the destination returned by FPDF_CreateDest.
[in]param- The parameters of bounding box.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFitBVertParam ( FPDF_DEST  dest,
double  param 
)

Sets the parameters of FitBV zoom mode.

Parameters:
[in]dest- Handle to the destination returned by FPDF_CreateDest.
[in]param- The parameters of the horizontal coordinate positioned at the left edge of the window.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFITHORZParam ( FPDF_DEST  dest,
double  param 
)

Sets the parameters for FITHORZ zoom mode.

Parameters:
[in]dest- Handle to the destination returned by FPDF_CreateDest.
[in]param- The parameters of the vertical coordinate positioned at the top edge of the window.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFitRectParam ( FPDF_DEST  dest,
double  left,
double  bottom,
double  right,
double  top 
)

Sets the parameters of FitRect zoom mode. The rectangle range consists of left, bottom, right and top.

Parameters:
[in]dest- Handle to the destination returned by FPDF_CreateDest.
[in]param- The parameters's contents must be magnified just enough to fit the rectangle specified by the coordinates left, bottom, right and top. Contents must fit entirely within the window both horizontally and vertically.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetFITVERTParam ( FPDF_DEST  dest,
double  param 
)

Sets the parameters of FITVERT zoom mode.

Parameters:
[in]dest- Handle to the destination returned by FPDF_CreateDest.
[in]param- The parameters of the horizontal coordinate positioned at the left edge of the window
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetPageIndex ( FPDF_DOCUMENT  document,
FPDF_DEST  dest,
int  page_index 
)

Sets the page pointed by destination.

Parameters:
[in]document- Handle to a document returned by FPDF_LoadDocument or FPDF_LoadMemDocument.
[in]dest- Handle to a destination.
[in]page_index- Page number.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetXYZParam ( FPDF_DEST  dest,
double  x,
double  y,
double  z 
)

Sets the parameters of xyz zoom mode.

Parameters:
[in]dest- Handle to the destination returned by FPDF_CreateDest.
[in]x- Left coordinate point
[in]y- Top coordinate point
[in]z- Zooming value
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFDest_SetZoomMode ( FPDF_DEST  dest,
int  mode 
)

Sets the zoom mode.

Parameters:
[in]dest- Handle to the destination returned by FPDF_CreateDest.
[in]mode- The zoom mode of destination. Refer to the fpdfview.h, the definition of zoom mode.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT int STDCALL FPDFPage_CountObject ( FPDF_PAGE  page)

Gets number of page objects inside the page.

Parameters:
[in]page- Handle to a page. Returned by FPDFPage_New.
Return values:
Thenumber of page objects.
DLLEXPORT void STDCALL FPDFPage_Delete ( FPDF_DOCUMENT  document,
int  page_index 
)

Deletes a PDF page.

Parameters:
[in]document- Handle to a document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument.
[in]page_index- The index of a page.
Return values:
None
DLLEXPORT void STDCALL FPDFPage_DeleteObject ( FPDF_PAGE  page,
int  index 
)

Deletes an object from the page. The page object is automatically freed.

Parameters:
[in]page- Handle to a page. Returned by FPDFPage_New.
[in]index- The index of a page object.
Return values:
None
DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent ( FPDF_PAGE  page)

Generates PDF Page content.

Parameters:
[in]page- Handle to a page. Returned by FPDFPage_New.
Note:
Before you save the page to a file, or reload the page, you must call the FPDFPage_GenerateContent function or the changed information will be lost.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject ( FPDF_PAGE  page,
int  index 
)

Gets page object by index.

Parameters:
[in]page- Handle to a page. Returned by FPDFPage_New.
[in]index- The index of a page object.
Return values:
Thehandle to the page object. If failed, NULL is returned.
DLLEXPORT int STDCALL FPDFPage_GetPageObjectIndex ( FPDF_PAGE  page,
FPDF_PAGEOBJECT  page_obj 
)

Gets the index of the page object in the specify page.

Parameters:
[in]page- Handle to a page. Returned by FPDFPage_New.
[in]page_obj- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
Return values:
Ifsuccessful, returns the index of the page object. Otherwise, returns -1.
DLLEXPORT void STDCALL FPDFPage_InsertObject ( FPDF_PAGE  page,
FPDF_PAGEOBJECT  page_obj 
)

Inserts an object to the page. The page object is automatically freed.

Parameters:
[in]page- Handle to a page. Returned by FPDFPage_New.
[in]page_obj- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx or FPDFPageObj_NewPathObj.
Return values:
None
DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New ( FPDF_DOCUMENT  document,
int  page_index,
double  width,
double  height 
)

Constructs an empty page.

Parameters:
[in]document- Handle to a document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument.
[in]page_index- The index of a page.
[in]width- The page width.
[in]height- The page height.
Note:
Loaded page can be deleted by FPDFPage_Delete.
Return values:
Thehandle to the page.
DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_AddClip ( FPDF_PAGEOBJECT  page_object,
FPDF_PATH  path,
int  type 
)

Adds a clip to a page object.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
[in]path- Handle to a path. Returned by FPDFPathObj_GetPath.
[in]type- The fill mode types that is defined above.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_AppendPathToClip ( FPDF_PAGEOBJECT  page_object,
FPDF_PATH  path,
int  type 
)

Appends a path to the current clip.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
[in]path- Handle to a path. Returned by FPDFPathObj_GetPath.
[in]type- The fill mode types that is defined above.
Return values:
TRUEfor success, otherwise FALSE.
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_Clone ( FPDF_PAGEOBJECT  page_object)

Creates a new page object based on this page object.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
Return values:
Handleto a page object.
DLLEXPORT void STDCALL FPDFPageObj_Free ( FPDF_PAGEOBJECT  page_object)

Free a page object.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_GetBBox ( FPDF_PAGEOBJECT  page_object,
double *  left,
double *  bottom,
double *  right,
double *  top 
)

Gets page object type.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
[in]left- Pointer to a double value receiving the left of a rectangle (in points).
[in]bottom- Pointer to a double value receiving the bottom of a rectangle (in points).
[in]right- Pointer to a double value receiving the right of a rectangle (in points).
[in]top- Pointer to a double value receiving the top of a rectangle (in points).
Return values:
None.
DLLEXPORT FPDF_PATH STDCALL FPDFPageObj_GetClip ( FPDF_PAGEOBJECT  page_object,
int  index 
)

Gets the clip path of a page object.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
[in]index- The index of a path.
Return values:
Handleto a path.
DLLEXPORT int STDCALL FPDFPageObj_GetClipCount ( FPDF_PAGEOBJECT  page_object)

Gets the clip number of a page object.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
Return values:
Theclip count.
DLLEXPORT double STDCALL FPDFPageObj_GetDashArray ( FPDF_PAGEOBJECT  page_object,
int  index 
)

Get dash array elements of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]index- The index of a dash array element.
Note:
The dash array's elements are numbers that specify the lengths of alternating dashes and gaps; the numbers must be nonnegative and not all zero.
Return values:
Returnthe dash value of the specific index of the dash array.
DLLEXPORT int STDCALL FPDFPageObj_GetDashCount ( FPDF_PAGEOBJECT  page_object)

Gets dash count of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
Return values:
Thedash count of a page object.
DLLEXPORT double STDCALL FPDFPageObj_GetDashPhase ( FPDF_PAGEOBJECT  page_object)

Gets dash phase of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
Note:
The dash phase specifies the distance into the dash pattern at which to start the dash.
Return values:
Thedash phase value of a page object.
DLLEXPORT FPDF_DWORD STDCALL FPDFPageObj_GetFillColor ( FPDF_PAGEOBJECT  page_object)

Gets the fill color of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be text_object, path_object and uncolored images.
Return values:
Thefill-color of a page object. Constructed by 0xaarrggbb.
DLLEXPORT int STDCALL FPDFPageObj_GetLineCapStyle ( FPDF_PAGEOBJECT  page_object)

Gets the line cap style of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
Return values:
Theline cap styles defined above.
DLLEXPORT int STDCALL FPDFPageObj_GetLineJoinStyle ( FPDF_PAGEOBJECT  page_object)

Gets the line join style of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
Return values:
Returnthe line join styles that is defined above.
DLLEXPORT double STDCALL FPDFPageObj_GetLineWidth ( FPDF_PAGEOBJECT  page_object)

Gets the line width of a path object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
Return values:
Returnthe line width of the page object.
DLLEXPORT double STDCALL FPDFPageObj_GetMiterLimit ( FPDF_PAGEOBJECT  page_object)

Gets the miter limit of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
Note:
The miter limit imposes a maximum on the ratio of the miter length to the line width. When the limit is exceeded, the join is converted from a miter to a bevel.
Return values:
Themiter limit of a page_object.
DLLEXPORT FPDF_DWORD STDCALL FPDFPageObj_GetStrokeColor ( FPDF_PAGEOBJECT  page_object)

Gets the stroke color of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be text_object, path_object and uncolored images.
Return values:
Thestroke color of a page object. Constructed by 0xaarrggbb.
DLLEXPORT int STDCALL FPDFPageObj_GetType ( FPDF_PAGEOBJECT  page_object)

Gets page object type.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
Return values:
Oneof the FPDF_PAGEOBJ_xxxx constants defined above.
DLLEXPORT void STDCALL FPDFPageObj_RemoveClip ( FPDF_PAGEOBJECT  page_object,
int  index 
)

Removes a clip from the page object.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
[in]index- The index of the clip.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetDashArray ( FPDF_PAGEOBJECT  page_object,
int  index,
double  dash_value 
)

Sets dash array elements of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]index- The index of a dash array element.
[in]dash_value- The dash value of specific index of the dash array.
Note:
The dash array's elements are numbers that specify the lengths of alternating dashes and gaps; the numbers must be nonnegative and not all zero.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetDashCount ( FPDF_PAGEOBJECT  page_object,
int  count 
)

Sets dash count of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]count- The dash count of a page object.
Note:
Setting the count will release the old dash array of the page object and allocate a new dash array.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetDashPhase ( FPDF_PAGEOBJECT  page_object,
double  phase_value 
)

_FPDFEDITBASE_H_

Sets dash phase of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]phase_value- The dash phase value.
Note:
The dash phase specifies the distance into the dash pattern where you can start the dash.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetFillColor ( FPDF_PAGEOBJECT  page_object,
FPDF_DWORD  argb 
)

Sets the fill color of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be text_object, path_object and uncolored images.
[in]argb- The fill color of a page object. Constructed by 0xaarrggbb.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetLineCapStyle ( FPDF_PAGEOBJECT  page_object,
int  style 
)

Sets the line cap style of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]style- The line cap styles defined above.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetLineJoinStyle ( FPDF_PAGEOBJECT  page_object,
int  style 
)

Sets the line join style of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]style- The line join styles that is defined above.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetLineWidth ( FPDF_PAGEOBJECT  page_object,
double  width 
)

Sets the line width of a path object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]width- The line width of the page object.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetMiterLimit ( FPDF_PAGEOBJECT  page_object,
double  miter_limit 
)

Sets the miter limit of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be path_object or stroke text_object.
[in]miter_limit- The miter limit of a page_object.
Note:
The miter limit imposes a maximum on the ratio of the miter length to the line width. When the limit is exceeded, the join is converted from a miter to a bevel.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_SetStrokeColor ( FPDF_PAGEOBJECT  page_object,
FPDF_DWORD  argb 
)

Sets the stroke color of a page object.

Parameters:
[in]page_object- Handle of a page object. It could be text_object, path_object and uncolored images.
[in]argb- The stroke color of a page object. Constructed by 0xaarrggbb.
Return values:
None.
DLLEXPORT void STDCALL FPDFPageObj_Transform ( FPDF_PAGEOBJECT  page_object,
double  a,
double  b,
double  c,
double  d,
double  e,
double  f 
)

Transforms (scale, rotate, shear, move) page object.

Parameters:
[in]page_object- Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx, FPDFPageObj_NewPathObj, FPDFPageObj_NewImageObj, etc.
[in]a- The coefficient "a" of the matrix.
[in]b- The coefficient "b" of the matrix.
[in]c- The coefficient "c" of the matrix.
[in]d- The coefficient "d" of the matrix.
[in]e- The coefficient "e" of the matrix.
[in]f- The coefficient "f" of the matrix.
Return values:
None.