Table doesn't use the entire page width in PDF

Hi Team,

The notification states that

The issues you have found earlier (filed as WORDSNET-12477) have been fixed in this Aspose.Words for .NET 17.4 update and this Aspose.Words for Java 17.4 update.

But I can still see the issue persist with the latest Aspose Version 17.7.1.
Could you please look into this ?

Thanks
Tejashree


This Topic is created by awais.hafeez using the Email to Topic plugin.

@tejashreegupta,

Thanks for your inquiry. Please ZIP and attach your 1) input Word document, 2) output PDF file showing the undesired behavior and 3) source code you are using here for testing. We will investigate the issue on our end and provide you more information.

Best regards,

Hi @awais.hafeez,

Please find attached the required zip.

Thanks
TejashreeOutputs.zip (20.0 KB)

@tejashreegupta,

We see that you have attached Aspose.Words generated Word and PDF output files. But, we also need your input Word document that you used to produce these outputs. Please also share the source code snippet for testing. We also noticed that you produced PDF file by using an old version of Aspose.Words for Java i.e. 16.7.0. Could you please also try latest version i.e. Aspose.Words for Java 17.8 and see how it goes on your end? Hope, this helps.

Best regards,

Hi @awais.hafeez,

Please find attached the code snippet that would replicate the issue. Also Word and pdf outputs generated using Aspose version 17.7.1.

Thanks
Tejashree
WideTable_PDF_Issue.zip (27.9 KB)

@tejashreegupta,

Are you able to produce expected Table output by using MS Word?

The problem occurs because MS Word and Aspose.Words both do not allow to increase Table’s overall width to more than 22 inches. This seems to be an expected behavior. If we can help you with anything else, please feel free to ask.

@awais.hafeez,

Please see PDF output. The issue is with the PDF output.

Thanks
Tejashree

@tejashreegupta,

We have logged your requirement in our issue tracking system. The ID of this issue is WORDSNET-15835. Our product team will further look into the details of this problem and we will keep you updated on the status of this issue. We apologize for your inconvenience.

@tahir.manzoor Please raise this for enterprise support and make me the owner of it

@kumaraswamy.m,

Unfortunately, your issue (WORDSNET-15835) is not resolved yet and there are no estimates available at the moment. Our product team has completed the initial analysis of this issue. But, the implementation of the fix of this issue has been postponed till a later date (no ETA is available). Please check the following analysis details:

Aspose.Words tries to imitate MS Word Document Layout. As MS Word does not allow wide Tables, we will need to implement our own logic for wide Table handling. This may be a problem as different customers may have different requests. We think, we need to provide this customer with an explicit way (Saving Option) to specify that “Aspose.Words wide Table logic” should be used instead of “MS Word logic”.

We have also asked our product team to check if raising the priority of this issue to Enterprise Support level will help to implement this new feature faster? We will keep you posted on further developments.

@awais.hafeez Did you hear from product team? It would be great if we have it resolved sooner.

@kumaraswamy.m,

Unfortunately, there is no further news about it. This problem (WORDSNET-15835) actually requires us to implement a new feature in Aspose.Words and we regret to share with you that implementation of this issue has been postponed for now. We will keep you posted on further updates. We apologize for your inconvenience.

@kumaraswamy.m,

I am afraid, we would not be able to implement this feature (WORDSNET-15835).

We might consider implementing this as Enterprise Support request in some limited way, e.g. Table will not be autosized and all column widths must be set explicitly. Also, such a document may not open in MS Word, or lead to a crash. We tried manually changing width and MS Word would only open the document in Draft view and would not let us change to Print Layout view or print it. Hence, we feel like we should not generate invalid documents.

We would suggest you to please scale such documents down instead. This would allow to produce valid document and yet fit lots of content into the Table. Set all values to 1/10th for example and make a 2.2inch wide table instead.