summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Cherepanov <alex.cherepanov@artifex.com>2010-05-01 01:59:46 +0000
committerAlex Cherepanov <alex.cherepanov@artifex.com>2010-05-01 01:59:46 +0000
commitaeb1198b7e397eddcda9e2d0f6f767aeea14e280 (patch)
tree43d6be823c81d6eaa7eaed2041ddda3a9c7a2737
parentbbb80e6bb51249b07809c8a974b5e7e393baf87f (diff)
Check all PDF files for transparency features because some files have
incorrect version number but Acrobat renders them just fine. Bug 691273. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11162 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r--gs/Resource/Init/pdf_main.ps10
1 files changed, 4 insertions, 6 deletions
diff --git a/gs/Resource/Init/pdf_main.ps b/gs/Resource/Init/pdf_main.ps
index cd8b5517a..73cb05915 100644
--- a/gs/Resource/Init/pdf_main.ps
+++ b/gs/Resource/Init/pdf_main.ps
@@ -1741,11 +1741,6 @@ currentdict /PDF2PS_matrix_key undef
% ------ Transparency support ------ %
-% Define minimum PDF version for checking for transparency features.
-% Transparency is a 1.4 feature however we have seen files that claimed
-% to be PDF 1.2 with transparency features. Bug 689288.
-/PDFtransparencyversion 1.2 def
-
% Determine whether a page might invoke any transparency features:
% - Non-default BM, ca, CA, or SMask in an ExtGState
% - Image XObject with SMask
@@ -1754,8 +1749,11 @@ currentdict /PDF2PS_matrix_key undef
% a page-level group whether transparency is actually used or not.
% Ignoring the presence of Group is justified because, in the absence
% of any other transparency features, they have no effect.
+%
+% Transparency is a 1.4 feature however we have seen files that claimed
+% to be PDF 1.1 with transparency features. Bugs 689288, 691273.
/pageusestransparency { % <pagedict> pageusestransparency <bool>
- PDFversion PDFtransparencyversion lt NOTRANSPARENCY or {
+ NOTRANSPARENCY {
pop //false
} {
dup //false exch {