calculatePageFitMatrix method

Matrix4? calculatePageFitMatrix({
  1. required int pageNumber,
  2. double? padding,
})

Calculate the matrix that corresponding to the page position.

If the page does not exist in the layout, it returns null. If the controller is not ready(isReady), the method throws some exception.

Implementation

Matrix4? calculatePageFitMatrix({required int pageNumber, double? padding}) =>
    calculatePageMatrix(
        pageNumber: pageNumber,
        padding: padding,
        x: 0,
        y: 0,
        anchor: PdfViewerAnchor.topLeft);