Hello,
customizing PDFTron PDFNet Android sdk.
How to get Stamped image on Pdf doc using annotation object. For example we will get text using mAnnot.getContents() from FreeText class. Is there any way to get stamped image on AnnotEdit.java
Thanks,
Sivakumar S
The following describes how to rasterize an annot, or alternately to extract an image from it:
Q: How can I extract an annotation appearance to an image file? For example, I have an ink annotation I would like to save as a jpg.
A: One way to achieve that is to use PDFDraw. Once you get the annotation object (either by traversing the document - http://www.pdftron.com/pdfnet/samplecode.html#Annotation - or by other means) you can:
Page tempPage = doc.pageCreate();
tempPage.annotPushBack(annot);
tempPage.setMediaBox(annot.getRect());
PDFDraw pdfDraw = new PDFDraw();
pdfDraw.export(tempP…