Hi,
I'm trying your Spire.Doc Library and I've tryed to load and HTML saved from Word and convert it to PDF.
Initially the Spire.Doc fail to load the html becouse Word save style with the following format and Spire.Doc fails when founding numeric expressions without the initial character 0 as in the following example at the margin-bottom field:
style='margin-top:3.0pt;margin-right:0in;margin-bottom: 0in;margin-left:21.25pt;margin-bottom:.0001pt;line-height:normal;mso-list:l1 level1 lfo5; tab-stops:21.3pt'
To allow the Spire.Doc to parse the Word document saved in HTM L you have to open the HTML file _body.html in the attached zip file and replace the following expression ":." with this one ":0." correcting the style tag bad readed from Spire.Doc and have all the styles in the following format:
style='margin-top:3.0pt;margin-right:0in;margin-bottom: 0in;margin-left:21.25pt;margin-bottom:0.0001pt;line-height:normal;mso-list:l1 level1 lfo5; tab-stops:21.3pt'
But if you correct the html when going to save in PDF format Spire.Doc lose the end of the document with this special char:
[_] rendered when you open whit Firefox the document with this char R
How I've to do to have the whole document without the trouble of have it cutted at end?
Is possibile to fix the Spire.Doc library to avoid to fail to load the saved in Word HTML file becouse of the style="margin-bottom:.0001"" ?
Is possibile to fix the Spire.Doc library to avoid to have a cutted at the end document when I save in PDF?
thank in advance
-~°~- -~°~- -~°~- -~°~- -~°~- -~°~-
Antonio Ferri
SILOG Sistemi Logici s.r.l.
Strada Massetana Romana, 58/B
53100 SIENA (SI)
Italy
+39 0577 203244
aferri@silog.it