Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

how to add hyperlink within page in PDF

I need to add section hyperlink within a PDF page. But while using anchor tag. It added url of current page. When, I opended downloaded pdf in new window. It will redirect to my main page.

let navid = "#" + {rowIndex}
<a href={navid}>Reference-6 </a>

<div id={rowIndex}> 16Gb B-series</div>

but href navigate to loaction - http://localhost:3000/fabric-reports#6 It should be navigate to file:///C:/Users/Downloads/test/fabric_report.pdf#6

Download PDF file path can be anything, can't restrict to specific location. So how to add hyperlink within page in PDF.

Comments