'Is it possible to call an API from PDF? - jsPDF

I am using jsPDF library to generate PDFs in my project and I want to call an API when text in the .pdf file is pressed.

Is there a way to do so? like creating a clickable text (textWithLink()) to navigate the user to certain component in the project and have the ngOnInit() in that component call the api for example. or is there a better recommended approach?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source