> -----Original Message----- > From: Adrian Edwards [mailto:[EMAIL PROTECTED]] > Sent: May 22, 2002 10:18 PM > To: [EMAIL PROTECTED] > Subject: RE: Why do links generate multiple rectangles in PDF? > > Thanks Arved, > > That sounds far more promising than I had hoped. I thought that > it might have had something to do with making it easier to wrap > links that spanned multiple lines... > > Does your response mean that the code to join (or not split) the > linked rectangles would still in their somewhere and just needs > to be switched back on? If so, do you think there is any chance > of having this fixed for the upcoming 0.20.4 release? It's > really blowing out the file sizes of the work I am doing with > fop, since we are generating index pages to collections of PDFs, > so our document are nearly all links! > > My Java isn't that strong, but I'd be happy to take a look at the > code if you could point me in the right direction. > > Regards, > Adrian > > PS: I have submitted this to Bugzilla now that I have your > confirmation that this is an unintentional behaviour.
Yes, the code is still in there, essentially unchanged. If you look at BasicLink.java you'll see a call to LinkSet.merge(), _if_ a system property called "links.merge" has been set, and is anything other than "no", on the command line. It would probably be useful to change the default behaviour here. The merge() method in LinkSet.java is very much still in existence. Presumably, because of the default setting, this has never been used by anyone for at least a year (maybe closer to 2 years), so I have no idea whether it works anymore. It's worth a try, and I'm sure it's quite fixeable (is that a word???). Now that I look at it this method only joins links on the same line, which is clearly an improvement over what you have now. It could be improved for paragraphs I'm sure. Regards, Arved --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]