I cannot get a Table of Contents to be included when converting from HTML to PDF.
I added the $toc$ variable to my html file and set the template property with curl, but the $toc$ variable doesn't get replaced with anything.
My full code is is a gist here https://gist.github.com/robertdodd/52e1c29a5357f13f6a80 but here's my shell command:
curl --form from=html \
--form to=pdf \
--form test_mode=true \
--form input_files[]=@input.html \
--form template=input.html \
--form table_of_contents=true \
$DOCVERTER_API_URL > html_to_pdf.pdf
echo html_to_pdf.pdf
I cannot get a Table of Contents to be included when converting from HTML to PDF.
I added the
$toc$variable to my html file and set thetemplateproperty withcurl, but the$toc$variable doesn't get replaced with anything.My full code is is a gist here https://gist.github.com/robertdodd/52e1c29a5357f13f6a80 but here's my shell command: