- Code: Select all
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string file = openFileDialog1.FileName;
OfdConverter ofdConverter = new OfdConverter(file);
ofdConverter.ToPdf($"{file}_spire.pdf");
Console.WriteLine("success");
}
异常如下:
System.InvalidCastException:“无法将类型为“System.Xml.XmlComment”的对象强制转换为类型“System.Xml.XmlElement”。”
附件我将发送到邮箱[email protected]