| java.lang.Object org.pdfbox.util.PDFMergerUtility
PDFMergerUtility | public class PDFMergerUtility (Code) | | This class will take a list of pdf documents and merge them, saving the result
in a new document.
author: Ben Litchfield version: $Revision: 1.2 $ |
Constructor Summary | |
public | PDFMergerUtility() Instantiate a new PDFMergerUtility. |
PDFMergerUtility | public PDFMergerUtility()(Code) | | Instantiate a new PDFMergerUtility.
|
addSource | public void addSource(String source)(Code) | | Add a source file to the list of files to merge.
Parameters: source - Full path and file name of source document. |
addSource | public void addSource(File source)(Code) | | Add a source file to the list of files to mere.
Parameters: source - File representing source document |
appendDocument | public void appendDocument(PDDocument destination, PDDocument source) throws IOException(Code) | | append all pages from source to destination.
Parameters: destination - the document to receive the pages Parameters: source - the document originating the new pages throws: IOException - If there is an error accessing data from either document. |
getDestinationFileName | public String getDestinationFileName()(Code) | | Get the name of the destination file.
Returns the destination. |
setDestinationFileName | public void setDestinationFileName(String destination)(Code) | | Set the name of the destination file.
Parameters: destination - The destination to set. |
|
|