Opening and then saving the attached PDF documents raises an error of "Invalid xref type" at the save moment. Below is the sample code:
System.Windows.Forms.DialogResult dlgResult =openFileDialog1.ShowDialog();
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(openFileDialog1.FileName);
doc.Save(@"c:\temp\output.pdf");