Convert a simple word file to PDF

Hi,
I am using the Demo version of Aspose.Words and Aspose.pdf.
I want to convert a word file to PDF file without any changes in it.
Can anybody please send me the code for same.

Hi
Thanks for your inquiry. Please find code example here:
https://docs.aspose.com/words/net/save-a-document/ (See Converting to PDF).
We cannot guarantee 100% exact conversion from DOC to PDF and don’t promise this. You are free to evaluate this feature yourself. Please let me know in case of any issue.
Nest regards.

Hi,
Thanks for replying.
That really helped. I got my file converted to PDF. But still I am having a problem. Some portion of the file gets distorted, I mean it is not being converted as same as the .doc file. I am attaching both the file for your reference.
It would be great if you can resolve this problem.

Hi
Thank you for additional information. Please try using inline shapes instead floating. Also I think that you should use “real” document for testing instead this one.
Best regards.

Thanks,
Are you talking about the shapes in the word file or I need to do something with the code for using floating or inline shapes.
I am using this file coz I need to get a result upto this much accuracy.

Hi
Thanks for your inquiry. I mean exactly what I wrote :). There are problems with floating shapes (textbox in your case) during converting DOC to PDF. So as a workaround you should use inline shapes. I refactored your document and now output looks much better. Please see the attached documents.
Best regards.