forked from mshockwave/PdfiumAndroid
-
Couldn't load subscription status.
- Fork 236
Closed
Description
I'm using this code in my app to flatten a PDF with signatures added.
PdfiumCore pdfiumCore = new PdfiumCore(context);
ParcelFileDescriptor pfd = ParcelFileDescriptor.open(myFile, ParcelFileDescriptor.MODE_READ_ONLY);
PdfDocument pdfDocument = pdfiumCore.newDocument(pfd);
pdfiumCore.openPage(pdfDocument, page);
int width = pdfiumCore.getPageWidthPoint(pdfDocument, page);
int height = pdfiumCore.getPageHeightPoint(pdfDocument, page);
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
pdfiumCore.renderPageBitmap(pdfDocument, bitmap, page, 0, 0, width, height);
But the resulting image created from the bitmap object won't have the signature fields drawn. Can i do something to add those signature fields to the flattening process?
Thanks
Mat
Metadata
Metadata
Assignees
Labels
No labels