]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added missing PDFColorHandler to PDFDocumentGraphics2D.
authorJeremias Maerki <jeremias@apache.org>
Mon, 19 Jul 2010 07:02:34 +0000 (07:02 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 19 Jul 2010 07:02:34 +0000 (07:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@965368 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java

index c38b753bacfa0ac2c495da2c3e26978645fcd2ac..7d777fa145ec6c44f846358d906e2ea70a6ad773 100644 (file)
@@ -34,6 +34,7 @@ import org.apache.fop.Version;
 import org.apache.fop.fonts.FontInfo;
 import org.apache.fop.fonts.FontSetup;
 import org.apache.fop.pdf.PDFAnnotList;
+import org.apache.fop.pdf.PDFColorHandler;
 import org.apache.fop.pdf.PDFDocument;
 import org.apache.fop.pdf.PDFFilterList;
 import org.apache.fop.pdf.PDFNumber;
@@ -98,6 +99,7 @@ public class PDFDocumentGraphics2D extends PDFGraphics2D {
         this.pdfDoc = new PDFDocument("Apache FOP Version " + Version.getVersion()
                 + ": PDFDocumentGraphics2D");
         this.pdfContext = new PDFContext();
+        this.colorHandler = new PDFColorHandler(this.pdfDoc.getResources());
     }
 
     /**