I have been running some tests on converting some current code to use Aspose. What we are doing is converting an html file to pdf. Because the formatting on the file is pretty bad, Aspose.PDF will not work for this. So I tried creating a word document from the html through Aspose.Words and then converting that to PDF. This is working almost perfectly, except the SpaceAfterAuto does not seem to work. I have set it to false, but the word file that is created always has it set back to true.
Here is the code I am using.
Dim oWord As Aspose.Words.Document = New Aspose.Words.Document(sHTML, Aspose.Words.LoadFormat.Html, "")
oWord.Sections(0).PageSetup.LeftMargin = 28
oWord.Sections(0).PageSetup.RightMargin = 28
oWord.Sections(0).PageSetup.TopMargin = 28
oWord.Sections(0).PageSetup.BottomMargin = 28
oWord.Sections(0).PageSetup.PageWidth = 72 * 11
oWord.Sections(0).PageSetup.PageHeight = 72 * 8.5
oWord.Sections(0).Body.Paragraphs(0).ParagraphFormat.PageBreakBefore = False
oWord.Sections(0).Body.Paragraphs(0).ParagraphFormat.SpaceAfterAuto = False
oWord.Sections(0).Body.Paragraphs(0).ParagraphFormat.SpaceBeforeAuto = False
oWord.Sections(0).Body.Paragraphs(0).ParagraphFormat.SpaceBefore = 0
oWord.Sections(0).Body.Paragraphs(0).ParagraphFormat.SpaceAfter = 0
oWord.Sections(0).Body.Paragraphs(0).ParagraphFormat.Style.Font.Size = 9
oWord.Save(sDOC, Aspose.Words.SaveFormat.Doc)
System.Diagnostics.Process.Start(sDOC)
I can make an example if you need one, but the exact file I am using I cannot send.
Thanks