- Posts: 5
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
PDFViewDual hardcoded page numbers inside PDFCell
- Rashaverak
- Topic Author
- Offline
- New Member
-
Less
More
IP: 192.168.0.71
11 years 6 months ago #7048
by Rashaverak
PDFViewDual hardcoded page numbers inside PDFCell was created by Rashaverak
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.
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.
IP: 192.168.0.156
11 years 6 months ago #7049
by Davide
Replied by Davide on topic PDFViewDual hardcoded page numbers inside PDFCell
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.
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.
IP: 192.168.0.71
11 years 6 months ago #7050
by radaee
Replied by radaee on topic PDFViewDual hardcoded page numbers inside PDFCell
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 );
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 );
- Rashaverak
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
IP: 192.168.0.71
11 years 6 months ago #7051
by Rashaverak
Replied by Rashaverak on topic PDFViewDual hardcoded page numbers inside PDFCell
Thank you about the licence option pointing out and also the code, works great.
- admin
- New Member
-
Less
More
- Thank you received: 0
IP: 192.168.0.71
11 years 6 months ago - 11 years 6 months ago #7053
by admin
Replied by admin on topic PDFViewDual hardcoded page numbers inside PDFCell
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
I can't find it in documentation.. www.androidpdf.mobi/documentation/javado...fex/PDFViewDual.html here? But there is not any vSetLayoutParam
Last edit: 11 years 6 months ago by vishwakarmaspot.
IP: 192.168.0.158
11 years 6 months ago #7071
by nermeen
Replied by nermeen on topic PDFViewDual hardcoded page numbers inside PDFCell
Sorry the javadoc is not updated, we will update it soon
But the method does exist in the SDK
But the method does exist in the SDK
Time to create page: 0.414 seconds