When converting the docx to pdf using built in functionality the page break is off
Doc1PDF.pdf (70.9 KB)
Doc1Word.docx (42.0 KB)
@JPVeldtman As I can see Aspose.Words produces exactly the same output as MS Word does:
ms.pdf (31.6 KB)
out.pdf (70.9 KB)
however, I see, in your document, there is some hidden content, that changes document layout when all formatting marks are shown. You can enable LayoutOptions.ShowHiddenText option to get the layout of document as if all formatting marks are shown in MS Word:
Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.ShowHiddenText = true;
doc.Save(@"C:\Temp\out_ShowHiddenText.pdf");
out_ShowHiddenText.pdf (70.9 KB)
Thanks for the Reply, Seems like it is showing different on Mac and Windows, but I believe the ShowhiddenText option worked for me
1 Like
@JPVeldtman The difference in layout also might be caused by different set of fonts available on MAC and on Windows. The consumer applications reflow the content according to the available fonts.