I'm using code similar to the following to read PDF files:- using (PdfDocument X = PdfReader.Open(FileName, PdfDocumentOpenMode.ReadOnly)) { foreach (PdfPage Page in X.Pages) { CSequence C1 = default(CSequence); C1 = PdfSharp.Pdf.Content.ContentReader.ReadContent(Page); // <<- Exception thrown in this method ... } } Up to now I've had no trouble parsing PDF files, but the latest files I need to handle are causing problems. It would appear that the parser isn't seeing false/true as a boolean and is instead seeing them as operators.
Also, at first glance the code to handle arrays in CParser.cs doesn't look like it will populate the array at all.
|