Free Support Forum - aspose.com

Error converting to pdf with Aspose.Word

Hi,

I'm evaluating Aspose.Word, I'm trying to save a word document to pdf but when I open the pdf file I get error 110 from Adobe Reader (version 6).

I'm using the following code in an ASP.NET project:

Imports System
Imports System.IO
Imports System.Xml
Imports System.Data

Imports Aspose.Word

Public Class Demo

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim doc As Document

doc = New Document(Server.MapPath("test.doc"))

doc.Save(Server.MapPath("tmp/test.xml"), SaveFormat.FormatAsposePdf)

Dim pdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf
pdf.BindXML(Server.MapPath("test.xml"), Nothing)

'Instruct to delete temporary image files.
pdf.IsImagesInXmlDeleteNeeded = True

'Produce the PDF file.
pdf.Save(Server.MapPath("test.pdf"))
End Sub

End Class

I'm sending You the doc file and the files produced from the code (xml and pdf).

Can anybody tell me what is going wrong ?

Thank You

Hi,

Thank you for the report.

I think the Aspose.Pdf team should take a look at this issue. I'll notify them immediately.

I will check this problem and reply to you soon.

Which version of Aspose.Pdf do you use? I have tested with 2.6.3 and have not found this error.

Aspose.Pdf v2.6.3.0 23/10/2005

Aspose.Word v3.2.2.0 28/10/2005

Adobe Reader v6.0.1 03/11/2005 italian version

Opening the pdf file I sent you I get the error as the attached image.

Do you produce an xml file identical to the one I sent You?

If You bind the xml file I sent You and save it as pdf do You get a readable pdf file? Would You like to send it to me so I can open with my adobe reader ?

Thank You

Claudio

Finally I found this problem is caused by CultureInfo. I have fixed this problem and the new dll is attached. Please try it.

Thank You very much, now it does work properly !!!

Claudio