Forum Bugs

href not working

breeve
Take the following html and run it through prince. Notice the link does not work and you get weird hover text over the fake email address. I narrowed it down to the parenthesis on the phone number (512)-CALL-MKTG. Remove the parenthises and it works. I tried HTML encoding the parentheses but that didn't work either. I am using 6.0 rev 4. Any ideas? Workarounds?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<p>Address Here Austin, TX 78732 (512)-CALL-MKTG qa@test.com <a href="http://www.cnn.com">http://www.cnn.com</a></p>
</body>
</html>
mikeday
I can't reproduce this with any version of Prince. Can you please email me (mikeday@yeslogic.com) the exact input document and output PDF file?
breeve
Problems emailing .exe and dlls from my company. Just posting here so others with similiar issue can follow.

I am using Prince 6.0 rev 8 on windows.

Open the Visual Studio solution attached and change the paths and run it. Open the Pdf and notice when you hover over the phone number and email it has incorrect links. Remove the parenthesis on the phone number from the test.html file in the root folder and run again. Notice no phantom links over phone number and email.
  1. BugRepo.zip68.7 kB
mikeday
Thanks, I see the problem. This appears to be a bug in Adobe Acrobat. Prince is not turning the email address into a link at all, from our point of view it's just plain text, and unless you explicitly wrap it up in <a href="mailto:...">...</a> it will remain as plain text. Acrobat is trying to be clever, and when it sees something that looks like an email address it makes it clickable. I have no idea why it is grabbing all the previous text as well, in the PDF it is clearly separated by a space.