Using Spire.Doc to generate word doc file.
Then we need this file to be saved as .doc and .pdf.
In doc file all is ok, but in pdf ends of some pages are corruped (see attached files - on Capture.png is the end of page).
Text from page overwrites the footer.
The only difference in code is:
doc: wordDocument.SaveToFile(tmpfilePath);
pdf: wordDocument.SaveToFile(tmpfilePath, Spire.Doc.FileFormat.PDF);
Have a nice day.