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

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

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

Post by altesCoon »

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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
altesCoon
Posts: 2
Joined: Mon Apr 03, 2023 12:27 am

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

Post by altesCoon »

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
Post Reply