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" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Parameters: | 60 // Parameters: |
61 // document - Handle to document. Returned by
FPDF_LoadDocument and FPDF_CreateNewDocument. | 61 // document - Handle to document. Returned by
FPDF_LoadDocument and FPDF_CreateNewDocument. |
62 // page_index - The index of a page. | 62 // page_index - The index of a page. |
63 // Return value: | 63 // Return value: |
64 // None. | 64 // None. |
65 DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index); | 65 DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index); |
66 | 66 |
67 // Function: FPDFPage_GetRotation | 67 // Function: FPDFPage_GetRotation |
68 // Get the page rotation. One of following values will be r
eturned: 0(0), 1(90), 2(180), 3(270). | 68 // Get the page rotation. One of following values will be r
eturned: 0(0), 1(90), 2(180), 3(270). |
69 // Parameters: | 69 // Parameters: |
70 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New. | 70 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. |
71 // Return value: | 71 // Return value: |
72 // The PDF page rotation. | 72 // The PDF page rotation. |
73 // Comment: | 73 // Comment: |
74 // The PDF page rotation is rotated clockwise. | 74 // The PDF page rotation is rotated clockwise. |
75 DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page); | 75 DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page); |
76 | 76 |
| 77 // Function: FPDFPage_SetRotation |
| 78 // Set page rotation. One of following values will be set:
0(0), 1(90), 2(180), 3(270). |
| 79 // Parameters: |
| 80 // page - Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. |
| 81 // rotate - The value of the PDF page rotati
on. |
| 82 // Return value: |
| 83 // None. |
| 84 // Comment: |
| 85 // The PDF page rotation is rotated clockwise. |
| 86 // |
| 87 DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate); |
| 88 |
77 // Function: FPDFPage_InsertObject | 89 // Function: FPDFPage_InsertObject |
78 // Insert an object to the page. The page object is automat
ically freed. | 90 // Insert an object to the page. The page object is automat
ically freed. |
79 // Parameters: | 91 // Parameters: |
80 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New. | 92 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. |
81 // page_obj - Handle to a page object. Returne
d by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx and | 93 // page_obj - Handle to a page object. Returne
d by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx and |
82 // FPDFPageObj_NewPathObj. | 94 // FPDFPageObj_NewPathObj. |
83 // Return value: | 95 // Return value: |
84 // None. | 96 // None. |
85 DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT pag
e_obj); | 97 DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT pag
e_obj); |
86 | 98 |
87 // Function: FPDFPage_CountObject | 99 // Function: FPDFPage_CountObject |
88 // Get number of page objects inside the page. | 100 // Get number of page objects inside the page. |
89 // Parameters: | 101 // Parameters: |
90 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New. | 102 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. |
91 // Return value: | 103 // Return value: |
92 // The number of the page object. | 104 // The number of the page object. |
93 DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page); | 105 DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page); |
94 | 106 |
95 // Function: FPDFPage_GetObject | 107 // Function: FPDFPage_GetObject |
96 // Get page object by index. | 108 // Get page object by index. |
97 // Parameters: | 109 // Parameters: |
98 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New. | 110 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. |
99 // index - The index of a page object. | 111 // index - The index of a page object. |
100 // Return value: | 112 // Return value: |
101 // The handle of the page object. Null for failed. | 113 // The handle of the page object. Null for failed. |
102 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page, int index); | 114 DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page, int index); |
103 | 115 |
104 // Function: FPDFPage_HasTransparency | 116 // Function: FPDFPage_HasTransparency |
105 // Check that whether the content of specified PDF page con
tains transparency. | 117 // Check that whether the content of specified PDF page con
tains transparency. |
106 // Parameters: | 118 // Parameters: |
107 // page - Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. | 119 // page - Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. |
108 // Return value: | 120 // Return value: |
109 // TRUE means that the PDF page does contains transparency. | 121 // TRUE means that the PDF page does contains transparency. |
110 // Otherwise, returns FALSE. | 122 // Otherwise, returns FALSE. |
111 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page); | 123 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page); |
112 | 124 |
113 // Function: FPDFPage_GenerateContent | 125 // Function: FPDFPage_GenerateContent |
114 // Generate PDF Page content. | 126 // Generate PDF Page content. |
115 // Parameters: | 127 // Parameters: |
116 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New. | 128 //» » » page» » -» Handle to a page. Returned by FP
DFPage_New or FPDF_LoadPage. |
117 // Return value: | 129 // Return value: |
118 // True if successful, false otherwise. | 130 // True if successful, false otherwise. |
119 // Comment: | 131 // Comment: |
120 // Before you save the page to a file, or reload the page,
you must call the FPDFPage_GenerateContent function. | 132 // Before you save the page to a file, or reload the page,
you must call the FPDFPage_GenerateContent function. |
121 // Or the changed information will be lost. | 133 // Or the changed information will be lost. |
122 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page); | 134 DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page); |
123 | 135 |
124 ////////////////////////////////////////////////////////////////////// | 136 ////////////////////////////////////////////////////////////////////// |
125 // | 137 // |
126 // Page Object functions | 138 // Page Object functions |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // image_object - Handle of image object returned
by FPDFPageObj_NewImgeObj. | 238 // image_object - Handle of image object returned
by FPDFPageObj_NewImgeObj. |
227 // bitmap - The handle of the bitmap
which you want to set it to the image object. | 239 // bitmap - The handle of the bitmap
which you want to set it to the image object. |
228 // Return value: | 240 // Return value: |
229 // TRUE if successful, FALSE otherwise. | 241 // TRUE if successful, FALSE otherwise. |
230 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,int nCount,F
PDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap); | 242 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,int nCount,F
PDF_PAGEOBJECT image_object, FPDF_BITMAP bitmap); |
231 | 243 |
232 #ifdef __cplusplus | 244 #ifdef __cplusplus |
233 } | 245 } |
234 #endif | 246 #endif |
235 #endif // _FPDFEDIT_H_ | 247 #endif // _FPDFEDIT_H_ |
OLD | NEW |