Below example mentioned is not working with latest pandoc version.
~ » curl -X POST \ ve9u@ve9u
http://localhost:8080/v1/convert \
-H 'accept-encoding: gzip' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"fetcher": {
"name": "data",
"params": {
"data": "IyMjIEhlbGxvCgo+IEdvLVBhbmRvYw=="
}
},
"converter":{
"from": "markdown",
"to" : "pdf",
"standalone": true,
"variable":{
"CJKmainfont":"Source Han Sans SC",
"mainfont":"Source Han Sans SC",
"sansfont": "Source Han Sans SC",
"geometry:margin":"1cm",
"subject":"gsjbxx"
},
"template": "/app/data/docs.template"
},
"template": "binary"
}' --compressed -o test.pdf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 542 100 86 100 456 6142 32571 --:--:-- --:--:-- --:--:-- 38714
------------------------------------------------------------
~ » cat test.pdf ve9u@ve9u
Unknown option -m.
Unknown option -a.
Try pandoc --help for more information.
------------------------------------------------------------
~ » pandoc -v ve9u@ve9u
pandoc 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.4
Default user data directory: /home/ve9u/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
------------------------------------------------------------
Hi,
Below example mentioned is not working with latest
pandoc
version.Thanks, Venu.