W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2011

RE: PDF Open Parameters and linking to external pdf and named anchor

From: Mario Madunic <Mario_Madunic@newflyer.com>
Date: Wed, 23 Mar 2011 09:35:31 -0500
To: "www-xsl-fo@w3.org" <www-xsl-fo@w3.org>
Message-ID: <246DE0E0EA0D6942B542673342672122888940@NFIL050.newflyer.com>
Update to this post

Created the following links in an FO file,

<fo:block xsl:use-attribute-sets="as_StandardBlockFP"><fo:basic-link external-destination="1461parts_1.5.pdf">1461parts_1.5.pdf</fo:basic-link></fo:block>
<fo:block xsl:use-attribute-sets="as_StandardBlockFP"><fo:basic-link external-destination="url('1461parts_1.5.pdf')">url('1461parts_1.5.pdf')</fo:basic-link></fo:block>
<fo:block xsl:use-attribute-sets="as_StandardBlockFP"><fo:basic-link external-destination="1461parts_1.5.pdf#_01-FrontAxleSuspension">1461parts_1.5.pdf#_01-FrontAxleSuspension</fo:basic-link></fo:block>
<fo:block xsl:use-attribute-sets="as_StandardBlockFP"><fo:basic-link external-destination="url('1461parts_1.5.pdf#_01-FrontAxleSuspension')">url('1461parts_1.5.pdf#_01-FrontAxleSuspension')</fo:basic-link></fo:block>
<fo:block xsl:use-attribute-sets="as_StandardBlockFP"><fo:basic-link external-destination="1461parts_1.5.pdf#nameddest=_01-FrontAxleSuspension">1461parts_1.5.pdf#nameddest=_01-FrontAxleSuspension</fo:basic-link></fo:block>
<fo:block xsl:use-attribute-sets="as_StandardBlockFP"><fo:basic-link external-destination="url('1461parts_1.5.pdf#nameddest=_01-FrontAxleSuspension')">url('1461parts_1.5.pdf#nameddest=_01-FrontAxleSuspension')</fo:basic-link></fo:block>

Create PDF. Now the interesting part.

Acrobat Reader 9+
Only the first two links work and the rest (containing an anchor or named destination) did not work

Acrobat Reader Browser Plug-in 9+ (tested in IE)
All links worked

Tested also with Acrobat Reader 10 and with the same results but I'm hesitant to say conclusively. After a computer reboot, a group policy in both IE and FF prevented the Acrobat 10 Reader plug-in from opening any external links in a PDF. (Off to the help desk with that one).

Has anyone found the same problem with PDFs opened via the Reader only (not using a browser plug-in)?
Is this a known issue/bug?
Is there a way of writing the URL so that it works in both instances of the reader?

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On Behalf Of Mario Madunic
Sent: Tuesday, February 22, 2011 1:21 PM
To: G. Ken Holman; www-xsl-fo@w3.org
Subject: RE: PDF Open Parameters and linking to external pdf and named anchor

Created a basic link and no luck there. The same with from a browser. Right now I'm putting this one down to support for Open Parameters. I've had no luck using them and alas must move on. We'll create the links to external document named destinations manually.

Thanks Ken for the ideas on finding out where the problem might lie.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On Behalf Of G. Ken Holman
Sent: Tuesday, February 22, 2011 11:27 AM
To: www-xsl-fo@w3.org
Subject: Re: PDF Open Parameters and linking to external pdf and named anchor

The "file does not exist" error makes me think this is a reader
problem trying to traverse the link, not an AHF or XSL-FO problem.

Have you tried creating a regular <fo:basic-link> in the text and
seeing if that link works?  That would indicate if it is a general
problem or only a problem with bookmarks.

Have you tried the link from a browser?

You state the URI is valid without the anchor.  I would try producing
the PDF without the anchor, editing the PDF to hack the anchor into
the link address, and then trying to see if that link worked.

It could be that XSL-FO and the formatter are all creating the PDF
exactly the way you want, but that way isn't supported by the reader.

I hope this helps diagnose where the problem lies.

. . . . . . . . . Ken

At 2011-02-22 10:43 -0600, Mario Madunic wrote:
>Hi,
>
>Can't seem to get the PDF Open Parameter nameddest working. I have
>the following bit of FO (and am using AHF 5)
>
><fo:bookmark external-destination="serv.pdf#nameddest=_1-FrontAxleSuspension">
>    <fo:bookmark-title>SERVICE</fo:bookmark-title>
></fo:bookmark>
>
>The id exists in the destination pdf (serv.pdf) but get an error
>message stating that the file does not exist. Both files are sitting
>in the same directory and have checked that the anchor (named
>destination) exists, which it does. Am I missing something? The URI
>is valid and when I test the link without the anchor it opens the
>serv.pdf no problem.


--
Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/

G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal




Please consider the environment before printing this e-mail.


CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.

Please consider the environment before printing this e-mail.


CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.
Received on Wednesday, 23 March 2011 14:36:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 23 March 2011 14:36:10 GMT