How to Edit Word Document in Oracle ADF Application - Apache POI

Hi All
I was wondering if there is a way to edit and save word documents in Oracle ADF without loosing the Formatting.
I was able to edit and save the word document however the Formatting was lost.
Please let me know if there are any pointers or open source Java APIs that we can use to achieve this.

Refer the Text Formatting section
Apache POI - HWPF - Java API to Handle Microsoft Word Files
HWPF Reads in a Word document with minimum formatting (no lists, tables, footnotes, endnotes, headers, footers)
Apache POI - HWPF - Java API to Handle Microsoft Word Files
The _cbt field in class HWPFDocumentCore contains formatting information.
HWPFDocumentCore (POI API Documentation)
For more advanced text extraction needs, including Rich Text extraction (such as formatting and styling), along with XML and HTML output, Apache POI works closely with Apache Tika to deliver POI-powered Tika Parsers for all the project supported file formats.
Apache POI - Text Extraction
Use Apache Tikka for formatting.
Apache Tika - Supported Document Formats

Similar Messages

  • How to edit word documents once converted

    Can someone please advise how to edit a document I have converted into word from PDF.
    Many thanks

    Not sure what you mean. Are you asking how to use WORD? It also depends if you used the layout or the flow conversion process. With the layout, you get a bunch of text boxes. Almost nothing is in the standard flow of WORD. If you use the flow version, you sometimes get some strange sequencing of items. You might try both. If you have a graphic, then you either have to edit the graphic in a graphics package or do OCR in Acrobat before you do the conversion.

  • How to edit Word Document stored in BDS through ABAP WebDynpro

    Hi All,
    Currently, my company has an ECC 6 program very similar to SAPRDEMO_FORM_INTERFACE.  This program takes a word form and populates it with various bits of data for the end user.  The user can then edit this document as they see fit and save it to the BDS system against a Material. 
    The current requirement is to replicate this functionality through a WebDynpro program.  SAP does have a demo WebDynpro program IOS_TEST_WORDPROCESSING under package SIOS.  Within Method WDDOMODIFYVIEW of view TEST_VIEW_WORDPROC, the program takes the URL of a MIME repository object (which is a word document) and displays that document.  I tried to replicate this functionality by using the URL and content of the document using the CL_BDS_DOCUMENT_SET; however I am unsuccessful in getting this document to display.  No matter what I do, I cannot seem to get the BDS document to display. 
    Does anyone know how to display and edit BDS documents through WebDynpro?  Any help that you can provide would be greatly appreciated.  Thanks for your help.
    John

    >
    John Breen wrote:
    > Hi All,
    >
    > Currently, my company has an ECC 6 program very similar to SAPRDEMO_FORM_INTERFACE.  This program takes a word form and populates it with various bits of data for the end user.  The user can then edit this document as they see fit and save it to the BDS system against a Material. 
    >
    > The current requirement is to replicate this functionality through a WebDynpro program.  SAP does have a demo WebDynpro program IOS_TEST_WORDPROCESSING under package SIOS.  Within Method WDDOMODIFYVIEW of view TEST_VIEW_WORDPROC, the program takes the URL of a MIME repository object (which is a word document) and displays that document.  I tried to replicate this functionality by using the URL and content of the document using the CL_BDS_DOCUMENT_SET; however I am unsuccessful in getting this document to display.  No matter what I do, I cannot seem to get the BDS document to display. 
    >
    > Does anyone know how to display and edit BDS documents through WebDynpro?  Any help that you can provide would be greatly appreciated.  Thanks for your help.
    >
    >
    > John
    John,
    use CL_HTTP_CLIENT instead to get the document from external URL.

  • How do I convert a pdf to an editable word document

    how do I convert a pdf to an editable word document - it is still in a picture format?

    Export PDF
    I have now learnt that it is a scanned pdf that I am trying to convert to a
    editable word document.
    Can one do this?

  • How do I convert a powerpoint presentation saved as pdf to an editable word document minus all the frames around the slides?

    How do I convert a powerpoint presentation saved as pdf to an editable word document minus all the frames around the slides?

    Hi Sara!
    Yes this sounds interesting. Can I update to that from the PDF Export I have just renewed? How much would that cost?
    Thanks for your quick answer.
    Best Regards
    Per-Olof Egli                                         Logga Egli C.I.S
    Managing Director
    Egli C.I.S. Consulting
    Lapphundsgränd 43
    SE-128 62 SKÖNDAL
    Sweden/Швеция
    Phone:         +46 708 23 03 53
    <http://www.eglicisconsulting.se/> www.eglicisconsulting.se
    <mailto:[email protected]> [email protected]
    Skype: eglipo
    Från: Sara.Forsberg 
    Skickat: den 10 september 2014 22:11
    Till: P-o Egli
    Ämne:  How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
    How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
    created by Sara.Forsberg <https://forums.adobe.com/people/Sara.Forsberg>  n Adobe ExportPDF - View the full discussion <https://forums.adobe.com/message/6718870#6718870>

  • How do i convert pdf file in editable word document

    How do i convert pdf file in editable word document ?

    To convert a PDF file to Word or Excel, you can subscribe to one of Adobe's services (Adobe ExportPDF or Adobe PDF Pack) or you can purchase Adobe Acrobat.

  • How can I best edit word documents that have been emailed to my iPad?

    I  regularly receive word documents from work, via my yahoo email account.  I have two questions really. 
    1) Can I edit word documents received via email?
    2) If this is possible, what is the best way to do this?
    Thanks in advance

    Sorry, yes. When I asked "how do I transfer it to Pages for editing?" I perhaps should have made it clear that I have purchased it. I can also create documents in it and send them as a Word document to others via email.
    Could you clarify "When you get the email, click on the Word Document to view it." The email appears in the Inbox list but does not show an attachment in the same way it does on my Mac. If I tap the email, it opens and reveals the contents including the Word document contents. At what point am I looking for an arrow - in the email list or in the opened and readable Word document?

  • Create/edit word document from in Forms 6

    I want to create and or edit word documents stored in the operating system whose name (and path) is stored in the database. I have a form with a field of the doc name, how can I call word with the file name?
    I've never used OLE before so be specific.
    Thanks

    I've never used OLE before so be specific.So you know what to use. Look at Forms Help. There is no better place for this. You will get examples there.
    But Remember If you are using Forms on WEB this will give problems as OLE is not supported on WEB.
    Vij

  • Storing PDF and Word document in oracle database

    any idea, how to store PDF and word document using oracle database.
    thanks

    The common approach is store as BLOB in database, use DBMS_LOB package to handle the loading and reading, sample script source asktom
    Also check this thread in Asktom
    SQL> create table demo
      2  ( id        INT PRIMARY KEY,
      3    theBlob   blob,
      4    dummy_col VARCHAR2(1)
      5  )
      6  /
    Table created.
    SQL> -- --------------------------------------------------------------
    SQL> -- Load a PDF file into a BLOB field and compress the BLOB.
    SQL> -- --------------------------------------------------------------
    SQL> declare
      2      l_blob    blob;
      3      l_bfile   bfile;
      4 
      5  begin
      6      insert into demo (id, theBLOB) values ( 1, empty_blob() )
      7      returning theBlob into l_blob;
      8 
      9      l_bfile := bfilename( 'BLOB_DIR', 'Test.PDF' );
    10      dbms_lob.fileopen( l_bfile );
    11 
    12      dbms_lob.loadfromfile( l_blob,
    13                             l_bfile,
    14                             dbms_lob.getlength( l_bfile ) );
    15 
    16      UPDATE demo
    17      SET    theBlob = utl_compress.lz_compress(l_blob, 6)
    18      WHERE  id = 1;
    19  -- If you don't want compress the LOB just update directly
    20      dbms_lob.fileclose( l_bfile );
    21      COMMIT;
    22  end;
    23  /
    PL/SQL procedure successfully completed

  • How to read word document in pl/sql

    How to read word document which is stored as BLOB column in table.
    I want to read it word by word.Please explain me how to raed using DBMS_lob
    package and substr,instr.

    You cannot. A Microsoft Word document is in a proprietary binary format. You cannot treat it as a text file and read "word-by-word" from it.
    As for examples - refer to the [url http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm]Oracle® Database PL/SQL Packages and Types Reference manual. It describes DBMS_LOB and its usage in detail.

  • I downloaded the adobe XI software and it shows in my Adobe download assistant as downloaded but I can not open it and it is not a part of my applications. Very frustrating download process as I just want to convert a PDF file to an editable word document

    I downloaded the adobe XI software and it shows in my Adobe download assistant as downloaded but I can not open it and it is not a part of my applications. Very frustrating download process as I just want to convert a PDF file to an editable word document...

    Odonnells52 you will still need to install Adobe Acrobat Professional prior to being able to make edits to PDF or utilize Acrobat.   By default the installation files have been saved to your download folder.
    If you continue to face difficulties with the Adobe Download Assistant then please see Troubleshoot Adobe Download Assistant.
    You can also download the installation files directly from Download Acrobat products | Standard, Pro | XI, X if you are unable to locate the downloaded installation files.

  • How to edit my document after signing?

    how to edit my document after signing?

    Hi fortm71591551,
    Follow the below procedure for editing your document after signing it:
    1. Open the File in Acrobat
    2. Right Click on the signature field and choose 'Clear Signature'
    3. Go to tools pane on the right side of the window then choose 'Edit' Under Forms Drop Down Menu.
    4. Right Click on the signature field  and choose delete.
    5. Click 'Close Form editing' and then you can make necessary changes and resign your pdf (If you want to).
    Hope that helps.
    Please revert back for any other query or if you need any further assistance.
    Regards,
    Rahul

  • How can I control updating in Oracle ADF

    I have been using Oracle Forms for many years and am trying to learn Jdeveloper and Oracle ADF. In Oracle Forms, we base all of out blocks on views and control all updating in on-insert, on-update, and on-delete triggers. How can I control updating in Oracle ADF in a similar manner?

    Hi,
    Hope following will helpful
    http://www.pitssamerica.com/files/101102_WP%20FormsToADF.pdf
    http://www.exploreoracle.com/2010/08/24/oracle-application-development-framework-adf-and-oracle-forms-developers/
    http://www.google.lk/url?sa=t&rct=j&q=adf%20sample%20for%20oracle%20form%20developer&source=web&cd=7&ved=0CEAQFjAG&url=http%3A%2F%2Forclsamples.googlecode.com%2Ffiles%2FThe%2520Challenges%2520Oracle%2520forms%2520Migration%2520to%2520ADF.pdf&ei=0FzWToaUI4_JrQe0oommDg&usg=AFQjCNEdpho2uVqhSCEugw1svza6zc9iSg&cad=rja

  • How to Read Attached Document In oracle apps.

    Hi All,
    how to read attached document in Oracle apps.
    Select * from   fnd_attached_documents.
    Regards,
    Mohan Reddy

    Hi Husseein,
    how to read pdf file in blob data type column
    i have tried below query but in this part utl_file.fopen asking directory name i don't have directory name.
    could you give any another solution.
    DECLARE
      l_file      UTL_FILE.FILE_TYPE;
      l_buffer    RAW(32767);
      l_amount    BINARY_INTEGER := 32767;
      l_pos       NUMBER := 1;
      l_blob      BLOB;
      l_blob_len  NUMBER;
    BEGIN
      SELECT FILE_DATA
        INTO   l_blob
        FROM   fnd_lobs
         where file_name = 'est-1.pdf' and FILE_ID = 332810;
      l_blob_len := DBMS_LOB.getlength(l_blob);
      -- Open the destination file.
      l_file := UTL_FILE.fopen('IRB','STD_FlipBook_Religion2013.doc','wb',18306);  --(Here I don't have Directory name)
      DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
      UTL_FILE.put_raw(l_file, l_buffer, TRUE);
      l_pos := l_pos + l_amount;
      -- Close the file.
      UTL_FILE.fclose(l_file);
    END;
    Regards,
    Mohan Reddy

  • Write to word document from oracle plsql

    Hi,
    Please provide methods to create and write to a word document from ORACLE PLSQL.We tried using UTL FILE package but it writes as ascii text.

    Divs wrote:
    The server m/c operating system is unix.so we need to invoke the procedure from Unix Os.In that case - not possible. For Windows COM (Component Object Model) to work, Oracle database need to be able to call and load the COM dynamic link libraries.
    Not to say that it is not possible. Have never used DCOM (the Distributed COM interface), and not exactly sure what it requires. Assuming that DCOM is not usable from a Linux perspective, you can still provide a manual interface. You create a NT tcp/ip service that exposes the COM interface calls that you need - in a secure fashion (even better - you can provide a higher level abstraction layer for the COM interface that does the specific job you need to be done).
    From Oracle you can then use PL/SQL's UTL_TCP package to open a connection to it and via this service craft a Word document on that Windows server.
    Are there web services for MS Office? I know Google is pushing that aspect hard (and embroiled in lawsuits with the US government and Microsoft about tender awards in this aspect). Now if Microsoft has "+office-on-the-web+", then one can create a Word document via a web browser. This means that there is an underlying web service - and that this can be called and used. The Evolution (Open Source Mail Reader) project for example uses the MS Exchange web service interface to provide a seamless interface to Exchange mail accounts (have used this everyday for a number of years now).
    The real question I would however ask is why Word specifically? Why not a more common format like PDF? You can even consider generating XML instead. Both Microsoft and Open Office and others are supporting XML formatted word processing documents (as oppose to older proprietary and binary formats).
    And why not use a Report Writer? I'm a big fan of doing as much as possible in Oracle (using PL/SQL most of the time). But certain things, like generating Word-style documents would be better done (and more flexible too) using a Report Writer.

Maybe you are looking for

  • How to connect to an FTP server via Midnight Commander _User_Menu_?

    Hi everyone. There's a nifty command that works in MC and makes it connect to an FTP server and display its directories just as if they were local ones: cd ftp://USER_LOGIN@SERVER_NAME. The only thing it asks for is a password, obviously. That's exac

  • Getting error while starting manage server on weblogic 9.2 platform

    Hi I am getting following error while I try to start manage server java.lang.NullPointerException: at com.bea.console.handles.JMXHandle.(JMXHandle.java:73) at com.bea.console.actions.core.server.lifecycle.Lifecycle.noAccess(Lifecycle.java:771) at com

  • How to clear data in Table Control.

    hi! all How to clear the data in table control. i have a Table control which displays column A data from the previous screen and allows to enter column B and column C and i have a button CLEAR, when i click CLEAR button the Data displaying in table c

  • Brand new iMac running very slow!

    I just purchased brand new iMac on January 2nd (the specifications are below).  The computer seems to be running very slow just doing normal everyday tasks. I have barely even used the computer and the only installations I've done where the ones reco

  • Changing language of Final Cut Pro

    A friend gave me a computer that has Final Cut Pro 3 on it, but it is operating in French. Is there any way to change this? Thanks.