Package com.itextpdf.kernel.pdf
Class PageContentRotationHelper
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PageContentRotationHelper
-
public final class PageContentRotationHelper extends java.lang.ObjectHelper 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 privatePageContentRotationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisPageRotationInverseMatrixWritten(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 voidsetPageRotationInverseMatrixWritten(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-PdfPageto check applied content rotation for- Returns:
trueif inverse matrix is already applied,falseotherwise
-
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-PdfPagefor which to specify that content rotation is applied
-
-