diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-03-25 14:12:41 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-03-25 14:12:41 +0100 |
commit | caef1259af1c843232dfbf5efc65adcf83d67f6f (patch) | |
tree | db2a4b76d4d14ca03d21e0bbf37c42759dda31a7 /tex/context/base/mkxl/lpdf-lmt.lmt | |
parent | cb28e8807d7908cc9644c2bd77c9d214dd8caefe (diff) | |
download | context-caef1259af1c843232dfbf5efc65adcf83d67f6f.tar.gz |
2021-03-25 14:03:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-lmt.lmt')
-rw-r--r-- | tex/context/base/mkxl/lpdf-lmt.lmt | 12 |
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 |