mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Update pdfium for windows
This commit is contained in:
61
dependencies/pdfium/win/public/fpdf_ppo.h
vendored
61
dependencies/pdfium/win/public/fpdf_ppo.h
vendored
@ -1,4 +1,4 @@
|
||||
// Copyright 2014 PDFium Authors. All rights reserved.
|
||||
// Copyright 2014 The PDFium Authors
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -14,15 +14,38 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Experimental API.
|
||||
// Import pages to a FPDF_DOCUMENT.
|
||||
//
|
||||
// dest_doc - The destination document for the pages.
|
||||
// src_doc - The document to be imported.
|
||||
// page_indices - An array of page indices to be imported. The first page is
|
||||
// zero. If |page_indices| is NULL, all pages from |src_doc|
|
||||
// are imported.
|
||||
// length - The length of the |page_indices| array.
|
||||
// index - The page index at which to insert the first imported page
|
||||
// into |dest_doc|. The first page is zero.
|
||||
//
|
||||
// Returns TRUE on success. Returns FALSE if any pages in |page_indices| is
|
||||
// invalid.
|
||||
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
|
||||
FPDF_ImportPagesByIndex(FPDF_DOCUMENT dest_doc,
|
||||
FPDF_DOCUMENT src_doc,
|
||||
const int* page_indices,
|
||||
unsigned long length,
|
||||
int index);
|
||||
|
||||
// Import pages to a FPDF_DOCUMENT.
|
||||
//
|
||||
// dest_doc - The destination document for the pages.
|
||||
// src_doc - The document to be imported.
|
||||
// pagerange - A page range string, Such as "1,3,5-7". If |pagerange| is NULL,
|
||||
// all pages from |src_doc| are imported.
|
||||
// index - The page index to insert at.
|
||||
// pagerange - A page range string, Such as "1,3,5-7". The first page is one.
|
||||
// If |pagerange| is NULL, all pages from |src_doc| are imported.
|
||||
// index - The page index at which to insert the first imported page into
|
||||
// |dest_doc|. The first page is zero.
|
||||
//
|
||||
// Returns TRUE on success.
|
||||
// Returns TRUE on success. Returns FALSE if any pages in |pagerange| is
|
||||
// invalid or if |pagerange| cannot be read.
|
||||
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_ImportPages(FPDF_DOCUMENT dest_doc,
|
||||
FPDF_DOCUMENT src_doc,
|
||||
FPDF_BYTESTRING pagerange,
|
||||
@ -49,8 +72,32 @@ FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV
|
||||
FPDF_ImportNPagesToOne(FPDF_DOCUMENT src_doc,
|
||||
float output_width,
|
||||
float output_height,
|
||||
unsigned int num_pages_on_x_axis,
|
||||
unsigned int num_pages_on_y_axis);
|
||||
size_t num_pages_on_x_axis,
|
||||
size_t num_pages_on_y_axis);
|
||||
|
||||
// Experimental API.
|
||||
// Create a template to generate form xobjects from |src_doc|'s page at
|
||||
// |src_page_index|, for use in |dest_doc|.
|
||||
//
|
||||
// Returns a handle on success, or NULL on failure. Caller owns the newly
|
||||
// created object.
|
||||
FPDF_EXPORT FPDF_XOBJECT FPDF_CALLCONV
|
||||
FPDF_NewXObjectFromPage(FPDF_DOCUMENT dest_doc,
|
||||
FPDF_DOCUMENT src_doc,
|
||||
int src_page_index);
|
||||
|
||||
// Experimental API.
|
||||
// Close an FPDF_XOBJECT handle created by FPDF_NewXObjectFromPage().
|
||||
// FPDF_PAGEOBJECTs created from the FPDF_XOBJECT handle are not affected.
|
||||
FPDF_EXPORT void FPDF_CALLCONV FPDF_CloseXObject(FPDF_XOBJECT xobject);
|
||||
|
||||
// Experimental API.
|
||||
// Create a new form object from an FPDF_XOBJECT object.
|
||||
//
|
||||
// Returns a new form object on success, or NULL on failure. Caller owns the
|
||||
// newly created object.
|
||||
FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV
|
||||
FPDF_NewFormObjectFromXObject(FPDF_XOBJECT xobject);
|
||||
|
||||
// Copy the viewer preferences from |src_doc| into |dest_doc|.
|
||||
//
|
||||
|
Reference in New Issue
Block a user