Package com.itextpdf.kernel.pdf
Class PageContentRotationHelper
java.lang.Object
com.itextpdf.kernel.pdf.PageContentRotationHelper
Helper class to specify or check whether inverse matrix is already applied to the page content stream in case page rotation is applied and
PdfPage.setIgnorePageRotationForContent(boolean) is set to true.
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks 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 voidSpecify 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 Details
-
isPageRotationInverseMatrixWritten
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-PdfPageto check applied content rotation for - Returns:
-
trueif inverse matrix is already applied,falseotherwise
-
setPageRotationInverseMatrixWritten
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-PdfPagefor which to specify that content rotation is applied
-