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

TOPIC:

PDFViewDual hardcoded page numbers inside PDFCell 9 years 7 months ago #7048

  • Rashaverak
  • Rashaverak's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
It seems that using PDFViewDual.vGotoPage(page) for
page = 0 or page = 1 will always show double page consist of page 1 and 2

but what if I have to have logic where I need the PDFViewDual show me page 2 and 3 ? Currently it doesnt seem to be possible, which is really surprising because if I need to show a magazine/news like view, those do not have double pages [1,2][2,3] but [1][2,3][4,5]. Imagine how stupid double page advertisement look using your solution, you have first page bundled to right side of previous double page and second page as left page of the following doublepage.

Would be really great if you could publish your View sources so that it is possible to alter the hardcoded behaviour instead of writing it from scratch which I will have to do probably now.

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

PDFViewDual hardcoded page numbers inside PDFCell 9 years 7 months ago #7049

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,

look at this:

www.androidpdf.mobi/forum/Android-develo...r-visualization#6438


If you want View sources you should buy a premium or a professional license.

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

PDFViewDual hardcoded page numbers inside PDFCell 9 years 7 months ago #7050

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
there are method:
PDFViewDual.vSetLayoutPara()
to show pages as [1] [2,3] [4,5] like these codes:
boolean duals[] = new boolean[1];
duals[0] = false;
PDFViewDual.vSetLayoutPara( null, duals, false );

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

PDFViewDual hardcoded page numbers inside PDFCell 9 years 7 months ago #7051

  • Rashaverak
  • Rashaverak's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Thank you about the licence option pointing out and also the code, works great.

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

PDFViewDual hardcoded page numbers inside PDFCell 9 years 7 months ago #7053

  • admin
  • admin's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Thanks, it worked for me too.
I can't find it in documentation.. www.androidpdf.mobi/documentation/javado...fex/PDFViewDual.html here? But there is not any vSetLayoutParam

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

Last edit: by vishwakarmaspot.

PDFViewDual hardcoded page numbers inside PDFCell 9 years 7 months ago #7071

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Sorry the javadoc is not updated, we will update it soon

But the method does exist in the SDK

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

  • Page:
  • 1
Powered by Kunena Forum