PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Oct 31, 2024 11:42 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: Fri May 22, 2015 10:05 am 
Offline

Joined: Fri May 22, 2015 9:46 am
Posts: 1
Hello,

I'm using the latest beta version (1.50.3638) but I experience problems with two PDF Documents.

The Exception occurs in this line:
Code:
PdfReader.Open(pdf.FullName, PdfDocumentOpenMode.Import)


Stacktrace for first document:
Quote:
PdfSharp.Pdf.IO.PdfReaderException: Unexpected end of file.
bei PdfSharp.Pdf.IO.Parser.ParseObject(Symbol stop)
bei PdfSharp.Pdf.IO.Parser.ReadDictionary(PdfDictionary dict, Boolean includeReferences)
bei PdfSharp.Pdf.IO.Parser.ReadObject(PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences, Boolean fromObjecStream)
bei PdfSharp.Pdf.IO.Parser.ReadCompressedObject(Int32 objectNumber, Int32 offset)
bei PdfSharp.Pdf.Advanced.PdfObjectStream.ReadCompressedObject(Int32 index)
bei PdfSharp.Pdf.IO.Parser.ReadCompressedObject(PdfObjectID objectID, Int32 index)
bei PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
bei PdfSharp.Pdf.IO.PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider)
bei PdfSharp.Pdf.IO.PdfReader.Open(String path, PdfDocumentOpenMode openmode)


Stacktrace for second document:
Quote:
PdfSharp.Pdf.IO.PdfReaderException: Token 'R' wird an dieser Stelle nicht erwartet.
bei PdfSharp.Pdf.IO.Parser.ReadSymbol(Symbol symbol)
bei PdfSharp.Pdf.IO.Parser.ReadXRefStream(PdfCrossReferenceTable xrefTable)
bei PdfSharp.Pdf.IO.Parser.ReadXRefTableAndTrailer(PdfCrossReferenceTable xrefTable)
bei PdfSharp.Pdf.IO.Parser.ReadTrailer()
bei PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
bei PdfSharp.Pdf.IO.PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider)
bei PdfSharp.Pdf.IO.PdfReader.Open(String path, PdfDocumentOpenMode openmode)


I can't attach the document to this post (The file is too big, maximum allowed size is 256 KiB.). I hostet them externally: https://onedrive.live.com/redir?resid=185eeb7174429aee!200235&authkey=!ABLol7yhYxaKbvA&ithint=file%2czip

Thank you for PdfSharp and thank you for looking into this.
Regards, Joel


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: No registered users and 2 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