The last line of data on page 8 in this document is being moved to page 9 after printing, and I believe it might be due to some rendering issues with the AsposeWordsPrintDocument method.
main code:
var loadOptions = new LoadOptions();
loadOptions.LanguagePreferences.DefaultEditingLanguage = EditingLanguage.ChinesePRC;
Document document = new Document(docPath);
document.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
document.Save("aaa.docx");
AsposeWordsPrintDocument awPrintDocument = new AsposeWordsPrintDocument(document);
awPrintDocument.PrintController = new StandardPrintController(); //设置不弹出打印对话框
awPrintDocument.PrinterSettings = printerSettings;
// 设置打印的页码范围
awPrintDocument.PrinterSettings.FromPage = fromPage;
awPrintDocument.PrinterSettings.ToPage = endPage;
awPrintDocument.PrinterSettings.PrintRange = PrintRange.SomePages;
awPrintDocument.Print();
issue file:第5部分-总结(参考文献-偏差修正-术语表-声明)(工艺组件).docx (65.9 KB)
The line of data that was originally on the last row of page 8 has been moved to page 9 when printed, and the original position of that line has become an empty row.I have reproduced this issue on different printers as well.
You can understand my issue by reviewing this image.Snipaste_2023-06-07_10-34-49.jpg (383.8 KB)
The highlighted area in blue indicates the issue data.