PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Mar 29, 2024 10:04 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PdfReader.Open
PostPosted: Wed Oct 31, 2007 5:46 pm 
Offline

Joined: Tue Oct 30, 2007 2:54 pm
Posts: 6
I have the following code

Dim inputPdf As new PdfDocument

Try


inputPdf = PdfReader.Open(fileName, PdfDocumentOpenMode.Import)
Catch ex As Exception

End Try

I get the exception -
System.NotImplementedException: unknown token
at PdfSharp.Pdf.IO.Parser.ReadObject(PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences) in C:\PDFsharp\PdfSharp\PdfSharp.Pdf.IO\Parser.cs:line 223
at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider) in C:\PDFsharp\PdfSharp\PdfSharp.Pdf.IO\PdfReader.cs:line 334
at PdfSharp.Pdf.IO.PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider) in C:\PDFsharp\PdfSharp\PdfSharp.Pdf.IO\PdfReader.cs:line 200
at PdfSharp.Pdf.IO.PdfReader.Open(String path, PdfDocumentOpenMode openmode) in C:\PDFsharp\PdfSharp\PdfSharp.Pdf.IO\PdfReader.cs:line 172
at Bcbst.IM.Services.OutboundCorrespondence.PdfBatch.MergeAndPrint() in C:\DOCUMENTS AND SETTINGS\J59546A\MY DOCUMENTS\VISUAL STUDIO 2005\PROJECTS\OutboundCorrespondenceService\PdfBatch.vb:line 120"


[/list]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Nov 01, 2007 12:29 pm 
Offline

Joined: Tue Oct 30, 2007 2:54 pm
Posts: 6
One thing I had notice, the PDF file which is of version 1.4 is working fine, where are PDF file of version 1.5 is not working.

Does any one has any thoughts on how to resolve this?

Thanks


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 05, 2007 9:55 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
This has nothing to do with the PDF version.

I tried both the files you sent me - and both files are working fine with PDFsharp 1.0.

Please upgrade to PDFsharp 1.0.898 - earlier versions are no longer supported.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 05, 2007 6:37 pm 
Offline

Joined: Tue Oct 30, 2007 2:54 pm
Posts: 6
Thanks Thomas,
It works with current build which you mentioned

Thanks


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 177 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