Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
463 views
in Technique[技术] by (71.8m points)

reactjs - 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

question from:https://stackoverflow.com/questions/66057560/generating-a-table-of-content-using-using-react-pdf

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...