PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun May 19, 2019 4:18 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu May 16, 2019 4:59 am 
Offline

Joined: Wed May 15, 2019 11:13 am
Posts: 1
Hello!
I am using PDFsharp library of version 1.50.5147.0.
When i try import some PDF document in the class PdfSharp.Pdf.PdfDocument:
PdfDocument inputDocument = PdfReader.Open("920.pdf", PdfDocumentOpenMode.Import);
error occurs:
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.
в PdfSharp.Internal.ParserDiagnostics.HandleUnexpectedCharacter(Char ch)
в PdfSharp.Pdf.IO.Parser.ReadSymbol(Symbol symbol)
в PdfSharp.Pdf.IO.Parser.ReadObject(PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences, Boolean fromObjecStream)
в PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
в PdfSharp.Pdf.IO.PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider)
в PdfSharp.Pdf.IO.PdfReader.Open(String path, PdfDocumentOpenMode openmode)

This error is only available for some documents.
Size of tested pdf document is more than 256 kb and not included in this message.
link to download: https://transfiles.ru/x7dlt

is there a solution to this problem?
Please, help me!

P.S. sorry for my english


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

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 3 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