Skip to content

Signature field flattening is not working #20

@matpag

Description

@matpag

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions