From dd007d32c072c422ef0201813def4e4bbbbdec47 Mon Sep 17 00:00:00 2001 From: arved Date: Sun, 2 Apr 2000 03:47:03 +0000 Subject: [PATCH] Changed Rectangles to LinkedRectangles in makePage() git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193317 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/pdf/PDFRenderer.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 { -- 2.39.5