How to use PdfRedactionAnnotation in SfPdfViewer?
Hi,
I'm working with redaction with Syncfusion.Pdf.NEt and SfPdfViewer.
If I create PdfRedaction object base on this link, the redaction will be created properly. But there are some features which I cannot add to redaction such as Text Alignment or Repeat Text.
Other way, I created PdfRedactionAnnotation base on this link. The Redaction Annotation didn't appeared.
So, how can I add PdfRedactionAnnotation to SfPdfViewer? Or how can I make a workaround to perform Text Alignment and Repeat Text with PdfRedaction object?
Please send me a sample if possible.
Thanks and best regards,
Hi Thanh,
Regarding workaround for add the redaction with text alignment and repeated text in SfPdfViewer:
we have prepared a workaround solution for your requirement with the help of Syncfusion PDF Library. Please find the workaround sample application from the attachment (along with the output screen shot of the same) for PDF reduction.
Please find the workflow of the application,
Click the “Mark for redaction” button in the Appbar to select the redaction area. This activates the square annotation mode in SfPdfViewer. Then, select the area in the PDF document that needs to be redacted.
After selecting the area, click the “Apply Redaction” button to apply the reduction in the PDF document with text alignment and repeated text. The text alignment and repeated text logic are implemented in the CreateRedactionAppearance method in the sample. Once the reduction is applied, the PDF will be reloaded in the SfPdfViewer.
Regarding PdfRedactionAnnotation :
Kindly refer to the below UG documentation for achieve your requirement for PdfRedactionAnnotation.
https://help.syncfusion.com/file-formats/pdf/working-with-annotations#pdf-redaction-annotation
Regards,
Deepika R
Attachment: Redaction_f576f4f1_da71e668.zip
Hi Deepika,
Thank you so much for your sample. It's worked properly with my requirement.
Regards,
TH
Hi TH,
We are glad to know that the shared sample meets your requirements. If you need any further assistance, kindly let us know.
Regards,
Deepika R
- 3 Replies
- 2 Participants
- Marked answer
-
TH Thanh H?i Ð?ng
- Apr 2, 2024 05:20 PM UTC
- Apr 4, 2024 08:16 AM UTC