Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_flatten.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
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_FLATTEN_H_
8#define PUBLIC_FPDF_FLATTEN_H_
9
10// NOLINTNEXTLINE(build/include)
11#include "fpdfview.h"
12
13// Flatten operation failed.
14#define FLATTEN_FAIL 0
15// Flatten operation succeed.
16#define FLATTEN_SUCCESS 1
17// Nothing to be flattened.
18#define FLATTEN_NOTHINGTODO 2
19
20// Flatten for normal display.
21#define FLAT_NORMALDISPLAY 0
22// Flatten for print.
23#define FLAT_PRINT 1
24
25#ifdef __cplusplus
26extern "C" {
27#endif // __cplusplus
28
29// Flatten annotations and form fields into the page contents.
30//
31// page - handle to the page.
32// nFlag - One of the |FLAT_*| values denoting the page usage.
33//
34// Returns one of the |FLATTEN_*| values.
35//
36// Currently, all failures return |FLATTEN_FAIL| with no indication of the
37// cause.
38FPDF_EXPORT int FPDF_CALLCONV FPDFPage_Flatten(FPDF_PAGE page, int nFlag);
39
40#ifdef __cplusplus
41} // extern "C"
42#endif // __cplusplus
43
44#endif // PUBLIC_FPDF_FLATTEN_H_
constexpr CFX_FloatRect(float l, float b, float r, float t)
float Width() const
bool IsEmpty() const
CFX_FloatRect & operator=(const CFX_FloatRect &that)=default
float Height() const
CFX_FloatRect TransformRect(const CFX_FloatRect &rect) const
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
CFX_Matrix()=default
bool KeyExist(const ByteString &key) const
void ConvertToIndirectObjectFor(const ByteString &key, CPDF_IndirectObjectHolder *pHolder)
ByteString GetByteStringFor(const ByteString &key) const
CFX_FloatRect GetRectFor(const ByteString &key) const
uint32_t AddIndirectObject(RetainPtr< CPDF_Object > pObj)
CPDF_Document * GetDocument() const override
Definition cpdf_page.cpp:51
static ByteString Format(const char *pFormat,...)
ByteString & operator+=(const ByteString &str)
ByteString & operator+=(const char *str)
const char * c_str() const
Definition bytestring.h:76
ByteString & operator=(ByteString &&that) noexcept
bool IsEmpty() const
Definition bytestring.h:119
CPDF_Page * CPDFPageFromFPDFPage(FPDF_PAGE page)
FPDF_VALUE
@ LEFT
@ RIGHT
@ BOTTOM
@ TOP
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_Flatten(FPDF_PAGE page, int nFlag)
FPDF_TYPE
@ MAX
@ MIN
#define FLATTEN_NOTHINGTODO
#define FLATTEN_SUCCESS
#define FLATTEN_FAIL
#define FLAT_NORMALDISPLAY
#define FPDF_CALLCONV
Definition fpdfview.h:227
#define FPDF_EXPORT
Definition fpdfview.h:221
ByteString operator+(const ByteString &str1, const char *str2)
Definition bytestring.h:279
ByteString operator+(const char *str1, const ByteString &str2)
Definition bytestring.h:282
const char kMediaBox[]
const char kContents[]
const char kCropBox[]