Hi,
I am using the following code to convert a MS Word document to PDF:
Document doc = new Document(docFile);
string varFile = docFile;
string pdfFile = docFile;
pdfFile = pdfFile.ToUpper();
pdfFile = pdfFile.Replace(".DOC", “.PDF”);
string varOutput = pdfFile;
doc.Save(varOutput, SaveFormat.Pdf);
It works and converts the MS Word doc to PDF but there are some problems in PDF file. Pages are broken and page numbers are pushed to the left. There is no space between pages and each page is shifted up and attached to the previous page. (I mean there is no gap between pages in converted PDF file).
I look forward to hearing from you soon.
Thanks and regards,
Siamak Shirzad