PDF Kit: Can we add images to 'black out' information in a scanned document converted to PDF?

How can we add the ability to 'black out' (redact) confidential information in a scanned document or FAX that was converted to PDF?

For example, can we use the PDFFileMend object to 'draw' a black rectangle that would overlay and obscure part of the FAX image? (See the code sample below, from your website.)

If so, does Aspose offer code for a sample User Interface for PDF Kit -- or will we need to create this from scratch?

Thanks!

Mark Hays

UMass

Email: MHays "at" PublicSectorPartners.com

//create PdfFileMend object to add image in the PDF file

PdfFileMend objFileMend = new PdfFileMend("input.pdf", "output.pdf");

//add image in the PDF file

objFileMend.AddImage("image.jpg", 1, 200, 500, 350, 750);

//close the PdfFileMend object

objFileMend.Close();

Hi Mark,

We need to test your scenario to see if we can redact the image using AddImage method or AddStamp method. We’ll look into it at our end. However, it would be better if you could share a sample input PDF file as well; as the scanned PDF files are different from the normal PDF files, so we will also try to make sure that it works for your particular scenario.

As far as your second requirement is concerned, I’m afraid, Aspose.Pdf.Kit doesn’t provide the user interface; it is only an API, which you can use in your application code. I’m sorry to share that you’ll have to create your own user interface for any required features.

We’re sorry for the inconvenience and appreciate your cooperation.
Regards,

Hi Mark,

I have tried to investigate your requirement at my end. At the moment, you can either add some image or text (or just a black background) on an image in a PDF file. I have attached a sample project to help you understand this. However, I would like to share that if the original image is extracted from the PDF file, the information will still be visible on the actual image; that is, the image or text added on the original image doesn’t actually affect the original image; it only hides the information in the PDF file.

Please see the attached sample application. If you find any further questions or concerns, please do let us know.
Regards,