Skip to main content
Solved

DocumentPDFStyler: URL in a table

  • July 18, 2025
  • 4 replies
  • 68 views

carlm
Contributor
Forum|alt.badge.img+16

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 😅

Best answer by saraatsafe

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 [@Value(text)](@Value(link)) as the column value. I hope this helps!

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

saraatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • Best Answer
  • July 21, 2025

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 [@Value(text)](@Value(link)) as the column value. I hope this helps!

 


carlm
Contributor
Forum|alt.badge.img+16
  • Author
  • Contributor
  • July 21, 2025

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


saraatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • July 21, 2025

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


saraatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • July 25, 2025

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