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

TOPIC:

Text Only view in Reader 9 years 5 months ago #7675

  • Haktic
  • Haktic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
How can we get the text only view in pdf reader, i.e only text from the pdf document will be shown without graphics and pictures.
Any help will be apreciated,
Thanks

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

Text Only view in Reader 9 years 5 months ago #7678

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
just using TextView.
like this:
Page page = doc.GetPage(pageno);
page.ObjsStart();
String val = page.ObjsGetString(0,page.ObjsGetCharCount());
page.Close();
TextView.Text = val;

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

Text Only view in Reader 9 years 5 months ago #7680

  • Haktic
  • Haktic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Thanks for your reply .., can you please tell a little more details like where to add this code ?

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

Text Only view in Reader 9 years 5 months ago #7691

  • Haktic
  • Haktic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Hi! radaee
i have tried this but no luck i am looking for your responce ..,
Thanks

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

Text Only view in Reader 9 years 5 months ago #7699

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Can you explain why it's not working with you?

The above code should return only the text content of a page in a string...

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

Text Only view in Reader 9 years 2 weeks ago #8785

  • Cooper
  • Cooper's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Is it possible to improve this function? For instance:

- continue to next page in text only view
- don't show text in small columns but use the width of the screen

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum