5 Replies Latest reply on Jul 17, 2007 10:29 PM by BKBK

    Anchors don't work in cfdocument

      I'm running CF7.0.2 and can't get anchors to work in the pdf (or flashpaper) even when they work in the HTML before I add the <cfdocument> wrapper.

      Here's a very basic example that I can't get to work.
      <cfdocument format="pdf">

      <a name="page1"></a>
      <h2>This is Page 1</h2>
      <br />
      Goto <a href="#page2">Page 2</a><br />
      Goto <a href="#page3">Page 3</a>
      <cfdocumentitem type="pagebreak" />

      <a name="page2"></a>
      <h2>This is Page 2</h2>
      <br />
      Goto <a href="#page1">Page 1</a><br />
      Goto <a href="#page3">Page 3</a>
      <cfdocumentitem type="pagebreak" />

      <a name="page3"></a>
      <h2>This is Page 3</h2>
      <br />
      Goto <a href="#page1">Page 1</a><br />
      Goto <a href="#page2">Page 2</a>


      I did find some odd code that Dean Harmon used in his MAX2006 presentation regarding cfdocument. He mentions an "anchor" attribute for XHTML on page 3, slide 3 of his notes ( http://www.ammug.org/drupal/system/files/Unlocking+the+ColdFusion+Server+Black+Box.pdf)
      I've never heard of an "anchor" attribute for the <a> tag and couldn't find it referenced by the W3C for XHTML. Nonetheless, I tried it in various ways in my PDF but couldn't get it to work either.

      Any help is appreciated - William