PdfRectExt extension

on

Methods

toRect({required PdfPage page, Size? scaledPageSize, int? rotation}) Rect

Available on PdfRect, provided by the PdfRectExt extension

Convert to Rect in Flutter coordinate. page is the page to convert the rectangle. scaledPageSize is the scaled page size to scale the rectangle. If not specified, PdfPage.size is used. rotation is the rotation of the page. If not specified, PdfPage.rotation is used.
toRectInDocument({required PdfPage page, required Rect pageRect}) Rect

Available on PdfRect, provided by the PdfRectExt extension

Convert to Rect in Flutter coordinate using pageRect as the page's bounding rectangle.