# Parsing word document

**URL:** <https://www.ruby-forum.com/t/parsing-word-document/170114>\
**Category:** Ruby\
**Created:** [June 12, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/parsing-word-document/170114 "2009-06-12T13:35:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [June 12, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/parsing-word-document/170114/1 "2009-06-12T13:35:54Z")

</div>

Hi friends

```
  Can anyone there pls suggest me that whether getopt long or

```

optionparser can be used to parse word document to upload the data from  
word doc to d/b.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [June 12, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/parsing-word-document/170114/2 "2009-06-12T13:44:55Z")

</div>

So:

1. You want to parse a word document
2. You want to convert data from a word document and put it into a db

optionparser and getopt are packages to help you parse command line  
options.

So the answer would be no.

Jayanth

On Fri, Jun 12, 2009 at 5:05 PM, Anandh K.

---

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [June 12, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/parsing-word-document/170114/3 "2009-06-12T15:35:01Z")

</div>

so wat are the other options for accomplishing that task…

Thanks

Anandh

---

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [June 12, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/parsing-word-document/170114/4 "2009-06-12T16:32:16Z")

</div>

Hi,

2009/6/12 Anandh K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi friends
> 
> Â Â Â Can anyone there pls suggest me that whether getopt long or  
> optionparser can be used to parse word document to upload the data from  
> word doc to d/b.

I’m not sure what do you mean by parsing word document.  
If you want to get text from word document, refer to  
[How to get contents of word file page by page - Ruby - Ruby-Forum](http://www.ruby-forum.com/topic/173242#759360) .

Regards,  
Park H.
