Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

How to add margin/padding between pages 8 years 7 months ago #11232

  • moontech
  • moontech's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 80
  • Thank you received: 0
Hello,
I want to add more margin between all pages in PDF viewer.
How i can achieve this functionality ?
The topic has been locked.

How to add margin/padding between pages 8 years 7 months ago #11233

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
You can achieve this by setting the page gap.
PDFView.vSetPageGap
or
PDFLayout.vSetPageGap
The topic has been locked.

How to add margin/padding between pages 8 years 7 months ago #11280

  • moontech
  • moontech's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 80
  • Thank you received: 0
You can achieve this by setting the page gap.
PDFView.vSetPageGap
or
PDFLayout.vSetPageGap


There method setGap around pages.
We need to set Get for Top and bottom gaps so we can differentiate pages.

How we can achieve this ?
The topic has been locked.

How to add margin/padding between pages 8 years 7 months ago #11286

  • moontech
  • moontech's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 80
  • Thank you received: 0
any reply for me ?
The topic has been locked.

How to add margin/padding between pages 8 years 7 months ago #11288

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
The page gap is handled based on the view mode, i.e. in case of vertical mode the gap will be used vertically between pages (top and bottom).
in case of horizontal mode the gap will be used horizontally between pages (left and right).

So if you need something different than that, you need to change the behavior of the method vLayout of the view mode you are using.
The topic has been locked.
  • Page:
  • 1
Powered by Kunena Forum