Hello,
I'm getting a spacing issue when saving a document (generated from spire) to pdf. I'm using the latest nuget packages for Spire.Office.
I've attached the docx and pdf files for your reference.
In the pdf file, "Header 1" has unnecessary spacing before. Can someone please help me how to resolve this issue?
Below is my code in C#, I tried with params and without params.
- Code: Select all
var parms = new SP.ToPdfParameterList()
{
IsEmbeddedAllFonts = true
};
var document = new Document();
document.LoadFromFile("TestForToday.docx");
document.SaveToFile("TestForToday.pdf", parms);
Appreciate your help.
Thanks.