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