Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space between pages is not visible in android. #18

Open
jazzbpn opened this issue Jan 14, 2020 · 6 comments
Open

Space between pages is not visible in android. #18

jazzbpn opened this issue Jan 14, 2020 · 6 comments

Comments

@jazzbpn
Copy link

jazzbpn commented Jan 14, 2020

I have to render the pages vertically. It's is working great but the spacing between pages is not visible. It seems like long single page.

@SimonLei7
Copy link

pdfView = new PDFView(context, null);
pdfView.setBackgroundColor(Color.LTGRAY);

  pdfView.fromFile(new File(filePath))
            .enableSwipe(true) // allows to block changing pages using swipe
            .swipeHorizontal(false)
            .enableDoubletap(true)
            .defaultPage(0)
            **.spacing(5)**
            .load();

@ViktorPurple
Copy link

pdfView = new PDFView(context, null);
pdfView.setBackgroundColor(Color.LTGRAY);

  pdfView.fromFile(new File(filePath))
            .enableSwipe(true) // allows to block changing pages using swipe
            .swipeHorizontal(false)
            .enableDoubletap(true)
            .defaultPage(0)
            **.spacing(5)**
            .load();

how did you change back color? can you please explain bit more?

@jazzbpn
Copy link
Author

jazzbpn commented Feb 28, 2020

pdfView = new PDFView(context, null);
pdfView.setBackgroundColor(Color.LTGRAY);

  pdfView.fromFile(new File(filePath))
            .enableSwipe(true) // allows to block changing pages using swipe
            .swipeHorizontal(false)
            .enableDoubletap(true)
            .defaultPage(0)
            **.spacing(5)**
            .load();

Undefined class PDFView. Please elaborate more.

Screen Shot 2020-02-28 at 17 40 00

@ViktorPurple
Copy link

I have figureout how to do. You basically need to do adjustment to the plugin. I'm not sure about IOS but for android just go here
image
and add this
image

@SimonLei7
Copy link

SimonLei7 commented Feb 29, 2020 via email

@myselfuser1
Copy link

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants