# [pdftex] pdf objects with references to each other?

Hans Hagen pragma at wxs.nl
Mon Apr 1 01:06:45 CEST 2002

```At 03:33 PM 3/31/2002 +1000, you wrote:
>Hi Ross,
>
>Ross Moore wrote:
> >
> > Hi Bob,
> >
> > > I can't figure out a way to do this with pdftex.
> > > It seems to me that I need to be able to tell pdftex to
> > > choose some number that has not yet been used
> >
> > You cannot do this.
> >
>
>I was wondering whether to ask for new primitives so that
>it could be done. But Heiko's solution works.

indeed, but consider it a hack; what we need is something:

\pdflockobject (\edef\reference{\the\pdflastobj}

and

\pdfnextobject\reference

(i'll communicate this with thanh)

Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma at wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
fall-back web server: