Hello,
I have an issue with page layout, specifically the left indent.
I am trying to convert a Word document to an email message. I want the email message to be editable by the user after the mail has been generated, so that text, subject, to, cc, bcc, etc… can still be modified.
I start off by converting my Word document to an aspose Words document, This document I save into a memorystream using some specific saveoptions and mhtml as format. (the other html formats yield terrible results when creating an aspose Email mailmessage)
I use this memorystream to create an aspose Email message, which I save as a /msg file. This msg file is used as a template to base a new mail on. All content is present in the mail, including the first header and last footer, tables, images and text. However, the layout is ruined. This specific Word document has a table with a negative left margin (I use the save option to support this, though it makes no difference). So when I open the mail, the table is placed differently with regards to the body text. See the attachment for details.
The same happens with the image in my header (not included in the attachment example). It loses all lkeft margin.
According to the save options this should not happen, and according to the generated mhtml file, the margins are not lost. the proper margins are included in the style tags, only they seem to be in the wrong place:
<style type=3D"text/css">@page Section1 { margin:54.45pt 7=
0.9pt 35.15pt 108.6pt; size:595.35pt 842pt }div.Section1 { page:Section1 }@=
page Section2 { margin:54.45pt 70.9pt 35.15pt 108.6pt; size:595.35pt 842pt =
}div.Section2 { page:Section2 }
the 108.6 is my margin, yet it is not applied. The actual text has the following style attributes preceding it:
<p style=3D"line-height:13pt; margin:0pt"><span style=3D"font-family:‘NS Swift’; font-size:9.5pt">
The margin:0pt seems to overwrite the 108.6.
Am I missing something, or is the margin attribute not applied properly when saving to msg format?
Kind regards.