We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Empty line in the doc's output

I have implemented this code:

Document ficha = new Document("D:/input.docx");
ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream();
ficha.save(pdfOutputStream, SaveFormat.DOCX);
byte[] test = pdfOutputStream.toByteArray();

FileOutputStream file = new FileOutputStream("D:/output.docx");
file.write(test);
file.close();

Why I'm getting a empty line in the beginning of the output.docx? It's a simple code but it shows my problem.
Hi,

Thanks for your inquiry. After an initial test with Aspose.Words for Java 14.8.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link. I hope, this helps.
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Best regards,