List of usage examples for org.apache.pdfbox.multipdf Overlay setInputPDF
public void setInputPDF(PDDocument inputPDF)
From source file:org.deidentifier.arx.certificate.resources.Watermark.java
License:Apache License
/** * Marks the document/* w w w .j ava 2 s.c om*/ * @param document * @throws IOException */ public void mark(PDDocument document) throws IOException { Overlay overlay = new Overlay(); overlay.setInputPDF(document); overlay.setAllPagesOverlayPDF(watermark); overlay.setOverlayPosition(Overlay.Position.BACKGROUND); overlay.overlay(new HashMap<Integer, String>()); }