PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PdfReader.Open

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
jra2007



Joined: 30 Oct 2007
Posts: 6

PostPosted: Wed Oct 31, 2007 5:46 pm    Post subject: PdfReader.Open Reply with quote

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]
Back to top
View user's profile Send private message
jra2007



Joined: 30 Oct 2007
Posts: 6

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

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
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Nov 05, 2007 9:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
jra2007



Joined: 30 Oct 2007
Posts: 6

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

Thanks Thomas,
It works with current build which you mentioned

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com