Sign inSign up

theapu/pandoc-api

By theapu

Updated 9 months ago

pandoc rest API

Image
0

482

theapu/pandoc-api repository overview

A REST api for document conversion using pandoc (https://github.com/jgm/pandoc)

Docker compose

services:
  pandoc-api:
    image: theapu/pandoc-api:latest
    container_name: pandoc-api
    ports:
      - "35000:5000"
    restart: unless-stopped
    environment:
      # Set workers based on cores, or hardcode.
      - GUNICORN_WORKERS=2
      # Options: xelatex (default in Dockerfile), tectonic, pdflatex, lualatex
      - PDF_ENGINE=tectonic

API request example: curl -X POST -F "[email protected]" -F "output_filename=document.pdf" -o document.pdf http://localhost:35000/convert

Tag summary

Content type

Image

Digest

sha256:e21d044d1

Size

546.9 MB

Last updated

9 months ago

docker pull theapu/pandoc-api