LaTeX forum ⇒ OthersInsert pdf file in LuaTex (not LuaLaTex or any ...LaTeX)

Information and discussion about other tools not listed above.
altesCoon
Posts: 2
Joined: Mon Apr 03, 2023 12:27 am

Insert pdf file in LuaTex (not LuaLaTex or any ...LaTeX)

Postby altesCoon » Mon Apr 03, 2023 12:35 am

Hi there.

I wonder how to insert an existing pdf file into a LuaTex document.
I know how to insert images (\saveimageresource, \useimageresource, ...).
I know I can insert a pdf file with exact these image functions, but I don't know how to selcet special pages out of this pdf file.
I know the LaTex package pdfpages can do that, so it might be possible for plain tex (LuaTex), too.
Can anyone help?

Regards
Peter

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
altesCoon
Posts: 2
Joined: Mon Apr 03, 2023 12:27 am

Insert pdf file in LuaTex (not LuaLaTex or any ...LaTeX)

Postby altesCoon » Mon Apr 03, 2023 8:54 pm

I found the answer by myself in the PdfTex manual:

\saveimageresource page <page number> {<my-pdf-file>}
\useimageresource width <width>\lastsavedimageresourceindex


LuaTex commands \saveimageresource and \useimageresource are equivalents to PdfTex comands \pdfximage and \pdfrefximage.

Thanks and greetings from Germany
Peter


Return to “Others”

Who is online

Users browsing this forum: No registered users and 8 guests