PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 9:20 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Aug 14, 2008 5:41 pm 
Offline

Joined: Fri Jul 25, 2008 6:17 pm
Posts: 4
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?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 18, 2008 7:25 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 09, 2010 2:16 pm 
Offline

Joined: Thu Sep 09, 2010 6:38 am
Posts: 1
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 13, 2010 8:47 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Fredrik wrote:
is this solved?

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

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 08, 2017 3:20 pm 
Offline

Joined: Wed Nov 08, 2017 3:10 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 08, 2017 3:37 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 09, 2017 6:57 am 
Offline

Joined: Wed Nov 08, 2017 3:10 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 130 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group