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 _FPDFPPO_H_ | 7 #ifndef PUBLIC_FPDF_PPO_H_ |
8 #define _FPDFPPO_H_ | 8 #define PUBLIC_FPDF_PPO_H_ |
9 | 9 |
10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
11 | 11 |
12 #ifdef __cplusplus | 12 #ifdef __cplusplus |
13 extern "C" { | 13 extern "C" { |
14 #endif | 14 #endif |
15 | 15 |
16 // Function: FPDF_ImportPages | 16 // Function: FPDF_ImportPages |
17 //» » » Import some pages to a PDF document. | 17 // Import some pages to a PDF document. |
18 // Parameters:» | 18 // Parameters: |
19 //» » » dest_doc» -» The destination document which a
dd the pages. | 19 // dest_doc - The destination document which add the pages. |
20 //» » » src_doc»» -» A document to be imported. | 20 // src_doc - A document to be imported. |
21 //» » » pagerange» -» A page range string, Such as "1,
3,5-7". | 21 // pagerange - A page range string, Such as "1,3,5-7". |
22 //» » » » » » » If this parameter is NUL
L, it would import all pages in src_doc. | 22 // If this parameter is NULL, it would import all pages
in src_doc. |
23 //» » » index» » -» The page index wanted to insert
from.» | 23 // index - The page index wanted to insert from. |
24 // Return value: | 24 // Return value: |
25 //» » » TRUE for succeed, FALSE for Failed.» | 25 // TRUE for succeed, FALSE for Failed. |
26 DLLEXPORT FPDF_BOOL STDCALL FPDF_ImportPages(FPDF_DOCUMENT dest_doc,FPDF_DOCUMEN
T src_doc, FPDF_BYTESTRING pagerange, int index); | 26 DLLEXPORT FPDF_BOOL STDCALL FPDF_ImportPages(FPDF_DOCUMENT dest_doc,FPDF_DOCUMEN
T src_doc, FPDF_BYTESTRING pagerange, int index); |
27 | 27 |
28 | 28 |
29 // Function: FPDF_CopyViewerPreferences | 29 // Function: FPDF_CopyViewerPreferences |
30 //» » » Copy the viewer preferences from one PDF document to ano
ther.#endif | 30 // Copy the viewer preferences from one PDF document to another.#endif |
31 // Parameters:» | 31 // Parameters: |
32 //» » » dest_doc» -» Handle to document to write the
viewer preferences to. | 32 // dest_doc - Handle to document to write the viewer preferences t
o. |
33 //» » » src_doc»» -» Handle to document with the view
er preferences. | 33 // src_doc - Handle to document with the viewer preferences. |
34 // Return value: | 34 // Return value: |
35 //» » » TRUE for success, FALSE for failure. | 35 // TRUE for success, FALSE for failure. |
36 DLLEXPORT FPDF_BOOL STDCALL FPDF_CopyViewerPreferences(FPDF_DOCUMENT dest_doc, F
PDF_DOCUMENT src_doc); | 36 DLLEXPORT FPDF_BOOL STDCALL FPDF_CopyViewerPreferences(FPDF_DOCUMENT dest_doc, F
PDF_DOCUMENT src_doc); |
37 | 37 |
38 #ifdef __cplusplus | 38 #ifdef __cplusplus |
39 }; | 39 } |
40 #endif | 40 #endif |
41 | 41 |
42 #endif //_FPDFPPO_H_ | 42 #endif // PUBLIC_FPDF_PPO_H_ |
43 | |
OLD | NEW |