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

Free Support Forum - aspose.com

Save doc document to pdf doesn't work

I'm trying to convert a 'doc' file to 'pdf' and 'pdf-a' and this conversion doesn't work fine.

I'm using then next code:

Dim DocAspose As Aspose.Words.Document = New Aspose.Words.Document("C:\Doc.doc")
Dim oPdfSaveOptions As Aspose.Words.Saving.PdfSaveOptions
oPdfSaveOptions = New Aspose.Words.Saving.PdfSaveOptions
oPdfSaveOptions.SaveFormat = Aspose.Words.SaveFormat.Pdf
DocAspose.Save("C:\Doc.pdf", oPdfSaveOptions)

There are any solution to my problem?

Thanks.

Hi Francesc,


Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Pdf using MS Word, you will get the same output.

Perhaps, you are using an older version of Aspose.Words; as with Aspose.Words v14.3.0, I am unable to reproduce any problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v14.3.0 and let us know how it goes on your side. I hope, this will help.

If you still face problem, please share following detail for investigation purposes.

  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach your target PDF document showing the desired behavior. You can use Microsoft Word to convert your Doc file to Pdf.

As soon as you get these pieces of information to us we’ll start our investigation into your issue.