Hi Jay,

> I sorted the destinationList in PDFDocument. To do so, I used
> Collections.sort(), which required creating a comparator class.
>
> It works!
>
> You can see the results at
> http://www.bryantcs.com/fop/test/fruit-link.pdf, which contains four
> links to http://www.bryantcs.com/fop/test/fruits.pdf. At least for
> me (using Firefox), all the links open where they should.

Same here, if I use the links on your site. Also if I download both
PDFs to my computer the links keep working, no matter how many times I
try.

But as you can see in the other thread, it doesn't always work
perfectly. I have no idea what causes those inconsistent results but I
suspect it's on the browser side. Your code and the resulting PDF seem
100% alright.

BTW, I was wrong about the lexicographical ordering. It must be
asciibetical, and that's exactly what your comparator class does.


Greetings,
Paul Vinkenoog

Reply via email to