Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Submit your requests and polls about new features

Identify a searchable PDF

More
10 years 11 months ago #8689 by nermeen
Replied by nermeen on topic Identify a searchable PDF
The code seems ok, but we need you to give us a pdf to be used for further investigation...

If you do not want to share the pdf here on the forum, you can create a support ticket and upload the pdf there. (only you and us can see the ticket)
More
10 years 11 months ago #8709 by nermeen
Replied by nermeen on topic Identify a searchable PDF
At the end there was an error in the code above, the working code is:
Code:
public boolean isPDFSearchable(Document m_doc) { if (m_doc != null) { int totalPageCount = m_doc.GetPageCount(); for (int pageCount = 0; pageCount <= totalPageCount - 1; pageCount++) { Page page = m_doc.GetPage(pageCount); page.ObjsStart(); String text = page.ObjsGetString(0, page.ObjsGetCharCount() - 1); if (text != null && text.trim().length() > 0) { return true; } } } return false; }

For more info please check this article.
Time to create page: 0.337 seconds
Powered by Kunena Forum