Search code examples
reactjspdfreact-pdf

Generating a table of content USING using react-pdf


Please i am try to generate a pdf document since some weeks and have finsh but something missing in the table. i want to give the ability to user to see table of content with his page number. can Somebody help me. Thanks


Solution

  • oh i've found. the answer was juste to stop the ability of the component to update, store the different page of table of content in and array with the title. save this table of content, unmount the pdf draft, and mount the new table of content in the final pdf