고무 스탬프 추가
Contents
[
Hide
]
고무 스탬프 추가
- 소스 PDF를
PdfContentEditor파사드에 바인딩하세요. createRubberStamp(...)를 호출하여 페이지 번호, 직사각형, 제목, 내용, 색상을 알려주세요.- 업데이트된 PDF 문서를 저장하세요.
public static void addRubberStamp(Path inputFile, Path outputFile) {
PdfContentEditor editor = new PdfContentEditor();
try {
editor.bindPdf(inputFile.toString());
editor.createRubberStamp(1, new Rectangle(120, 450, 180, 60), "Approved", "Approved by reviewer", Color.GREEN);
editor.save(outputFile.toString());
} finally {
editor.close();
}
}