| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef»_FPDFEDIT_H_ | 7 #ifndef _FPDFEDIT_H_ |
| 8 #define»_FPDFEDIT_H_ | 8 #define _FPDFEDIT_H_ |
| 9 | 9 |
| 10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
| 11 | 11 |
| 12 // Define all types used in the SDK. Note they can be simply regarded as opaque
pointers | 12 // Define all types used in the SDK. Note they can be simply regarded as opaque |
| 13 // pointers |
| 13 // or long integer numbers. | 14 // or long integer numbers. |
| 14 | 15 |
| 15 #define FPDF_ARGB(a,r,g,b)» » ((((FX_DWORD)(((FX_BYTE)(b)|((FX_WORD)((
FX_BYTE)(g))<<8))|(((FX_DWORD)(FX_BYTE)(r))<<16)))) | (((FX_DWORD)(FX_BYTE)(a))<
<24)) | 16 #define FPDF_ARGB(a, r, g, b) \ |
| 16 #define FPDF_GetBValue(argb) ((FX_BYTE)(argb)) | 17 ((((FX_DWORD)(((FX_BYTE)(b) | ((FX_WORD)((FX_BYTE)(g)) << 8)) | \ |
| 17 #define FPDF_GetGValue(argb) ((FX_BYTE)(((FX_WORD)(argb)) >> 8)) | 18 (((FX_DWORD)(FX_BYTE)(r)) << 16)))) | \ |
| 18 #define FPDF_GetRValue(argb) ((FX_BYTE)((argb)>>16)) | 19 (((FX_DWORD)(FX_BYTE)(a)) << 24)) |
| 19 #define FPDF_GetAValue(argb) ((FX_BYTE)((argb)>>24)) | 20 #define FPDF_GetBValue(argb) ((FX_BYTE)(argb)) |
| 21 #define FPDF_GetGValue(argb) ((FX_BYTE)(((FX_WORD)(argb)) >> 8)) |
| 22 #define FPDF_GetRValue(argb) ((FX_BYTE)((argb) >> 16)) |
| 23 #define FPDF_GetAValue(argb) ((FX_BYTE)((argb) >> 24)) |
| 20 | 24 |
| 21 #ifdef __cplusplus | 25 #ifdef __cplusplus |
| 22 extern "C" { | 26 extern "C" { |
| 23 #endif | 27 #endif |
| 24 | 28 |
| 25 ////////////////////////////////////////////////////////////////////// | 29 ////////////////////////////////////////////////////////////////////// |
| 26 // | 30 // |
| 27 // Document functions | 31 // Document functions |
| 28 // | 32 // |
| 29 ////////////////////////////////////////////////////////////////////// | 33 ////////////////////////////////////////////////////////////////////// |
| 30 | 34 |
| 31 // Function: FPDF_CreateNewDocument | 35 // Function: FPDF_CreateNewDocument |
| 32 // Create a new PDF document. | 36 // Create a new PDF document. |
| 33 // Parameters:» | 37 // Parameters: |
| 34 // None. | 38 // None. |
| 35 // Return value: | 39 // Return value: |
| 36 // A handle to a document. If failed, NULL is returned. | 40 // A handle to a document. If failed, NULL is returned. |
| 37 DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument(); | 41 DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument(); |
| 38 | 42 |
| 39 ////////////////////////////////////////////////////////////////////// | 43 ////////////////////////////////////////////////////////////////////// |
| 40 // | 44 // |
| 41 // Page functions | 45 // Page functions |
| 42 // | 46 // |
| 43 ////////////////////////////////////////////////////////////////////// | 47 ////////////////////////////////////////////////////////////////////// |
| 44 | 48 |
| 45 // Function: FPDFPage_New | 49 // Function: FPDFPage_New |
| 46 // Construct an empty page. | 50 // Construct an empty page. |
| 47 // Parameters:» | 51 // Parameters: |
| 48 //» » » document» -» Handle to document. Returned by
FPDF_LoadDocument and FPDF_CreateNewDocument. | 52 //» » » document» -» Handle to document. Returned by |
| 53 //FPDF_LoadDocument and FPDF_CreateNewDocument. |
| 49 // page_index - The index of a page. | 54 // page_index - The index of a page. |
| 50 // width - The page width. | 55 // width - The page width. |
| 51 // height - The page height. | 56 // height - The page height. |
| 52 // Return value: | 57 // Return value: |
| 53 // The handle to the page. | 58 // The handle to the page. |
| 54 // Comments: | 59 // Comments: |
| 55 // Loaded page can be deleted by FPDFPage_Delete. | 60 // Loaded page can be deleted by FPDFPage_Delete. |
| 56 DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New(FPDF_DOCUMENT document, int page_index,
double width, double height); | 61 DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New(FPDF_DOCUMENT document, |
| 62 int page_index, |
| 63 double width, |
| 64 double height); |
| 57 | 65 |
| 58 // Function: FPDFPage_Delete | 66 // Function: FPDFPage_Delete |
| 59 // Delete a PDF page. | 67 // Delete a PDF page. |
| 60 // Parameters:» | 68 // Parameters: |
| 61 //» » » document» -» Handle to document. Returned by
FPDF_LoadDocument and FPDF_CreateNewDocument. | 69 //» » » document» -» Handle to document. Returned by |
| 70 //FPDF_LoadDocument and FPDF_CreateNewDocument. |
| 62 // page_index - The index of a page. | 71 // page_index - The index of a page. |
| 63 // Return value: | 72 // Return value: |
| 64 // None. | 73 // None. |
| 65 DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index); | 74 DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index); |
| 66 | 75 |
| 67 // Function: FPDFPage_GetRotation | 76 // Function: FPDFPage_GetRotation |
| 68 //» » » Get the page rotation. One of following values will be r
eturned: 0(0), 1(90), 2(180), 3(270). | 77 //» » » Get the page rotation. One of following values will be |
| 69 // Parameters:» | 78 //returned: 0(0), 1(90), 2(180), 3(270). |
| 70 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 79 // Parameters: |
| 80 //» » » page» » -» Handle to a page. Returned by |
| 81 //FPDFPage_New or FPDF_LoadPage. |
| 71 // Return value: | 82 // Return value: |
| 72 // The PDF page rotation. | 83 // The PDF page rotation. |
| 73 // Comment: | 84 // Comment: |
| 74 // The PDF page rotation is rotated clockwise. | 85 // The PDF page rotation is rotated clockwise. |
| 75 DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page); | 86 DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page); |
| 76 | 87 |
| 77 // Function: FPDFPage_SetRotation | 88 // Function: FPDFPage_SetRotation |
| 78 //» » » Set page rotation. One of following values will be set:
0(0), 1(90), 2(180), 3(270). | 89 //» » » Set page rotation. One of following values will be set: |
| 79 // Parameters:» | 90 //0(0), 1(90), 2(180), 3(270). |
| 80 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 91 // Parameters: |
| 81 //» » » rotate» » -» The value of the PDF page rotati
on. | 92 //» » » page» » -» Handle to a page. Returned by |
| 93 //FPDFPage_New or FPDF_LoadPage. |
| 94 //» » » rotate» » -» The value of the PDF page |
| 95 //rotation. |
| 82 // Return value: | 96 // Return value: |
| 83 // None. | 97 // None. |
| 84 // Comment: | 98 // Comment: |
| 85 // The PDF page rotation is rotated clockwise. | 99 // The PDF page rotation is rotated clockwise. |
| 86 // | 100 // |
| 87 DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate); | 101 DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate); |
| 88 | 102 |
| 89 // Function: FPDFPage_InsertObject | 103 // Function: FPDFPage_InsertObject |
| 90 //» » » Insert an object to the page. The page object is automat
ically freed. | 104 //» » » Insert an object to the page. The page object is |
| 91 // Parameters:» | 105 //automatically freed. |
| 92 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 106 // Parameters: |
| 93 //» » » page_obj» -» Handle to a page object. Returne
d by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx and | 107 //» » » page» » -» Handle to a page. Returned by |
| 108 //FPDFPage_New or FPDF_LoadPage. |
| 109 //» » » page_obj» -» Handle to a page object. Returne
d by |
| 110 //FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx and |
| 94 // FPDFPageObj_NewPathObj. | 111 // FPDFPageObj_NewPathObj. |
| 95 // Return value: | 112 // Return value: |
| 96 // None. | 113 // None. |
| 97 DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT pag
e_obj); | 114 DLLEXPORT void STDCALL |
| 115 FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT page_obj); |
| 98 | 116 |
| 99 // Function: FPDFPage_CountObject | 117 // Function: FPDFPage_CountObject |
| 100 // Get number of page objects inside the page. | 118 // Get number of page objects inside the page. |
| 101 // Parameters:» | 119 // Parameters: |
| 102 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 120 //» » » page» » -» Handle to a page. Returned by |
| 121 //FPDFPage_New or FPDF_LoadPage. |
| 103 // Return value: | 122 // Return value: |
| 104 // The number of the page object. | 123 // The number of the page object. |
| 105 DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page); | 124 DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page); |
| 106 | 125 |
| 107 // Function: FPDFPage_GetObject | 126 // Function: FPDFPage_GetObject |
| 108 // Get page object by index. | 127 // Get page object by index. |
| 109 // Parameters:» | 128 // Parameters: |
| 110 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 129 //» » » page» » -» Handle to a page. Returned by |
| 130 //FPDFPage_New or FPDF_LoadPage. |
| 111 // index - The index of a page object. | 131 // index - The index of a page object. |
| 112 // Return value: | 132 // Return value: |
| 113 // The handle of the page object. Null for failed. | 133 // The handle of the page object. Null for failed. |
| 114 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page, int index); | 134 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page, int index); |
| 115 | 135 |
| 116 // Function: FPDFPage_HasTransparency | 136 // Function: FPDFPage_HasTransparency |
| 117 //» » » Check that whether the content of specified PDF page con
tains transparency. | 137 //» » » Check that whether the content of specified PDF page |
| 118 // Parameters:» | 138 //contains transparency. |
| 119 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 139 // Parameters: |
| 140 //» » » page» » -» Handle to a page. Returned by |
| 141 //FPDFPage_New or FPDF_LoadPage. |
| 120 // Return value: | 142 // Return value: |
| 121 // TRUE means that the PDF page does contains transparency. | 143 // TRUE means that the PDF page does contains transparency. |
| 122 // Otherwise, returns FALSE. | 144 // Otherwise, returns FALSE. |
| 123 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page); | 145 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page); |
| 124 | 146 |
| 125 // Function: FPDFPage_GenerateContent | 147 // Function: FPDFPage_GenerateContent |
| 126 // Generate PDF Page content. | 148 // Generate PDF Page content. |
| 127 // Parameters:» | 149 // Parameters: |
| 128 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 150 //» » » page» » -» Handle to a page. Returned by |
| 151 //FPDFPage_New or FPDF_LoadPage. |
| 129 // Return value: | 152 // Return value: |
| 130 // True if successful, false otherwise. | 153 // True if successful, false otherwise. |
| 131 // Comment: | 154 // Comment: |
| 132 //» » » Before you save the page to a file, or reload the page,
you must call the FPDFPage_GenerateContent function. | 155 //» » » Before you save the page to a file, or reload the page,
you |
| 156 //must call the FPDFPage_GenerateContent function. |
| 133 // Or the changed information will be lost. | 157 // Or the changed information will be lost. |
| 134 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page); | 158 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page); |
| 135 | 159 |
| 136 ////////////////////////////////////////////////////////////////////// | 160 ////////////////////////////////////////////////////////////////////// |
| 137 // | 161 // |
| 138 // Page Object functions | 162 // Page Object functions |
| 139 // | 163 // |
| 140 ////////////////////////////////////////////////////////////////////// | 164 ////////////////////////////////////////////////////////////////////// |
| 141 | 165 |
| 142 // Function: FPDFPageObj_HasTransparency | 166 // Function: FPDFPageObj_HasTransparency |
| 143 //» » » Check that whether the specified PDF page object contain
s transparency. | 167 //» » » Check that whether the specified PDF page object contain
s |
| 144 // Parameters:» | 168 //transparency. |
| 169 // Parameters: |
| 145 // pageObject - Handle to a page object. | 170 // pageObject - Handle to a page object. |
| 146 // Return value: | 171 // Return value: |
| 147 //» » » TRUE means that the PDF page object does contains transp
arency. | 172 //» » » TRUE means that the PDF page object does contains |
| 173 //transparency. |
| 148 // Otherwise, returns FALSE. | 174 // Otherwise, returns FALSE. |
| 149 DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObje
ct); | 175 DLLEXPORT FPDF_BOOL STDCALL |
| 176 FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObject); |
| 150 | 177 |
| 151 // Function: FPDFPageObj_Transform | 178 // Function: FPDFPageObj_Transform |
| 152 // Transform (scale, rotate, shear, move) page object. | 179 // Transform (scale, rotate, shear, move) page object. |
| 153 // Parameters:» | 180 // Parameters: |
| 154 //» » » page_object» -» Handle to a page object. Returne
d by FPDFPageObj_NewImageObj. | 181 //» » » page_object» -» Handle to a page object. Returne
d by |
| 155 //» » » a» » » -» The coefficient "a" of t
he matrix. | 182 //FPDFPageObj_NewImageObj. |
| 156 //» » » b» » » -» The» coefficient "b"
of the matrix. | 183 //» » » a» » » -» The coefficient "a" of t
he |
| 157 //» » » c» » » -» The coefficient "c" of t
he matrix. | 184 //matrix. |
| 158 //» » » d» » » -» The coefficient "d" of t
he matrix. | 185 //» » » b» » » -» The» coefficient "b"
of the |
| 159 //» » » e» » » -» The coefficient "e" of t
he matrix. | 186 //matrix. |
| 160 //» » » f» » » -» The coefficient "f" of t
he matrix. | 187 //» » » c» » » -» The coefficient "c" of t
he |
| 188 //matrix. |
| 189 //» » » d» » » -» The coefficient "d" of t
he |
| 190 //matrix. |
| 191 //» » » e» » » -» The coefficient "e" of t
he |
| 192 //matrix. |
| 193 //» » » f» » » -» The coefficient "f" of t
he |
| 194 //matrix. |
| 161 // Return value: | 195 // Return value: |
| 162 // None. | 196 // None. |
| 163 DLLEXPORT void STDCALL FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object, | 197 DLLEXPORT void STDCALL FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object, |
| 164 » » » » » » » double a, double b, doub
le c, double d, double e, double f); | 198 double a, |
| 199 double b, |
| 200 double c, |
| 201 double d, |
| 202 double e, |
| 203 double f); |
| 165 | 204 |
| 166 // Function: FPDFPage_TransformAnnots | 205 // Function: FPDFPage_TransformAnnots |
| 167 //» » » Transform (scale, rotate, shear, move) all annots in a p
age. | 206 //» » » Transform (scale, rotate, shear, move) all annots in a |
| 168 // Parameters:» | 207 //page. |
| 208 // Parameters: |
| 169 // page - Handle to a page. | 209 // page - Handle to a page. |
| 170 //» » » a» » » -» The coefficient "a" of t
he matrix. | 210 //» » » a» » » -» The coefficient "a" of t
he |
| 171 //» » » b» » » -» The» coefficient "b"
of the matrix. | 211 //matrix. |
| 172 //» » » c» » » -» The coefficient "c" of t
he matrix. | 212 //» » » b» » » -» The» coefficient "b"
of the |
| 173 //» » » d» » » -» The coefficient "d" of t
he matrix. | 213 //matrix. |
| 174 //» » » e» » » -» The coefficient "e" of t
he matrix. | 214 //» » » c» » » -» The coefficient "c" of t
he |
| 175 //» » » f» » » -» The coefficient "f" of t
he matrix. | 215 //matrix. |
| 216 //» » » d» » » -» The coefficient "d" of t
he |
| 217 //matrix. |
| 218 //» » » e» » » -» The coefficient "e" of t
he |
| 219 //matrix. |
| 220 //» » » f» » » -» The coefficient "f" of t
he |
| 221 //matrix. |
| 176 // Return value: | 222 // Return value: |
| 177 // None. | 223 // None. |
| 178 DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page, | 224 DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page, |
| 179 » » » » » » » » » »
» double a, double b, double c, double d, double e, double f); | 225 double a, |
| 226 double b, |
| 227 double c, |
| 228 double d, |
| 229 double e, |
| 230 double f); |
| 180 | 231 |
| 181 // The page object constants. | 232 // The page object constants. |
| 182 #define FPDF_PAGEOBJ_TEXT» » 1 | 233 #define FPDF_PAGEOBJ_TEXT 1 |
| 183 #define FPDF_PAGEOBJ_PATH» » 2 | 234 #define FPDF_PAGEOBJ_PATH 2 |
| 184 #define FPDF_PAGEOBJ_IMAGE» » 3 | 235 #define FPDF_PAGEOBJ_IMAGE 3 |
| 185 #define FPDF_PAGEOBJ_SHADING» 4 | 236 #define FPDF_PAGEOBJ_SHADING 4 |
| 186 #define FPDF_PAGEOBJ_FORM» » 5 | 237 #define FPDF_PAGEOBJ_FORM 5 |
| 187 | 238 |
| 188 ////////////////////////////////////////////////////////////////////// | 239 ////////////////////////////////////////////////////////////////////// |
| 189 // | 240 // |
| 190 // Image functions | 241 // Image functions |
| 191 // | 242 // |
| 192 ////////////////////////////////////////////////////////////////////// | 243 ////////////////////////////////////////////////////////////////////// |
| 193 | 244 |
| 194 // Function: FPDFPageObj_NewImgeObj | 245 // Function: FPDFPageObj_NewImgeObj |
| 195 // Create a new Image Object. | 246 // Create a new Image Object. |
| 196 // Parameters: | 247 // Parameters: |
| 197 //» » » document» » -» Handle to document. Retu
rned by FPDF_LoadDocument or FPDF_CreateNewDocument function. | 248 //» » » document» » -» Handle to document. Retu
rned by |
| 249 //FPDF_LoadDocument or FPDF_CreateNewDocument function. |
| 198 // Return Value: | 250 // Return Value: |
| 199 // Handle of image object. | 251 // Handle of image object. |
| 200 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_NewImgeObj(FPDF_DOCUMENT document)
; | 252 DLLEXPORT FPDF_PAGEOBJECT STDCALL |
| 201 | 253 FPDFPageObj_NewImgeObj(FPDF_DOCUMENT document); |
| 202 | 254 |
| 203 // Function: FPDFImageObj_LoadJpegFile | 255 // Function: FPDFImageObj_LoadJpegFile |
| 204 //» » » Load Image from a JPEG image file and then set it to an
image object. | 256 //» » » Load Image from a JPEG image file and then set it to an |
| 257 //image object. |
| 205 // Parameters: | 258 // Parameters: |
| 206 //» » » pages» » » -» Pointers to the start of
all loaded pages, could be NULL. | 259 //» » » pages» » » -» Pointers to the start of
all |
| 207 //» » » nCount» » » -» Number of pages, could b
e 0. | 260 //loaded pages, could be NULL. |
| 208 //» » » image_object» -» Handle of image object returned
by FPDFPageObj_NewImgeObj. | 261 //» » » nCount» » » -» Number of pages, could b
e |
| 209 //» » » fileAccess» » -» The custom file access h
andler, which specifies the JPEG image file. | 262 //0. |
| 263 //» » » image_object» -» Handle of image object returned
by |
| 264 //FPDFPageObj_NewImgeObj. |
| 265 //» » » fileAccess» » -» The custom file access h
andler, |
| 266 //which specifies the JPEG image file. |
| 210 // Return Value: | 267 // Return Value: |
| 211 // TRUE if successful, FALSE otherwise. | 268 // TRUE if successful, FALSE otherwise. |
| 212 // Note: | 269 // Note: |
| 213 //» » » The image object might already has an associated image,
which is shared and cached by the loaded pages, In this case, we need to clear t
he cache of image for all the loaded pages. | 270 //» » » The image object might already has an associated image, |
| 214 //» » » Pass pages and count to this API to clear the image cach
e. | 271 //which is shared and cached by the loaded pages, In this case, we need to clear |
| 215 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, int nCou
nt,FPDF_PAGEOBJECT image_object, FPDF_FILEACCESS* fileAccess); | 272 //the cache of image for all the loaded pages. |
| 216 | 273 //» » » Pass pages and count to this API to clear the image |
| 274 //cache. |
| 275 DLLEXPORT FPDF_BOOL STDCALL |
| 276 FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, |
| 277 int nCount, |
| 278 FPDF_PAGEOBJECT image_object, |
| 279 FPDF_FILEACCESS* fileAccess); |
| 217 | 280 |
| 218 // Function: FPDFImageObj_SetMatrix | 281 // Function: FPDFImageObj_SetMatrix |
| 219 // Set the matrix of an image object. | 282 // Set the matrix of an image object. |
| 220 // Parameters: | 283 // Parameters: |
| 221 //» » » image_object» -» Handle of image object returned
by FPDFPageObj_NewImgeObj. | 284 //» » » image_object» -» Handle of image object returned
by |
| 222 //» » » a» » » » -» The coefficient
"a" of the matrix. | 285 //FPDFPageObj_NewImgeObj. |
| 223 //» » » b» » » » -» The coefficient
"b" of the matrix. | 286 //» » » a» » » » -» The coefficient
"a" of the |
| 224 //» » » c» » » » -» The coefficient
"c" of the matrix. | 287 //matrix. |
| 225 //» » » d» » » » -» The coefficient
"d" of the matrix. | 288 //» » » b» » » » -» The coefficient
"b" of the |
| 226 //» » » e» » » » -» The coefficient
"e" of the matrix. | 289 //matrix. |
| 227 //» » » f» » » » -» The coefficient
"f" of the matrix. | 290 //» » » c» » » » -» The coefficient
"c" of the |
| 291 //matrix. |
| 292 //» » » d» » » » -» The coefficient
"d" of the |
| 293 //matrix. |
| 294 //» » » e» » » » -» The coefficient
"e" of the |
| 295 //matrix. |
| 296 //» » » f» » » » -» The coefficient
"f" of the |
| 297 //matrix. |
| 228 // Return value: | 298 // Return value: |
| 229 //» » » TRUE if successful, FALSE otherwise. | 299 //» » » TRUE if successful, FALSE otherwise. |
| 230 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetMatrix(FPDF_PAGEOBJECT image_object, | 300 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetMatrix(FPDF_PAGEOBJECT image_object, |
| 231 » » » » » » » » » »
» double a, double b, double c, double d, double e, double f); | 301 double a, |
| 302 double b, |
| 303 double c, |
| 304 double d, |
| 305 double e, |
| 306 double f); |
| 232 | 307 |
| 233 // Function: FPDFImageObj_SetBitmap | 308 // Function: FPDFImageObj_SetBitmap |
| 234 // Set the bitmap to an image object. | 309 // Set the bitmap to an image object. |
| 235 // Parameters: | 310 // Parameters: |
| 236 //» » » pages» » » -» Pointer's to the start o
f all loaded pages. | 311 //» » » pages» » » -» Pointer's to the start o
f all |
| 312 //loaded pages. |
| 237 // nCount - Number of pages. | 313 // nCount - Number of pages. |
| 238 //» » » image_object» -» Handle of image object returned
by FPDFPageObj_NewImgeObj. | 314 //» » » image_object» -» Handle of image object returned
by |
| 239 //» » » bitmap» » » -» The handle of the bitmap
which you want to set it to the image object. | 315 //FPDFPageObj_NewImgeObj. |
| 316 //» » » bitmap» » » -» The handle of the bitmap |
| 317 //which you want to set it to the image object. |
| 240 // Return value: | 318 // Return value: |
| 241 //» » » TRUE if successful, FALSE otherwise. | 319 //» » » TRUE if successful, FALSE otherwise. |
| 242 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,int nCount,F
PDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap); | 320 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages, |
| 321 int nCount, |
| 322 FPDF_PAGEOBJECT image_object, |
| 323 FPDF_BITMAP bitmap); |
| 243 | 324 |
| 244 #ifdef __cplusplus | 325 #ifdef __cplusplus |
| 245 } | 326 } |
| 246 #endif | 327 #endif |
| 247 #endif // _FPDFEDIT_H_ | 328 #endif // _FPDFEDIT_H_ |
| OLD | NEW |