Announcement

Collapse
No announcement yet.

Can Foxit SDK DLL redact?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can Foxit SDK DLL redact?

    Application can simulate redaction by deleting the objects with FPDFTextObj_Delete and placing a image in the location of where the Text was delete using the edit module.
    Here is an example of how to add an image.
    FPDF_DOCUMENT d1 = FPDF_CreateNewDocument();
    int pageW=800;
    int pageH=1100;
    FPDF_PAGE p1 = FPDFPage_New(d1,0,pageW,pageH);
    FPDF_PAGEOBJECT object = FPDFPageObj_NewImgeObj(d1);
    ret =FPDFImageObj_SetBitmap(&p1, 0, object, bmap);
    ret =FPDFImageObj_SetMatrix(object,pageW,0,0,pageH,((p ageW/2)-(pageW/2)),((pageH/2)-(pageH/2)));
    FPDFPage_InsertObject(p1,object);
    ret= FPDFPage_GenerateContent(p1);
    ret =FPDF_SaveAsFile(d1,"./newPDF.pdf",NULL,NULL,0,NULL,0);



    Note: Foxit PDF SDK DLL will not be able to redact annotations, since DLL cannot work with Annotations.
Working...
X