aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-08-21 08:26:11 +0000
committerKeiron Liddle <keiron@apache.org>2001-08-21 08:26:11 +0000
commitb8c62f8ed4a384560ef9e6a73ab69cbb793d4cfb (patch)
treee4361b9b7e055f28b71eefafd9cafc719002b2eb /src/org/apache/fop/render
parenta604a0794f2164846237d6308df8877618707360 (diff)
downloadxmlgraphics-fop-b8c62f8ed4a384560ef9e6a73ab69cbb793d4cfb.tar.gz
xmlgraphics-fop-b8c62f8ed4a384560ef9e6a73ab69cbb793d4cfb.zip
put back bookmark extension - not complete
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194438 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render')
-rw-r--r--src/org/apache/fop/render/pdf/PDFRenderer.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java
index b76b1b77d..d411ceecd 100644
--- a/src/org/apache/fop/render/pdf/PDFRenderer.java
+++ b/src/org/apache/fop/render/pdf/PDFRenderer.java
@@ -122,6 +122,8 @@ public class PDFRenderer extends PrintRenderer {
*/
protected Hashtable options;
+ protected Vector extensions = null;
+
/**
* create the PDF renderer
*/
@@ -152,6 +154,7 @@ public class PDFRenderer extends PrintRenderer {
public void stopRenderer(OutputStream stream)
throws IOException {
+ renderRootExtensions(extensions);
FontSetup.addToResources(this.pdfDoc, fontInfo);
pdfDoc.outputTrailer(stream);
}
@@ -686,10 +689,10 @@ public class PDFRenderer extends PrintRenderer {
this.pdfDoc.setIDReferences(idReferences);
this.renderPage(page);
- //FontSetup.addToResources(this.pdfDoc, fontInfo);
-
- // TODO: this needs to be implemented
- renderRootExtensions(page);
+ Vector exts = page.getExtensions();
+ if(exts != null) {
+ extensions = exts;
+ }
// log.debug("writing out PDF");
this.pdfDoc.output(outputStream);
@@ -797,10 +800,9 @@ public class PDFRenderer extends PrintRenderer {
return rs;
}
- protected void renderRootExtensions(Page page) {
- Vector v = page.getExtensions();
- if (v != null) {
- Enumeration e = v.elements();
+ protected void renderRootExtensions(Vector exts) {
+ if (exts != null) {
+ Enumeration e = exts.elements();
while (e.hasMoreElements()) {
ExtensionObj ext = (ExtensionObj)e.nextElement();
if (ext instanceof Outline) {