Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.18 KB

File metadata and controls

30 lines (22 loc) · 1.18 KB

Unoconv with NodeJS

Unoconv is a simple tool for converting any type of files to PDF documents

Docker Build Status Docker Build Status Docker Build Status Docker Build Status

Usage

Create directory in your server

mkdir /opt/unoconv

Run container

docker run -d -p 80:3000 --env-file=docker.env -v /opt/unoconv:/opt/unoconvservice/status --name unoconv sfoxdev/unoconv

To convert .docx(or any other type of file) to .pdf make POST to Unoconv

curl --form file=@test.docx http://localhost/unoconv/pdf > test.pdf

To check status of converting, go to /opt/unoconv you could find to files here

  • service_started - in this file you could find timestamp when converting was started if file uploaded successfully
  • service_finished - in this file you could find timestamp when converting was finished and 0 if error occurs