Hello,
I am trying to convert a word document (attached) to PDF using your trial library code. Most word documents convert fine, but this one does not convert fine.
I have attached the code I am using to do this and the image that is failing. The exception message is: “Unable to cast object of type ‘Aspose.Words.Drawing.GroupShape’ to type ‘Aspose.Words.Paragraph’.”
Can you please help me with this issue. We have been really impressed with your software and will be using it in a very large environment converting millions of government records.
Thanks!
Dan
CODE:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aspose.Pdf;
using Aspose.Words;
namespace Word2Pdf
{
public class Program
{
static void Main(string[] args)
{
Document d = new Document(args[0]);
d.Save(args[1], SaveFormat.AsposePdf);
Pdf p = new Aspose.Pdf.Pdf();
p.BindXML(args[1], null);
p.Save(args[1]);
}
}
}