<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 24, 2022 at 9:47 PM Herbert Voss <<a href="mailto:Herbert.Voss@fu-berlin.de">Herbert.Voss@fu-berlin.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Am 24.02.22 um 21:03 schrieb luigi scarso:<br>
><br>
><br>
> On Thu, Feb 24, 2022 at 8:59 PM Herbert Voss <br>
> <<a href="mailto:Herbert.Voss@fu-berlin.de" target="_blank">Herbert.Voss@fu-berlin.de</a>> wrote:<br>
><br>
> Hello all,<br>
><br>
> I am running lualatex with package pdfpages to insert<br>
> 970 pages of another document:<br>
><br>
> It takes a lot of time:<br>
><br>
> real 4m31.530s<br>
> user 3m30.000s<br>
> sys 0m58.771<br>
><br>
><br>
> running it with pdflatex:<br>
><br>
> real 0m27.802s<br>
> user 0m24.902s<br>
> sys 0m2.028s<br>
><br>
><br>
> Can you test with an equivalent plain luatex file ?<br>
<br>
<br>
How can I insert a single page of a multipage pdf document with luatex?<br>
<br>
Herbert<br>
</blockquote></div><div><br></div><div>something like this, with mtxrun --script plain test.tex</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div>%%</div><div>%% test.tex</div><div>%%</div>\outputmode=1<br>\edef\pdfcompresslevel {\pdfvariable compresslevel}<br>\edef\pdfminorversion{\pdfvariable minorversion}<br><br>\let\pdfximage\saveimageresource<br>\let\pdfrefximage\useimageresource<br>\let\pdflastximage\lastsavedimageresourceindex<br><br>\pdfminorversion=7<br>\pdfcompresslevel=0<br><br>\topskip0pt<br><br>%% insert page 10 from luatex.pdf<br>\pdfximage width \hsize height \vsize page 10 {luatex.pdf}\relax\hbox{\pdfrefximage\pdflastximage}\relax\eject<br><br>\bye<br><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>