This content has been marked as final.
Show 5 replies
-
1. Re: Cfdocument / pdf - Do internal links work?
BKBK Mar 1, 2009 1:04 AM (in response to -==cfSearching==-)Do you wish to bounce back and forth between A1 and A2? Then this is a safer bet
<cfdocument format="PDF">
Page 1<br>
<a name="A1">Section A1</a><br><br>
<a href="#A2">To Section A2</a>
<cfdocumentitem type="pagebreak" />
Page 2<br>
<a name="A2">Section A2</a><br><br>
<a href="#A1">To Section A1</a>
</cfdocument>
Alternatively, include the id attribute, thus
<cfdocument format="PDF">
Page 1<br>
<a href="#B1" name="A1" id="A1">This</a>
<cfdocumentitem type="pagebreak" />
Page 2<br>
<a href="#A1" name="B1" id="B1">That</a>
</cfdocument>
-
2. Re: Cfdocument / pdf - Do internal links work?
Newsgroup_User Mar 1, 2009 2:45 AM (in response to -==cfSearching==-)> Does anyone know if internal links actually work within cfdocument?
> <a href=" http://www.google.com">google</a>
> <!--- internal does not --->
> <a href="#B1" name="A1">This</a> .....
> <a href="#A1" name="B1">That</a>
As BKBK suggests, one needs to have separate NAME and HREF anchors. Then
it works fine.
--
Adam -
3. Re: Cfdocument / pdf - Do internal links work?
-==cfSearching==- Mar 1, 2009 10:45 AM (in response to Newsgroup_User)Thanks guys. I knew I was doing something silly there, but it was too late in the day for my brain to see it ;-) -
4. Re: Cfdocument / pdf - Do internal links work?
Newsgroup_User Mar 1, 2009 11:05 AM (in response to Newsgroup_User)> Thanks guys. I knew I was doing something silly there, but it was too late in the day for my brain to see it ;-)
You're not doing anything silly. Your code SHOULD work (case in point: it
works fine in HTML). I've raised it as a bug with <cfdocument>. But at
least you can work around it for the time being.
--
Adam -
5. Re: Cfdocument / pdf - Do internal links work?
-==cfSearching==- Mar 1, 2009 12:07 PM (in response to -==cfSearching==-)> You're not doing anything silly. Your code SHOULD work
> (case in point: it works fine in HTML).
Well, by silly I mean "forgetting to be more creative" when working with cfdocument. Because I know full well it has a few quirks ..
> I've raised it as a bug with <cfdocument>.
Good


