Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: public/fpdf_edit.h

Issue 1140653004: Merge to XFA: Tidy public/ directory. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/fpdf_doc.h ('k') | public/fpdf_ext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 PUBLIC_FPDF_EDIT_H_
8 #define»_FPDFEDIT_H_ 8 #define PUBLIC_FPDF_EDIT_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 pointers
13 // or long integer numbers. 13 // or long integer numbers.
14 14
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)) 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_GetBValue(argb) ((FX_BYTE)(argb)) 16 #define FPDF_GetBValue(argb) ((FX_BYTE)(argb))
17 #define FPDF_GetGValue(argb) ((FX_BYTE)(((FX_WORD)(argb)) >> 8)) 17 #define FPDF_GetGValue(argb) ((FX_BYTE)(((FX_WORD)(argb)) >> 8))
18 #define FPDF_GetRValue(argb) ((FX_BYTE)((argb)>>16)) 18 #define FPDF_GetRValue(argb) ((FX_BYTE)((argb)>>16))
19 #define FPDF_GetAValue(argb) ((FX_BYTE)((argb)>>24)) 19 #define FPDF_GetAValue(argb) ((FX_BYTE)((argb)>>24))
20 20
21 #ifdef __cplusplus 21 #ifdef __cplusplus
22 extern "C" { 22 extern "C" {
23 #endif 23 #endif
24 24
25 ////////////////////////////////////////////////////////////////////// 25 //////////////////////////////////////////////////////////////////////
26 // 26 //
27 // Document functions 27 // Document functions
28 // 28 //
29 ////////////////////////////////////////////////////////////////////// 29 //////////////////////////////////////////////////////////////////////
30 30
31 // Function: FPDF_CreateNewDocument 31 // Function: FPDF_CreateNewDocument
32 //» » » Create a new PDF document. 32 // Create a new PDF document.
33 // Parameters:» 33 // Parameters:
34 //» » » None. 34 // None.
35 // Return value: 35 // Return value:
36 //» » » A handle to a document. If failed, NULL is returned. 36 // A handle to a document. If failed, NULL is returned.
37 // 37 //
38 DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument(); 38 DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument();
39 39
40 ////////////////////////////////////////////////////////////////////// 40 //////////////////////////////////////////////////////////////////////
41 // 41 //
42 // Page functions 42 // Page functions
43 // 43 //
44 ////////////////////////////////////////////////////////////////////// 44 //////////////////////////////////////////////////////////////////////
45 45
46 // Function: FPDFPage_New 46 // Function: FPDFPage_New
47 //» » » Construct an empty page. 47 // Construct an empty page.
48 // Parameters:» 48 // Parameters:
49 //» » » document» -» Handle to document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument. 49 // document - Handle to document. Returned by FPDF_LoadDocument an d FPDF_CreateNewDocument.
50 //» » » page_index» -» The index of a page. 50 // page_index - The index of a page.
51 //» » » width» » -» The page width. 51 // width - The page width.
52 //» » » height» » -» The page height. 52 // height - The page height.
53 // Return value: 53 // Return value:
54 //» » » The handle to the page. 54 // The handle to the page.
55 // Comments: 55 // Comments:
56 //» » » Loaded page can be deleted by FPDFPage_Delete. 56 // Loaded page can be deleted by FPDFPage_Delete.
57 // Notes: 57 // Notes:
58 //» » » The method can not support to create a new page for the document consists of dynamic XFA fields. 58 // The method can not support to create a new page for the document con sists of dynamic XFA fields.
59 // 59 //
60 DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New(FPDF_DOCUMENT document, int page_index, double width, double height); 60 DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New(FPDF_DOCUMENT document, int page_index, double width, double height);
61 61
62 // Function: FPDFPage_Delete 62 // Function: FPDFPage_Delete
63 //» » » Delete a PDF page. 63 // Delete a PDF page.
64 // Parameters:» 64 // Parameters:
65 //» » » document» -» Handle to document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument. 65 // document - Handle to document. Returned by FPDF_LoadDocument an d FPDF_CreateNewDocument.
66 //» » » page_index» -» The index of a page. 66 // page_index - The index of a page.
67 // Return value: 67 // Return value:
68 //» » » None. 68 // None.
69 // Notes: 69 // Notes:
70 //» » » The method can not support to delete page for the docume nt consists of dynamic XFA fields. 70 // The method can not support to delete page for the document consists of dynamic XFA fields.
71 // 71 //
72 DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index); 72 DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index);
73 73
74 // Function: FPDFPage_GetRotation 74 // Function: FPDFPage_GetRotation
75 //» » » Get the page rotation. One of following values will be r eturned: 0(0), 1(90), 2(180), 3(270). 75 // Get the page rotation. One of following values will be returned: 0(0 ), 1(90), 2(180), 3(270).
76 // Parameters:» 76 // Parameters:
77 //» » » page» » -» Handle to a page. Returned by FP DFPage_New or FPDF_LoadPage. 77 // page - Handle to a page. Returned by FPDFPage_New or FPDF_L oadPage.
78 // Return value: 78 // Return value:
79 //» » » The PDF page rotation. 79 // The PDF page rotation.
80 // Comment: 80 // Comment:
81 //» » » The PDF page rotation is rotated clockwise. 81 // The PDF page rotation is rotated clockwise.
82 // Notes: 82 // Notes:
83 //» » » The method can not support to get the page rotate for th e document consists of dynamic XFA fields. 83 // The method can not support to get the page rotate for the document c onsists of dynamic XFA fields.
84 // 84 //
85 DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page); 85 DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page);
86 86
87 // Function: FPDFPage_SetRotation 87 // Function: FPDFPage_SetRotation
88 //» » » Set page rotation. One of following values will be set: 0(0), 1(90), 2(180), 3(270). 88 // Set page rotation. One of following values will be set: 0(0), 1(90), 2(180), 3(270).
89 // Parameters:» 89 // Parameters:
90 //» » » page» » -» Handle to a page. Returned by FP DFPage_New or FPDF_LoadPage. 90 // page - Handle to a page. Returned by FPDFPage_New or FPDF_L oadPage.
91 //» » » rotate» » -» The value of the PDF page rotati on. 91 // rotate - The value of the PDF page rotation.
92 // Return value: 92 // Return value:
93 //» » » None. 93 // None.
94 // Comment: 94 // Comment:
95 //» » » The PDF page rotation is rotated clockwise. 95 // The PDF page rotation is rotated clockwise.
96 // Notes: 96 // Notes:
97 //» » » The method can not support to set this feature for the d ocument consists of dynamic XFA fields. 97 // The method can not support to set this feature for the document cons ists of dynamic XFA fields.
98 // 98 //
99 DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate); 99 DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate);
100 100
101 // Function: FPDFPage_InsertObject 101 // Function: FPDFPage_InsertObject
102 //» » » Insert an object to the page. The page object is automat ically freed. 102 // Insert an object to the page. The page object is automatically freed .
103 // Parameters:» 103 // Parameters:
104 //» » » page» » -» Handle to a page. Returned by FP DFPage_New or FPDF_LoadPage. 104 // page - Handle to a page. Returned by FPDFPage_New or FPDF_L oadPage.
105 //» » » page_obj» -» Handle to a page object. Returne d by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx and 105 // page_obj - Handle to a page object. Returned by FPDFPageObj_New TextObj,FPDFPageObj_NewTextObjEx and
106 //» » » » » » » FPDFPageObj_NewPathObj. 106 // FPDFPageObj_NewPathObj.
107 // Return value: 107 // Return value:
108 //» » » None. 108 // None.
109 // Notes: 109 // Notes:
110 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 110 // The method can not support this feature for the document consists of dynamic XFA fields.
111 // 111 //
112 DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT pag e_obj); 112 DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT pag e_obj);
113 113
114 // Function: FPDFPage_CountObject 114 // Function: FPDFPage_CountObject
115 //» » » Get number of page objects inside the page. 115 // Get number of page objects inside the page.
116 // Parameters:» 116 // Parameters:
117 //» » » page» » -» Handle to a page. Returned by FP DFPage_New or FPDF_LoadPage. 117 // page - Handle to a page. Returned by FPDFPage_New or FPDF_L oadPage.
118 // Return value: 118 // Return value:
119 //» » » The number of the page object. 119 // The number of the page object.
120 // Notes: 120 // Notes:
121 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 121 // The method can not support this feature for the document consists of dynamic XFA fields.
122 // 122 //
123 DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page); 123 DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page);
124 124
125 // Function: FPDFPage_GetObject 125 // Function: FPDFPage_GetObject
126 //» » » Get page object by index. 126 // Get page object by index.
127 // Parameters:» 127 // Parameters:
128 //» » » page» » -» Handle to a page. Returned by FP DFPage_New or FPDF_LoadPage. 128 // page - Handle to a page. Returned by FPDFPage_New or FPDF_L oadPage.
129 //» » » index» » -» The index of a page object. 129 // index - The index of a page object.
130 // Return value: 130 // Return value:
131 //» » » The handle of the page object. Null for failed. 131 // The handle of the page object. Null for failed.
132 // Notes: 132 // Notes:
133 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 133 // The method can not support this feature for the document consists of dynamic XFA fields.
134 // 134 //
135 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page, int index); 135 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page, int index);
136 136
137 // Function: FPDFPage_HasTransparency 137 // Function: FPDFPage_HasTransparency
138 //» » » Check that whether the content of specified PDF page con tains transparency. 138 // Check that whether the content of specified PDF page contains transp arency.
139 // Parameters:» 139 // Parameters:
140 //» » » page» » -» Handle to a page. Returned by FP DFPage_New or FPDF_LoadPage. 140 // page - Handle to a page. Returned by FPDFPage_New or FPDF_L oadPage.
141 // Return value: 141 // Return value:
142 //» » » TRUE means that the PDF page does contains transparency. 142 // TRUE means that the PDF page does contains transparency.
143 //» » » Otherwise, returns FALSE. 143 // Otherwise, returns FALSE.
144 // Notes: 144 // Notes:
145 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 145 // The method can not support this feature for the document consists of dynamic XFA fields.
146 // 146 //
147 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page); 147 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page);
148 148
149 // Function: FPDFPage_GenerateContent 149 // Function: FPDFPage_GenerateContent
150 //» » » Generate PDF Page content. 150 // Generate PDF Page content.
151 // Parameters:» 151 // Parameters:
152 //» » » page» » -» Handle to a page. Returned by FP DFPage_New or FPDF_LoadPage. 152 // page - Handle to a page. Returned by FPDFPage_New or FPDF_L oadPage.
153 // Return value: 153 // Return value:
154 //» » » True if successful, false otherwise. 154 // True if successful, false otherwise.
155 // Comment: 155 // Comment:
156 //» » » Before you save the page to a file, or reload the page, you must call the FPDFPage_GenerateContent function. 156 // Before you save the page to a file, or reload the page, you must cal l the FPDFPage_GenerateContent function.
157 //» » » Or the changed information will be lost. 157 // Or the changed information will be lost.
158 // Notes: 158 // Notes:
159 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 159 // The method can not support this feature for the document consists of dynamic XFA fields.
160 // 160 //
161 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page); 161 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page);
162 162
163 ////////////////////////////////////////////////////////////////////// 163 //////////////////////////////////////////////////////////////////////
164 // 164 //
165 // Page Object functions 165 // Page Object functions
166 // 166 //
167 ////////////////////////////////////////////////////////////////////// 167 //////////////////////////////////////////////////////////////////////
168 168
169 // Function: FPDFPageObj_HasTransparency 169 // Function: FPDFPageObj_HasTransparency
170 //» » » Check that whether the specified PDF page object contain s transparency. 170 // Check that whether the specified PDF page object contains transparen cy.
171 // Parameters:» 171 // Parameters:
172 //» » » pageObject» -» Handle to a page object. 172 // pageObject - Handle to a page object.
173 // Return value: 173 // Return value:
174 //» » » TRUE means that the PDF page object does contains transp arency. 174 // TRUE means that the PDF page object does contains transparency.
175 //» » » Otherwise, returns FALSE. 175 // Otherwise, returns FALSE.
176 DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObje ct); 176 DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObje ct);
177 177
178 // Function: FPDFPageObj_Transform 178 // Function: FPDFPageObj_Transform
179 //» » » Transform (scale, rotate, shear, move) page object. 179 // Transform (scale, rotate, shear, move) page object.
180 // Parameters:» 180 // Parameters:
181 //» » » page_object» -» Handle to a page object. Returne d by FPDFPageObj_NewImageObj. 181 // page_object - Handle to a page object. Returned by FPDFPageObj_New ImageObj.
182 //» » » a» » » -» The coefficient "a" of t he matrix. 182 // a - The coefficient "a" of the matrix.
183 //» » » b» » » -» The» coefficient "b" of the matrix. 183 // b - The coefficient "b" of the matrix.
184 //» » » c» » » -» The coefficient "c" of t he matrix. 184 // c - The coefficient "c" of the matrix.
185 //» » » d» » » -» The coefficient "d" of t he matrix. 185 // d - The coefficient "d" of the matrix.
186 //» » » e» » » -» The coefficient "e" of t he matrix. 186 // e - The coefficient "e" of the matrix.
187 //» » » f» » » -» The coefficient "f" of t he matrix. 187 // f - The coefficient "f" of the matrix.
188 // Return value: 188 // Return value:
189 //» » » None. 189 // None.
190 DLLEXPORT void STDCALL FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object, 190 DLLEXPORT void STDCALL FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object,
191 » » » » » » » double a, double b, doub le c, double d, double e, double f); 191 double a, double b, double c, double d, double e, do uble f);
192 192
193 // Function: FPDFPage_TransformAnnots 193 // Function: FPDFPage_TransformAnnots
194 //» » » Transform (scale, rotate, shear, move) all annots in a p age. 194 // Transform (scale, rotate, shear, move) all annots in a page.
195 // Parameters:» 195 // Parameters:
196 //» » » page» » -» Handle to a page. 196 // page - Handle to a page.
197 //» » » a» » » -» The coefficient "a" of t he matrix. 197 // a - The coefficient "a" of the matrix.
198 //» » » b» » » -» The» coefficient "b" of the matrix. 198 // b - The coefficient "b" of the matrix.
199 //» » » c» » » -» The coefficient "c" of t he matrix. 199 // c - The coefficient "c" of the matrix.
200 //» » » d» » » -» The coefficient "d" of t he matrix. 200 // d - The coefficient "d" of the matrix.
201 //» » » e» » » -» The coefficient "e" of t he matrix. 201 // e - The coefficient "e" of the matrix.
202 //» » » f» » » -» The coefficient "f" of t he matrix. 202 // f - The coefficient "f" of the matrix.
203 // Return value: 203 // Return value:
204 //» » » None. 204 // None.
205 // Notes: 205 // Notes:
206 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 206 // The method can not support this feature for the document consists of dynamic XFA fields.
207 DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page, 207 DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page,
208 » » » » » » » » » » » double a, double b, double c, double d, double e, double f); 208 double a, double b, double c, doubl e d, double e, double f);
209 209
210 // The page object constants. 210 // The page object constants.
211 #define FPDF_PAGEOBJ_TEXT» » 1 211 #define FPDF_PAGEOBJ_TEXT 1
212 #define FPDF_PAGEOBJ_PATH» » 2 212 #define FPDF_PAGEOBJ_PATH 2
213 #define FPDF_PAGEOBJ_IMAGE» » 3 213 #define FPDF_PAGEOBJ_IMAGE 3
214 #define FPDF_PAGEOBJ_SHADING» 4 214 #define FPDF_PAGEOBJ_SHADING 4
215 #define FPDF_PAGEOBJ_FORM» » 5 215 #define FPDF_PAGEOBJ_FORM 5
216 216
217 ////////////////////////////////////////////////////////////////////// 217 //////////////////////////////////////////////////////////////////////
218 // 218 //
219 // Image functions 219 // Image functions
220 // 220 //
221 ////////////////////////////////////////////////////////////////////// 221 //////////////////////////////////////////////////////////////////////
222 222
223 // Function: FPDFPageObj_NewImgeObj 223 // Function: FPDFPageObj_NewImgeObj
224 //» » » Create a new Image Object. 224 // Create a new Image Object.
225 // Parameters: 225 // Parameters:
226 //» » » document» » -» Handle to document. Retu rned by FPDF_LoadDocument or FPDF_CreateNewDocument function. 226 // document - Handle to document. Returned by FPDF_LoadDocumen t or FPDF_CreateNewDocument function.
227 // Return Value: 227 // Return Value:
228 //» » » Handle of image object. 228 // Handle of image object.
229 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_NewImgeObj(FPDF_DOCUMENT document) ; 229 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPageObj_NewImgeObj(FPDF_DOCUMENT document) ;
230 230
231 231
232 // Function: FPDFImageObj_LoadJpegFile 232 // Function: FPDFImageObj_LoadJpegFile
233 //» » » Load Image from a JPEG image file and then set it to an image object. 233 // Load Image from a JPEG image file and then set it to an image object .
234 // Parameters: 234 // Parameters:
235 //» » » pages» » » -» Pointers to the start of all loaded pages, could be NULL. 235 // pages - Pointers to the start of all loaded pages, could be NULL.
236 //» » » nCount» » » -» Number of pages, could b e 0. 236 // nCount - Number of pages, could be 0.
237 //» » » image_object» -» Handle of image object returned by FPDFPageObj_NewImgeObj. 237 // image_object - Handle of image object returned by FPDFPageObj_N ewImgeObj.
238 //» » » fileAccess» » -» The custom file access h andler, which specifies the JPEG image file. 238 // fileAccess - The custom file access handler, which specifies the JPEG image file.
239 //» Return Value: 239 // Return Value:
240 //» » » TRUE if successful, FALSE otherwise. 240 // TRUE if successful, FALSE otherwise.
241 // Note: 241 // Note:
242 //» » » 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. 242 // The image object might already has an associated image, which is sha red and cached by the loaded pages, In this case, we need to clear the cache of image for all the loaded pages.
243 //» » » Pass pages and count to this API to clear the image cach e. 243 // Pass pages and count to this API to clear the image cache.
244 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 244 // The method can not support this feature for the document consists of dynamic XFA fields.
245 // 245 //
246 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, int nCou nt,FPDF_PAGEOBJECT image_object, FPDF_FILEACCESS* fileAccess); 246 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, int nCou nt,FPDF_PAGEOBJECT image_object, FPDF_FILEACCESS* fileAccess);
247 247
248 248
249 // Function: FPDFImageObj_SetMatrix 249 // Function: FPDFImageObj_SetMatrix
250 //» » » Set the matrix of an image object. 250 // Set the matrix of an image object.
251 // Parameters: 251 // Parameters:
252 //» » » image_object» -» Handle of image object returned by FPDFPageObj_NewImgeObj. 252 // image_object - Handle of image object returned by FPDFPageObj_N ewImgeObj.
253 //» » » a» » » » -» The coefficient "a" of the matrix. 253 // a - The coefficient "a" of the matrix.
254 //» » » b» » » » -» The coefficient "b" of the matrix. 254 // b - The coefficient "b" of the matrix.
255 //» » » c» » » » -» The coefficient "c" of the matrix. 255 // c - The coefficient "c" of the matrix.
256 //» » » d» » » » -» The coefficient "d" of the matrix. 256 // d - The coefficient "d" of the matrix.
257 //» » » e» » » » -» The coefficient "e" of the matrix. 257 // e - The coefficient "e" of the matrix.
258 //» » » f» » » » -» The coefficient "f" of the matrix. 258 // f - The coefficient "f" of the matrix.
259 // Return value: 259 // Return value:
260 //» » » TRUE if successful, FALSE otherwise. 260 // TRUE if successful, FALSE otherwise.
261 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetMatrix(FPDF_PAGEOBJECT image_object, 261 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetMatrix(FPDF_PAGEOBJECT image_object,
262 » » » » » » » » » » » double a, double b, double c, double d, double e, double f); 262 double a, double b, double c, doubl e d, double e, double f);
263 263
264 // Function: FPDFImageObj_SetBitmap 264 // Function: FPDFImageObj_SetBitmap
265 //» » » Set the bitmap to an image object. 265 // Set the bitmap to an image object.
266 // Parameters: 266 // Parameters:
267 //» » » pages» » » -» Pointer's to the start o f all loaded pages. 267 // pages - Pointer's to the start of all loaded pages.
268 //» » » nCount» » » -» Number of pages. 268 // nCount - Number of pages.
269 //» » » image_object» -» Handle of image object returned by FPDFPageObj_NewImgeObj. 269 // image_object - Handle of image object returned by FPDFPageObj_N ewImgeObj.
270 //» » » bitmap» » » -» The handle of the bitmap which you want to set it to the image object. 270 // bitmap - The handle of the bitmap which you want to set i t to the image object.
271 // Return value: 271 // Return value:
272 //» » » TRUE if successful, FALSE otherwise. 272 // TRUE if successful, FALSE otherwise.
273 // Notes; 273 // Notes;
274 //» » » The method can not support this feature for the document consists of dynamic XFA fields. 274 // The method can not support this feature for the document consists of dynamic XFA fields.
275 // 275 //
276 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,int nCount,F PDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap); 276 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,int nCount,F PDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap);
277 277
278 #ifdef __cplusplus 278 #ifdef __cplusplus
279 } 279 }
280 #endif 280 #endif
281 #endif // _FPDFEDIT_H_ 281
282 #endif // PUBLIC_FPDF_EDIT_H_
OLDNEW
« no previous file with comments | « public/fpdf_doc.h ('k') | public/fpdf_ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698