Dear Aspose,
When we save the document in the attachment as an html or pdf document the table is shifting in regards to the header off the document. If I use the print feature in Word I get the right output.
The code we are using:
lFileName = "WI - Bundel sortingSaved365.docx";
lSaveName = "WI - Bundel sortingSaved365.html";
Document lDocument = new Document(lFileName);
lDocument.updateFields();
lDocument.updatePageLayout();
// Set an option to export form fields as plain text, not as HTML input elements.
File lFile = new File(lSaveName);
File lDirectory = lFile.getParentFile();
HtmlFixedSaveOptions lOptions = new HtmlFixedSaveOptions();
lOptions.setResourcesFolder( lDirectory.getCanonicalPath() + "/tmp1234" );
lOptions.setResourcesFolderAlias( lDirectory.getCanonicalPath() + "/tmp1234" );
lDocument.updateFields();
lDocument.save(lSaveName, lOptions);
Regards,
Inception
image.png (5.3 KB)
Summary
AsposeDocument.zip (1.7 MB)