public class WatermarkParameters extends MultiplePdfSourceMultipleOutputParameters implements PageRangeSelection, PagesSelection
Constructor and Description |
---|
WatermarkParameters(Source<?> watermark) |
Modifier and Type | Method and Description |
---|---|
void |
addAllPageRanges(Collection<PageRange> ranges) |
void |
addPageRange(PageRange range) |
boolean |
equals(Object other) |
Dimension |
getDimension() |
Location |
getLocation() |
int |
getOpacity() |
Set<Integer> |
getPages(int totalNumberOfPage) |
Set<PageRange> |
getPageSelection() |
Point2D |
getPosition() |
int |
getRotationDegrees() |
Source<?> |
getWatermark() |
int |
hashCode() |
void |
setDimension(Dimension dimenstion) |
void |
setLocation(Location location)
Where the watermark image should appear relative to the page content
|
void |
setOpacity(int opacity)
The watermark opacity where 0 is invisible and 100 is fully opaque
|
void |
setPosition(Point2D position) |
void |
setRotationDegrees(int rotationDegrees) |
getOutput, getOutputPrefix, setOutput, setOutputPrefix
addSource, addSources, getSourceList, removeAllSources
getMinRequiredPdfVersion, getVersion, isCompress, setCompress, setVersion
getExistingOutputPolicy, isLenient, setExistingOutputPolicy, setLenient, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExistingOutputPolicy, isLenient, setExistingOutputPolicy, setLenient
public WatermarkParameters(Source<?> watermark)
public Set<PageRange> getPageSelection()
getPageSelection
in interface PageRangeSelection
public void addPageRange(PageRange range)
public void addAllPageRanges(Collection<PageRange> ranges)
public Set<Integer> getPages(int totalNumberOfPage)
getPages
in interface PagesSelection
totalNumberOfPage
- the number of pages of the document (upper limit).PageRange
set.PagesSelection.getPages(int)
public Source<?> getWatermark()
public int getOpacity()
public void setOpacity(int opacity)
opacity
- public Location getLocation()
public void setLocation(Location location)
location
- public Point2D getPosition()
public void setPosition(Point2D position)
public Dimension getDimension()
public void setDimension(Dimension dimenstion)
public int getRotationDegrees()
public void setRotationDegrees(int rotationDegrees)
public int hashCode()
hashCode
in class MultiplePdfSourceMultipleOutputParameters
public boolean equals(Object other)
equals
in class MultiplePdfSourceMultipleOutputParameters
Copyright © 2019 sejda. All rights reserved.