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
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.”);
string docxFile = “FootnoteSample.docx”;
SaveOptions options = new PdfSaveOptions
SaveFormat = SaveFormat.Pdf
string pdfFile = “FootnoteSample.pdf”;
Could you have a look at this, and advise if there’s anything I can do to fix this problem?