Hallo,
i have following problem. We need to convert our customers doc to pdf, but there are some differences in resulting pdf. The most serious problem is with indenting of segments - for example first lines in points II. and III. in attached document.
I guess the problem is not in creating pdf, but in xml. There are attributes FirstlineIndent in heading tags. If i remove them, there are not any indents in resulting pdf. But I don´t know, why these attributes appear in that tags.
In addition, I don’t understand a formatting of source document well. It’s generated by some unknown program, and we cannot do anything with it. But customer wants pdf and wants it looks like original document.
Here is the code, i use to convert doc to pdf, but i guess, it’s not reason of this problem:
Aspose.Words.Document doc = new Document(docPath);
doc.Save(xmlPath, SaveFormat.AsposePdf);
Pdf pdf = new Pdf();
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.IsTruetypeFontMapCached = true;
pdf.TruetypeFontMapPath = AppDomain.CurrentDomain.BaseDirectory + "fonts";
pdf.BindXML(xmlPath, null);
pdf.SetUnicode();
pdf.Save(pdfPath);
I hope, you can help me. Thank you.