Free Support Forum -

Word document to PDF save (convert) error

Using the below code, the logo in the upper-right corner is not correctly placed. (doc and pdf attached)

string fileName = string.Empty;
openFileDialog1.Filter = “Word document (.doc)|.doc”;

if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
fileName = openFileDialog1.FileName;

Document doc = new Document(fileName);
doc.Save(Path.Combine(Path.GetDirectoryName(fileName), Path.GetFileNameWithoutExtension(fileName) + “.pdf”), Aspose.Words.Saving.SaveOptions.CreateSaveOptions(SaveFormat.Pdf));

Regards, Jens.


Thanks for your request. I cannot reproduce the problem on my side. I use the latest version of Aspose.Words for testing. You can download the latest version from here:

Best regards,