Listar carimbos

Listar carimbos em uma página

  1. Vincule o PDF de origem à fachada PdfContentEditor.
  2. Chame getStamps(pageNumber) para recuperar os carimbos na página de destino.
  3. 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();
    }
}