PdfSharpCore
PdfSharpCore copied to clipboard
Unexpected token 'Gulim' in PDF stream.
the Error was

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 ?
In Parse.cs pdfObject = ReadDictionary(dict, includeReferences);// some time was rise error