diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-31 20:15:47 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-31 20:15:47 +0200 |
commit | ad6c001890494bd0432aaf76940b38a997042c03 (patch) | |
tree | 0e95d32d8e3fcafda7ed1f0c33e5739303560036 /tex/context/base/mkiv/back-pdf.lua | |
parent | ecea0b75f52a98aae0e6bcfb649927fb84ffb9c0 (diff) | |
download | context-ad6c001890494bd0432aaf76940b38a997042c03.tar.gz |
2016-03-31 19:50:00
Diffstat (limited to 'tex/context/base/mkiv/back-pdf.lua')
-rw-r--r-- | tex/context/base/mkiv/back-pdf.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/back-pdf.lua b/tex/context/base/mkiv/back-pdf.lua index 5d007ed43..66ca89fb4 100644 --- a/tex/context/base/mkiv/back-pdf.lua +++ b/tex/context/base/mkiv/back-pdf.lua @@ -23,6 +23,7 @@ local scaninteger = scanners.integer local scankeyword = scanners.keyword local scanners = interfaces.scanners +local implement = interfaces.implement local outputfilename @@ -145,3 +146,26 @@ scanners.pdfstartmirroring = function() end scanners.pdfstopmirroring = scanners.pdfstartmirroring + +-- todo, change the above to implement too -- + +implement { + name = "setmapfile", + arguments = "string", + actions = pdf.setmapfile +} + +implement { + name = "setmapfile", + arguments = "string", + actions = pdf.setmapline +} + +implement { + name = "setpdfcompression", + arguments = { "integer", "integer" }, + actions = function(c,o) + pdf.setcompresslevel(c) + pdf.setobjcompresslevel(o) + end +} |