Am working on GroupDocs.Redaction 20.2.0, and Can’t able to redact which is already redacted from Azure Blob Storage.
using (Redactor redactor = new Redactor(destStream))
{
redactor.Apply(new ExactPhraseRedaction(redactionCoordinatesText, new ReplacementOptions(System.Drawing.ColorTranslator.FromHtml("#4a4a4a"))));
redactor.Save(destStream, new RasterizationOptions() { Enabled = true });
}
1 Like
@venkatesan.mm,
Can you please share the sample/problematic file with us?
@venkatesan.mm,
Can you please explain redactionCoordinatesText, what text you want to replace using the API? We’d appreciate if you share complete sample code.
redactionCoordinatesText - is a redact text paramerter name.
@venkatesan.mm,
We cannot reproduce this issue at our end. This is the output.pdf (879.2 KB) we are getting. Please share following details so that we can further investigate your scenario:
- A simple console application using that issue could be reproduced
- Exception/error details if you are facing any
Can you please share your redaction code, i will compare it with my code. Actually am expecting your code from Asp.Net MVC.
1 Like
@venkatesan.mm,
We tried to redact the sample file that you shared using following code:
string redactionCoordinatesText = "Common Language Infrastructure";
var fileStream = File.Create("D:/output.pdf");
using (Redactor redactor = new Redactor(@"D:/Introduction-to-C#.pdf"))
{
redactor.Apply(new ExactPhraseRedaction(redactionCoordinatesText, new ReplacementOptions(System.Drawing.ColorTranslator.FromHtml("#4a4a4a"))));
redactor.Save(fileStream, new RasterizationOptions() { Enabled = true });
}
We’ll further check this in ASP.NET MVC application.