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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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