Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

office-convert-pdf

bgorhoball14ISC0.1.0

A simple tool to convert word and excel to pdf

nodejs, convert, Excel, xlsx, xls, Word, docx, doc, pdf

readme

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'
        }
    }
);