diff options
Diffstat (limited to 'src/org/apache/fop/pdf/PDFPattern.java')
-rw-r--r-- | src/org/apache/fop/pdf/PDFPattern.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/org/apache/fop/pdf/PDFPattern.java b/src/org/apache/fop/pdf/PDFPattern.java index 620452a61..40085a3f4 100644 --- a/src/org/apache/fop/pdf/PDFPattern.java +++ b/src/org/apache/fop/pdf/PDFPattern.java @@ -64,7 +64,7 @@ import java.util.Vector; * * All PDF Functions have a FunctionType (0,2,3, or 4), a Domain, and a Range. */ -public class PDFPattern extends PDFObject { +public class PDFPattern extends PDFPathPaint { /** * The resources associated with this pattern @@ -214,6 +214,18 @@ public class PDFPattern extends PDFObject { return (this.patternName); } + + public String getColorspaceOut(boolean fillNotStroke) + { + if(fillNotStroke) + { //fill but no stroke + return("/Pattern cs /"+this.getName()+" scn \n"); + } + else + { //stroke (or border) + return("/Pattern CS /"+this.getName()+" SCN \n"); + } + } /** * Output a Double prettily as a string * |