[latex3-commits] [git/LaTeX3-latex3-l3build] master: Suppress PDF compression in DVI mode (71cc768)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Mar 16 14:01:52 CET 2020


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/71cc768223485cdf2b21ec1a48ebdd0fcb050b60

>---------------------------------------------------------------

commit 71cc768223485cdf2b21ec1a48ebdd0fcb050b60
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Mar 16 13:01:52 2020 +0000

    Suppress PDF compression in DVI mode


>---------------------------------------------------------------

71cc768223485cdf2b21ec1a48ebdd0fcb050b60
 CHANGELOG.md |  3 +++
 l3build.dtx  | 12 ++++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index da71282..52ddf60 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Changed
+- Suppress PDF compression in DVI route
+
 ## [2020-03-13]
 
 ### Changed
diff --git a/l3build.dtx b/l3build.dtx
index c39c0f9..f5a58cd 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -2378,10 +2378,14 @@
     \pdfvariable objcompresslevel=0 %
   \fi
 \else
-  \ifnum 0%
-  \ifx\XeTeXversion\@undefined\else 1\fi
-  \ifx\kanjiskip\@undefined\else 1\fi
-  >0 %
+  \ifx\XeTeXversion\@undefined
+  \special{%
+      /setdistillerparams
+      where
+        {pop << /CompressPages false /CompressStreams false >> setdistillerparams}
+      if
+    }%
+  \else
     \special{dvipdfmx:config z 0}% Compress level
     \special{dvipdfmx:config C 0x40}% Object compression
   \fi





More information about the latex3-commits mailing list.