Hello,
Using the two last versions of Aspose Words 14.5.0 and 14.6.0, when converting a word document like the attatched to a pdf document it does not respects identation when is in the same line.
Please see the attached documents where the docx is the orignal and the pdf is the result. In the result you can se that the last paragraph the word “NOT APPLICABLE” appears toghether with the rest of the text and the original this word is idented.
The code to convert to PDF is the following:
com.aspose.words.Document doc;
try
{
doc = new com.aspose.words.Document(inStream);
doc.unprotect();
PdfSaveOptions options = new PdfSaveOptions();
options.setSaveFormat(SaveFormat.PDF);
// options.setImageCompression()
options.setPrettyFormat(true);
doc.save(outFolder + newName, options);
}
catch (Exception e)
{
log.error(e);
SystemException se = new SystemException();
se.getErrorMap().put("exception.service.errorconvertingdoc", Arrays.asList(e.getMessage()));
throw se;
}
Regards,
Sergi