We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word to PDF: Table object goes missing while word document is converted to PDF

Hello Team,

We have table objects which are listed one after the other.

When viewed in Word format all of them apprears. When viewed in PDF format last table object goes missing.

Word has total 13 table objects while PDF has only 12 objects.

We are using Aspose.Words 7.0.0.0

Attached are the document and PDF file for your reference.

Kindly update us as what needs to be done to sort this issue out.

Regards,

Dwarika

Hello Dwarika,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I cannot reproduce the problem on my side using the latest version of Aspose.Words (8.1.0). You can download this version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,

Hi,

we are using Aspose Words DLL 9.0 and still facing the same issue.
But now the problem is with Adobe version.

We can see all the table objects as that are part of word document in PDF when viewed with Adobe Reader 7.0

When the same document is created using Adobe Reader 9.0, the last table object goes missing.

Do let us know how can we solve this problem

Regards,
Dwarika

Hi Dwarika,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. I just tested one more time using the latest version of Aspsoe.Words (9.2.0) and all works fine on my side.

Could you please provide sample code or application, which will allow me to reproduce the problem? Do you just convert this document to PDF?

Best regards.

Greetings. I have the same problem when I generate the pdf document, the tables do not appear. that might be doing wrong? I have the 13.6 version


builder.startTable();
builder.insertCell();
builder.getCellFormat().setHorizontalMerge(CellMerge.FIRST);
builder.write(“Text in merged cells.”);

builder.endRow();
builder.endTable();

document.save(“documentoEjemplo.pdf”, SaveFormat.PDF);

Hi,


Thanks for your inquiry. While using Aspose.Words for Java 13.7.0 and the following code, I was unable to reproduce this issue on my side. I have attached the Pdf file (out.pdf) i.e. generated on my side here for your reference.
DocumentBuilder builder= new DocumentBuilder();
builder.startTable();
builder.insertCell();
builder.getCellFormat().setHorizontalMerge(CellMerge.FIRST);
builder.write(“Text in merged cells.”);
builder.endRow();
builder.endTable();
builder.getDocument().save(“C:\Temp\out.pdf”, SaveFormat.PDF);
Please download the latest version of Aspose.Words for Java from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

If we can help you with anything else, please feel free to ask.

Best regards,