[scribus] PDF forms.

Pierre Marchand capparis at free.fr
Mon Jul 14 23:32:55 CEST 2008


Vous (Gregory Pittman) avez écrit :
> John Culleton wrote:
> > Unfortunately that part of the wiki is blank.   I can figure out how
> > to put forms fields on the pdf file but I am lost beyond that point.
> > Does one use Perl, Java, Javascript,  or PHP to retrieve the data,
> > massage it, and return an answer? Does this routine take the form of
> > a cgi file?
>
> Someone may correct my on this, but my understanding of the current
> implementation of PDF forms in Scribus is that the data cannot be
> separated from the form, so the use would be to fill out the form, then
> print it to make use of the feature.
> There is interest, of course, in being able to save form data, but right
> now Adobe is holding on tight to the capability to do that, using only
> its own licensed software.
>

Here is a short (the shortest?) example of what you can do with a submitted 
PDF form.
==============================================
<?php
/*
	Just re-send an FDF file that would be submitted
*/

$ret .= $HTTP_RAW_POST_DATA;
header('Content-type: application/vnd.fdf');
header('Content-Disposition: attachment; filename="theNameOfYourForm.fdf"');
echo $ret;
?>
==============================================

To make a submit button:
"Right click->PDF Options->Field Properties->Action->Submit Form->Submit to 
URL"

HTH

-- 
Pierre Marchand




More information about the scribus mailing list