PDFill

PDF Action

An PDF Action defines the actions to be taken in response to various trigger events affecting the document as a whole. You can add the most common PDF actions into your PDF document:

  1. No Action
  2. Open a Web Link
  3. Reset a Form
  4. Submit a Form
  5. Run a Javascript
  6. Named Action
  7. Go to Local Page
  8. Go to Another PDF
  9. Launch Application or Document

1. No Action

2. Open a Web Link

A uniform resource identifier (URI) is a string that identifies (resolves to) a resource on the Internet—typically a file that is the destination of a hypertext link.
Here are some examples to open a Web or Email Link:

http://www.pdfill.com

ftp://ftp.pdfill.com

mailto
:support@pdfill.com?subject=my subject

mailto
:support@pdfill.com?subject=my subject&cc=barfoo@foobar.com&bcc=secretfoo@bar.com&body=type body line here

3. Reset a Form

A reset-form action resets the entire interactive form fields to their default values.

4. Submit a Form

PDF forms as well as HTML forms can be used in a transaction between an end user and the form provider, but the approach between the two types of interactive forms is quite different. If your form is short—for instance, a two-box login form—you should prefer HTML over PDF. A PDF form is typically preferred when you want to keep the layout of an existing paper form: Some people fill in the form online, whereas other people print it and fill it in manually. HTML forms don’t look nice when printed out.

You must put your PDF Form under your Web Server to avoid "Html/text" error. Also, Adobe Reader 7.0 and later is recommended for submit.

4.1. Submit a Form In FDF Format
Forms Data Format (FDF) is the file format used for interactive form data
. FDF is used when submitting form data to a server, receiving the response, and incorporating it into the interactive form. It can also be used to export form data to stand-alone files that can be stored, transmitted electronically, and imported back into the corresponding PDF interactive form.

In your server, you can easily save the raw data as a FDF. You can save it into your database or let the client user to download this new FDF. The user can save this FDF with the original PDF form. When this FDF is open,  the original PDF form is filled and ready to print.

PDFill Provides FREE Form Data Submit Services http://www.pdfill.com/example/submit/fdf_submit_free.php

You can ask your client user to email the very compact FDF file instead of the entire PDF Form.

Instead, you can follow use this link to test your FDF submit:  http://www.pdfill.com/example/submit/fdf_submit_free.php. Please see this example PHP Code to handle this Online PDF Form Data submitted in HTML Format.

4.2. Submit a Form In HTML Format
The data in your form is submitted to the server as an HTML POST. You can retrieve the parameters from the request object as if it is a HTML form. Please see
this example PHP Code to handle this Online PDF Form Data submitted in HTML Format. You can easily save the filled data into excel, Text, FDF, XFDF, or database in your server. 

4.3. Submit a Form In XFDF Format
XML Forms Data Format(XFDF), a version of FDF based on XML. XFDF is described in the Adobe technical note XML Forms Data Format Specification, Version 2.0. XML is described in the W3C document Extensible Markup Language (XML) 1.1).
You can use any XML parser to get the field names and their values. Please see
this example PHP Code to handle this Online PDF Form Data submitted in XPDF Format.

5. Run a Javascript

 Here are some examples:

JavaScript Function
this.print(true) Print  the PDF document
app.alert('Hello!') Give a message
this.getField("Text3").value = this.getField("Text1").value + this.getField("Text2").value Add Simple Calculation

6. Named Action

PDF viewers support a list of named actions that can be created with

  • First Page — Jumps to the first page

  • Previous Page — Jumps to the previous page

  • Next Page — Jumps to the next page

  • Last Page —  Jumps to the last page

  • Print Dialog — Opens a dialog box for printing

7. Go to Local Page

Display the page, with the coordinates (left, top) positioned at the top-left corner of the window and the contents of the page magnified by the factor zoom. A negative value for any of the parameters left or top, or a zoom value of 0 specifies that the current value of that parameter is to be retained unchanged.

Page Number - a specific page number

Left - the left value. A value of 0 or negative keeps the current value.

Top - the top value. A value of 0 or negative keeps the current value.

Zoom - The zoom factor. A value of 0 or negative keeps the current value.

8. Go to Another PDF

Page Number: a specific page number

PDF Path Name: The path name of a remote PDF file

9. Launch Application or Document

A launch action launches an application or opens or prints a document.

Application - the application to be launched or the document to be opened or printed.

Parameters - (Windows-specific) A parameter string to be passed to the application. It can be empty.

Operation - (Windows-specific) the operation to perform: "open" - Open a document, "print" - Print a document. It can be empty.

DefaultDir - (Windows-specific) the default directory in standard DOS syntax. It can be empty.

 

PDFill Copyright © 2002-2007 by PlotSoft L.L.C..  All rights reserved.