How to add margin/padding between pages - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: How to add margin/padding between pages

How to add margin/padding between pages 2 years 1 month 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 ?

Please Log in or Create an account to join the conversation.

How to add margin/padding between pages 2 years 1 month ago #11233

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
You can achieve this by setting the page gap.
PDFView.vSetPageGap
or
PDFLayout.vSetPageGap

Please Log in or Create an account to join the conversation.

How to add margin/padding between pages 2 years 1 month 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 ?

Please Log in or Create an account to join the conversation.

How to add margin/padding between pages 2 years 1 month ago #11286

  • moontech
  • moontech's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 0
any reply for me ?

Please Log in or Create an account to join the conversation.

How to add margin/padding between pages 2 years 1 month ago #11288

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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum