[pdftex] FORMS of hyperref only work with AcrobatProfessional ??

Ross Moore ross at ics.mq.edu.au
Tue Jan 20 19:45:50 CET 2004

Hi TW,

On Mon, 19 Jan 2004, TW Ma wrote:

> I change the action-address according to your advice. (See appendix below).
> I believe that sending out data by Acrobat Reader is MY problem. I think, it
> should not make any difference for PERL or PHP to receive the data.

Yes; that should be true.

> This site is on summer holiday. I do not know PERL at all. Is it possible to
> send me a short one to replace my php-below ?? Thank you in advance.

That shouldn't be necessary. What you have below is *almost* correct.

> -------- www.maths.uwa.edu.au/~twma/xyz/testform.tex
> \documentclass{article}
> \usepackage[bookmarks=false]{hyperref}
> \setlength{\parindent}{0pt}
> \setlength{\parskip}{10pt}
> \begin{document}
> \begin{Form}[action=http://www.maths.uwa.edu.au/~twma/xyz/abc.php,
> method=post]

This fails because of the ~ in the URL.
See below, for how to patch it.

> %% I only change the action address, nothing else
> \TextField[width=3in,name=xname,value={Bilbo Baggins}]
>     {Full name:  }
> \Submit{Send}
> \Reset{Clear}
> \end{Form}
> -------- www.maths.uwa.edu.au/~twma/xyz/testform.pdf
> It compiled successfully. It does NOT work.
> Error Message:
> http://www.maths.uwa.edu.au/protect%20unhbox%20voidb@x%20penalty%20@M%20%20{
> }twma/xyz/abc.php

Yup. The bug is not yours; but it can be worked-around.

> I do not know what to do? Since I attach ALL source files, it is possible
> for anybody to reproduce what I have done. Do they work on YOUR server??

Here is a minor modification to your LaTeX source that creates the correct
PDF to handle the form-action:


%%% RRM
%%%  add these lines to handle the ~ in the URL:

%%% RRM
%%%  now use the action-URL this way:
%%%                 VVVVVV

%% I only change the action address, nothing else
\TextField[width=3in,name=xname,value={Bilbo Baggins}]
    {Full name:  }

> Thank you for your help in advance.

Hopefully this will show you how to solve your problems
with PDF forms, until such time as a fix to hyperref.sty
makes this kind of patch unnecessary.

> twma at maths.uwa.edu.au

Best regards

	Ross Moore

> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex

More information about the pdftex mailing list