PdfDocument newPdf = new PdfDocument();
foreach (string pdf in pdfFilePaths)
{
PdfDocument importPdf = PdfReader.Open(pdf, PdfDocumentOpenMode.Import); //this line will raise error
foreach (var pdfPage in importPdf.Pages)
{
newPdf.AddPage(pdfPage);
}
importPdf.Close();
}
newPdf.Save(newFile);
newPdf.Close();
I cheked and All Pdf files created can open successfully
Note: same code run in other computer will not raise error!!!
Is there a change that PC setting effect the library ?
the Error was
I cheked and All Pdf files created can open successfully Note: same code run in other computer will not raise error!!! Is there a change that PC setting effect the library ?