@SingleOutputAllowedExtensions public class SetPagesLabelParameters extends SinglePdfSourceSingleOutputParameters
Ex. if the parameters contain two labels, "label1" for physical page 1 and "label2" for physical page 5, the resulting document will have pages 1 to 4 where "label1" is applied and pages 5 till the end of the document where "label2" is applied.
Constructor and Description |
---|
SetPagesLabelParameters() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Map<Integer,PdfPageLabel> |
getLabels() |
PdfSource<?> |
getSource() |
int |
hashCode() |
PdfPageLabel |
putLabel(Integer page,
PdfPageLabel label)
Associates the given label to the given page number.
|
void |
setSource(PdfSource<?> source)
Set the source for this parameter.
|
getOutput, setOutput
getMinRequiredPdfVersion, getVersion, isCompress, setCompress, setVersion
getExistingOutputPolicy, isLenient, setExistingOutputPolicy, setLenient, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExistingOutputPolicy, isLenient, setExistingOutputPolicy, setLenient
public PdfPageLabel putLabel(Integer page, PdfPageLabel label)
page
- the one based page numberlabel
- public Map<Integer,PdfPageLabel> getLabels()
public int hashCode()
hashCode
in class SinglePdfSourceSingleOutputParameters
public boolean equals(Object other)
equals
in class SinglePdfSourceSingleOutputParameters
public PdfSource<?> getSource()
getSource
in interface SinglePdfSourceTaskParameters
public void setSource(PdfSource<?> source)
SinglePdfSourceTaskParameters
setSource
in interface SinglePdfSourceTaskParameters
Copyright © 2019 sejda. All rights reserved.