List Stamps
Contents
[
Hide
]
List stamps on a page
- Bind the source PDF to the
PdfContentEditorfacade. - Call
getStamps(pageNumber)to retrieve the stamps on the target page. - Inspect the resulting
StampInfo[]collection.
public static void listStamps(Path inputFile) {
PdfContentEditor editor = new PdfContentEditor();
try {
editor.bindPdf(inputFile.toString());
StampInfo[] stamps = editor.getStamps(1);
System.out.println("Stamps on page 1: " + stamps.length);
} finally {
editor.close();
}
}