iText 9.1.0 API
iText.Kernel.Pdf.PageContentRotationHelper Class Reference

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(bool) is set to true. More...

Static Public Member Functions

static bool  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. More...
 
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. More...
 

Detailed Description

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(bool) is set to true.

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(bool) 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.

Member Function Documentation

◆ IsPageRotationInverseMatrixWritten()

static bool iText.Kernel.Pdf.PageContentRotationHelper.IsPageRotationInverseMatrixWritten ( PdfPage  page )
inlinestatic

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.

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. See PdfPage.SetIgnorePageRotationForContent(bool).

Parameters
page

PdfPage to check applied content rotation for

Returns

true if inverse matrix is already applied, false otherwise

◆ SetPageRotationInverseMatrixWritten()

static void iText.Kernel.Pdf.PageContentRotationHelper.SetPageRotationInverseMatrixWritten ( PdfPage  page )
inlinestatic

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.

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. See PdfPage.SetIgnorePageRotationForContent(bool).

Parameters
page

PdfPage for which to specify that content rotation is applied