We have an application that, among other things, merges several PDFs together with PDFSharp. It works correctly except for a few files created by AutoCAD. When we try to open one in debug mode, we get a "Not implemented: unknown escape character" in Lexer.ScanLiteralString().
Here is our current code to open the files. A sample PDF that produces the error is attached.
Code:
' Open the document to import pages from it.
Dim InputDocument As PdfDocument = PdfReader.Open("Sample.pdf", PdfDocumentOpenMode.Import)
' Iterate pages
Dim PageCount As Integer = InputDocument.PageCount
For PageIndex As Integer = 0 To PageCount - 1
' Get the page from the external document...
Dim page As PdfPage = InputDocument.Pages(PageIndex)
' ...and add it to the output document.
AddedPage = OutputDocument.AddPage(page)
Next
If we run in release mode, we don't get any errors on the Open but instead get a null reference error on the Pages collection.
This has become an escalated issue with one of our clients and we would like an estimate of the time and cost to have you fix this issue. Please reply to this account's email.
Thank you,
Sean Swope
Chief Software Architect
Synergis Software