附件是我的多个PDF合并后出现的问题,合并时用到的代码如下
try
{
string detDirecyPath = Path.Combine(Application.StartupPath, "OCRtempDirecy");
string[] ArrFilePath = Directory.GetFiles(detDirecyPath, "*.pdf");
PDFFile mypdf = new PDFFile(ArrFilePath[0]);
mypdf.MergeWith(ArrFilePath, @"D:\tset.pdf");
MessageBox.Show("OK");
}
catch(Exception ee)
{
MessageBox.Show(ee.Message,"异常");
} |