Bug 20950 - Wrong link generation in PDF renderer
Summary: Wrong link generation in PDF renderer
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.5
Hardware: PC other
: P3 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-20 12:36 UTC by J
Modified: 2012-04-01 06:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J 2003-06-20 12:36:03 UTC
I use fo structs as following below to descibe articels of an hypertext glossar.
The glossar entries are linked with <fo:basic-link>. The resulting PDF-File is 
3.5 MB huge and has thousands of links. But unfortunately some of them are wrong 
in the PDF while the fo-syntax seems to be correct. There are no error messages 
during generation.

When you analyse the PDF-file with Acrobat there seem to be two types of linking 
errors.

Type 1)
The word where the link should be on is marked blue but the link rectangle is 
placed on a different location. May be this has to do with the 
keep-with-next="always". I think this because when there are a view links in one 
block the rectangles have all the same offset (all on the page before but the 
word are on the next page).

Type 2)
The rectangle of the link is in place over the blue marked word but the link has 
no target.

I can provide the source code of the glossar to reproduce it but I can't publish 
it to public. So please contact me per email to get it.

<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body><fo:table-row keep-with-next="always"> <fo:table-cell>
<fo:block id = "ipcp"
font-size="12pt"
  font-weight="bold"
  space-before.optimum="12pt"
  space-after.optimum="6pt">
IPCP
</fo:block>
<fo:block><fo:marker marker-class-name="t">IPCP</fo:marker></fo:block>
</fo:table-cell> </fo:table-row>
<fo:table-row keep-with-next="always"> <fo:table-cell>
<fo:block space-after.optimum="6pt"></fo:block>
<fo:block>Internet Protocol Control Protocol&#160;</fo:block>
<fo:block space-after.optimum="6pt"></fo:block>
<fo:block><fo:basic-link color="blue" internal-destination="ncp">Network Control 
Protocol</fo:basic-link> f&#252;r <fo:basic-link color="blue" 
internal-destination="tcp_ip">IP</fo:basic-link>-Verbindungen &#252;ber 
<fo:basic-link color="blue" 
internal-destination="ppp">PPP</fo:basic-link>.&#160;Definiert im <fo:basic-link 
color="blue" internal-destination="rfc">RFC</fo:basic-link> 
1332.&#160;</fo:block>
</fo:table-cell> </fo:table-row> </fo:table-body> </fo:table>
Comment 1 Pascal Sancho 2007-10-23 08:27:35 UTC
Bug fixed in latest Trunk (rev 584703), and probably in FOP 0.94
Comment 2 Glenn Adams 2012-04-01 06:50:31 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed