Hi
I’m using Visual Studio 2013, with Aspose Words 16.6.
I’m having an issue when generating documents in different formats when basing the original Words Document object on a template (.dotx) file.
The problem lies with footnotes. When I save the Document object as a docx file, everything is fine, but when I save it as a PDF, there is an excessive amount of space between the line separating footnotes from text, and the first footnote.
I have attached a zip file containing the template file, along with a docx and pdf file generated using the following code:
<pre style=“font-family: “Courier New”; font-size: 12px; background: white;”>License lic = new License();
lic.SetLicense(“Aspose.Total.lic”);
lic.SetLicense(“Aspose.Total.lic”);
Document doc = new Document(“Report.dotx”);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write(“This is some sample text”);
builder.InsertFootnote(FootnoteType.Footnote, “This is a footnote.”);
builder.Writeln(".");
string docxFile = “FootnoteSample.docx”;
doc.Save(docxFile);
SaveOptions options = new PdfSaveOptions
{
SaveFormat = SaveFormat.Pdf
};
string pdfFile = “FootnoteSample.pdf”;
doc.Save(pdfFile, options);
Could you have a look at this, and advise if there’s anything I can do to fix this problem?
Thanks
Chris Fairall.