PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfTextState.h
1
7#ifndef PDF_TEXT_STATE_H
8#define PDF_TEXT_STATE_H
9
10#include "PdfDeclarations.h"
11#include <podofo/auxiliary/Matrix.h>
12
13namespace PoDoFo
14{
15 class PdfFont;
16
17 // TODO: Add missing properties ISO 32000-1:2008 "9.3 Text State Parameters and Operators"
18 struct PODOFO_API PdfTextState final
19 {
26 std::vector<std::string> SplitTextAsLines(const std::string_view& str, double width, bool preserveTrailingSpaces = false) const;
27
28 const PdfFont* Font = nullptr;
29 double FontSize = 10;
30 double FontScale = 1;
31 double CharSpacing = 0;
32 double WordSpacing = 0;
33 PdfTextRenderingMode RenderingMode = PdfTextRenderingMode::Fill;
34 class Matrix Matrix;
35 };
36}
37
38#endif // PDF_TEXT_STATE_H
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
PdfTextRenderingMode
Enum for text rendering mode (Tr)
Definition PdfDeclarations.h:392