Author: jeremias
Date: Sun Feb 15 16:38:14 2009
New Revision: 744690
URL: http://svn.apache.org/viewvc?rev=744690&view=rev
Log:
Fixed IllegalArgumentException (no object number assigned) for this makeLink
method. It makes no sense to add this to the trailer objects AFAICS. This
particular method is only used by PDFGraphics2D's makeLink() method (SVG's
#svgView(viewBox()) functionality). The positioning of the viewbox is still
wrong, though. It must have been broken at some point.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java?rev=744690&r1=744689&r2=744690&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java Sun Feb
15 16:38:14 2009
@@ -955,7 +955,7 @@
PDFGoTo gt = new PDFGoTo(page);
gt.setDestination(dest);
- getDocument().addTrailerObject(gt);
+ getDocument().registerObject(gt);
PDFInternalLink internalLink = new PDFInternalLink(gt.referencePDF());
link.setAction(internalLink);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]