diff options
-rw-r--r-- | luaotfload.dtx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 567cd37..86c5b8d 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -746,7 +746,9 @@ local function colorize(head) end local function finalize(head) - tex.pdfpageresources = format("%s\n/ExtGState<<%s>>", tex.pdfpageresources, res) + if res then + tex.pdfpageresources = format("%s\n/ExtGState<<%s>>", tex.pdfpageresources, res) + end return head end |