summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lpdf-lmt.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/lpdf-lmt.lmt')
-rw-r--r--tex/context/base/mkxl/lpdf-lmt.lmt12
1 files changed, 10 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/lpdf-lmt.lmt b/tex/context/base/mkxl/lpdf-lmt.lmt
index 14b51b3b1..8d8220230 100644
--- a/tex/context/base/mkxl/lpdf-lmt.lmt
+++ b/tex/context/base/mkxl/lpdf-lmt.lmt
@@ -87,6 +87,7 @@ local pdf_pages = pdfconstant("Pages")
local pdf_page = pdfconstant("Page")
local pdf_xobject = pdfconstant("XObject")
local pdf_form = pdfconstant("Form")
+local pdf_pattern = pdfconstant("Pattern")
local fonthashes = fonts.hashes
local characters = fonthashes.characters
@@ -1821,9 +1822,16 @@ local finalize do
wrapper.Matrix = pdfarray { 1, 0, 0, 1, 0, 0 }
end
- -- todo: additional = resources
+ local patterns = true
- local boxresources = lpdf.collectedresources { serialize = false }
+ if attributes.Type and attributes.Type == pdf_pattern then
+ patterns = false
+ end
+
+ local boxresources = lpdf.collectedresources {
+ patterns = patterns,
+ serialize = false,
+ }
boxresources.Font = fonts
boxresources.XObject = xforms