PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

Unexpected token 'Gulim' in PDF stream.

Open dellos opened this issue 3 years ago • 1 comments

the Error was

image image

        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 ?

dellos avatar Jul 14 '22 03:07 dellos

In Parse.cs pdfObject = ReadDictionary(dict, includeReferences);// some time was rise error

dellos avatar Jul 14 '22 05:07 dellos