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.
Page tempPage = doc.pageCreate();
tempPage.annotPushBack(annot);
tempPage.setMediaBox(annot.getRect());
PDFDraw pdfDraw = new PDFDraw();
pdfDraw.export(tempPage, "/mnt/sdcard/annot.jpg", "JPEG");