Listar sellos

Listar sellos en una página

  1. Vincule el PDF de origen a la fachada PdfContentEditor.
  2. Llame getStamps(pageNumber) para recuperar los sellos en la página de destino.
  3. Inspeccione la colección StampInfo[] devuelta.
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();
    }
}