Update pdfium for windows

This commit is contained in:
Luis Ángel San Martín
2024-10-12 10:15:43 +02:00
parent b7b9e9561c
commit 442307cc65
32 changed files with 5351 additions and 2630 deletions

View File

@ -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.
@ -7,6 +7,7 @@
#ifndef PUBLIC_FPDF_SAVE_H_
#define PUBLIC_FPDF_SAVE_H_
// clang-format off
// NOLINTNEXTLINE(build/include)
#include "fpdfview.h"
@ -21,7 +22,6 @@ typedef struct FPDF_FILEWRITE_ {
//
int version;
//
// Method: WriteBlock
// Output a block of data in your custom way.
// Interface Version:
@ -36,24 +36,21 @@ typedef struct FPDF_FILEWRITE_ {
// size - The size of the buffer.
// Return value:
// Should be non-zero if successful, zero for error.
//
int (*WriteBlock)(struct FPDF_FILEWRITE_* pThis,
const void* pData,
unsigned long size);
} FPDF_FILEWRITE;
/** @brief Incremental. */
// Flags for FPDF_SaveAsCopy()
#define FPDF_INCREMENTAL 1
/** @brief No Incremental. */
#define FPDF_NO_INCREMENTAL 2
/** @brief Remove security. */
#define FPDF_REMOVE_SECURITY 3
// Function: FPDF_SaveAsCopy
// Saves the copy of specified document in custom way.
// Parameters:
// document - Handle to document. Returned by
// FPDF_LoadDocument and FPDF_CreateNewDocument.
// document - Handle to document, as returned by
// FPDF_LoadDocument() or FPDF_CreateNewDocument().
// pFileWrite - A pointer to a custom file write structure.
// flags - The creating flags.
// Return value:
@ -64,14 +61,14 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_SaveAsCopy(FPDF_DOCUMENT document,
FPDF_DWORD flags);
// Function: FPDF_SaveWithVersion
// Same as function ::FPDF_SaveAsCopy, except the file version of the
// saved document could be specified by user.
// Same as FPDF_SaveAsCopy(), except the file version of the
// saved document can be specified by the caller.
// Parameters:
// document - Handle to document.
// pFileWrite - A pointer to a custom file write structure.
// flags - The creating flags.
// fileVersion - The PDF file version. File version: 14 for 1.4,
// 15 for 1.5, ...
// 15 for 1.5, ...
// Return value:
// TRUE if succeed, FALSE if failed.
//