John Brown <johnbrown105 <at> hotmail.com> writes:

> 
> 
> Hello All,
> 
> I am trying to use named destinations to create a file f1.pdf with
> a hyperlink to targets in another file f2.pdf. The hyperlink jumps
> to the first page in f2.pdf. I found a message in another newsgroup
> that said that this feature does not work for local PDF files; it works
> only for PDFs served by a web server. 
> 
> 1) Is this true?
> 
> 2) Is there a way to specify a relative path (current directory) with
> file:// syntax? file:f2.pdf does not work. I get a message box saying:
> "The file or folder smb://f2.pdf/#hello does not exist."
> I have to write file:///path/to/f2.pdf, which would not be meaningful
> on another computer.
> 
> I am currently on Kubuntu Hardy Heron (8.10), although the PDFs
> are being created for Windows users. I am using fop-trunk 653186.
> 

Sorry - I keep forgetting that Hotmail strips out all XML.
I was trying top include my FO files.

<!-- f1.fo -->
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"; font-family="Cambria">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="A4" page-height="29.7cm"
page-width="21cm" margin="2cm">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="A4">
    <fo:flow flow-name="xsl-region-body">
      <fo:block id="hello">Hello World!
         <fo:basic-link external-destination="url('file:f2.pdf#hello')">Hello,
Book 2</fo:basic-link>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>


<!-- f2.fo -->
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"; font-family="Cambria">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="A4" page-height="29.7cm"
page-width="21cm" margin="2cm">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="A4">
    <fo:flow flow-name="xsl-region-body">
      <fo:block id="page1">Hello World!</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence master-reference="A4">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fox:destination internal-destination="hello"/>
      </fo:block>
      <fo:block id="hello">This is the Hello World that I want!</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to