PoDoFo 1.2.0
Loading...
Searching...
No Matches
PdfExtGStateDefinition.h
1// SPDX-FileCopyrightText: 2021 Francesco Pretto <ceztko@gmail.com>
2// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0
3
4#ifndef PDF_EXTGSTATE_DEFINITION_H
5#define PDF_EXTGSTATE_DEFINITION_H
6
7#include "PdfDeclarations.h"
8
9namespace PoDoFo
10{
11 enum class PdfOverprintEnablement : uint8_t
12 {
13 None = 0,
14 Stroking = 1,
15 NonStroking = 2
16 };
17
18 // TODO: Add missing properties ISO 32000-2:2020 8.4.5 "Graphics state parameter dictionaries"
19 struct PODOFO_API PdfExtGStateDefinition final
20 {
21 nullable<double> StrokingAlpha;
22 nullable<double> NonStrokingAlpha;
23 nullable<PdfBlendMode> BlendMode;
24 PdfOverprintEnablement OverprintControl = PdfOverprintEnablement::None;
25 nullable<bool> NonZeroOverprintMode;
26 nullable<PdfRenderingIntent> RenderingIntent;
27 };
28
30 using PdfExtGStateDefinitionPtr = std::shared_ptr<const PdfExtGStateDefinition>;
31}
32
33ENABLE_BITMASK_OPERATORS(PoDoFo::PdfOverprintEnablement);
34
35#endif // PDF_EXTGSTATE_DEFINITION_H
This file should be included as the FIRST file in every header of PoDoFo lib.
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
@ None
Do not add a default appearance.
std::shared_ptr< const PdfExtGStateDefinition > PdfExtGStateDefinitionPtr
Convenience alias for a constant PdfExtGStateDefinition shared ptr.
Definition PdfExtGStateDefinition.h:30