I convert a Word file to a PDF file. The Word file has one page and the resulting PDF file has two pages. During the conversion of the Word file, the format changes in the resulting PDF file, so the PDF file has two pages.
I use Spire.Doc in version 7.6.5.
I attached the files
I use the following non-specific code:
- Code: Select all
var wordtemplate = @"exampledoc.docx";
var outputfilename = Path.ChangeExtension(wordtemplate, ".pdf");
using (var word = new Spire.Doc.Document(wordtemplate))
{
word.SaveToFile(outputfilename, FileFormat.PDF);
}
How can I fix this?
Regards
Mirko