|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.PdfConcatenate
public class PdfConcatenate
Wrapper class for PdfCopy and PdfSmartCopy. Allows you to concatenate existing PDF documents with much less code.
| Field Summary | |
|---|---|
protected PdfCopy |
copy
The actual PdfWriter |
protected Document |
document
The Document object for PdfCopy. |
| Constructor Summary | |
|---|---|
PdfConcatenate(java.io.OutputStream os)
Creates an instance of the concatenation class. |
|
PdfConcatenate(java.io.OutputStream os,
boolean smart)
Creates an instance of the concatenation class. |
|
| Method Summary | |
|---|---|
int |
addPages(PdfReader reader)
Adds the pages from an existing PDF document. |
void |
close()
We've finished writing the concatenated document. |
PdfCopy |
getWriter()
Gets the PdfCopy instance so that you can add bookmarks or change preferences before you close PdfConcatenate. |
void |
open()
Opens the document (if it isn't open already). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Document document
protected PdfCopy copy
| Constructor Detail |
|---|
public PdfConcatenate(java.io.OutputStream os)
throws DocumentException
os - the OutputStream for the PDF document
DocumentException
public PdfConcatenate(java.io.OutputStream os,
boolean smart)
throws DocumentException
os - the OutputStream for the PDF documentsmart - do we want PdfCopy to detect redundant content?
DocumentException| Method Detail |
|---|
public int addPages(PdfReader reader)
throws DocumentException,
java.io.IOException
reader - the reader for the existing PDF document
DocumentException
java.io.IOExceptionpublic PdfCopy getWriter()
public void open()
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||