Ask Your Question
0

I am using --headless mode and want to close the document so i can load another

asked 2017-03-13 11:16:25 +0100

darren gravatar image

I am using --headless mode and want to close the document.

Basically I am wanting to extract the text from the document, and take a preview image of the doc.

So for example a docx would be loaded, image taken, txt file written, then document closed so another document can be loaded in its place and the process repeated.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-03-13 11:42:47 +0100

karolus gravatar image

updated 2017-03-13 11:44:11 +0100

On Commandline youre allowed to use Globbing-syntax to convert in batch, something like:

soffice --convert-to "txt:Text (encoded):UTF8" *.docx

to convert any .docx-file from inside $pwd to Plain-Text-files.
Actually I don't know what you do by …image taken… ??

edit flag offensive delete link more

Comments

I suppose that OP wants to also convert to an image format (like e.g. PNG). Also, globbing only works this way under a *nix system - it will fail on Windows. You need to use shell's for.

Mike Kaganski gravatar imageMike Kaganski ( 2017-03-13 15:06:41 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-03-13 11:16:25 +0100

Seen: 94 times

Last updated: Mar 13 '17