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>
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>