Redacted the text in PDF with red color Redact PDF with code sets and entriesĬertain PDF files, such as invoice, government official forms, contains text or images that are positioned at the fixed position in the PDF page. For example, employee addresses in W-4 tax forms will always be in the same place and can be redacted under the exemption code of US FOIA (b) (6). PdfRedaction redaction = new PdfRedaction(new RectangleF(340,120,140,20), ) This will completely remove the content from the PDF and apply red color over the redacted area. Now, we’ll load the same PDF file and redact with red color. Redacted PDF without text and color Redact PDF with fill color PdfRedaction redaction = new PdfRedaction(new RectangleF(340,120,140,20)) Īs you can see in the screenshot, the email address in the PDF file is completely removed without any trace and you cannot find or select the redacted content. PdfLoadedPage lpage = ldoc.Pages as PdfLoadedPage PdfLoadedDocument ldoc = new PdfLoadedDocument("././Input/RedactPDF.pdf") PDF file before redaction //Load a PDF document for redaction Here, we’ll just remove the email address from the PDF and leave the area blank. Let’s start with code to redact a PDF using C#Īlready referencing the required assemblies from NuGet? Great! Now we need to add a namespace in our class, as in the following code sample. You can specify custom text or redaction codes to appear over the redacted area. Syncfusion PDF Library provides customization options for the redacted area, so you can use colored boxes or leave the area blank. The PDF redaction feature is also available in WinForms, WPF, ASP.NET Web Forms, and ASP.NET MVC. You can now distribute files securely by permanently removing confidential information such as financial account numbers, social security numbers, customer email addresses, phone numbers, and credit card information. Syncfusion PDF Library helps customers reach GDPR compliance by safely removing customer information from a PDF document. It is always a good idea to have a backup of the master document. Once the content is redacted, it cannot be undone. Syncfusion provides a 100% true redaction, which means we completely remove the content from the document. When we try copying text from under the colored area, we can still see the content, so it’s not redacted. Redaction isn’t just placing a colored box over text or an image. NET PDF library provides an easy way to redact PDF using C#. Redacting a PDF is the process of removing sensitive or confidential information from PDF documents. BoldDesk – Customer Service Software New.BoldSign – Electronic Signature Software.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |