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

TOPIC:

Reflow with vertical scrolling 3 years 9 months ago #15121

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
Page.ReflowStart declared as:
public float ReflowStart( float width, float scale, boolean enable_images )
	 * @param width input width.
	 * @param scale scale base to 72 DPI, 2.0 means 144 DPI. the reflowed text will displayed in scale
	 * @param enable_images enable reflow images.
	 * @return the height that reflow required.
that mean, reflow function need you input a width value to layout.

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

Reflow with vertical scrolling 3 years 9 months ago #15122

  • ankson
  • ankson's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
If I pass the width of page, scale and enable_image then ReflowStart method returns height ' 0 ' then how we can fix this issue?

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

Reflow with vertical scrolling 3 years 9 months ago #15123

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
if return 0, then ignore this page.
this mostly because the page has no element can be reflow.
for example: transparency group content will be ignored in reflow mode.
The following user(s) said Thank You: ankson

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

Reflow with vertical scrolling 3 years 9 months ago #15124

  • ankson
  • ankson's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Which is the suitable class for achieving Text Reflow ---- PDFViewAct or PDFLayout ?

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

Reflow with vertical scrolling 3 years 9 months ago #15125

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
it is better, to create a new Activity.
derive from PDFLayout, may need to modify other related class, so not recommended.
The following user(s) said Thank You: ankson

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

Reflow with vertical scrolling 3 years 9 months ago #15126

  • ankson
  • ankson's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
In which overriden method should i call the ReflowStart() Method ?

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

Powered by Kunena Forum