Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfdocument PDF displays links improperly

Status
Not open for further replies.

stevelionbird

Programmer
Jul 21, 2006
21
US
ok this one has been burning my brain. If I have html that contains links, and try to output it as a PDF using cfdocument, a huge space and elongated underline beneath the link is always displayed and I cannot figure out how to fix this.

To my surprise, I haven't found anyone else complaining about this so it makes me wonder if I'm doing something wrong, but I used a simple test and got the same results. Here is the code:

Code:
[maroon]<cfdocument format=[/maroon][blue]"pdf"[/blue][maroon]>[/maroon]
This is a very very basic test with a [green]<a href=[/green][blue]"[URL unfurl="true"]http://www.example.com/"[/URL][/blue][green]>[/green]link[green]</a>[/green].

[navy]<p>[/navy]This is a very very basic test with a [green]<a href=[/green][blue]"[URL unfurl="true"]http://www.example.com/"[/URL][/blue][green]>[/green]link[green]</a>[/green].[navy]</p>[/navy]

[navy]<div>[/navy]This is a very very basic test with a [green]<a href=[/green][blue]'[URL unfurl="true"]http://www.example.com/'[/URL][/blue][green]>[/green]link[green]</a>[/green].[navy]</div>[/navy]
[maroon]</cfdocument>[/maroon]

When I run this, it looks like this:

This is a very very basic test with a [blue]link [/blue].
This is a very very basic test with a [blue]link [/blue].
This is a very very basic test with a [blue]link [/blue].

Does anyone know why this is happening and/or what the work-around is?? Regardless, it's disappointing and sad that something so simple is being converted so poorly.

Many thanks,
Steve
 
I don't get the output you described. Mine is as expected with your code.

Could it be your reader? I'm using Adobe Reader 6.0


Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Interesting .. I ran another test on a machine running CF 8 dev edition (Windows OS) and it displays fine. My prod server is running mx 7 (Linux) so it looks like rather then an Acrobat problem, it is a CF problem.

Lyndon, what kind of setup did you run this on?

I'm going to run a few more tests and try to iron this one out.

Thanks,
Steve
 
I'm on a CF 8 - hosted site.

HostMySite.com
ColdFusion Server 8,0,0,176276
Enterprise
Windows 2003

It's no surprise the <cfdocument> on CF 7.x has problems. They were never worked out, and too numerous to list here.

Now that I'm on 8.x I haven't found any problems generating PDF's



Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Thanks Lyndon ..

Yeah I'm gonna have to make the move to 8 - it's time!

-Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top