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

TOPIC:

Cover visualization 10 years 2 days ago #5986

  • developer24
  • developer24's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hi everybody, I'm looking for a view that shows two pages of a document, but with page number one shown on the right, like a book (pages with odd numbers are always on the right in a book). This is because the first page in our clients' catalogues are always the covers of the catalogues. So, I'd like the visualization to be like the following:
|-------------|------------|
|             |            |
|             |            |
|  grey color | first page |
|             |            |
|             |            |
|-------------|------------|

|-------------|------------|
|             |            |
|             |            |
| second page | third page |
|             |            |
|             |            |
|-------------|------------|
I tried by using all the visualization modes that come with the library, but with no success. Is there a way of doing this?

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

Last edit: by limmie.

Cover visualization 10 years 2 days ago #5987

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
like these codes before view.vOpen():
       	PDFViewDual view = new PDFViewDual(this.getContext());
       	boolean paras[] = new boolean[1];
       	paras[0] = false;
       	view.vSetLayoutPara(null, paras, m_rtol);
The following user(s) said Thank You: limmie

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

Cover visualization 9 years 10 months ago #6437

  • Haktic
  • Haktic's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
where is solution to do this ?

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

Cover visualization 9 years 10 months ago #6438

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
In PDFReader.PDFOpen(Document, boolean, PDFReaderListener)
case 6: //or 3
{
PDFViewDual view = new PDFViewDual(this.getContext());
boolean paras[] = new boolean[1];
paras[0] = false;
view.vSetLayoutPara(null, paras, m_rtol);
m_view = view;
}

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

Last edit: by marcoP.
  • Page:
  • 1
Powered by Kunena Forum