Hi all,
I'm using pdfium to implement a pdf annotator for android.
I used the following code in my JNI layer to implement SaveAsCopy feature but code fails giving the following error.
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4 in tid 24939 (benjinus.pdfium), pid 24939
FPDF_DOCUMENT pdfDoc = doc->pdfDocument;
if (!FPDF_SaveAsCopy(pdfDoc, NULL, FPDF_INCREMENTAL)) {
return -1;
}
Can someone please help me to figure out what I'm doing wrong or any other way to implement this feature?
Thank you