fpdfobjectedit.h File Reference

Header file for the object module - provides the interfaces for editing page objects. More...

#include "fpdfview.h"
#include "fpdfeditbase.h"

Go to the source code of this file.

Classes

struct  tagFPDFLOGFONT
 The tagFPDFLOGFONT structure defines the attributes of a font. More...

Defines

#define DLLEXPORT
#define STDCALL
Text rendering modes
#define FPDF_TEXTMODE_FILL   0
 Fill text.
#define FPDF_TEXTMODE_STROKE   1
 Stroke text.
#define FPDF_TEXTMODE_FILLANDSTROKE   2
 Fill, then stroke text.
#define FPDF_TEXTMODE_INVISIBLE   3
 Neither fill nor stroke text (invisible).
The Font flags
#define FPDF_FLAG_FIXEDPITCH   1
 All glyphs have the same width.
#define FPDF_FLAG_SERIF   2
 Glyphs have serifs, which are short strokes drawn at an angle on the top and bottom of glyph stems.
#define FPDF_FLAG_SYMBOLIC   4
 Font contains glyphs outside the Adobe standard Latin character set. This flag and the Nonsymbolic flag cannot both be set or cleared.
#define FPDF_FLAG_SCRIPT   8
 Glyphs resemble cursive handwriting.
#define FPDF_FLAG_NONSYMBOLIC   32
 Font uses the Adobe standard Latin character set or a subset of it.
#define FPDF_FLAG_ITALIC   64
 Glyphs have dominant vertical strokes that are slanted.
#define FPDF_FLAG_ALLCAP   0x10000
 Font contains no lowercase letters; typically used for display purposes, such as for titles or headlines.
#define FPDF_FLAG_SMALLCAP   0x20000
 Font contains both uppercase and lowercase letters.
#define FPDF_FLAG_FORCEBOLD   0x40000
 Whether bold glyphs are painted with extra pixels even at very small text sizes.
Font encoding
#define FPDF_ENCODING_DEFAULT   0
 Built-in encoding.
#define FPDF_ENCODING_WINANSI   1
 WinAnsiEncoding.
#define FPDF_ENCODING_MACROMAN   2
#define FPDF_ENCODING_MACEXPERT   3
#define FPDF_ENCODING_STANDARD   4
#define FPDF_ENCODING_IDENTITY   10
#define FPDF_ENCODING_GB   11
#define FPDF_ENCODING_BIG5   12
#define FPDF_ENCODING_SHIFT_JIS   13
#define FPDF_ENCODING_KOREAN   14
Path point types
#define FPDF_PATH_CLOSEFIGURE   1
#define FPDF_PATH_LINETO   2
#define FPDF_PATH_BEZIERTO   4
#define FPDF_PATH_MOVETO   6
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.
Highlight definition
#define HIGHLIGHT_NONE   0
#define HIGHLIGHT_INVERT   1
#define HIGHLIGHT_OUTLINE   2
#define HIGHLIGHT_PUSH   3
Border style definition
#define BORDERSTYLE_SOLID   0
#define BORDERSTYLE_DASHED   1
#define BORDERSTYLE_BEVELED   2
#define BORDERSTYLE_INSET   3
#define BORDERSTYLE_UNDERLINE   4

Typedefs

typedef struct tagFPDFLOGFONT FPDFLOGFONT
 The tagFPDFLOGFONT structure defines the attributes of a font.
typedef struct tagFPDFLOGFONTPFPDFLOGFONT

Functions

DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_NewTextObj ()
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_NewTextObjEx (FPDF_WIDESTRING text, int nwSize, FPDF_FONT font)
DLLEXPORT FPDF_FONT STDCALL FPDFTextObj_GetFont (FPDF_PAGEOBJECT text_object)
DLLEXPORT void STDCALL FPDFTextObj_SetFont (FPDF_PAGEOBJECT text_object, FPDF_FONT font, double font_size)
DLLEXPORT double STDCALL FPDFTextObj_GetFontSize (FPDF_PAGEOBJECT text_object)
DLLEXPORT void STDCALL FPDFTextObj_GetMatrix (FPDF_PAGEOBJECT text_object, double *a, double *b, double *c, double *d, double *e, double *f)
DLLEXPORT void STDCALL FPDFTextObj_SetMatrix (FPDF_PAGEOBJECT text_object, double a, double b, double c, double d, double e, double f)
DLLEXPORT int STDCALL FPDFTextObj_CountChars (FPDF_PAGEOBJECT text_object)
DLLEXPORT unsigned int STDCALL FPDFTextObj_GetUincode (FPDF_PAGEOBJECT text_object, int index)
DLLEXPORT FPDF_BOOL STDCALL FPDFTextObj_SetUnicode (FPDF_PAGEOBJECT text_object, int index, int nUnicode)
DLLEXPORT double STDCALL FPDFTextObj_GetOffset (FPDF_PAGEOBJECT text_object, int index)
DLLEXPORT int STDCALL FPDFTextObj_GetTextMode (FPDF_PAGEOBJECT text_object)
DLLEXPORT FPDF_BOOL STDCALL FPDFTextObj_SetTextMode (FPDF_PAGEOBJECT text_object, int text_mode)
DLLEXPORT double STDCALL FPDFTextObj_GetCharSpace (FPDF_PAGEOBJECT text_object)
DLLEXPORT FPDF_BOOL STDCALL FPDFTextObj_SetCharSpace (FPDF_PAGEOBJECT text_object, double charspace)
DLLEXPORT double STDCALL FPDFTextObj_GetWordSpace (FPDF_PAGEOBJECT text_object)
DLLEXPORT FPDF_BOOL STDCALL FPDFTextObj_SetWordSpace (FPDF_PAGEOBJECT text_object, double wordspace)
DLLEXPORT int STDCALL FPDFTextObj_Insert (FPDF_PAGEOBJECT text_object, FPDF_WIDESTRING text, int nwSize, int index)
DLLEXPORT int STDCALL FPDFTextObj_Delete (FPDF_PAGEOBJECT text_object, int index, int nCount=1)
DLLEXPORT int STDCALL FPDFTextObj_Find (FPDF_PAGEOBJECT text_object, FPDF_WIDESTRING text, int nwSize, int nStart=0)
DLLEXPORT int STDCALL FPDFTextObj_Replace (FPDF_PAGEOBJECT text_object, FPDF_WIDESTRING OldText, int nwOldSize, FPDF_WIDESTRING NewText, int nwNewSize)
DLLEXPORT FPDF_BOOL STDCALL FPDFTextObj_Compare (FPDF_PAGEOBJECT text_object, FPDF_WIDESTRING text, int nwSize)
DLLEXPORT FPDF_BYTESTRING STDCALL FPDFFont_GetFontName (FPDF_FONT font)
DLLEXPORT int STDCALL FPDFFont_GetFlags (FPDF_FONT font)
DLLEXPORT void STDCALL FPDFFont_GetBBox (FPDF_FONT font, double *left, double *right, double *bottom, double *top)
DLLEXPORT void STDCALL FPDFFont_GetCharBBox (FPDF_FONT font, FPDF_DWORD char_code, double *left, double *right, double *bottom, double *top)
DLLEXPORT int STDCALL FPDFFont_GetCharWidth (FPDF_FONT font, FPDF_DWORD char_code)
DLLEXPORT unsigned short STDCALL FPDFFont_GetUnicode (FPDF_FONT font, FPDF_DWORD char_code)
DLLEXPORT int STDCALL FPDFFont_GetCharSize (FPDF_FONT font, FPDF_DWORD char_code)
DLLEXPORT FPDF_DWORD STDCALL FPDFFont_GetCharCode (FPDF_FONT font, unsigned short unicode)
DLLEXPORT int STDCALL FPDFFont_GetFontDescent (FPDF_FONT font)
DLLEXPORT int STDCALL FPDFFont_GetFontAscent (FPDF_FONT font)
DLLEXPORT FPDF_FONT STDCALL FPDFFont_AddTrueType (FPDF_DOCUMENT document, PFPDFLOGFONT pLogFont)
DLLEXPORT FPDF_FONT STDCALL FPDFFont_AddStandardFont (FPDF_DOCUMENT document, char *font_name, int encoding)
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_NewPathObj ()
DLLEXPORT void STDCALL FPDFPathObj_SetPoints (FPDF_PAGEOBJECT path_object, int point_count, double *point_x, double *point_y, int *flags)
DLLEXPORT void STDCALL FPDFPathObj_InsertPoint (FPDF_PAGEOBJECT path_object, double x, double y, int flag, int point_index=-1)
DLLEXPORT void STDCALL FPDFPathObj_RemovePoint (FPDF_PAGEOBJECT path_object, int point_index)
DLLEXPORT void STDCALL FPDFPathObj_ClearPoints (FPDF_PAGEOBJECT path_object)
DLLEXPORT int STDCALL FPDFPathObj_CountPoints (FPDF_PAGEOBJECT path_object)
DLLEXPORT int STDCALL FPDFPathObj_GetPointType (FPDF_PAGEOBJECT path_object, int point_index)
DLLEXPORT double STDCALL FPDFPathObj_GetPointX (FPDF_PAGEOBJECT path_object, int point_index)
DLLEXPORT double STDCALL FPDFPathObj_GetPointY (FPDF_PAGEOBJECT path_object, int point_index)
DLLEXPORT FPDF_PATH STDCALL FPDFPathObj_GetPath (FPDF_PAGEOBJECT path_object)
DLLEXPORT FPDF_BOOL STDCALL FPDFPathObj_GetStroke (FPDF_PAGEOBJECT path_object)
DLLEXPORT int STDCALL FPDFPathObj_GetFillMode (FPDF_PAGEOBJECT path_object)
DLLEXPORT void STDCALL FPDFPathObj_SetFillStroke (FPDF_PAGEOBJECT path_object, int fill_type, int stroke)
DLLEXPORT FPDF_BOOL STDCALL FPDFPathObj_GetMatrix (FPDF_PAGEOBJECT path_object, double *a, double *b, double *c, double *d, double *e, double *f)
DLLEXPORT FPDF_BOOL STDCALL FPDFPathObj_SetMatrix (FPDF_PAGEOBJECT path_object, double a, double b, double c, double d, double e, double f)
DLLEXPORT void STDCALL FPDFFormObj_InsertSubObject (FPDF_PAGEOBJECT form_object, FPDF_PAGEOBJECT page_obj)
DLLEXPORT void STDCALL FPDFFormObj_Display (FPDF_PAGEOBJECT form_object, void *device, int xPos, int yPos, int xSize, int ySize, int iRotate)
DLLEXPORT void STDCALL FPDFFormObj_DeleteSubObject (FPDF_PAGEOBJECT form_object, int index)
DLLEXPORT int STDCALL FPDFFormObj_CountSubObjects (FPDF_PAGEOBJECT form_object)
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFFormObj_GetSubObject (FPDF_PAGEOBJECT form_object, int index)
DLLEXPORT int STDCALL FPDFFormObj_GetSubObjectIndex (FPDF_PAGEOBJECT form_object, FPDF_PAGEOBJECT page_obj)
DLLEXPORT FPDF_BOOL STDCALL FPDFFormObj_GenerateContent (FPDF_PAGEOBJECT form_object)
DLLEXPORT FPDF_BOOL STDCALL FPDFFormObj_GetMatrix (FPDF_PAGEOBJECT form_object, double *a, double *b, double *c, double *d, double *e, double *f)
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_NewImgeObj (FPDF_DOCUMENT document)
DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_LoadFromFile (FPDF_PAGE *pages, int nCount, FPDF_PAGEOBJECT image_object, FPDF_BYTESTRING filename)
DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_GetMatrix (FPDF_PAGEOBJECT image_object, double *a, double *b, double *c, double *d, double *e, double *f)
DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetMatrix (FPDF_PAGEOBJECT image_object, double a, double b, double c, double d, double e, double f)
DLLEXPORT FPDF_BITMAP STDCALL FPDFImageObj_GetBitmap (FPDF_PAGEOBJECT image_object)
DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap (FPDF_PAGE *pages, int nCount, FPDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap)
DLLEXPORT FPDF_LINK STDCALL FPDFLinkObj_NewLinkObj (FPDF_DOCUMENT document, int nsrcPageIndex, double lx, double ly, double ux, double uy)
DLLEXPORT FPDF_BOOL STDCALL FPDFLinkObj_DelLinkObj (FPDF_DOCUMENT document, FPDF_PAGE page, FPDF_LINK link)
DLLEXPORT FPDF_BOOL STDCALL FPDFLinkObj_SetAction (FPDF_DOCUMENT document, FPDF_LINK link, FPDF_ACTION action)
DLLEXPORT int STDCALL FPDFLinkObj_CountLink (FPDF_PAGE page)
DLLEXPORT FPDF_LINK STDCALL FPDFLinkObj_GetLink (FPDF_PAGE page, int index)
DLLEXPORT void STDCALL FPDFLinkObj_GetRect (FPDF_LINK link, double *left, double *top, double *right, double *bottom)
 _FPDFOBJECTEDIT_H_

Detailed Description

Header file for the object module - provides the interfaces for editing page objects.

(C) 2011 Foxit Corporation. All Rights Reserved. The following code is copyrighted and contains proprietary information and trade secrets of Foxit Corporation. Functions in this header file, require "object" module to be enabled in your SDK license.

Author:
Foxit Corporation
Note:
If you want to purchase Foxit PDF SDK license and use ANY of the following functions, please request for enabling object module explicitly.
Version:
3.1.1