Class Writer
java.lang.Object
com.lowagie.toolbox.plugins.watermarker.Writer
The concrete class which will write a the watermark on the stamp. It is meant to be used through WatermarkerTool or
WatermarkerBuilder.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWriter
(PdfReader reader, PdfStamper stamp, String text, int fontsize, float opacity, Color color) -
Method Summary
-
Field Details
-
reader
-
stamp
-
text
-
fontsize
private int fontsize -
opacity
private float opacity -
color
-
font
-
-
Constructor Details
-
Writer
Writer(PdfReader reader, PdfStamper stamp, String text, int fontsize, float opacity, Color color)
-
-
Method Details
-
withFont
-
write
Does the magic, with all parameters already set and valid. At the end, the PDF file configured through the stamp parameter will be written.- Throws:
DocumentException
- if the default "Helvetica" font cannot be createdIOException
- if the default "Helvetica" font cannot be created
-