From: arved Date: Sun, 2 Apr 2000 03:47:03 +0000 (+0000) Subject: Changed Rectangles to LinkedRectangles in makePage() X-Git-Tag: pre-columns~547 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd007d32c072c422ef0201813def4e4bbbbdec47;p=xmlgraphics-fop.git Changed Rectangles to LinkedRectangles in makePage() git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193317 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java index b97b7d776..7f29ad333 100644 --- a/src/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/org/apache/fop/render/pdf/PDFRenderer.java @@ -516,18 +516,20 @@ public class PDFRenderer implements Renderer { page.getHeight()/1000); if (page.hasLinks()) { - currentAnnotList = this.pdfDoc.makeAnnotList(); currentPage.setAnnotList(currentAnnotList); Enumeration e = page.getLinkSets().elements(); while (e.hasMoreElements()) { LinkSet linkSet = (LinkSet) e.nextElement(); + + linkSet.align(); String dest = linkSet.getDest(); Enumeration f = linkSet.getRects().elements(); while (f.hasMoreElements()) { - Rectangle rect = (Rectangle) f.nextElement(); - currentAnnotList.addLink(this.pdfDoc.makeLink(rect, dest)); + LinkedRectangle lrect = (LinkedRectangle) f.nextElement(); + currentAnnotList.addLink( + this.pdfDoc.makeLink(lrect.getRectangle(), dest)); } } } else {