PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfMath.h
1
7#ifndef PDF_MATH_H
8#define PDF_MATH_H
9
10#include "PdfDeclarations.h"
11#include <podofo/auxiliary/Rect.h>
12#include <podofo/auxiliary/Matrix.h>
13
14namespace PoDoFo
15{
16 class PdfPage;
17
22 Matrix PODOFO_API GetFrameRotationTransform(const Rect& rect, double teta);
23
28 Matrix PODOFO_API GetFrameRotationTransformInverse(const Rect& rect, double teta);
29
35 Rect PODOFO_API TransformRectPage(const Rect& rect, const PdfPage& page);
36}
37
38#endif // PDF_MATH_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
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:13
Rect PODOFO_API TransformRectPage(const Rect &rect, const PdfPage &page)
Transform the given rect accordingly to the page rotation.
Definition PdfMath.cpp:68
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:31