PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 3:37 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jan 14, 2010 4:45 am 
Offline

Joined: Thu Jan 14, 2010 4:37 am
Posts: 1
Hello,

Does PDFSharp have any known issues reading PDF files generated by PaperPort 11.0? I am using PDFSharp 1.2.1269.0

In the Adobe Reader document properties:
"PDF Version 1.3 (Acrobat 4.x)"

Code:
failed: PdfSharp.Pdf.IO.PdfReaderException : Token '03103' was not expected.
   at PdfSharp.Pdf.IO.Parser.ReadSymbol(Symbol symbol)
   at PdfSharp.Pdf.IO.Parser.ReadTrailer()
   at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
   at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, PdfDocumentOpenMode openmode)


Which is generated by the call:

Code:
PdfReader.Open(_inputPdfDocument, PdfDocumentOpenMode.Import);


Where inputPdfDocument is a binary memory stream.

Opening the file in the HxD hex editor, I see at the end of the file is:

Code:
.trailer.<</Size 12/Info 3 0 R/Root 1 0 R/ID[<638301399204a582ea0fe641d579f2b2><7ee6a1f67b79fe725b09f0564cd94c0e>]>>.startxref.103103.%%EOF.%PaperPortPDFversion


The code works for other non PaperPort 11.0 documents. What is it about the 03103 that is causing the problem?


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 14, 2010 9:04 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3110
Location: Cologne, Germany
Hi!
kendoran wrote:
I am using PDFSharp 1.2.1269.0

This problem is solved:
viewtopic.php?p=2274#p2274

Update PDFsharp or patch your version.

%%EOF means End of File. Some applications add comments after the %%EOF.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

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