Listar carimbos
Contents
[
Hide
]
Listar carimbos em uma página
- Vincule o PDF de origem à fachada
PdfContentEditor. - Chame
getStamps(pageNumber)para recuperar os carimbos na página de destino. - Inspecione a coleção de resultados
StampInfo[].
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();
}
}