Package com.itextpdf.kernel.pdf
Class PageContentRotationHelper
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PageContentRotationHelper
-
public final class PageContentRotationHelper extends java.lang.Object
Helper class to specify or check whether inverse matrix is already applied to the page content stream in case page rotation is applied andPdfPage.setIgnorePageRotationForContent(boolean)
is set totrue
.Page rotation inverse matrix rotates content into the opposite direction from page rotation direction in order to give the impression of the not rotated text. It should be applied only once for the page.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PageContentRotationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isPageRotationInverseMatrixWritten(PdfPage page)
Checks if page rotation inverse matrix (which rotates content into the opposite direction from the page rotation direction in order to give the impression of the not rotated text) is already applied to the page content stream.static void
setPageRotationInverseMatrixWritten(PdfPage page)
Specify that inverse matrix (which rotates content into the opposite direction from the page rotation direction in order to give the impression of the not rotated text) is applied to the page content stream.
-
-
-
Method Detail
-
isPageRotationInverseMatrixWritten
public static boolean isPageRotationInverseMatrixWritten(PdfPage page)
Checks if page rotation inverse matrix (which rotates content into the opposite direction from the page rotation direction in order to give the impression of the not rotated text) is already applied to the page content stream. SeePdfPage.setIgnorePageRotationForContent(boolean)
.- Parameters:
page
-PdfPage
to check applied content rotation for- Returns:
true
if inverse matrix is already applied,false
otherwise
-
setPageRotationInverseMatrixWritten
public static void setPageRotationInverseMatrixWritten(PdfPage page)
Specify that inverse matrix (which rotates content into the opposite direction from the page rotation direction in order to give the impression of the not rotated text) is applied to the page content stream. SeePdfPage.setIgnorePageRotationForContent(boolean)
.- Parameters:
page
-PdfPage
for which to specify that content rotation is applied
-
-