We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
$toc$
template
curl
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[][email protected] \ --form template=input.html \ --form table_of_contents=true \ $DOCVERTER_API_URL > html_to_pdf.pdf echo html_to_pdf.pdf
The text was updated successfully, but these errors were encountered:
$toc$ is a pandoc directive and HTML -> PDF doesn't go through pandoc.
On Tue, Aug 26, 2014 at 7:59 PM, Robert Dodd [email protected] wrote:
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[][email protected] --form template=input.html --form table_of_contents=true $DOCVERTER_API_URL > html_to_pdf.pdf echo html_to_pdf.pdf — Reply to this email directly or view it on GitHub #26.
curl --form from=html --form to=pdf --form test_mode=true --form input_files[][email protected] --form template=input.html --form table_of_contents=true $DOCVERTER_API_URL > html_to_pdf.pdf
echo html_to_pdf.pdf
— Reply to this email directly or view it on GitHub #26.
Sorry, something went wrong.
Thanks Peter!
Whats my next best option?
<a href="#introduction">Introduction</a>
html -> pandoc-format
pandoc-format -> PDF/DOCX
Which conversions go through pandoc?
Everything but html -> pdf and epub -> mobi goes through Docverter. I expect the internal links option is probably the best.
No branches or pull requests
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 thetemplate
property 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:
The text was updated successfully, but these errors were encountered: