Hi Tilal,
Thanks for the resolving the above issue.
After resolving this issue , we ran into another one. After splitting documents , our use case is to append the splitted documents and convert them to html and give the html to user. But the converted html is showing wrong indentation . The page 4 is showing indentation 1 instead of 5. Attaching the splitted documents. Please help.
1506321099018.zip (29.9 KB)
//code used for appending
for (Document sourceDocument : documentsToMerge) {
startdocument.appendDocument(sourceDocument, ImportFormatMode.KEEP_DIFFERENT_STYLES);
}
//code used for converting into html
HtmlFixedSaveOptions saveOptions = new HtmlFixedSaveOptions();
saveOptions.setExportEmbeddedCss(true);
saveOptions.setExportEmbeddedFonts(true);
saveOptions.setExportEmbeddedImages(true);
saveOptions.setExportEmbeddedSvg(true);
saveOptions.setExportFormFields(true);
saveOptions.setEncoding(StandardCharsets.ISO_8859_1);
return saveOptions;