diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-06-01 22:12:48 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-06-01 22:12:48 +0200 |
commit | 822d6299d6c28fe3780ff40831ec5c00c60133f5 (patch) | |
tree | 365fa79c20cb515efe97785cdf59430ab17a1e8f /tex/context/base/mkiv/back-pdp.lua | |
parent | e2658addf306f729945c184e46f98df39dd7026c (diff) | |
download | context-822d6299d6c28fe3780ff40831ec5c00c60133f5.tar.gz |
2019-06-01 19:20:00
Diffstat (limited to 'tex/context/base/mkiv/back-pdp.lua')
-rw-r--r-- | tex/context/base/mkiv/back-pdp.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/back-pdp.lua b/tex/context/base/mkiv/back-pdp.lua index 6360dea47..6111cf469 100644 --- a/tex/context/base/mkiv/back-pdp.lua +++ b/tex/context/base/mkiv/back-pdp.lua @@ -58,16 +58,20 @@ local function pdfobj() local immediate = true local objnum = scankeyword("useobjnum") and scaninteger() or lpdfreserveobject() local uncompress = scankeyword("uncompressed") or lpdfcompresslevel() == 0 - local streamobject = scankeyword("stream") and true or false - local attributes = scankeyword("attr") and scanstring() + local streamobject = scankeyword("stream") + local attributes = scankeyword("attr") and scanstring() or nil local fileobject = scankeyword("file") local content = scanstring() - local object = { + local object = streamobject and { + type = "stream", + objnum = objnum, immediate = immediate, attr = attributes, - objnum = objnum, - type = streamobject and "stream" or nil, compresslevel = uncompress and 0 or nil, + } or { + type = "raw", + objnum = objnum, + immediate = immediate, } if fileobject then object.filename = content |