- Posts: 3
- 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
Create a Magazine PDF viewer
10 years 7 months ago #9426
by rnevet
Create a Magazine PDF viewer was created by rnevet
I need to create a Magazine PDF viewer, requierments are:
1. single cover page, dual page for the rest.
2. zoom ability.
3. curling effect for page changes
I managed to create a dual page view with a single cover page using by defining the following style in PDFLayoutView:
2 questions:
1. currently it seems that loading of the 2nd page (in dual views) is done only when they become visible which gives a not so smooth feeling, is there a way to preload them off screen?
2. is there a way to implement curl effect with zoom?
1. single cover page, dual page for the rest.
2. zoom ability.
3. curling effect for page changes
I managed to create a dual page view with a single cover page using by defining the following style in PDFLayoutView:
Code:
PDFLayoutDual layout = new PDFLayoutDual(getContext());
boolean paras[] = new boolean[m_doc.GetPageCount()];
for (int i = 0; i < paras.length; i++) {
paras[i] = true;
}
paras[0] = false; // cover page
layout.vSetLayoutPara(null, paras, m_rtol, true);
m_layout = layout;
2 questions:
1. currently it seems that loading of the 2nd page (in dual views) is done only when they become visible which gives a not so smooth feeling, is there a way to preload them off screen?
2. is there a way to implement curl effect with zoom?
10 years 7 months ago #9429
by Davide
Replied by Davide on topic Create a Magazine PDF viewer
Hi,
please look at this knowledge base article .
please look at this knowledge base article .
10 years 7 months ago - 10 years 7 months ago #9432
by rnevet
Replied by rnevet on topic Create a Magazine PDF viewer
Thanks for the reference it seems the code is using fields that are not in the sdk I downloaded "PDFViewer3.5_Android studio.zip" like m_cells, mCurlAllowed, max_w, max_h and a function called OnPDFFling which is also missing.
I this related to the professional license? Will I receive a different SDK?
Can I somehow preview this? I need to make sure that the behavior is actually what the client wants.
What about question 1? the preloading in dualview?
I this related to the professional license? Will I receive a different SDK?
Can I somehow preview this? I need to make sure that the behavior is actually what the client wants.
What about question 1? the preloading in dualview?
Last edit: 10 years 7 months ago by rnevet.
10 years 7 months ago - 10 years 7 months ago #9441
by Davide
Replied by Davide on topic Create a Magazine PDF viewer
Hi,
yes some variables in PDFView are protected and to modify these classes you need at least the professional license.
1) This is the normal behaviour of the dual view, if you want, you can extend this class and implement what you want.
yes some variables in PDFView are protected and to modify these classes you need at least the professional license.
1) This is the normal behaviour of the dual view, if you want, you can extend this class and implement what you want.
Last edit: 10 years 7 months ago by Davide.
Time to create page: 0.401 seconds