Skip to main content

Hi,

I’m trying to put an URL in a table using the new DocumentPDFStyler and I can’t make it work.

One of my issue is that the URL breaks because it doesn’t fit in the table box, also it doesn’t show up as an url. 

I tested many things to make it work: Image Link, add the pdf_url attribute (doesn’t work because this is the documentpdf writer),  put quotes around it.

I’m trying to make this work without having to use the wkhtmltopdf 😅

Hi ​@carlm, I’m not sure what your table or PDF setup looks like, but one way you can add a URL into a table is by turning the link into an attribute first. Please see the attached workspace for an example-- I created an attribute for the URL text and the URL itself, and then added them to the DocumentPDFStyler via v@Value(text)](@Value(link)) as the column value. I hope this helps!

 


Thanks it works, this information should be added in the documentation (how to reference an URL).


Hi ​@carlm, thank you for the feedback! I’ve submitted a ticket to the publications team for this. 


Update: the documentation for the DocumentPDFStyler has been updated to include a section on inserting links.