Skip to main content
Solved

DocumentPDFStyler: URL in a table


carlm
Contributor
Forum|alt.badge.img+13
  • Contributor

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!

 

View original
Did this help you find an answer to your question?

4 replies

saraatsafe
Safer
Forum|alt.badge.img+10
  • 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+13
  • 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+10
  • 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+10
  • Safer
  • July 25, 2025

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings