joshuataylor / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

anchor-links are broken in utf-8 document in 0.6.0b1 #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Create a document:

1. create an utf-8 document
2. put some anchors in the document, <a href="http://somesite.com">example</a> 
e.g.

See also attachment.

Prepare Times New Roman:
1. In windows xp, convert your Times New Roman font with the webbased font-load 
tool [http://eclecticgeek.com/dompdf/load_font.php]
2. Install the fonts from the resulting zip in the dompdf installation

What is the expected output? What do you see instead?
Expected output is a correctly working link, but all links, no matter what the 
href attribute says do link to a bogus address *if the styling with font-family 
"Times New Roman" is applied to it. 

The built-in Times doesn't have that problem.

What version of the product are you using? On what operating system?
0.6.0b1 on windows xp
In 0.6.0b2 this has been solved, but this version is unusable due to the 
rendering bugs.

Please provide any additional information below.

In the output we can see things like this for incorrect urls.

35 0 obj
<< /Type /Action
/S /URI
/URI (��
endobj

Original issue reported on code.google.com by abahl...@gmail.com on 12 Mar 2011 at 5:28

Attachments:

GoogleCodeExporter commented 9 years ago
This appears to be valid. It looks like dompdf is Unicode-encoding the link 
text, which is what's causing the problem.

Original comment by eclecticgeek on 15 Mar 2011 at 6:35

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r394.

Original comment by fabien.menager on 14 May 2011 at 11:30

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:15