summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Cherepanov <alex.cherepanov@artifex.com>2012-05-20 16:31:14 -0400
committerAlex Cherepanov <alex.cherepanov@artifex.com>2012-05-20 16:31:14 -0400
commit535d11e8a1d667a3d71680b27f18e4a89df98b2d (patch)
tree6f8cd11019555c675faa46a22ef0a3d92606b73b
parent40cc976eae680d6a6f1297c5a0d556a37e9eb4b8 (diff)
Bug 693044: fix pdfopt utility.
Disable checking for the max pdf object number during PDF linearisation, because linearisation adds a few new objects to the PDF file.
-rw-r--r--gs/lib/pdfopt.ps2
1 files changed, 2 insertions, 0 deletions
diff --git a/gs/lib/pdfopt.ps b/gs/lib/pdfopt.ps
index 74cb91994..6e02dff9a 100644
--- a/gs/lib/pdfopt.ps
+++ b/gs/lib/pdfopt.ps
@@ -1010,6 +1010,8 @@ userdict /clostreams 20 dict put % stream -> [data endproc]
40 dict begin
/IDict exch def
/OFile exch def
+ % Disable check for the max object number because pdfopt adds new objects.
+ /NumObjects 16#7fffffff store
/starttime exch def
/ToWrite 100 dict def
/now {