org.pdfclown.samples.cli
Class WatermarkSample
java.lang.Object
org.pdfclown.samples.cli.Sample
org.pdfclown.samples.cli.WatermarkSample
public class WatermarkSample
- extends Sample
This sample demonstrates how to insert semi-transparent watermark text into an existing PDF
document.
The watermark is implemented as a Form XObject [PDF:1.6:4.9] to conveniently achieve a
consistent page look -- Form XObjects promote content reuse providing an independent context which
encapsulates contents (and resources) in a single stream.
The watermark is seamlessly inserted upon each page content using the PageStamper class.
- Version:
- 0.1.2, 11/30/12
- Author:
- Stefano Chizzolini (http://www.stefanochizzolini.it)
|
Method Summary |
void |
run()
Executes the sample. |
| Methods inherited from class org.pdfclown.samples.cli.Sample |
getIndentation, getOutputPath, getOutputPath, getResourcePath, isQuit, prompt, promptChoice, promptChoice, promptFileChoice, promptNextPage, promptPageChoice, promptPageChoice, quit, serialize, serialize, serialize, serialize, serialize, serialize, serialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WatermarkSample
public WatermarkSample()
run
public void run()
- Description copied from class:
Sample
- Executes the sample.
- Specified by:
run in class Sample
Project home page
Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.