HTML2PDF.TOCSettings

hello
I want use the HTML2PDF.TOCSettings
can you give me example from the begin to end how to do it?
i want to do table of contents settings.
by docouments that i have

thank you
wait to quick answer
tehila

Please see example (3) here

https://www.pdftron.com/documentation/samples/cs/HTML2PDFTest

If that does not answer your question, then please elaborate on what you would like clarified.

thank you for the answer
But what I need is a table of contents not for a link, I need for a page in the file
I have a number of files that I want to merge into one file using “converttopdf”.
And I want to create a table of contents for them.
Is there an option with the above tool
Thank you

Tehila
בתאריך יום חמישי, 2 ביולי 2020 בשעה 21:12:26 UTC+3, מאת Ryan:

Please see example (3) here

https://www.pdftron.com/documentation/samples/cs/HTML2PDFTest

If that does not answer your question, then please elaborate on what you would like clarified.

>But what I need is a table of contents not for a link, I need for a page in the file
I am not quite sure what distinction you are making. The HTML2PDF TOC using the H1-H6 HTML tags in the inserted HTML inputs to generate a TOC.

If all your inputs are HTML, and you string them all together using multiple calls to InsertFromUrl or InsertFromString, as in example 3 in the link above, and those inputs have H1-H6 entries, you get the TOC.

Otherwise, you would have to create your own TOC.

Note, the PDF format supports an Outline, which is a table of contents that does not actually exist on a page in the PDF, but would be displayed by a PDF viewer in a side panel. See this sample.
https://www.pdftron.com/documentation/samples/#bookmarks