New escaping system

This commit is contained in:
Marcel Krüger 2020-06-07 22:42:53 +02:00
parent f3af2599da
commit e75211162c
5 changed files with 98 additions and 21 deletions

View file

@ -14,7 +14,8 @@ local function written(pdf, num)
if not num or num == assigned then return end
return num ~= delayed
end
local function stream(pdf, num, dict, content, isfile)
-- raw: Pass on preencoded stream. Currently ignored.
local function stream(pdf, num, dict, content, isfile, raw)
if not num then num = pdf:getobj() end
if pdf[num] ~= assigned then
error[[Invalid object]]