public class PdfConcatenate
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected PdfCopy |
copy |
The actual PdfWriter
|
protected Document |
document |
The Document object for PdfCopy.
|
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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).
|
protected Document document
protected PdfCopy copy
public PdfConcatenate(java.io.OutputStream os) throws DocumentException
os
- the OutputStream for the PDF documentDocumentException
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
public int addPages(PdfReader reader) throws DocumentException, java.io.IOException
reader
- the reader for the existing PDF documentDocumentException
java.io.IOException
public PdfCopy getWriter()
public void open()
public void close()
Copyright © 1998–2018. All rights reserved.