Sign inSign up

mcraa/libre-to-pdf-node

By mcraa

Updated almost 8 years ago

Ubuntu based image with installed LibreOffice to convert office files to pdf over http requests.

Image
0

5.1K

mcraa/libre-to-pdf-node repository overview

https://github.com/mcraa/libre-to-pdf-node

LibreOffice and a simple node/express server included in the image. The node server listens on the port provided in environment variable PORT or default 3000. It has one post endpoint /topdf where you can post office (doc, docx, xls, ppt...) files as multipart form data, and in the response you will get a pdf.

curl --request POST \
  --url http://localhost:3000/topdf \
  --header 'content-type: multipart/form-data;  \
  --form document=<doc_bytes_here>

Tag summary

Content type

Image

Digest

Size

426.9 MB

Last updated

almost 8 years ago

docker pull mcraa/libre-to-pdf-node