PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 07, 2024 11:14 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Unknown Escape Character
PostPosted: Wed Aug 01, 2012 4:47 pm 
Offline

Joined: Wed Aug 01, 2012 4:38 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 02, 2012 2:35 pm 
Offline
PDFsharp Guru
User avatar

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

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 02, 2012 2:42 pm 
Offline
PDFsharp Guru
User avatar

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

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 02, 2012 2:56 pm 
Offline

Joined: Wed Aug 01, 2012 4:38 pm
Posts: 2
I changed to release and that worked. Thanks for the help. These pdf's where tiffs converted by an old program.

Thanks again


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 37 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group