calculatePageFitMatrix method
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 an exception.
Implementation
Matrix4? calculatePageFitMatrix({required int pageNumber, double? padding}) =>
calculatePageMatrix(
pageNumber: pageNumber,
padding: padding,
x: 0,
y: 0,
anchor: PdfViewerAnchor.topLeft);