Hi,
I am using Aspose 11.2 release, jdk-16 to convert .doc to .html files.
Code :
public static void main(String[] args){
String inputDoc = “D:\Aspose\Documents”;
String outputHtml = “D:\Aspose\Conversions”;
try {
Document doc = new Document(inputDoc+"\bullet_doctest.doc");
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.setAllowNegativeLeftIndent(true);
saveOptions.setExportXhtmlTransitional(true);
saveOptions.setExportDocumentProperties(false);
saveOptions.setScaleImageToShapeSize(true);
saveOptions.setCssStyleSheetType(CssStyleSheetType.INLINE);
saveOptions.setExportMetafileAsRaster(false); saveOptions.setExportHeadersFootersMode(ExportHeadersFootersMode.PER_SECTION);
saveOptions.setExportTextInputFormFieldAsText(true);
saveOptions.setPrettyFormat(true);
doc.setShadeFormData(false);
doc.save(outputHtml+"\bullet_doctest.html", saveOptions);
} catch (Exception e) {
e.printStackTrace();
}
}
I have issues in the conversion. Please go through the attached docs and snapshots of their respective html files.
Regards,
Yasmeen.
Hi Yasmeen,
Thanks for your query. I have managed to reproduce the same problem at my end. I have logged this issue in our issue tracking system and you will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
Hi,
The issues you have found earlier (filed as WORDSNET-6230) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
The issues you have found earlier (filed as WORDSNET-6229) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
Hi Daniel,
Thanks for your patience.
It is to update you that we have closed this issue (WORDSNET-6228) with ‘‘Won’t Fix’’ resolution. We are quoting developer’s comments here for your reference.
User has used the following parameters for positioning the table header on the left:
{Table.HorizontalAlignment : Left}
{Table.RelativeHorizontalPosition: Page}
{Table.FrameLeft : 3576}
When the parameter value is set to “Table.HorizontalAlignment : Left” text must wrap the table on the right, but because of the parameter “Table.FrameLeft : 3576” the header text wraps the table on the left. Thisbehavior is quite similar to “Table.HorizontalAlignment : Сenter”.
CSS does not allow implementing the full wrapping of a table or a picture; there are “float: left” and “float: right” parameters only. HTML export sets the “float: left” for a table and therefore the header is placed on the right of the table.
This breaks the document structure. In the web view of MS Word this issue occurs as well. There is no a counterpart in html/css.