How to Convert doc to ps format programatically

Hi,

I wanted to convert a document in doc format to ps(post script) format programatically.
Any approach to do this?I guess I can use the LibreOffice utility of file conversions but I have to do it without installing LibreOffice on my machine.

If anyone can give me some way of doing this or any related reference then it would be very helpful to me.

Regards,
Ankit

Can anyone give me some idea on this.

Can someone reply on my query?

To clarify, I believe what you’re asking is how to convert a document in .doc (binary MS-Word format) to PostScript.

It might be possible to do this conversion using LO on the command line, but it looks like you’d like to do this “without installing LibreOffice on [your] machine.”

As such, this looks like a question outside of the scope of this LibreOffice-help site.

Good luck!

Since LibreOffice and OpenOffice are able to work in “server mode”, it would be theoretically posssible to create such a conversion mechanism.

For a complete solution, more information about the use case is required. But generally, to create PostScript, you don’t need LibreOffice. Just use a printer driver for a PostScript-capable printer. You don’t need the printer itself, just the driver, and use the “print to file” option. This way, you could easily produce a PostScript file.

LibreOffice would be required (or at least useful) if you want to create PDF files.