Hello everyone,
is it possible to check somehow that stamp is present on the page of pdf document?
In case when stamp was added using addStamp() method from Page class, and this stamp isn’t accessible via Annotations (as described in example - Extract Text From Stamps|Aspose.PDF for Java )
Thank you in advance.
Kind regards,
Paul
@paultomsky
You can please try using the below code snippet in order to extract stamps from PDF document and in case you face any issues, please share your sample PDF document with us so that we can test the scenario in our environment and address it accordingly.
Extract stamps from PDF document
com.aspose.pdf.facades.PdfContentEditor editor = new com.aspose.pdf.facades.PdfContentEditor();
editor.bindPdf(dataDir + "input.pdf");
for(Page page : editor.getDocument().getPages())
{
com.aspose.pdf.facades.StampInfo[] stamps = editor.getStamps(page.getNumber());
}
1 Like
this works for me,
thanks a lot
1 Like