Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Link to a specific page number in a pdf file form another pdf file

Link to a specific page number in a pdf file form another pdf file

Link to a specific page number in a pdf file form another pdf file

I am creating a pdf from xml using xsl:FO.
So creating a pdf file which would have some links to specific page numbers in another pdf file. So ideally when i click on the page number link should go to that page number in the second pdf file.

The problem I am facing is that it is taking to the next page.(e.g if i click on hyper link for page 3 it takes me to 4 and 7 takes me to 8 and so on and so forth). Here is the piece of code that I am using. The basic difference is the #page= part of code. if i dont give any space before equal sign the link i screated just when i place the cursor on this hyperlink the path does nto pop-up and takes me to one page higher as explained above. If i give a space infront of equal sign, then if i place cursor on the page hyperlink pop-up shows the path, but when i click on it it takes to first page in in the other pdf file always.

 <fo:inline font-weight="bold">
                  <xsl:variable name="pdfLink" select="concat('#page=',$first-page)"/>
                    <fo:basic-link text-decoration="underline" color="blue" show-destination="new" external-destination="url('CRF_PATH#page={$first-page}')">
                        <xsl:value-of select="$first-page"/>

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close