KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > faceless > pdf > FDF


1 // $Id: FDF.java,v 1.4 2003/11/04 17:16:01 mike Exp $
2

3 package org.faceless.pdf;
4
5 import java.io.*;
6 import java.util.*;
7
8 /**
9  * <p>
10  * A class representing an <code>FDF</code> object. "FDF" stands for "Forms Data Format",
11  * and is Adobes format for submitting form data from a PDF to a server, and generating
12  * a response.
13  * </p><p>
14  * Currently support in the PDF library is limited to completing a PDF documents Form
15  * with the data in the FDF file, using the {@link PDF#importFDF} method.
16  * </p><p>
17  * Here's a simple example showing how to complete a PDF form with an FDF and save the
18  * completed PDF to an <code>OutputStream</code>.
19  * </p><pre>
20  * PDF pdf = new PDF(new PDFReader(new FileInputStream("blankform.pdf")));
21  * FDF fdf = new FDF(new InputStream("data.fdf"));
22  * pdf.importFDF(fdf);
23  * pdf.render(outputstream);
24  * </pre>
25  *
26  * @see PDF#importFDF
27  * @see Form
28  * @since 1.2.1
29  * @version $Revision: 1.4 $
30  *
31  */

32 public class FDF extends PeeredObject
33 {
34     final org.faceless.pdf2.FDF fdf;
35
36     public FDF(InputStream fdfstream)
37         throws IOException
38     {
39     fdf = new org.faceless.pdf2.FDF(fdfstream);
40     }
41
42     Object JavaDoc getPeer()
43     {
44         return fdf;
45     }
46 }
47
Popular Tags