After saving the document to PDF, there are changes between MS Word and Aspose
OP066_24.docx (75.6 KB)
After saving the document to PDF, there are changes between MS Word and Aspose
OP066_24.docx (75.6 KB)
@benestom There are “Futura CEZ Medium”, “Symboly_PD” and “Default” fonts used in the document which are not the standard Office fonts. Could you please share them for testing? Also could you please share the Aspose.Words and MS Word PDF output from your side?
@benestom I have installed all the fonts and when I open your document in MS Words, there are 7 pages too. Please share what version of MS Word are you using?
Microsoft® Word pro Microsoft 365 MSO (Version 2308 Build 16.0.16731.20542) 64 bitů
@benestom Unfortunately, I am still unable to reproduce the problem. We suggest that you perform the following steps:
Can I ask for one more test to see how it will appear to you. Open the document in MS Word, go to the last page, and try toggling hidden characters. This creates and disappears page 7. The origin of the error is in the table on page 5
I still have a document that behaves strangely, but it is not caused by the table, but by entering. I am adding this document to the communication, look at page 5 and try toggling hidden characters.
2TCD006_1-11LS_V01.docx (155.6 KB)
I am wondering if I can somehow identify these differences in hidden characters.
@benestom Yes, the difference is seen. If you would like to render the document like MS word shows it when toggling hidden characters. you can use the following code:
Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.ShowHiddenText = true;
doc.LayoutOptions.ShowParagraphMarks = true;
doc.Save(@"C:\Temp\out.pdf");
Hello, thanks for the answer. I can use this, but I’m more interested in whether there is a way to identify the differences between switching hidden characters
@benestom Unfortunately, it is not quite clear what you mean. Could you please elaborate? Do you want to determine whether hidden characters are shown in MS Word or not? If so, there is no way to achieve this using Aspose.Words, since this is the application option, not the document’s one.
Thank you for your answer, whether hidden characters are enabled or not is an application setting.
I will try to explain it with an example:
The number of pages in the document and the text on the page should be preserved when switching between these pages. But in the document I sent, it jumps from page to page when switching or an extra page is created. My question is whether such unwanted things can be identified somehow
@benestom Hidden content might affect document layout as any other content when it is shown. So it is expected that toggling hidden characters affects the document layout. The same as it is expected when you toggling field codes, for example.
You can render the document with ShowHiddenText
option enabled and disabled to compare page count to identify the difference.