Splitting word document - Java API

Hi , I would like to split a word doc in to a single document.
ex: if i have a document with 10 pages i need to split the doc in to each one page.
Can some one pls let me know how to do it ?? is there any Java API available ???
Thanks in adv

pk1234 wrote:
Hi , I would like to split a word doc in to a single document.
ex: if i have a document with 10 pages i need to split the doc in to each one page.
Can some one pls let me know how to do it ?? is there any Java API available ???
Thanks in advThis is going to be extremely difficult unless you get very lucky. I would look for new requirements or get better defined requirements.
The problems are basically two in nature.
1) Reading and writing Word docs sucks in general. It sucks very much for Java. Unless there is a compelling reason otherwise I would recommend using the open office plugin technique others have used rather than POI.
2) Detecting "page" boundaries is about next to impossible in Word. Unless you are lucky enough to be able to have a document that a user has inserted page breaks into. Then maybe.
I would in general recommend that your best approach is not to do this. Wherever the word document is being generated do what you need to do at that step.

Similar Messages

  • Split Word Document

    I need to split a word document into individual pages/files. How can this be done?

    Then export to .pdf will be quickest and easiest.
    Open it in *Acrobat Pro*.
    +Menu > Document > Split Document… > Numbers of Pages > Maximum 1+
    Nominate which folder you want to export to.
    The files will be named *Original File Name_Part1.pdf* etc
    You can then use an application like Renamer4Mac to rename the files how you would like them or use an Automator action to do the same or with more work append the student name to each file.
    It seems to me this may be working on the horse after it has bolted.
    Ideally you would want a sequential merge creating the files and possibly using the student name when it merges and saves. That definitely needs scripting and for that Yvan is your man.
    Peter

  • Api POI read and replace my word document with java

    Hi
    Everyone
    I�d like to know if someone has a piece of code reading a word document with api POI to send me?
    I need read replace the word document wiht java j2ee.
    Thanks

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

  • Java API: IFS Document Versions

    Hello,
    I'm trying to list all versions of a document in an web page, and provide a link to each document version (I'm currently using JSP and IFS Java API Classes as interface from Web to the IFS system).
    To download a specific document version I need to know it's version because we are using different version atribution and I need to match our versions with IFS versions.
    How can I get the version of a specific Document (Java API)?

    okay folks, I've tried something and it seems to work:
    Selector sel=new Selector(IFSSession);
    PublicObject result=(PublicObject)sel.nextItem();
    pw.println(result.getAnyFolderPath());
    and voila !
    typecasting is the key to OOP ;-)))
    regards, F. Leeber

  • Applet to edit MS word document

    Hi,
    We have a requirement in Oracle EBS R12.0.6 to allow users to edit a Word document (report) generated out of the system and then process it further (merge multiple documents into 1 PDF).
    I cannot think of any way of implementing this requirement.
    Is it possible to create an applet that reads file generated on the server, displays and allows user to edit it, and once the user is satisfied have a button to merge the word documents (standard API's are availabe in EBS for this).
    I am not a Java expert, so if the above does not make much sense in Java world, please excuse
    Any pointers/suggestions would be greatly appreciated
    Thanks,
    Ashish

    Hello,
    I think I have the same Problem. Everytime I try to open / edit a WORD or EXCEL file in the Solution Manager I get the following error Message: THE DOCUMENT CANNOT BE EDITED.
    It seams like SM is not able to start the MS Word or MS Excel Application because with Txt Document types (where the SAP Editor is started) everything works fine.
    Thanks a lot for any help.
    Best regards,
    Manuel

  • Is there any java API throgh which My program can get harddisk,cpu ID adres

    hello
    Is there any java api throuh which i can get hard disk and processor serial numbers.
    i have already use
    process p=Runtime.getTime().exec("cmd command");
    please other than this send any java api, progamming technique that remain same on all plate forms
    advance thanks
    best regards

    >
    Is there any java api throuh which i can get hard disk and processor serial numbers.
    i have already use ..>1) What business is that information to your app.? Or to put that another way. Why do you want to know?
    2) Those words are 'Java', 'API' and 'I' (which is always upper case).
    3) One upper case letter should be used at the start of each sentence, not just once at the start of a post.

  • Are there any JAVA APIs that control usb ?

    i can't find any document JAVA APIs that control usb�C
    help me !!

    I think there is an API planned. But I think it is still in the specification state. Search the developer connection.

  • Idea  about convert word document to pdf using java api

    idea about convert word document to pdf using java api if any one find it mail me at [email protected]

    api if any one find it mail me at
    [email protected]
    What happend to your other mailID :
    [email protected] ????
    http://forum.java.sun.com/thread.jspa?threadID=639851&
    messageID=3756910It received the Spam Of Death. RIP

  • How to open Word Document using java?

    Respected Sir/ Madam,
    I am doing my project in Network Security using java. I have to transfer the files from server to the client. Each transferred file should have some of the access privileges such as read, write and exeucte. If the transferred file is a word document means then automatically the client should open Microsoft word and if the file is having Read Permission alone then the save, Save As, cut,copy, paste options in the MS - Word should be disabled. This is similar for all the files that i have transferred. That is if the transferred file is excel, audio, video,txt file the corresponding application should be opened properly. How could I acheive this. If the file is having write permission then if the user clicks the save option then the contents of the file should be saved in the server machine not in the client machine, Could we achieve this???? Can anyone help me regarding this? Please give me your views about this query?

    Respected Sir / Madam,
    Thank you very much for your reply. Could we use Microsoft API inside java program to achieve my doubts?? Could U explain it more????

  • Create Word document in Java application

    Hi all,
    Has anybody already used this Java Bean word processing in a Java application: http://www.must.de/default.html?Javactpe.htm ?
    Is it reliable ?? Any comments are welcome.
    What are the other ways to read/write a Word document in a Java application ?
    Thanks,
    Christophe

    Hi Naga,
    I have a problem using this word processing bean. The API can't find the template SampleTemplate. I have put this template and the API in the same folder, but I get a "Template SampleTemplate not found" when the wordAPI executes.
    Can you help ?
    Christophe

  • 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

  • I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF.   I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in th

    I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF. 
    I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in this regard is greatly appreciated.@

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • 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!

  • How to read Word Document in JAVA

    I use POI for read an write Word Document, but i have a problem of a compatibility (i use Word 2003 & the api poi supportes Word97).
    Can you help me please !!!

    Aspose.words is an interesting product with a good compatibility (up to word 2003).
    It is pure Java (Word is not required) but it's a commercial product. The only thing missing is the ability to print a word document.
    http://www.aspose.com/Products/Aspose.Words/Default.aspx
    Bye.

  • Generating reports in .doc format (Word Document) using Java POI - HWPF

    Hi
    Can anybody help me how to generate the report in .doc format using POI API?
    Please share the sample code, if you have.
    Thanks in Advance
    Dhilip

    Hi,
    I dont think that your requirement has to do with ADF capabilities.
    You want to edit a word document with JAVA. For that reason, you will need an API, as the suggestions above.
    You can do it without ADF and by using standard JAVA and the API of your choice. a static void main will do for that matter.
    ADF comes into the game when you want to handle the document with your ADF application.
    This means that you either want to get your new data to be placed on your doc from BC or any other DataControl or you want to do something else with ADF..
    My guess is that you want to get data from ADF into your Doc.
    You could create an API on handling your Doc and then use it into your ADF application.
    Regards,
    Dimitris.

Maybe you are looking for