# Convert doc -&amp;gt; pdf problems

Hi,

I'm a potential customer trying out the doc -> pdf convertion.

We have a SSRS report that has been exported to word and saved in a Sharepoint Document Library.

We need to download this document and convert it to pdf (to be send to customers).

Just te be sure i've loaded the document from the stream into the Document object.

That proves that the document was just fine in word format.

However the pdf is far from an acceptable copy of the word document.

Am i doing something wrong in my code?

Aspose.Words.Document wordDocument = new Aspose.Words.Document(msWordDocument);

wordDocument.Save(

"c:\\quote.doc", Aspose.Words.SaveFormat.Doc);

wordDocument.Save(

"c:\\quote.pdf", Aspose.Words.SaveFormat.Pdf);

PS : I've also tried 11.8.1 with the same result

Regards,

Sven Peeters

Hi Sven,

Thanks for your inquiry. In this case, you should just call Document.UpdateTableLayout method before rendering to PDF format; only in rare cases where you confirmed that tables appear incorrectly laid out in the output document. I hope, calling this method will help to correct the output. Here is how you should use it:

Document doc = new Document(@"c:\test\in.doc");

...

...

doc.UpdateTableLayout();

doc.Save(@"c:\test\out.pdf");

Best Regards,

Hi,

This indeed solves the problem, I’ll run some other tests and see if the results are ok.

Regards,
Sven Peeters

Hi Sven,