PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Not Implemented; unknown escape character.
https://forum.pdfsharp.net/viewtopic.php?f=2&t=450
Page 1 of 1

Author:  echristo21 [ Thu Aug 14, 2008 5:41 pm ]
Post subject:  Not Implemented; unknown escape character.

When executing this code:

// Open the document to import pages from it.
PdfDocument inputDocument = PdfReader.Open(file, PdfDocumentOpenMode.Import);

I get the following error message:
Not Implemented; unknown escape character.

at Lexer.ScanLiteralString()
at Lexer.ScanNextToken()
at Parser.ScanNextToken()
at Parser.ParseObject(Symbol stop)
at Parser.ReadDictionary(PdfDictionary dict, Boolean includeReferences)
at Parser.ReadObject(PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences)
at PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
at PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode)
at PdfReader.Open(Stream stream, PdfDocumentOpenMode, openmode)


I am using version 1.2.1269.0. Any help?

Author:  Thomas Hoevel [ Mon Aug 18, 2008 7:25 am ]
Post subject: 

For further examination we need the PDF file that causes this problem.

A download link would be fine (PM or post it here); I can also send you an e-mail adress if you prefer that.

Author:  Fredrik [ Thu Sep 09, 2010 2:16 pm ]
Post subject:  Re: Not Implemented; unknown escape character.

is this solved?

I get a simmilar error.
I can choose to Abort, Try again and Ignore....

I havn't examine the created pdf, but it's looks not that bad.

Code:
at Lexer.ScanLiteralString()  Lexer.cs(690)
    at Lexer.ScanNextToken()  Lexer.cs(123)
    at Parser.ScanNextToken()  Parser.cs(484)
    at Parser.ParseObject(Symbol stop)  Parser.cs(375)
    at Parser.ReadDictionary(PdfDictionary dict, Boolean includeReferences)  Parser.cs(333)
    at Parser.ReadObject(PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences)  Parser.cs(168)
    at PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)  PdfReader.cs(355)
    at PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider)  PdfReader.cs(206)
    at PdfReader.Open(String path, PdfDocumentOpenMode openmode)  PdfReader.cs(178)



When I'm debugging I get the error first time I open a file. Then I click on Try again and the debugging halts and then I reusme debugging.
Running the same operation again. No errors.

Author:  Thomas Hoevel [ Mon Sep 13, 2010 8:47 am ]
Post subject:  Re: Not Implemented; unknown escape character.

Fredrik wrote:
is this solved?

I got no PDF file yet that allows me to replicate the problem and investigate it.

Author:  SamyCox [ Wed Nov 08, 2017 3:20 pm ]
Post subject:  Re: Not Implemented; unknown escape character.

Hi,

I have just started using PdfSharp and I really do love what has been done here. However, I have a problem reading some, not all, of my very sensitive pdf docs. The Error I get says the letter 'L' is not implemented ("Not implemented; unknown escape character.") :D .

Can you please help,

Regards,
Samy

Author:  Thomas Hoevel [ Wed Nov 08, 2017 3:37 pm ]
Post subject:  Re: Not Implemented; unknown escape character.

Hi, Samy!
SamyCox wrote:
The Error I get says the letter 'L' is not implemented ("Not implemented; unknown escape character.") :D .
Since the PDF files are sensitive, we leave the debugging to you. :lol:

Is it just a Debug Assertion you get? Ignore it.

Are these PDF files from Autocad? They often use the escape symbol where it shouldn't be used.

Are you using the latest PDFsharp 1.50?
viewtopic.php?p=10008#p10008

You can take the latest source, open the file Lexer.cs and remove the lines "ParserDiagnostics.HandleUnexpectedCharacter(ch)".
This fix will be included in the next release of PDFsharp.
If that does not resolve the issue, then try to find a PDF file you can share with us that shows the same error.

Author:  SamyCox [ Thu Nov 09, 2017 6:57 am ]
Post subject:  Re: Not Implemented; unknown escape character.

Hi,

Thomas Hoevel wrote:
Are these PDF files from Autocad?


The PDF's are created using Oracle forms. In any case, I will try your suggestion and see how far that takes me.

Regards,
Samy

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/