[pdftex] Simple (?) question about \pdfobj

Heiko Oberdiek heiko.oberdiek at googlemail.com
Sun Mar 6 01:01:00 CET 2011


On Sun, Mar 06, 2011 at 12:33:45AM +0100, Martin Schröder wrote:

> 2011/3/6 Heiko Oberdiek <heiko.oberdiek at googlemail.com>:
> > If the invalid contents of this object is the problem,
> > then it raises the questions:
> > * What is the relation to class beamer?
> 
> Nothing.

The question was addressed to the OP. (Perhaps his beamer class isn't
uptodate or ...).

> <qoute src="sampledf.tex">
> \pdfobj{(Hello)}            % the simplest case: a string "Hello"

For easier parsing, storing the string as text stream has the
advantage that the string quoting is omitted.

\begingroup
  \pdfobjcompresslevel=0 %
  \pdfcompresslevel=0 %
  \immediate\pdfobj stream{Hello World}%
  \xdef\ObjectRefHello{\the\pdflastobj}%
\endgroup

And the object should be anchored somewhere, e.g.:
  \pdfcatalog{/hello \ObjectRefHello\space 0 R}

Yours sincerely
  Heiko Oberdiek
-- 


More information about the pdftex mailing list