- Posts: 3
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Need to test reflow functions
IP: 192.168.0.71
11 years 9 months ago #7796
by gregko
Need to test reflow functions was created by gregko
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
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
IP: 192.168.0.71
11 years 9 months ago #7799
by radaee
Replied by radaee on topic Need to test reflow functions
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);
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);
IP: 192.168.0.71
11 years 9 months ago #7879
by gregko
Replied by gregko on topic Need to test reflow functions
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
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
Time to create page: 0.405 seconds