스탬프 목록
Contents
[
Hide
]
페이지에 스탬프 나열
- 소스 PDF를
PdfContentEditor파사드에 바인딩하세요. - 대상 페이지의 스탬프를 검색하려면
getStamps(pageNumber)를 호출하세요. - 결과
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();
}
}