PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue May 01, 2018 3:31 pm 
Offline

Joined: Tue Apr 17, 2018 7:39 pm
Posts: 6
I'm getting an error when opening a select few of .pdf files:

PdfSharp.Pdf.IO.PdfReaderException: Unexpected character '0xffff' in PDF stream. The file may be corrupted. If you think this is a bug in PDFsharp, please send us your PDF file.
at PdfSharp.Internal.ParserDiagnostics.HandleUnexpectedCharacter(Char ch)
at PdfSharp.Pdf.IO.Parser.ReadSymbol(Symbol symbol)
at PdfSharp.Pdf.IO.Parser.ReadObject(PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences, Boolean fromObjecStream)
at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
at PdfSharp.Pdf.IO.PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider)
at PdfSharp.Pdf.IO.PdfReader.Open(String path, PdfDocumentOpenMode openmode)

I was able to open this in Reader and save without issue. The newly saved file caused the same error.

The file causing the error has some slightly confidential information. I will attempt to post here if possible.


Top
 Profile  
Reply with quote  
PostPosted: Tue May 01, 2018 6:18 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
blythgoe wrote:
The file causing the error has some slightly confidential information. I will attempt to post here if possible.
You can send it to the developers as written in the error message if it is too confidential for this forum.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Tue May 01, 2018 9:06 pm 
Offline

Joined: Tue Apr 17, 2018 7:39 pm
Posts: 6
Thank you for the response. Do they have an e-mail address or some other way to get the file directly to them?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 125 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