Top Description Constructors Methods
org.apache.pdfbox.examples.util

public Class AddWatermarkText

extends Object
Class Inheritance
Imports
java.awt.Color, java.io.File, .IOException, org.apache.pdfbox.Loader, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, .PDPageContentStream, org.apache.pdfbox.pdmodel.font.PDFont, .PDType1Font, .Standard14Fonts.FontName, org.apache.pdfbox.pdmodel.graphics.blend.BlendMode, org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsState, org.apache.pdfbox.util.Matrix

Add a diagonal watermark text to each page of a PDF.
Author
Tilman Hausherr

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
public static void
main(String[] args)

private static void
usage()

This will print the usage.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AddWatermarkTextback to summary
private AddWatermarkText()

Method Detail

addWatermarkTextback to summary
private static void addWatermarkText(PDDocument doc, PDPage page, PDFont font, String text) throws IOException
mainback to summary
public static void main(String[] args) throws IOException
usageback to summary
private static void usage()

This will print the usage.