How to add margin/padding between pages - RadaeePDF.com
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

How to add margin/padding between pages 3 years 2 weeks ago #11232

  • moontech
  • moontech's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • 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 3 years 2 weeks ago #11233

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 877
  • Karma: 23
  • Thank you received: 72
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 3 years 1 week ago #11280

  • moontech
  • moontech's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • 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 3 years 5 days ago #11286

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

How to add margin/padding between pages 3 years 5 days ago #11288

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 877
  • Karma: 23
  • Thank you received: 72
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