Svet Ganov | e6986e1 | 2015-06-04 14:52:15 -0700 | [diff] [blame] | 1 | // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
| 7 | #ifndef PUBLIC_FPDF_PPO_H_ |
| 8 | #define PUBLIC_FPDF_PPO_H_ |
| 9 | |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame^] | 10 | // NOLINTNEXTLINE(build/include) |
Svet Ganov | e6986e1 | 2015-06-04 14:52:15 -0700 | [diff] [blame] | 11 | #include "fpdfview.h" |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame^] | 17 | // Import pages to a FPDF_DOCUMENT. |
| 18 | // |
| 19 | // dest_doc - The destination document for the pages. |
| 20 | // src_doc - The document to be imported. |
| 21 | // pagerange - A page range string, Such as "1,3,5-7". If |pagerange| is NULL, |
| 22 | // all pages from |src_doc| are imported. |
| 23 | // index - The page index to insert at. |
| 24 | // |
| 25 | // Returns TRUE on success. |
Philip P. Moltmann | ac3d58c | 2016-03-04 15:19:21 -0800 | [diff] [blame] | 26 | DLLEXPORT FPDF_BOOL STDCALL FPDF_ImportPages(FPDF_DOCUMENT dest_doc, |
| 27 | FPDF_DOCUMENT src_doc, |
| 28 | FPDF_BYTESTRING pagerange, |
| 29 | int index); |
Svet Ganov | e6986e1 | 2015-06-04 14:52:15 -0700 | [diff] [blame] | 30 | |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame^] | 31 | // Copy the viewer preferences from |src_doc| into |dest_doc|. |
| 32 | // |
| 33 | // dest_doc - Document to write the viewer preferences into. |
| 34 | // src_doc - Document to read the viewer preferences from. |
| 35 | // |
| 36 | // Returns TRUE on success. |
Philip P. Moltmann | ac3d58c | 2016-03-04 15:19:21 -0800 | [diff] [blame] | 37 | DLLEXPORT FPDF_BOOL STDCALL FPDF_CopyViewerPreferences(FPDF_DOCUMENT dest_doc, |
| 38 | FPDF_DOCUMENT src_doc); |
Svet Ganov | e6986e1 | 2015-06-04 14:52:15 -0700 | [diff] [blame] | 39 | |
| 40 | #ifdef __cplusplus |
Philip P. Moltmann | 4d3acf4 | 2017-03-20 11:05:52 -0700 | [diff] [blame^] | 41 | } // extern "C" |
| 42 | #endif // __cplusplus |
Svet Ganov | e6986e1 | 2015-06-04 14:52:15 -0700 | [diff] [blame] | 43 | |
| 44 | #endif // PUBLIC_FPDF_PPO_H_ |