feat(outputters): Expose writing of PDF resources to Lua#2308
Conversation
|
Removed 0.15.14 milestone (switched to 0.x.y): |
Having experimented, it is needed. Footnotes
|
This commit extends the low-level C wrapper to libtexpdf to let Lua code: - get the resources dictionary for the current page - add page resources (built with other low-level pdf constructs) - add page annotations (idem) This makes it possible to implement extensions without recompiling SILE, and opens the door to features such as gradient support and better form support.
cbf2bd3 to
a8f860a
Compare
|
Revisited my old PR and made it better. The new constructs are planned to be used here
The latter is (at this day) still experimental, and needs extra support in my "framebox" package (amongst others), and the underlying "grail" drawing layer -- but the basic steps and first results can already be seen in the aforementioned PR. |
(It's the minimal C part of #2251)
This commit extends the low-level C wrapper to libtexpdf to let Lua code add page resources directly to the PDF. This makes it possible to prototype extensions to the Lua outputter without recompiling SILE, and opens the door to features such as gradient support.
EDIT: Now in may 2026 I have more understanding than in August 2025... Proposal amended:
pdf.add_page_resourceget_page_resourcesadd_page_annotationSee comment further below.