I am working on text document and when creating document using input stream all left spaces of doc got removed pls suggest…
below code I am using…
public AsposeWordDocument(InputStream documentInputStream, String name) throws AsposeException {
this.name = name;
try {
this.document = new Document(documentInputStream);
document.joinRunsWithSameFormatting();
documentBuilder = new DocumentBuilder(document);
LOG.debug(name + " has " + document.getPageCount() + " pages");
} catch (Exception ex) {
throw new AsposeException(ex);
}
}