Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Jeff M. on May 02, 2024, 02:41:32 pm



Title: HTML link printed to PDF
Post by: Jeff M. on May 02, 2024, 02:41:32 pm
Hi,

(Genero 3.20)

We produce a document from data in the database and print out to PDF using HTML text containers.

Is there a way of printing a hyperlink that works from the produced PDF file?

Using
<a href="http://my.webaddress.com>My Web Site[/url]

in the string produces:
My Web Site

But it is not clickable.

This may not be a Genero issue as print from Word to PDF  and they don't seem to work either.

Does PDF simply not support hyperlinks?

Putting http//:my.webaddress.com does work but is ugly


Title: Re: HTML link printed to PDF
Post by: Jeff M. on May 02, 2024, 02:52:59 pm
<START TAG href="http://my.webaddress.com>My Web Site<END TAG>

The tag being a with a /a as the end tag.

Sorry the forum messed it up


Title: Re: HTML link printed to PDF
Post by: Reuben B. on May 06, 2024, 02:05:28 am
Hi Jeff,

Perhaps clarify what you mean by "HTML Text Container"? and what properties you are setting.

With Genero Report Writer, if you use a "WordBox" and populate the href attribute with a valid URL you get something that is clickable in SVG and PDF viewer.  So I don't think it is a case of saying "Does PDF simply not support hyperlinks?"

Perhaps you mean "HTML Box" which is intended for use in conjunction with data input via a TextEdit, textFormat style=html, or a "Rich Text Box" which is intended for use in conjunction with data input via the fglrichtext Web Component.    For those it maybe a support issue for clarification of html supported.  It has tended to be a discussion point of just how much or what html is supported.  You will have seen the sanitize=yes/no presentation style with the html Label/TextEdit as to what syntax is allowed.

Reuben