Sha256: ff78c1908ca32763a643fc65558c1209024205b244e966127b6facbbf835a496

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

#!/bin/bash

if [[ "$DOCVERTER_API_URL" == "" ]]; then
    export DOCVERTER_API_URL=http://localhost:9595/convert
fi

curl --form from=markdown \
     --form to=pdf \
     --form test_mode=true \
     --form input_files[]=@chapter1.md \
     --form input_files[]=@chapter2.md \
     --form other_files[]=@stylesheet.css \
     --form other_files[]=@imfeldoublepica.ttf \
     --form other_files[]=@marcellus.ttf \
     --form css=stylesheet.css \
     $DOCVERTER_API_URL > markdown_to_pdf.pdf

echo markdown_to_pdf.pdf

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docverter-server-1.0.3-java doc/examples/shell/markdown_to_pdf/convert.sh
docverter-server-1.0.2-java doc/examples/shell/markdown_to_pdf/convert.sh
docverter-server-1.0.1-java doc/examples/markdown_to_pdf/convert.sh