public class ERPDFMerge extends Object
Constructor and Description |
---|
ERPDFMerge() |
Modifier and Type | Method and Description |
---|---|
static void |
concatPDFs(List<InputStream> streamOfPDFFiles,
OutputStream outputStream,
boolean paginate)
Concatenates the list of streamOfPDFFiles into one PDF document that can
be accessed via outputStream.
|
static void |
concatPDFs(List<InputStream> streamOfPDFFiles,
OutputStream outputStream,
com.lowagie.text.Document document,
boolean paginate)
Concatenates a list of streamOfPDFFiles into one PDF document that can be
accessed through the outputStream.
|
public static void concatPDFs(List<InputStream> streamOfPDFFiles, OutputStream outputStream, boolean paginate)
Concatenates the list of streamOfPDFFiles into one PDF document that can be accessed via outputStream. If paginate is true it adds page numbering to the bottom right of each PDF page.
This method creates a default iText Document object and passes it into concatPDFs(List, OutputStream, Document, boolean) method
streamOfPDFFiles
- outputStream
- paginate
- public static void concatPDFs(List<InputStream> streamOfPDFFiles, OutputStream outputStream, com.lowagie.text.Document document, boolean paginate)
Concatenates a list of streamOfPDFFiles into one PDF document that can be accessed through the outputStream.
The document arg is intended to give you control over the page size and margins by allowing you to construct a document of your own parameters. Other than that, it behaves the same as the concatPDFs method without the document arg
To use this version of the method, create a new Document and pass it in like this:
com.lowagie.text.Document doc = new com.lowagie.text.Document(com.lowagie.text.PageSize.LETTER, 0.0F, 0.0F,0.0F,0.0F); ERPDFMerge.concatPDFs(pdfsToCombine, output, doc, true);That creates a letter sized (8.5 in x 11 in) page with no margin (suitable for concatinating 8.5x11 pdfs that already have their margins set.
streamOfPDFFiles
- outputStream
- document
- paginate
- iText Document class
,
Page Size class in iText
Copyright © 2002 – 2024 Project Wonder.