Sets the document writer instance to use when converting documents.
public void setDocumentWriterInstance(DocumentWriter instance)
The document writer instance to use when converting documents.
The DocumentWriter instance passed to this method will be used when the DocumentConverter is in document conversion mode to create the output file. This DocumentConverter does not create its own DocumentWriter and will throw an error if the user instruct it to run with document output without a previously set instance.
DocumentWriterInstance will return the same value passed for instance.
The previously set IOcrEngine is removed when a new instance is set. You can set a value of null.
For an example, refer to DocumentConverter.