Skip to content

toc: $toc$ not being replaced with Table of Contents #26

@robertdodd

Description

@robertdodd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions