[pdftex] hyperref PDF-forms

Heiko Oberdiek oberdiek at uni-freiburg.de
Thu Aug 11 20:07:15 CEST 2005


On Thu, Aug 11, 2005 at 05:44:49PM +0200, Ralf Utermann wrote:

> Heiko Oberdiek wrote:
> [...]
> >>Do you have any idea how I could get the TextField object numbers?
> > 
> > 
> > Look at the source code (hpdftex.def, ...)
> > and redefine \@TextField to your needs.
> 
> in hpdftex.def there are these lines in \@TextField:
>     \pdfstartlink user {\PDFForm at Text}%
>     \MakeTextField{\Fld at width}{\Fld at height}\pdfendlink}%
> 
> where \PDFForm at Text gives most of the pdf code for the
> text field object, and the object number itself is generated
> by the \pdfstartlink ... \pdfendlink, I guess. However I don't
> see how I could  access this number.

If you use \pdfannot, you get the object number by \pdflastannot.
But \pdflastannot is not set, if \pdfstartlink is used.
Do you have an example, where you need the object number
of \pdfstartlink?

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>
-- 



More information about the pdftex mailing list