First time here? Check out the FAQ!
Hi,
How can I use LibreOffice as a service to convert docs to pdf? I know that there is the headless option but how can I talk to it? Is it possible to use HTTP to talk with the daemon or maybe a CLI? Can the server handle multiple requests at the same time or do I need to implement a queue in my app?
Thanks
It sounds like what you really want is some kind of service that you can install on a server.
To think out loud for a moment...
# apt-get install document-handling-server
Document Handling Server 0.1 Starting up
DHS running on port 2005 (HTTP)
Users on the same subnet could print to the DHS, maybe upload files to it
scp spreadsheet-to-convert.xls dhs@example.net:/var/dhs/incoming/
..and then download the results a while later (although how would the document converter service know what output format you want, if it's not PDF?...hmm)
scp dhs@example.net:/var/dhs/outgoing/spreadsheet-to-convert.pdf .
Anyhow, I don't know of anything like that, currently. But it's an interesting idea.
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-10-19 23:38:17 +0200
Seen: 244 times
Last updated: Feb 01
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
If you want to take a direct solution - see this Free PDF Printer
JohnSUN ( 2012-10-20 08:37:20 +0200 )editI don't understand how it is related. "The Bullzip PDF Printer works as a Microsoft Windows printer and allows you to write PDF documents from virtually any Microsoft Windows application."
pablo ( 2012-10-21 19:53:07 +0200 )editWhat do you call a doc? Is it a .doc or is it any document that LO can handle? What's more, I think you should be more specific about your use case if you want an answer : do you want to run it on a server? Is it for batch conversions? Maybe LO is even not the appropriate solution for what you want.
hyogapag ( 2012-10-21 20:00:18 +0200 )editA doc is any document. LO can convert many types of documents to PDF so it doesn't change the question. I want to run it on the server, send a request of a document (any type) and get a PDF as a response.
pablo ( 2012-10-26 06:33:44 +0200 )editsoffice.exe -pt "Name of Bullzip PDF Printer" "Path and Name File1" "Path and Name File2"...
JohnSUN ( 2012-10-26 09:44:37 +0200 )editJohnSUN: Doesn't your solution work only for windows? I need a server on linux that will convert docs and will be able to process several requests at the same time.
pablo ( 2012-10-26 15:44:31 +0200 )edit