diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-05-07 15:20:36 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-05-07 15:20:36 +0200 |
commit | 00a715fb30c2765bffae1bc07a9249359aeea38a (patch) | |
tree | 70f9bff572256afbb15bf15a0ffaae3708f965c4 /tex/context/base/mkiv/back-pdf.lua | |
parent | b162038956eefaaa786603e8faceff35016bdc82 (diff) | |
download | context-00a715fb30c2765bffae1bc07a9249359aeea38a.tar.gz |
2016-05-07 14:41:00
Diffstat (limited to 'tex/context/base/mkiv/back-pdf.lua')
-rw-r--r-- | tex/context/base/mkiv/back-pdf.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/back-pdf.lua b/tex/context/base/mkiv/back-pdf.lua index 0821abb28..323f1d57f 100644 --- a/tex/context/base/mkiv/back-pdf.lua +++ b/tex/context/base/mkiv/back-pdf.lua @@ -25,6 +25,8 @@ local scankeyword = scanners.keyword local scanners = interfaces.scanners local implement = interfaces.implement +local report = logs.reporter("backend") + local outputfilename function codeinjections.getoutputfilename() @@ -145,6 +147,15 @@ scanners.pdfstartmirroring = function() context(pdfsetmatrix(-1,0,0,1)) end +if environment.arguments.nocompression then + pdf.setcompresslevel(0) + pdf.setobjcompresslevel(0) + function pdf.setcompresslevel() + -- blocked from now on + end + pdf.setobjcompresslevel = pdf.setcompresslevel +end + scanners.pdfstopmirroring = scanners.pdfstartmirroring -- todo, change the above to implement too -- |