[dvipdfmx] \special{pdf:pageresources and named objects

Ulrike Fischer news3 at nililand.de
Tue Aug 6 15:06:53 CEST 2019


Hello,

with \special{pdf:put @resources ...}
I can without problems use a named object:

\documentclass{article}

\usepackage{l3pdf}
\ExplSyntaxOn
\pdf_uncompress:

\ExplSyntaxOff

\begin{document}
\special{pdf:obj @testextgs <<>>}
\special{pdf:put @resources << /ExtGState @testextgs >>}
\special{pdf:put @testextgs << /bearopacity <</ca 1/CA 1>>>>}
\special{pdf:put @testextgs << /duckopacity <</ca 0.7/CA 0.7>>>>}
abc
\end{document}

The resource is filled and added to the page resource:

8 0 obj
<</ExtGState 4 0 R/Font<</F1 6 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
endobj

But when I try the same with the new pdf:pageresources
the /ExtGState entrie is missing in the resource dictionary:

\documentclass{article}

\usepackage{l3pdf}
\ExplSyntaxOn
\pdf_uncompress:
\ExplSyntaxOff

\begin{document}
\special{pdf:obj @testextgs <<>>}
\special{pdf:pageresources <</ExtGState @testextgs>>}
\special{pdf:put @testextgs << /bearopacity <</ca 1/CA 1>>>>}
\special{pdf:put @testextgs << /duckopacity <</ca 0.7/CA 0.7>>>>}
abc
\end{document}

8 0 obj
<</Font<</F1 6 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
endobj


Is this a bug or do I'm using it wrong?

-- 
Mit freundlichen Grüßen
Ulrike Fischer
mailto:news3 at nililand.de




More information about the dvipdfmx mailing list