Create a Magazine PDF viewer - 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: Create a Magazine PDF viewer

Create a Magazine PDF viewer 3 years 4 months ago #9426

  • rnevet
  • rnevet's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
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:
			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?

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

Create a Magazine PDF viewer 3 years 4 months ago #9429

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 18
  • Thank you received: 65
Hi,
please look at this knowledge base article .
The following user(s) said Thank You: rnevet

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

Create a Magazine PDF viewer 3 years 4 months ago #9432

  • rnevet
  • rnevet's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
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?

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

Last edit: by rnevet.

Create a Magazine PDF viewer 3 years 4 months ago #9441

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 18
  • Thank you received: 65
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.

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

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