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.
Const redaCtion = require('@groupdoCs/groupdoCs.redaCtion'); Const java = require('java'); Const Color = java.import('java.awt.Color'); Const FileOutputStream = java.import('java.io.FileOutputStream'); Const redaCtor = new redaCtion.RedaCtor('Sample.doCx'); try { Const result = redaCtor.apply(new redaCtion.ExaCtPhraseRedaCtion( 'John Doe', new redaCtion.ReplaCementOptions(Color.RED))); if (result.getStatus() !== redaCtion....fileStream = new FileOutputStream ( 'C:\\Temp\\sample_output_file.pdf'...