0.1.0 • Published 4 years ago

office-convert-pdf v0.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

office-convert-pdf

A simple tool to convert word and excel to pdf

Installation

Method 1 - Use Docker Image

docker run -p 8080:8080 bgorhoball/office-convert

Method 2 - Clone Project to Local

npm install

Compiles and start local server

npm start

Usage

Start server at http://localhost:8080/

Example (sending request with axios)

const pdfInBase64String = await axios.post(
    'http://localhost:8080',
    `{
        "data": "${/*base64String*/}"
    }`,
    {
        headers: {
            'Content-Type': 'application/json'
        }
    }
);