I hit an 'Assertion Failed: not implemented' exception trying to open a PDF file generated from VS2010 from an rdlc file using LocalReport.Render(). I attached the PDF file in question. I had downloaded PDFSharp 1.31 and recompiled with VS2010.
The file *looks* fine to me (using Adobe), but using the following code
Code:
string filename = @"C:\test2.pdf";
PdfDocument inputDocument = PdfReader.Open(filename, PdfDocumentOpenMode.Import);
throws the exception.
Here's the stack trace:
at Lexer.ScanNextToken() C:\Users\pete.STM\Clients\GRFirst\PdfSharp2010\PdfSharp.Pdf.IO\Lexer.cs(163)
at Parser.ReadSymbol(Symbol symbol) C:\Users\pete.STM\Clients\GRFirst\PdfSharp2010\PdfSharp.Pdf.IO\Parser.cs(539)
at Parser.ReadObject(PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences) C:\Users\pete.STM\Clients\GRFirst\PdfSharp2010\PdfSharp.Pdf.IO\Parser.cs(261)
at PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider) C:\Users\pete.STM\Clients\GRFirst\PdfSharp2010\PdfSharp.Pdf.IO\PdfReader.cs(341)
at PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider) C:\Users\pete.STM\Clients\GRFirst\PdfSharp2010\PdfSharp.Pdf.IO\PdfReader.cs(205)
at PdfReader.Open(String path, PdfDocumentOpenMode openmode) C:\Users\pete.STM\Clients\GRFirst\PdfSharp2010\PdfSharp.Pdf.IO\PdfReader.cs(177)
at Form1.button1_Click(Object sender, EventArgs e) C:\Users\pete.STM\Test\PDFTest\PDFTest\Form1.cs(26)
Can anyone help?
Thanks a million.
Pete.