[DVIPDFMx] possibility of forward references?

Alexander Grahn A.Grahn at hzdr.de
Tue Aug 30 23:28:15 KST 2011


On Tue, Aug 30, 2011 at 04:10:34PM +0200, Alexander Grahn wrote:
>On Tue, Aug 30, 2011 at 11:00:21AM +0200, Oleg Parashchenko wrote:
>>Hello,
>>
>>in pdftex, I can do the following (the code is a bit incorrect):
>>
>>% Declare that I will create an object in future
>>\pdfobj reserveobjnum {...}
>>\myobjnum=\pdflastobj
>>% Refer to the object
>>\pdfliteral{BT [\myobjnum 0 R]TJ ET
>>% Finally, create the object
>>\pdfobj useobjnum\myobjnum {(test)}
>>
>>I can refer to an object created later. Is it possible with DVIPDFMx?
>
>The dvipdfmx counterpart should be:
>
>\special{pdf:code BT [@myobj]TJ ET}
>\special{pdf:obj @myobj (test)}
>
>Alexander

I am afraid that object references are not allowed in content streams.
Nevertheless, forward referencing remains possible:

\special{pdf:obj @yourobj <</key @myobj>>}
\special{pdf:obj @myobj (test)}

Alexander


More information about the dvipdfmx mailing list