Yes, you can use the below MWE and the attached PDF to reproduce.

\documentclass{article}
\begin{document}
\hbox{%
    \UseName{sys_if_engine_luatex:TF}{
        \saveimageresource named {rpgicons.charisma_red}{dests_rpgicons.pdf}
        \useimageresource\lastsavedimageresourceindex\relax%
    }{%
        \pdfximage named {rpgicons.charisma_red}{dests_rpgicons.pdf}
        \pdfrefximage\pdflastximage\relax%
    }
}
\end{document}

The attached PDF contains two pages both of which are referenced with named
dests. The first page has the named dest "rpgicons.charisma", the second
(with the red icon) has the named dest "rpgicons.charisma_red". When
compiled with PDFLaTeX, the red icon shows correctly. When compiled with
LuaLaTeX, a warning "named pages are not supported, using page 1" is issued
to the log and the black icon shows up.

Best regards
Jasper

+++

Am Fr., 6. März 2026 um 09:05 Uhr schrieb luigi scarso <
[email protected]>:

>
>
> On Fri, 6 Mar 2026 at 08:45, Jasper Habicht <[email protected]>
> wrote:
>
>> I hope that this is the right place to post this.
>>
>> With PDFLaTeX, I can access named dests in PDF files and include them
>> using \pdfximage named {<dest>}{<file>}\pdfrefximage\pdflastximage. As far
>> as I understand, the LuaTeX manual claims that \saveimageresource has the
>> same functionality like \pdfximage, but using the above accordingly with
>> LuaLaTeX results in a warning that named dests are not supported.  I am
>> aware of the img library as alternative which could also be used to solve
>> the issue
>>
>> In my opinion, the manual should notify about this inconsistency between
>> the two primitives. Alternatively (even better maybe), it would be good to
>> add the functionality to \saveimageresource.
>>
>>
> Do you have an example for pdflatex and lualatex , possibly with  the
> TexLive 2026 ?
>
> --
> luigi
>

Attachment: output_rpgicons.pdf
Description: Adobe PDF document

_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to