stephensaunders
stephensaunders

Reputation: 13

pdfReactor generated documents don't have working links

I am trying to produce a pdf from HTML generated from ReactServer.renderStaticMarkup. I have noticed peculiar behavior around links.

As an example let's use a link to a photo. 'https://i.sstatic.net/3tICI.png'

I am able to use that link as the source of an <img> tag. However, when I try to set it as the src of an <a> the link does not function.

<a href="https://i.sstatic.net/3tICI.png">CLICK FOR SANITY</a>

putting that into the document seems like it should work, but alas it does not.

I am new to pdfReactor so there is likely something I am missing. Does anyone have some thoughts on what might resolve this issue?

Upvotes: 1

Views: 582

Answers (1)

gylaz
gylaz

Reputation: 13581

You probably want to set addLinks: true in your config when calling PDFreactor.

Source: https://www.pdfreactor.com/product/doc/webservice/nodejs.html#Configuration-addLinks

Upvotes: 2

Related Questions