Text in table's cell is rendered on next line in output PDF using .NET

Hi,

I have an issue with a document that can be saved saved as .docx and as .pdf. When it is saved as a .docx and opened it is displayed correctly, however when saved as .pdf it looks different (different margins - see phoen number). Please see the solution aspose.zip (585.4 KB)
example with documents used to generate the output pdf and docx documents.

Could you tell me why there is this difference?

Thank you,
Lukasz

@acturisaspose

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17941 . You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir,

Thank you.
Could you let us know what is exactly causing the issue?
Is there any workaround you can provide for the time being?

thanks,
Lukasz

@acturisaspose

Thanks for your inquiry. In your case, we suggest you please call Document.UpdateTableLayout method before saving the document to PDF. Please let us know if this works at your end. We will then close the issue WORDSNET-17941.

Hi Tahir,

Thanks.
Regarding the workaround, we need to call it to avoid issues described here Text in table's cell is rendered on next line in output PDF using .NET unless these have been fixed?

Ɓukasz

@acturisaspose

Yes, you need to call this method to avoid the shared issue. We will inform you via this forum thread once there is an update available on WORDSNET-17941.

The issues you have found earlier have been fixed in this Aspose.Words for .NET 20.12 update and this Aspose.Words for Java 20.12 update.