xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbowdi...@apache.org
Subject svn commit: r568176 - in /xmlgraphics/commons/trunk: src/java/org/apache/xmlgraphics/ps/PSProcSets.java status.xml
Date Tue, 21 Aug 2007 15:58:16 GMT
Author: cbowditch
Date: Tue Aug 21 08:58:15 2007
New Revision: 568176

URL: http://svn.apache.org/viewvc?rev=568176&view=rev
Log:
Bugzilla #43069
add safe-set-page-device macro
Submitted by Adrian Cumiskey <dev.at.cumiskey.com>

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java
    xmlgraphics/commons/trunk/status.xml

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java?rev=568176&r1=568175&r2=568176&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java Tue Aug 21
08:58:15 2007
@@ -140,6 +140,67 @@
             gen.writeln("/X22 load /Y22 load curveto");
             gen.writeln("} bd");
             
+            gen.writeln("/SSPD {");
+            gen.writeln("dup length /d exch dict def");
+            gen.writeln("{");
+            gen.writeln("/v exch def");
+            gen.writeln("/k exch def");
+            gen.writeln("currentpagedevice k known {");
+            gen.writeln("/cpdv currentpagedevice k get def");
+            gen.writeln("v cpdv ne {");
+            gen.writeln("/upd false def");
+            gen.writeln("/nullv v type /nulltype eq def");
+            gen.writeln("/nullcpdv cpdv type /nulltype eq def");
+            gen.writeln("nullv nullcpdv or");
+            gen.writeln("{");
+            gen.writeln("/upd true def");
+            gen.writeln("} {");
+            gen.writeln("/sametype v type cpdv type eq def");
+            gen.writeln("sametype {");
+            gen.writeln("v type /arraytype eq {");
+            gen.writeln("/vlen v length def");
+            gen.writeln("/cpdvlen cpdv length def");
+            gen.writeln("vlen cpdvlen eq {");
+            gen.writeln("0 1 vlen 1 sub {");
+            gen.writeln("/i exch def");
+            gen.writeln("/obj v i get def");
+            gen.writeln("/cpdobj cpdv i get def");
+            gen.writeln("obj cpdobj ne {");
+            gen.writeln("/upd true def");
+            gen.writeln("exit");
+            gen.writeln("} if");
+            gen.writeln("} for");
+            gen.writeln("} {");
+            gen.writeln("/upd true def");
+            gen.writeln("} ifelse");
+            gen.writeln("} {");
+            gen.writeln("v type /dicttype eq {");
+            gen.writeln("v {");
+            gen.writeln("/dv exch def");
+            gen.writeln("/dk exch def");
+            gen.writeln("/cpddv cpdv dk get def");
+            gen.writeln("dv cpddv ne {");
+            gen.writeln("/upd true def");
+            gen.writeln("exit");
+            gen.writeln("} if");
+            gen.writeln("} forall");
+            gen.writeln("} {");
+            gen.writeln("/upd true def");
+            gen.writeln("} ifelse");
+            gen.writeln("} ifelse");
+            gen.writeln("} if");
+            gen.writeln("} ifelse");
+            gen.writeln("upd true eq {");
+            gen.writeln("d k v put");
+            gen.writeln("} if");
+            gen.writeln("} if");
+            gen.writeln("} if");
+            gen.writeln("} forall");
+            gen.writeln("d length 0 gt {");
+            gen.writeln("d setpagedevice");
+            gen.writeln("} if");
+            gen.writeln("} bd");
+
             gen.writeDSCComment(DSCConstants.END_RESOURCE);
             gen.getResourceTracker().registerSuppliedResource(this);
         }

Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?rev=568176&r1=568175&r2=568176&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Tue Aug 21 08:58:15 2007
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -17,61 +17,63 @@
 -->
 <!-- $Id$ -->
 <status>
-
-  <developers>
-    <!-- All committers of Apache FOP and Apache Batik -->
-  </developers>
-
-  <todo>
-    <!-- no task list, yet -->
-  </todo>
-
-  <changes>
-    <release version="Trunk" date="n/a">
-    </release>
-    <release version="1.2" date="21 July 2007">
-      <action context="Code" dev="JM" type="fix">
+	<developers>
+		<!-- All committers of Apache FOP and Apache Batik -->
+	</developers>
+	<todo>
+		<!-- no task list, yet -->
+	</todo>
+	<changes>
+		<release version="Trunk" date="n/a">
+			<action context="Code" dev="CB" type="add" fixes-bug="43069" due-to="Adrian Cumiskey">
+        Application of the patch in Bugzilla 43069:
+        New Macro safe-set-page-device which guards
+against the possibility of invalid/unsupported postscript key/values being
+issued to the implementing postscript page device
+      </action>		
+		</release>
+		<release version="1.2" date="21 July 2007">
+			<action context="Code" dev="JM" type="fix">
         Fixed literal text string escaping in PSGenerator. Some characters were not properly
         escaped.
       </action>
-      <action context="Code" dev="JM" type="add" fixes-bug="42507" due-to="Adrian Cumiskey">
+			<action context="Code" dev="JM" type="add" fixes-bug="42507" due-to="Adrian Cumiskey">
         Added support for CMYK and GRAY color spaces for PSGenerator
         (moved there from PSGraphics2D).
       </action>
-      <action context="Code" dev="JM" type="fix">
+			<action context="Code" dev="JM" type="fix">
         Fixed the PDF/A namespace according to ISO-19005-1:2005/Cor.1:2007 and deprecated
the
         use of the draft PDF/A namespace used by Adobe Acrobat 7.x.
       </action>
-    </release>
-    <release version="1.1" date="22 Dec 2006">
-      <action context="Code" dev="JM" type="add">
+		</release>
+		<release version="1.1" date="22 Dec 2006">
+			<action context="Code" dev="JM" type="add">
         Added the start of an XMP metadata framework.
       </action>
-      <action context="Code" dev="JM" type="fix">
+			<action context="Code" dev="JM" type="fix">
         Various fixes and improvements in the ImageWriter abstraction.
       </action>
-      <action context="Code" dev="JM" type="add">
+			<action context="Code" dev="JM" type="add">
         ImageWriter abstraction now supports writing multi-page formats like TIFF.
       </action>
-      <action context="Code" dev="JM" type="add">
+			<action context="Code" dev="JM" type="add">
         ImageWriter implementation for TIFF output using Image I/O API.
       </action>
-      <action context="Code" dev="JM" type="add" due-to="Max Berger">
+			<action context="Code" dev="JM" type="add" due-to="Max Berger">
         Default implementation for AbstractGraphics2D.drawText(ACI, float, float) so
         PSGraphics2D supports painting text using the AttributedCharacterIterator.
       </action>
-      <action context="Code" dev="JM" type="fix">
+			<action context="Code" dev="JM" type="fix">
         Bugfix: The generation of the PostScript setdash command was assuming that
         only integer values can be used but that isn't the case.
       </action>
-    </release>
-    <release version="1.0" date="17 Apr 2006">
-      <action context="Code" dev="JM" type="add">
+		</release>
+		<release version="1.0" date="17 Apr 2006">
+			<action context="Code" dev="JM" type="add">
         Initial release with several components from Batik and FOP: 
         Image codecs, Image writer abstraction, I/O classes, Java2D helpers, PostScript library

         with Graphics2D implementation.
       </action>
-    </release>
-  </changes>
-
+		</release>
+	</changes>
 </status>



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message