PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 3:31 am

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: Thu May 02, 2019 8:57 pm 
Offline

Joined: Tue Apr 17, 2018 7:39 pm
Posts: 6
ON a few PDFs I am receiving the error:

Unexpected character '0xffff'

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)

I have a sample .PDF that causes the error, but I'm unable to attach. I confirmed the behavior on the most recent 'Stable' version of PDFSharp, 1.50.5147.


Top
 Profile  
Reply with quote  
PostPosted: Thu May 02, 2019 8:59 pm 
Offline

Joined: Tue Apr 17, 2018 7:39 pm
Posts: 6
Unable to upload sample PDF due to the following error:

The image file you tried to attach is invalid.


Top
 Profile  
Reply with quote  
PostPosted: Fri May 03, 2019 7:06 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
blythgoe wrote:
The image file you tried to attach is invalid.
Most likely that's the answer: invalid, corrupt PDF file.
See also:
viewtopic.php?f=2&t=832

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


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: edwardsjethro and 38 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