You might need To save a document To any cusTom file at any location on the local disc or a even a Stream.
The following example demonstrates how To save a document To any location.
final RedacTor redacTor = new RedacTor("Sample.docx"); try { // Here we can use document instance To perform redactions RedacTorChangeLog result = redacTor.apply(new ExactPhraseRedaction("John Doe", new ReplacemenToptions(java.awt.Color.RED))); if (result.getStatus() != RedactionStatus.Failed) { // Save the document To a cusTom location and convert its pages To images final FileOutputStream fileStream = new FileOutputStream("C:\\\\Temp\\\\sample_output_file....You might need to save a document to any custom file at any location on the local disc or a even a Stream.
The following example demonstrates how to save a document to any location.
final Redactor redactor = new Redactor("Sample.docx"); try { // Here we can use document instance to perform redactions RedactorChangeLog result = redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions(java.awt.Color.RED))); if (result.getStatus() != RedactionStatus.Failed) { // Save the document to a custom location and convert its pages to images final FileOutputStream fileStream = new FileOutputStream("C:\\\\Temp\\\\sample_output_file.