You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-pdf supports drawing objects via a <Canvas> and uses PDFKit under the hood, but not all of its functions are supported (the ones that are are whitelisted here). Specifically PDFKit's .link or the link option that can be passed to .text are not available (I tested in the playground). Here is what I tried in the playground:
constLinkTest=()=>(<Document><Page><Canvaspaint={(painter)=>{painter.text('Here is a link!',{link: 'https://google.com'})}}></Canvas></Page></Document>);ReactPDF.render(<LinkTest/>);
It would be great if this could be supported, or maybe any/all PDFKit functions? Thanks.
The text was updated successfully, but these errors were encountered:
FWIW, I'm currently using patch-package to just provide all pdfkit instead of the whitelisted functions in our codebase. This would be great to be available for standard releases.
react-pdf supports drawing objects via a
<Canvas>
and uses PDFKit under the hood, but not all of its functions are supported (the ones that are are whitelisted here). Specifically PDFKit's.link
or thelink
option that can be passed to.text
are not available (I tested in the playground). Here is what I tried in the playground:It would be great if this could be supported, or maybe any/all PDFKit functions? Thanks.
The text was updated successfully, but these errors were encountered: