blob: 88c3162ecbc8d53d44dd99466f0047d0dd1313be [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// 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.
Tom Sepez9857e202015-05-13 17:09:26 -07004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Tom Sepez9857e202015-05-13 17:09:26 -07007#ifndef PUBLIC_FPDF_PPO_H_
8#define PUBLIC_FPDF_PPO_H_
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07009
Dan Sinclair85c8e7f2016-11-21 13:50:32 -050010// NOLINTNEXTLINE(build/include)
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070011#include "fpdfview.h"
12
Bo Xud5e822a2014-10-03 13:18:55 -070013#ifdef __cplusplus
14extern "C" {
15#endif
16
dsinclair860193b2016-04-25 19:44:20 -070017// 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.
Dan Sinclair00d2ad12017-08-10 14:13:02 -040026FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_ImportPages(FPDF_DOCUMENT dest_doc,
27 FPDF_DOCUMENT src_doc,
28 FPDF_BYTESTRING pagerange,
29 int index);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070030
dsinclair860193b2016-04-25 19:44:20 -070031// 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.
Dan Sinclair00d2ad12017-08-10 14:13:02 -040037FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
38FPDF_CopyViewerPreferences(FPDF_DOCUMENT dest_doc, FPDF_DOCUMENT src_doc);
Bo Xud5e822a2014-10-03 13:18:55 -070039
40#ifdef __cplusplus
dsinclair860193b2016-04-25 19:44:20 -070041} // extern "C"
42#endif // __cplusplus
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070043
Tom Sepez9857e202015-05-13 17:09:26 -070044#endif // PUBLIC_FPDF_PPO_H_