[pdftex] hyperref PDF-forms

Ralf Utermann Ralf.Utermann at Physik.Uni-Augsburg.DE
Fri Aug 5 10:41:31 CEST 2005


Heiko Oberdiek wrote:
[...]
> hyperref has no support for changing the AcroForm object.
> But you can define your own object:
> 
> \usepackage[...]{hyperref}
> ...
> \pdfobject{
>   <<
>     /Fields []
>     ...
>   >>
> }
> \edef\OBJ at acroform{\the\pdflastobj}
> ...
> \begin{Form}

I tried this, but whatever I add to this object (like
a line: /CO [10 0 R] ), it never get's written to the pdf file.
Looks like the Form environment always writes its own
AcroForm object.[I would still need the TextField object
number and don't see how I could get this. And I would
need to write this below the Form environment]

When I look at the object numbers, \pdflastobj is 4
immediately after \begin{document}, then 7 after
the \pdfobj definition, then does not change anymore which
Form and TextField definitions:

\begin{document}
pdflastobj: \the\pdflastobj
\pdfobj{
  <<
    /CO [10 0 R]
    /Fields []
  >>
}
\edef\OBJ at acroform{\the\pdflastobj}

pdflastobj: \the\pdflastobj

\begin{Form}
pdflastobj: \the\pdflastobj

In the resulting pdf file the AcroForm object is number 4
and 7 is the page list object, whether I include this \pdfobj
or not.


Thanks for any further help, Ralf

-- 
        Ralf Utermann
_____________________________________________________________________
        Universität Augsburg, Institut für Physik   --   EDV-Betreuer
        Universitätsstr.1
        D-86135 Augsburg                     Phone:  +49-821-598-3231
        SMTP: Ralf.Utermann at Physik.Uni-Augsburg.DE         Fax: -3411



More information about the pdftex mailing list