[gs-cvs] rev 7020 - in trunk/gs: lib src

leonardo at ghostscript.com leonardo at ghostscript.com
Mon Sep 4 04:40:20 PDT 2006


Author: leonardo
Date: 2006-09-04 04:40:17 -0700 (Mon, 04 Sep 2006)
New Revision: 7020

Modified:
   trunk/gs/lib/opdfread.ps
   trunk/gs/src/gdevpdfd.c
   trunk/gs/src/gdevpdtt.c
Log:
Fix (ps2write) : Didn't write the OPDFRead procset.

DETAILS :

This patch includes 3 things :

1. In gdevpdfd.c : A temporary fix for Bug 688856  
"Problems with ps2write (see comment #5)".
We keep the bug open because it still requires our
attention about the order of initialization events.

2. In gdevpdtt.c : Allow writing True Types with glyph indices over 255.
The old code is compatible to a bug in Adobe reader 3,
which is irrelevant to ps2write. The new code 
keeps the old logic with pdfwrite and skips the check
with ps2write.

3. In opdfread.ps : .max was undefined.

This patch helps to work on the customer bug 688790  
"pdfwrite : The PDF/A conversion needs to to re-encode texts"
 
EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/lib/opdfread.ps
===================================================================
--- trunk/gs/lib/opdfread.ps	2006-09-01 23:23:22 UTC (rev 7019)
+++ trunk/gs/lib/opdfread.ps	2006-09-04 11:40:17 UTC (rev 7020)
@@ -1364,6 +1364,13 @@
   pop
 } bind def
 
+/.max 
+{ 2 copy gt {
+    exch
+  } if
+  pop
+} bind def
+
 /.dicttomark
 { >>
 } bind def

Modified: trunk/gs/src/gdevpdfd.c
===================================================================
--- trunk/gs/src/gdevpdfd.c	2006-09-01 23:23:22 UTC (rev 7019)
+++ trunk/gs/src/gdevpdfd.c	2006-09-04 11:40:17 UTC (rev 7020)
@@ -472,7 +472,7 @@
 	 * which shouldn't cause the page to be opened.
 	 */
 	if (gx_dc_pure_color(pdcolor) == pdev->white && 
-		!is_in_page(pdev) && pdev->sbstack_depth == bottom) {
+		!is_in_page(pdev) && pdev->sbstack_depth <= bottom) {
 	    if (box->p.x == 0 && box->p.y == 0 && 
 		    box->q.x == int2fixed(pdev->width) && 
 		    box->q.y == int2fixed(pdev->height)) /* See gs_fillpage */

Modified: trunk/gs/src/gdevpdtt.c
===================================================================
--- trunk/gs/src/gdevpdtt.c	2006-09-01 23:23:22 UTC (rev 7019)
+++ trunk/gs/src/gdevpdtt.c	2006-09-04 11:40:17 UTC (rev 7020)
@@ -1085,7 +1085,7 @@
 	 * this now.
 	 */
 	if (font->FontType == ft_TrueType &&
-	    pdev->CompatibilityLevel <= 1.2
+	    pdev->CompatibilityLevel <= 1.2 && !pdev->ForOPDFRead
 	    ) {
 	    int i;
 



More information about the gs-cvs mailing list