There is a new KNIME forum. You can still browse and read content from our old forum but if you want to create new posts or join ongoing discussions, please visit our new KNIME forum: https://forum.knime.com

How to Generate table of contents In Report As a PDF

Member for

2 years Mokrani

Hi,

how do I create a table of contents within a KNIME report that also includes links to the specific sections?

for example:

subject..................................Page 1

subject..................................Page 3

Ps: Run in web Viewer its work I got my Contents Table but when I run as pdf just I get the pages without table of contents

 

Thanks for the help,

Bests.

Comments
Tue, 02/06/2018 - 02:33

Member for

2 years 7 months

Marten Pfannenschmidt

Hi Mokrani,

did you check the PDF in your browser or in a proper PDF-viewer? When I checked my report in the browser the TOC was also missing (probably because it was some kind of preview displayed in the browser), but when I opened it with Adobe the TOC was in the report.

Cheers,
Marten

Tue, 02/06/2018 - 03:29

Member for

2 years

Mokrani

Hi Marten,

Thank you, I tried and its work well when I open it with ADOBE or localy.

But now there another issue how can I add the page number to the table of contents.

Bests 

 

Mon, 02/12/2018 - 04:38

Member for

2 years 7 months

Marten Pfannenschmidt

Hi Mokrani,

For every entry in the TOC there should be an expression for the respective element which defines the name of the TOC-entry. Just add + pageNumber to that expression.

Cheers,
Marten

Tue, 02/13/2018 - 10:55

Member for

2 years

Mokrani

Thank you marten for your suggest

But how can I concatenate the PageNumber and my TOC is dropped in the layout. I mean where I can get the PageNumber in the layout or I need to implement a script count the pdf pages? 

bests.

Wed, 02/21/2018 - 12:52

Member for

2 years 7 months

Marten Pfannenschmidt

Hi Mokrani,

I meant that you should add the word pageNumber literally. It is a variable which will be evaluated during runtime such that it stores the number the of the page that is being rendered.

Cheers,
Marten

Wed, 02/21/2018 - 06:17

Member for

2 years

Mokrani

where I can find the number of pages!??

cheers.