Agregar sello de goma
Contents
[
Hide
]
Agregar un sello de goma
- Vincule el PDF de origen a la fachada
PdfContentEditor. - Llame
createRubberStamp(...)con el número de página, rectángulo, título, contenido y color. - Guarde el documento PDF actualizado.
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();
}
}