blob: e7d77678f95e9bdf910caa7e06cdbfd40d3ff52e [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
10#include "fpdfview.h"
11
Bo Xud5e822a2014-10-03 13:18:55 -070012#ifdef __cplusplus
13extern "C" {
14#endif
15
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070016// Function: FPDF_ImportPages
Tom Sepez9857e202015-05-13 17:09:26 -070017// Import some pages to a PDF document.
18// Parameters:
19// dest_doc - The destination document which add the pages.
20// src_doc - A document to be imported.
21// pagerange - A page range string, Such as "1,3,5-7".
Nico Weber9d8ec5a2015-08-04 13:00:21 -070022// If this parameter is NULL, it would import all pages
23// in src_doc.
Tom Sepez9857e202015-05-13 17:09:26 -070024// index - The page index wanted to insert from.
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070025// Return value:
Tom Sepez9857e202015-05-13 17:09:26 -070026// TRUE for succeed, FALSE for Failed.
Nico Weber9d8ec5a2015-08-04 13:00:21 -070027DLLEXPORT FPDF_BOOL STDCALL FPDF_ImportPages(FPDF_DOCUMENT dest_doc,
28 FPDF_DOCUMENT src_doc,
29 FPDF_BYTESTRING pagerange,
30 int index);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070031
32// Function: FPDF_CopyViewerPreferences
Tom Sepez9857e202015-05-13 17:09:26 -070033// Copy the viewer preferences from one PDF document to another.#endif
34// Parameters:
Nico Weber9d8ec5a2015-08-04 13:00:21 -070035// dest_doc - Handle to document to write the viewer preferences
36// to.
Tom Sepez9857e202015-05-13 17:09:26 -070037// src_doc - Handle to document with the viewer preferences.
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070038// Return value:
Tom Sepez9857e202015-05-13 17:09:26 -070039// TRUE for success, FALSE for failure.
Nico Weber9d8ec5a2015-08-04 13:00:21 -070040DLLEXPORT FPDF_BOOL STDCALL FPDF_CopyViewerPreferences(FPDF_DOCUMENT dest_doc,
41 FPDF_DOCUMENT src_doc);
Bo Xud5e822a2014-10-03 13:18:55 -070042
43#ifdef __cplusplus
Tom Sepez9857e202015-05-13 17:09:26 -070044}
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070045#endif
46
Tom Sepez9857e202015-05-13 17:09:26 -070047#endif // PUBLIC_FPDF_PPO_H_