0

I have a docx file inside my android app. I want to view its contents on an activity , page wise.

say, I want to view page no 2, i want something like

display(DOCX_NAME,2);   

also, on display, there should not be any re-formatting(I want the docx page to be displayed as if a snapshot was taken of it)

how do i go about it? also, its a 200 page docx, and I will use the display part quite a few times during runtime.

harveyslash
  • 5,906
  • 12
  • 58
  • 111

1 Answers1

1

They is no concept of a page in the docx format: The pages completely depend on the implementation of the wordviewer.

However, JasonPluText has created a demo showing AndroidDocxToHTML

See this question for more details: how to Show or Read docx file

Community
  • 1
  • 1
edi9999
  • 19,701
  • 13
  • 88
  • 127
  • do you know of any similar format that does have pages? i want the contents of each page to be displayed when i want it to. will pdf work? if yes, then which library is good for reading and displaying on android? – harveyslash Mar 06 '14 at 16:04
  • Yes, I think PDF can do that. Have a look at this link: http://commonsenseatheism.com/?p=8335 and this one : http://stackoverflow.com/questions/13019447/how-to-delete-first-page-from-muliple-pdfs , they are giving infos about manipulating pages in PDF – edi9999 Mar 06 '14 at 18:04
  • also, i have a lot of symbols in my docx. how do i convert it to docx whilst retaining the small size? – harveyslash Mar 07 '14 at 18:39
  • I dont understand your question. Could you maybe create a new question ? – edi9999 Mar 07 '14 at 19:01
  • i dont really know how to frame it. i have a 500 page chemistry-related book(with all symbols etc) which has questions. i want each of these questions to be on a separate page. how do i do that? – harveyslash Mar 07 '14 at 19:09
  • It's quite difficult to help you with so less information. A new question would help a lot – edi9999 Mar 07 '14 at 19:12
  • can i ask about it on chat ? – harveyslash Mar 07 '14 at 19:16
  • I think it would be a bit too complicated to explain: Just create a new question – edi9999 Mar 07 '14 at 20:33
  • just one more thing; which library should i use to convert a particular PDF page to image? – harveyslash Mar 10 '14 at 05:49
  • see this http://stackoverflow.com/questions/22332791/converting-pdf-to-image-with-proper-formatting – harveyslash Mar 12 '14 at 05:55