pdfrx icon indicating copy to clipboard operation
pdfrx copied to clipboard

Current page number = 1 whereas 2 pages are displayed (paysage mode)

Open HeropolisDa2ny opened this issue 7 months ago • 8 comments

If you have a PDF on paysage with a small amount of pages (like 2) the pageNumber or the onPageChanged will stay at 1 whereas you see all of the pages.

     PdfViewer.data(
        data,
        controller: _controller,
        sourceName: '',
        params: PdfViewerParams(
          margin: ClassSize.paddingPage,
          backgroundColor: Theme.of(context).scaffoldBackgroundColor,
          enableTextSelection: true,
          enableKeyboardNavigation: true,
          onPageChanged: (page) => log(page.toString()),
        ),
      )

Get started in Canva.pdf

HeropolisDa2ny avatar Jul 03 '24 17:07 HeropolisDa2ny