java - Clipboard format for DOCX data -
My Java application creates a document in DOCX format using DOCX4J to send it to the clipboard for paste in Word Will happen. I know that Word will use HTML, but instead of converting DOCX into HTML (I'm not sure DocX4J supports it and I do not loose any formatting). In the clipboard format (in the Java word dataflow) can I use to send DocX data to the clipboard so that Word can understand it?
I am also doing the same thing with OpenOffice Documents and for this I use it
DATAFLOWER ODTEFLVER = NEW DATA FLOVOR ("App / X-OpenOffice- Source-xml; "+" presentation class = java.eo.inputstream "); How should I represent a DocX document? In the case of Open Office ODT, I pass the Intestream stream created with the ODT file.
I believe there is a similar question asked by David Thillin here: but there is no answer. <
You can export the worst case, docx4j HTML, so that you can do this.
Or you can use RTF using FOP to create Docx4j PDF, so that you can use XSL FO output to create RTF (FOP can do this - your mileage may vary. ).
Of course, who among these will give you better quality, perhaps HTML (though what happens to images?).
Or you can create an original docs for RTF converter.
There may be a way to use the dock format.
If you copy from Word, and look in the clip clip (code is binary available in source download from project), then you will see "embedded source" data as DOCX in OLE.
You say you can write your "embed source" near the clipboard. A stream object set data
It seems to depend on whether you want to copy / paste or drag / drop your link and
Comments
Post a Comment