-
I'm looking for a way to include pages from an existing PDF into a document created by sile, similar to Currently I'm doing post-processing with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 16 replies
-
I don't think you've missed anything obvious, I don't think we have an easy mechanism for this. I haven't looked yet, but if the libtexpdf library has a mechanism for writing a page from a blob (basically a passthrough) it might not be too hard to implement this. It would require a fiddling with the outputter a little, but potentially not out of reach of a package with a few lines of lua. If the libtex library has this functionality but we haven't surfaced the API in our Lua wrapper (my best guess says this is going to be the case) then it would require a small change to the C code to surface the feature, then again as above a small Lua package to make it accessible to a document. In my own production work I currently do something similar to you — except I use |
Beta Was this translation helpful? Give feedback.
I don't think you've missed anything obvious, I don't think we have an easy mechanism for this. I haven't looked yet, but if the libtexpdf library has a mechanism for writing a page from a blob (basically a passthrough) it might not be too hard to implement this. It would require a fiddling with the outputter a little, but potentially not out of reach of a package with a few lines of lua. If the libtex library has this functionality but we haven't surfaced the API in our Lua wrapper (my best guess says this is going to be the case) then it would require a small change to the C code to surface the feature, then again as above a small Lua package to make it accessible to a document.
In my o…