Need to test reflow functions - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Need to test reflow functions 5 years 9 months ago #7796

  • gregko
  • gregko's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Can I test the reflow functions on Android with the free demo download? I compiled the provided samples and they run fine, but if I add code likeŁ

Page page = m_doc.GetPage(m_cur_page);
int nPara = page.ReflowGetParaCount();
Log.d(TAG, "Long press, curr. page = " + m_cur_page + ", num. paragraphs = " + nPara);

it always tells me that the number of paragraphs is 0, even though I see text and paragraphs on the current page in the viewer. I see the annotation "this method valid in professional or premium version", but how could I test them before buying a license, to know if these functions really fulfill my needs?

Greg

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

Need to test reflow functions 5 years 9 months ago #7799

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1002
  • Karma: 43
  • Thank you received: 49
you shall call like this:

Page page = m_doc.GetPage(m_cur_page);
page.ReflowStart(width, scale, enbale_mage);//scale like 1.5, 2.0 ans so on. width like 500, 600...
int nPara = page.ReflowGetParaCount();
Log.d(TAG, "Long press, curr. page = " + m_cur_page + ", num. paragraphs = " + nPara);

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

Need to test reflow functions 5 years 9 months ago #7879

  • gregko
  • gregko's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Thanks, I tried it by adding ReflowStart() per code posted below. Still returns reflow height = 0 and 0 paragraphs.

Page page = m_doc.GetPage(m_cur_page);
float height = page.ReflowStart(600f, 2f, false);
Log.d(TAG, "Reflow height: " + height);
int nPara = page.ReflowGetParaCount();
Log.d(TAG, "Long press, curr. page = " + m_cur_page + ", num. paragraphs = " + nPara);

What am I doing wrong now?

Greg

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

  • Page:
  • 1
Powered by Kunena Forum