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

Unknown Escape Character
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2096
Page 1 of 1

Author:  jfribo [ Wed Aug 01, 2012 4:47 pm ]
Post subject:  Unknown Escape Character

Hi guys, I'm getting the above error. I saw the other posts so you know what it is, there must be something in several of my files that are causing this. The line of code causing this error is

PdfDocument document = PdfReader.Open("c:\\rpiworkbench30\\FileNet_Work\\" + tmpFileName.Substring(0, tmpFileName.Length - 3) + "PDF", PdfDocumentOpenMode.Modify);

I'm trying to upload the file but it keeps telling me the image file attached is not valid? How can I get the PDF to you?

Thanks

Author:  Thomas Hoevel [ Thu Aug 02, 2012 2:35 pm ]
Post subject:  Re: Unknown Escape Character

Hi!

I got your file. I think the file does not comply with the PDF specification (yet another PDF creator I never had heard of before).
I'll have to ask my boss about it. We'll get back to you next week.

Author:  Thomas Hoevel [ Thu Aug 02, 2012 2:42 pm ]
Post subject:  Re: Unknown Escape Character

Update: the message "Unknown Escape Character" is just an assertion (only showing in the Debug build anyway). The file will be opened and can be used with PDFsharp.

I presume we can't do anything about it - the file is wrong, the message is correct.
Uncomment the Assert statement or use a Release build to get rid of the messages.

Author:  jfribo [ Thu Aug 02, 2012 2:56 pm ]
Post subject:  Re: Unknown Escape Character

I changed to release and that worked. Thanks for the help. These pdf's where tiffs converted by an old program.

Thanks again

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