Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

ki77ku

Programmer
Jul 26, 2010
8
US
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"/>
</fo:basic-link>
</fo:inline>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top