Hi!
The file is not corrupted, but contains an unusual name/value pair.
Here's a fix for that: in PdfRectangle.cs (2 new lines):
Code:
internal PdfRectangle(PdfItem item)
{
if (item == null)
return;
// 2 new lines below:
if (item is PdfNull)
return;
// 2 new lines above
if (item is PdfReference)
item = ((PdfReference)item).Value;
PdfArray array = item as PdfArray;
if (array == null)
throw new InvalidOperationException(PSSR.UnexpectedTokenInPdfFile);
this.x1 = array.Elements.GetReal(0);
this.y1 = array.Elements.GetReal(1);
this.x2 = array.Elements.GetReal(2);
this.y2 = array.Elements.GetReal(3);
}
This is not the solution for all "unexpected token" errors, but at least for one.