From: Name Surname Date: 2008-12-15T15:55:34+09:00 Subject: Re: How to get contents of word file page by page If you have Word2pdf like program, then check if you can specify which page to covert. You could call Word2pdf several times specifying different page numbers to convert. Word2pdf -n 1 infile.doc out1.pdf Word2pdf -n 2 infile.doc out2.pdf Word2pdf -n 3 infile.doc out3.pdf :D The only thing here is to find(have) Word2pdf program which supports that :). Talib Hussain wrote: > Name Surname wrote: >> You must be trying to solve a problem (word document convertation to >> pdf) with a wrong tool:). You don't need ruby to convert word file to >> pdf. There are tools like Word2pdf for this. >> >> Talib Hussain wrote: >>> Heesob Park wrote: >>>> 2008/12/12 Talib Hussain : >>>>> Hi, >>>>> >>>> Regards, >>>> Park Heesob >>> >>> Thanks a lot Park, you are genius. >>> >>> My requirements is that I have a document (Word file) of say 3 pages >>> with formatted text. >>> >>> I need to extract the contents of each page with formatting and save >>> that as a seprate .PDF document. >>> >>> Is this possible? If yes how can I do that? >>> >>> Also, do I need to install Office 2007 in order to save files as .PDF >>> documents. >>> >>> Kindly let me know. > > > Agreed, but I have to create 3 seprate doc files out of one document > (each page of the document) and send these files as input to the pdf > converter -- Posted via http://www.ruby-forum.com/.