public class PDFCompositeNode extends Node
This Node
composites a set of input PDF documents into a single output PDF document by
layering the documents' contents atop of each other.
Remark: The result will have only as much pages as the first incoming Stream
has.
If subsequent Stream
s have more pages, they will be dropped.
Its worker respects PageCountLimit
s.
Modifier and Type | Class and Description |
---|---|
static class |
PDFCompositeNode.HorizontalAlignment
Specifies on which horizontal side the overlaid PDFs are aligned.
|
static class |
PDFCompositeNode.Order
Specifies in which order incoming
Stream s will be layered. |
static class |
PDFCompositeNode.VerticalAlignment
Specifies on which vertical side the overlaid PDFs are aligned.
|
Node.Cardinality
Constructor and Description |
---|
PDFCompositeNode() |
Modifier and Type | Method and Description |
---|---|
PDFCompositeNode.HorizontalAlignment |
getHorizontalAlignment()
Set the horizontal alignment.
|
PDFCompositeNode.Order |
getOrder() |
PDFCompositeNode.VerticalAlignment |
getVerticalAlignment()
Get the vertical alignment.
|
boolean |
isRepeat() |
void |
setHorizontalAlignment(PDFCompositeNode.HorizontalAlignment hAlignment)
Set the horizontal alignment.
|
void |
setOrder(PDFCompositeNode.Order order)
Set the
PDFCompositeNode.Order in which the incoming Stream s will be
layered. |
void |
setRepeat(boolean repeat)
If set to true, subsequent
Stream s will be repeated from their
start page until all pages from the 1st document were processed.(default: false ) |
void |
setVerticalAlignment(PDFCompositeNode.VerticalAlignment vAlignment)
Set the vertical alignment.
|
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, getWorkerClassName, hashCode, initialize, prependPredecessor, remove, validateConfiguration
public PDFCompositeNode.Order getOrder()
PDFCompositeNode.Order
in which the incoming Stream
s will be
layered. (default PDFCompositeNode.Order.BACK_TO_FRONT
)public void setOrder(PDFCompositeNode.Order order)
PDFCompositeNode.Order
in which the incoming Stream
s will be
layered.order
- the PDFCompositeNode.Order
to layer incoming documents.public PDFCompositeNode.VerticalAlignment getVerticalAlignment()
PDFCompositeNode.VerticalAlignment.TOP
)public void setVerticalAlignment(PDFCompositeNode.VerticalAlignment vAlignment)
vAlignment
- vertical alignmentpublic PDFCompositeNode.HorizontalAlignment getHorizontalAlignment()
PDFCompositeNode.HorizontalAlignment.LEFT
)public void setHorizontalAlignment(PDFCompositeNode.HorizontalAlignment hAlignment)
hAlignment
- horizontal alignmentpublic void setRepeat(boolean repeat)
If set to true, subsequent Stream
s will be repeated from their
start page until all pages from the 1st document were processed.
(default: false
)
Example: Given document 1 with 4 pages, document 2 with 3 pages, document 3 with 2 pages and document 4 with 5 pages. The result is as follow:
resulting document | page 1 | page 2 | page 3 | page 4 |
---|---|---|---|---|
document 1 | page 1 | page 2 | page 3 | page 4 |
document 2 | page 1 | page 2 | page 3 | page 1 |
document 3 | page 1 | page 2 | page 1 | page 2 |
document 4 | page 1 | page 2 | page 3 | page 4 |
repeat
- If repeating subsequent streams' pages is requested.public boolean isRepeat()
setRepeat(boolean)
Copyright © 2017 levigo holding gmbh. All rights reserved.