- Posts: 7
- 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
Reflow with vertical scrolling
10 years 7 months ago #9341
by digify
Reflow with vertical scrolling was created by digify
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)
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)
10 years 7 months ago #9344
by support
Replied by support on topic Reflow with vertical scrolling
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?
It seems you're looking for a continuous text flow without page interruption.
Isn't it?
10 years 7 months ago #9345
by digify
Replied by digify on topic Reflow with vertical scrolling
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?
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?
IP: 103.10.119.40
5 years 8 months ago #15118
by indgup
Replied by indgup on topic Reflow with vertical scrolling
I am looking for a continuous text flow without page interruption. Is it possible with the SDK? If Yes, How?
IP: 111.196.243.160
5 years 8 months ago #15119
by radaee
Replied by radaee on topic Reflow with vertical scrolling
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.
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.
IP: 103.10.119.40
5 years 8 months ago #15120
by indgup
Replied by indgup on topic Reflow with vertical scrolling
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
Time to create page: 0.420 seconds