pdfrx icon indicating copy to clipboard operation
pdfrx copied to clipboard

layoutPages isn't enough

Open ameliacode opened this issue 6 months ago • 3 comments

Hi I am trying to make a book-like pdf viewer. these are my requirements for the viewer

  • horizontally scrollable with snapping event
  • two pages should be viewed fully (two pages will be centered).
  • when the user taps right for example, pdf viewer should scroll automatically to next page.

I did figure out building it by utilizing PdfDocumentViewBuilder However, when I had to implement the third requirement(scrolling automatically), it seems that I have to use PdfViewerController(I know this controller is PdfViewer based).

But as far as I know, if I change to PdfViewer, parameter for layoutPage doesn't work with snapping event..

anyway image down below, is what I have made so far. I need to implement goToPage.. But it is impossible if I use PdfDocumentViewerBuilder. This is so frustrating.. GIF 2024-04-16 오후 10-21-55

ameliacode avatar Jul 28 '24 07:07 ameliacode