Hi, Aspose team,
I have question about PdfJavaScriptStripper class and Strip method. When I remove all JavaScript from PDF document, which actually contains JavaScript, PdfJavaScriptStripper().Strip(doc1, doc2) returns true.
However when I pass cleaned document to Strip method, it returns true again, but I expect false, because JavaScript was already removed.
In case, when I pass document without JavaScript at all, method returns false for original document and false for cleaned document (what is correct).
Use the following code and sample.pdf (11.8 KB) to replicate issue:
new Aspose.Pdf.License().SetLicense(<license path>);
var original = <original document>;
var oneClean = original + ".1.pdf";
var twoClean = original + ".2.pdf";
var expectedTrue = new PdfJavaScriptStripper().Strip(original, oneClean);
var expectedFalseButTrue = new PdfJavaScriptStripper().Strip(oneClean, twoClean);
Best regard,
Alex Shloma.