Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: HTML link printed to PDF  (Read 2821 times)
Jeff M.
Posts: 40


« 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
Jeff M.
Posts: 40


« Reply #1 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
Reuben B.
Four Js
Posts: 1116


« Reply #2 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


Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines