API FOR READING MICROSOFT WORD DOCUMENT FILE

HELLO
I need to know are there any api's to read a word document i.e a .doc file into a java program. If there r api where can i find them & how can i use them

For Reading PDF documents, you can use PDFBox, for reading word documents, Apache's POI . But POI supports only Excel right now, Word will soon be supported

Similar Messages

  • Java API for reading/writing word/excell file

    Hello Friends,
    Is there any Java API available for Microsoft word and excell product?

    Hi,
    Start your search here
    http://jakarta.apache.org/poi

  • How can I change a Microsoft Word document file into a picture file?

    How can I change a Microsoft Word document file into a picture or jpeg file? I am wanting to make the image I created my background on my macbook pro.

    After I had the document image the way I wanted it, I saved it as a web page and went from there. Below are the steps starting after I did the "save as" option in Word:
    1) Select "Save As Web Page". I changed the location from documents to pictures when the window came up to save it as a web page.
    2) Go to "Finder" on you main screen, or if it's on your main toolbar at the bottom.
    3) Click on the "Pictures" tab and find the file you just re-saved as a web page. (I included "web page" or something similar in the new title so I could easily find the correct file I was looking for)
    4) Open the correct file and then "right click" on the actual image. (Use 2 fingers to do so on a Mac)
    5) Select 'Use Image As Desktop Picture", and voilà! The personally created image, or whatever it is that you wanted, is now your background.
    **One problem I encountered while doing this is that the image would show up like it was right-aligned in relation to the whole screen. The only way I could figure how to fix this was to go back to the very original document in Word, (the one before it was saved as a web page), and move everything over to the left.
    I hope this helps someone else who was as frustrated as I was with something that I thought would have been very simple to do! If you have any tips or suggestions of your own, please feel free to share. : )

  • Sometimes when i get out of the full screen option for a microsoft word document i lose my main toolbar (the toolbar with the minimize and escape buttons, etc. etc.)

    Sometimes when i get out of the full screen option for a microsoft word document i lose my main toolbar (the toolbar with the minimize and escape buttons, etc. etc.)??

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro 
    https://discussions.apple.com/community/mac_os?view=discussions
    http://www.apple.com/support/macbookpro

  • Can an ipad read microsoft word documents

    Can an iPad read Microsoft Word documents?

    You only need those apps if you wish to create/edit Word documents.

  • Can JAVA read Microsoft word document?

    Hi
    I am trying to make a program that read a word document, and split the document in to each pages and save each pages with file as it's footer of each pages.
    --- example-----
    test.doc
    Page 1 |
    |
    |
    |
    |
    |
    footer - hi |
    Page 2 |
    |
    |
    |
    |
    |
    footer - test |
    Page 3 |
    |
    |
    |
    |
    |
    footer - still |
    Page 4 |
    |
    |
    |
    |
    |
    footer - hahaha |
    Page 5 |
    |
    |
    |
    |
    |
    footer - lastpage |
    -----------------------> Out put of the program
    hi.doc , test.doc, still.doc, hahaha.doc, lastpage.doc
    Is there any way to import word document and process like that above?
    I have searched about this, and found out 'Jakarta POI' can access to word document but with many restrictions. (I heard it doesn't support word version 2003 and 97)
    Can any one please answer this?
    Thankx

    I'm not really sure that java is the best language to use for this particular project. I haven't looked into writing a standalone application to do this sort of thing, but Microsoft Word has a built in VB editor that allows you to write scripts that will do this very simply, using Word's Document Object Model.
    I would imagine the same sort of the thing could be done from a Stand-alone aplication as well, but you might need some libraries for reading the document and obtaining the object with the same model. I would look into Microsoft's .net solutions for this one. You might even be able to work out a solution in C++, C#, or even J# (which I understand is "similar" to java), if you don't know visual basic.
    It is possible that there is a library out there that will read a Word Document, and create the appropriate Java object with the same object model, but I don't know where it can be found.
    Anyway, if the option is available to you, take a look at Microsoft's .Net. You'll probably have more luck that way. Good Luck!

  • Pages as Default Word Processor for .doc Microsoft Word (Office) Files

    In reading the system topics, there was a nice simple help solution. Find a .doc file. Do a Get Info (CMD-I) on the file and then under the File Options choose Pages, and indicate that this works for all .doc files.
    BUT... Wunderkind Apple Engineers who put ease-of-use above everything, that is still about four steps harder than going into the PREFERENCES on either PAGES or Text Edit, or even having a centralized prefs in the System Preferences Panel that lets you pick and choose what APPs run what files.
    How about sticking a check box into the APP to change it over? Or is that offending the powers-that-be in Redmond so badly that they might do to Office what they did to Internet Explorer on the Mac?
    iWork outshines Office. Give us an easier route to LIVE MICROSOFT FREE!
    Applejedi1

    Dennis:
    Lets clarify. In Pages:
    File>Preferences
    Do you want Pages to be your default reader for:
    CHECKBOX - .doc (Word Files)
    CHECKBOX - .txt, csv (Text Files)
    Do you want Pages to automatically save a Word file of your document:
    PULLDOWN: In addition to creating a pages file; (Indicate where page may be placed)
    Instead of creating a pages file;
    And Yes, for the end-user who is new to Macs or new to computers in general, simplifying the handling of documents to a preference in the System controls would make sense. Then each App wouldn't have to do it, or could modify the central file if say Firefox wanted to be your browser/handler of choice, and asked you if you want it to be the primary control of that kind of content. Why shouldn't Pages be able to ask/set up the program easily so that the user can just get about the business of using the program? Your solution is nice, but it is still at a level that you have to be comfortable with working with files and GET INFO, which, while it doesn't phase you or me, would freak out my technophobic 14 year old daughter or my wife.

  • App for editing microsoft word documents

    I am a PhD student in the area of engineering sciences and I frequently need to write journal articles which are mathematically involved. I am just wondering if there are any word editing apps on iPad which can recognize mathtype equations? I purchased documents to go and it is not very useful to me.. And also, I would like to be able to see .emf type pictures embedded within my word document.. I would also like to accept/reject changes made by others on my documents.. all these, documents to go is not able to do, and this is a real frustration.. anybody know any remedies or apps that can do just what I need? I need the app to be as close to microsoft word as possible..
    Joseph

    I work on word and xl files daily. for documents, Pages is fine. It does not do everything Word does, but remember, this is a portable streamed down machine.
    i also use docs 2 go from data viz. Its also fine, but for word applications, i usually end up in pages. It just works better for me. docs 2 go is good for me for transferring a set of documents without needing to sync or use i tunes.
    For spreadsheets, you can view and do light edits in Numbers, and the dataviz is also functional, but i want to tell you that heavy duty spreadsheet work on an i pad is just not a real fun experience. It will work, but you will be a lot happeir in that world with a larger screen, a mosue, and a real keyboard. The mechanics of moving around a sheet and making cell corrections, especially to formulas, is just a little clunky.
    lastly, if you are going to try heavy duty stuff, an external keyboard is a nice thing to have along. the existence of the arrow keys, to me, really help in navigation.

  • Reading Microsoft Word Document in JAVA

    Hi friends,
    im using follwing code to read word document in java using apache poi package..
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hwpf.*;
    import org.apache.poi.hwpf.extractor.*;
    import java.io.*;
    public class readDoc
    public static void main( String[] args )
    String filesname = "Hello.doc";
    POIFSFileSystem fs = null;
    try
    fs = new POIFSFileSystem(new FileInputStream(filesname;
    //Couldn't close the braces at the end as my site did not allow it to close
    HWPFDocument doc = new HWPFDocument(fs);
    WordExtractor we = new WordExtractor(doc);
    String[] paragraphs = we.getParagraphText();
    System.out.println( "Word Document has " + paragraphs.length + " paragraphs" );
    for( int i=0; i<paragraphs .length; i++ ) {
    paragraphs[i] = paragraphs.replaceAll("\\cM?\r?\n","");
    System.out.println( "Length:"+paragraphs[ i ].length());
    catch(Exception e) {
    e.printStackTrace();
    but im getting exception that
    java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 bytes
    at org.apache.poi.poifs.storage.HeaderBlockReader.<in it>(HeaderBlockReader.java:78)
    at org.apache.poi.poifs.filesystem.POIFSFileSystem.<i nit>(POIFSFileSystem.java:83)
    how to solve this issue.. please suggest me .. its urgent..
    Add to satheeshtech's Reputation

    You might do better consulting [http://www.nabble.com/Apache-POI-f298.html|http://www.nabble.com/Apache-POI-f298.html] .

  • To JDeveloper Tech Team & All: Displaying Microsoft Word Doc file in JDeveloper

    Is there any way, we can display a Microsoft Word Document file in JDeveloper ? I have JDeveloper 3.2.2 on my computer running Windows NT version 4.0 (SP 6). I appreciate your immediate responce. Thanks.

    In theory, you can display a DOC file in JDeveloper - given the correct JavaBean capable of reading DOC files and dispplaying it - then it could be hooked
    into JDeveloper as an Addin.
    But, wouldn't it be easier to display it in MS Word / other Doc Viewer?
    If DOC files are part of your development,
    then you can put a quick Invocation to Word / other tool in your JDeveloper Tools menu by editing the [JDev]\bin\tools.cfg file - See help for more info.
    I hope this helps,
    if not, please clarify further.
    -John

  • Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e

    Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e mail in order too send Also, I have not been able to safe a download files on my iPAD as I do not have a download manager on it. Please, kindly send to me ways of getting these problems fixed as i am a young resarcher who sends a lot of mails and download as wel. Als, I am always on the move as this has propmted me in the first place to get an IPAD .
    Last but not the list II will equally wish to know if it will be possible for  me to use a pen to take seminar notes on my iPAD and safe the same on my iPAD fr later reference as it is done on other tablets ke samsung. I read somethng like stylus pen but I don't know how far. Please, kindly make an appropriate recommendaton for me and where i can get it. I reside in Turkey and currently a Ph.D stuudent in ine of the leading niversities in the country. Also, I will like to know if you ave ecoonomics text books that I can buy or published journas in apple store because i have searched but could not get  a desirerable ones.
    Once again, thanks for your anticipated prompt rely to my mail.
    Regards
    Wasu Fawole

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • How can I restore my Microsoft Word Documents which became Unix Executable Files after my Macbook Pro Crashed?

    After my MacBook Pro suddenly crashed, we had Best Buy's Geek Squad attempt to save the files. According to them, they were successful in doing so and put all of the saved files in a folder on my desktop which they labeled "Backup". The problem is, all of the files are in a Unix Executable format. When you double click on any of them, they pull up the terminal and that's it. After researching the issue and trying to grasp what was going on, I learned that you can open these files in Text Edit and sometimes find the file extension (.png .jpeg .amr .qt) that belongs at the end of the filename in order for it to be pulled up. In doing this, I had some success restoring some photos, audio files, and videos. However, no luck at all in restoring any of my Microsoft Word documents or even finding out which Unix Executables are Word documents. I've even tried to add .docx to various files just to see if I would luck out. Nope .  Any help would be SO SO greatly appreciated!!!

    Just to make sure, your Mac meets Snow Leopard's requirements?
    Mac OS X v10.6 Snow Leopard - Technical Specifications
    Yes, Lion does require that  you have Snow Leopard installed so you have access to the Mac App Store.
    And you do need to be running v10.6.8 in order to upgrade to Lion >  http://www.apple.com/macosx/how-to-buy/
    When you verified the startup disk using Disk Utility, what were the results?
    Wouldn't hurt to do that again. From your admin account launch Disk Utility. Select MacintoshHD in the panel on the left then select the First Aid tab. Click: Verify Disk  (not Verify Disk Permissions).
    If the startup disk needs repairing, boot from your install disk to make repairs >  Using Disk Utility to verify or repair disks
    While you have the DU window open, check Capacity & Available at the bottom of the window. Make sure there is a minimum of 15% free disk space.

  • I downloaded Lion onto my Mac, and now cannot open or access any of my Microsoft word documents or Power Points. Is there a fix for this? I need my documents

    I downloaded Lion onto my Mac, and now cannot open or access any of my Microsoft word documents or Power Points. Is there a fix for this? I need my documents

    If it's because you were using Office 2004, the eight year old version of Office that was written when Intel processors were not used in Macs, then there will be no fix. Lion dropped support for PowerPC applications, as has been widely reported since Lion's release last August.
    You can upgrade Office 2004 to Office 2008 or Office 2011. You can use iWorks 2009 that can open Microsoft files. You can use a number of free applications that are also capable of working with Microsoft documents. You can go back to Snow Leopard, if you have a backup. Or, if you have an external drive or room to add a partition to your current drive, you can install Snow Leopard on it.
    Search these forums for more information. If this is your issue, it's been posted and answered several times a day since August 2011.

  • Convert 1 single microsoft word document with section breaks to multiple pdf files

    I am a windows 7 users. I have a single microsoft word document which contain 1500 pages. These 1500 pages are seperated by sections breaks in the microsoft word. I am trying to convert this word document to multiple pdf files seperated by the section breaks in the Microsoft word. How can I convert the single microsoft word document with section breaks to multiple seperate pdf files?

    Acrobat (Adobe PDF Printer and PDFMaker ) doesn't recognize the Section breaks.  It never has as far as I am aware.  The easiest thing to do is to manually break up a copy of the MS Word Document into the Sections you need and then create the PDFs from those MS Word documents.

  • When I download Microsoft word documents (if have word 2007), I have somehow changed the settings and it downloads them in wordpad, and the format is very bad and I can't read a lot of the document. How do I change the default setting back to using Micro

    When I download Microsoft word documents (if have word 2007), I have somehow changed the settings and it downloads them in wordpad, and the format is very bad and I can't read a lot of the document. How do I change the default setting back to using Microsoft Word 2007 to open these documents?
    == This happened ==
    Every time Firefox opened
    == about a few weeks ago - I had tried to open some docuuments saved on a mac, my PC (which runs Windows 7), used word pad to open these, and this seems to have changed the default settings somehow.

    See this:
    [http://support.mozilla.com/en-US/kb/Managing+file+types]

Maybe you are looking for

  • Drag and Drop Return Animation

    I've created a drag and drop interaction and would like the dragged object to animate back to the start location when the target location is not correct. Currently I have it snapping back, but would like to animate it using some kind of 'do while' lo

  • Acrobat 8.1 update

    Since the 8.1 update, I have been unable to view .pdf files in my folders. Is there a setting so I don't have to actually open the file but can preview it? I've checked all settings but haven't seen what I'm looking for.

  • Phone restarts when using internet radio on E63

    Hi, I have Nokia E63 and the problem is it just restarts automatically when I am listening to internet radio. I have tried multiple times but the problem keeps occuring. No problems otherwise and I am pretty happy with my phone. Any suggestions? Rega

  • [Solved] Can't see GPT disk partitions in Windows 7 (64-bit)

    I just added 2 new disks and had them set up equally with GPT and equal partitions, to use the partitions as RAID1 in Arch, and the rest of the storage for Windows. It works as expected in Linux (I guess), but Windows shows them as uninitialized. Can

  • Top activity (red bar) enterprise manager

    Hi I am new to oracle 10g and performance tuning; When I look at the top activity from enterprise manager, I notice that one person has red bar(which is making update).The activity is around %65, and the user said that the system hangs, it takes too