From e5cf1feaaecfd85ab1fba504e656a3a6977cdd8a Mon Sep 17 00:00:00 2001 From: arved Date: Tue, 21 Mar 2000 10:54:37 +0000 Subject: [PATCH] ADD: Add shading object to page resources git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193309 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/pdf/PDFPage.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/org/apache/fop/pdf/PDFPage.java b/src/org/apache/fop/pdf/PDFPage.java index 63ef4e960..c3cfc6326 100644 --- a/src/org/apache/fop/pdf/PDFPage.java +++ b/src/org/apache/fop/pdf/PDFPage.java @@ -88,8 +88,7 @@ public class PDFPage extends PDFObject { * @param pageheight the page's height in points */ public PDFPage(int number, PDFResources resources, - PDFStream contents, - int pagewidth, + PDFStream contents, int pagewidth, int pageheight) { /* generic creation of object */ @@ -112,7 +111,7 @@ public class PDFPage extends PDFObject { public void setParent(PDFPages parent) { this.parent = parent; } - + /** * set this page's annotation list * @@ -131,6 +130,9 @@ public class PDFPage extends PDFObject { return this.annotList; } + public void addShading(PDFShading shading) { + this.resources.addShading(shading); + } /** * represent this object as PDF * -- 2.39.5