PoDoFo 1.2.0
Loading...
Searching...
No Matches
PdfMath.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_MATH_H
5#define PDF_MATH_H
6
7#include "PdfDeclarations.h"
8#include <podofo/auxiliary/Rect.h>
9#include <podofo/auxiliary/Matrix.h>
10
11namespace PoDoFo
12{
13 class PdfPage;
14
17 Matrix PODOFO_API GetFrameRotationTransform(const Rect& rect, double teta);
18
21 Matrix PODOFO_API GetFrameRotationTransformInverse(const Rect& rect, double teta);
22
26 Rect PODOFO_API TransformRectPage(const Rect& rect, const PdfPage& page);
27}
28
29#endif // PDF_MATH_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
Matrix PODOFO_API GetFrameRotationTransform(const Rect &rect, double teta)
Get a rotation transformation that aligns the rectangle to the axis after the rotation.
Definition PdfMath.cpp:10
Rect PODOFO_API TransformRectPage(const Rect &rect, const PdfPage &page)
Transform the given rect accordingly to the page rotation.
Definition PdfMath.cpp:65
Matrix PODOFO_API GetFrameRotationTransformInverse(const Rect &rect, double teta)
Get an inverse rotation transformation that aligns the rectangle to the axis after the rotation.
Definition PdfMath.cpp:28