com.lowagie.text.pdf
Class PdfCopyFields

java.lang.Object
  extended bycom.lowagie.text.pdf.PdfCopyFields

public class PdfCopyFields
extends Object

Concatenates PDF documents including form fields. The rules for the form field concatenation are the same as in Acrobat. All the documents are kept in memory unlike PdfCopy.

Author:
Paulo Soares (psoares@consiste.pt)

Field Summary
private  PdfCopyFieldsImp fc
           
 
Constructor Summary
PdfCopyFields(OutputStream os)
          Creates a new instance.
PdfCopyFields(OutputStream os, char pdfVersion)
          Creates a new instance.
 
Method Summary
 void addDocument(PdfReader reader)
          Concatenates a PDF document.
 void close()
          Closes the output document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fc

private PdfCopyFieldsImp fc
Constructor Detail

PdfCopyFields

public PdfCopyFields(OutputStream os)
              throws DocumentException,
                     IOException
Creates a new instance.

Parameters:
os - the output stream
Throws:
DocumentException - on error
IOException - on error

PdfCopyFields

public PdfCopyFields(OutputStream os,
                     char pdfVersion)
              throws DocumentException,
                     IOException
Creates a new instance.

Parameters:
os - the output stream
pdfVersion - the pdf version the output will have
Throws:
DocumentException - on error
IOException - on error
Method Detail

addDocument

public void addDocument(PdfReader reader)
                 throws DocumentException
Concatenates a PDF document.

Parameters:
reader - the PDF document
Throws:
DocumentException - on error

close

public void close()
Closes the output document.