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

TOPIC:

Reflow with vertical scrolling 8 years 8 months ago #9341

  • digify
  • digify's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Hi,
We're using the Radaee library for our Android and iOS app.
Is it possible for the viewer to show a multi-page PDF in reflow mode, with continuous vertical scrolling (instead of the buttons to go prev/next) ?
Would be ideal if it can support pinch-zoom to handle dynamic scaling of the reflowed pages. An example of this would be the Polaris office PDF viewer.
Any suggestion for this, or are there some other 3rd-party viewers that can take the reflowed pages from Radaee and display them like what we want?
Thanks in advance!
(will cross-post to iOS)

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

Reflow with vertical scrolling 8 years 8 months ago #9344

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Actual reflow feature extract text from actual page and shows it.
It seems you're looking for a continuous text flow without page interruption.
Isn't it?

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

Reflow with vertical scrolling 8 years 8 months ago #9345

  • digify
  • digify's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Hi Support,
We actually don't mind the page interruption so much.
Why we want the vertical scrolling is because in the reflow mode, the width of the rendered page should be constrained to the screen width, while the height would vary depending on the page contents. Hence if you can imagine different pages, all having the same width but with different heights, then vertical scrolling seems to be the more appropriate mode to display all the pages.
Is this possible in the Radaee viewer?

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

Reflow with vertical scrolling 3 years 9 months ago #15118

  • indgup
  • indgup's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
I am looking for a continuous text flow without page interruption. Is it possible with the SDK? If Yes, How?

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

Reflow with vertical scrolling 3 years 9 months ago #15119

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
reflow processing need following steps:
1. Page.reflowStart() method input a width value, to calculate height this this page.
2. Page.reflowToBmp() method to render out.
3. Page.Close() to free memory.

if you want layout as continue mode, you need calculate all pages reflow height in same width.
and add all these height to layout height, this may take very long time.

then, you can render reflow pages when display on screen, some page may has very large height value,
so, you need clip to lots blocks for a page.

it is possible, if you do not need to zoom frequently.

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

Reflow with vertical scrolling 3 years 9 months ago #15120

  • indgup
  • indgup's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Please tell me which width/height here is asking ? Width/height of screen or width/height of page ? Also tell me how can I get Scale because zooming page changes the scale I think

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

Powered by Kunena Forum