| View previous topic :: View next topic |
| Author |
Message |
Mark Guest
|
Posted: Sun Nov 30, 2003 9:46 pm Post subject: Batch mode conversion and word hidden text |
|
|
Dear all,
I'm trying to convert a collection of documents in batch mode from word to text. I've taken the DocumentHandler from java/examples/ of the SDK 1.1. Works well for me apart from hidden text which does not appear in the conversion. How does one make it appear ?
I've tried to insert a false condition that is associated with the hidden text and then yes it does make it through the conversion when saving as text through the application.
Can this be done through the API or something similar that will bring the hidden text through in batch mode ?
Thanks in advance for any help,
Mark |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Mon Dec 01, 2003 9:19 am Post subject: |
|
|
It seems like to convert a single document, you could do this...
1. Open Word doc in OOo.
2. Make any necessary alterations to document via. API.
3. Save document in new format.
Steps 1 and 3 together constitute a simple document format conversion. I've written many posts here in the past illustrating many simple document conversions.
A few of the example macros are available here...
http://kosh.datateamsys.com/~danny/OOo/Examples/Conversions/
These are all in Basic, not Java. Basic is very easy to work with, especially to do something as simple as the 1, 2, 3 steps above.
You can probably adapt one of these to save as text. See complete list of filters available in OOo, which I've posted in the Macros and API section before, under a descriptive subject name.
http://www.oooforum.org/forum/viewtopic.php?t=3549
If you know what it is you want to do in step 2, then you're home free. Simply adape one of the examples linked above. Then run it in a loop over all of your documents.
Another alternative is to use a batch document converter I wrote and then "hack it" to do step 2 before saving the document. The batch document converter I wrote is on OOoMacros.org, here...
http://www.ooomacros.org/files.php?type=macro#DocumentConverter
In writing this, I am assuming that you are looking for a one-time batch conversion of documents, and need a quick and dirty utility. If you are needing to do this as part of a larger programming project, then the foregoing information may still be useful, but you'll have to do it in your programming language of choice. _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|