From: arved Date: Tue, 21 Mar 2000 10:54:37 +0000 (+0000) Subject: ADD: Add shading object to page resources X-Git-Tag: pre-columns~555 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5cf1feaaecfd85ab1fba504e656a3a6977cdd8a;p=xmlgraphics-fop.git 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 --- 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 *