PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

PdfReader.Open
http://forum.pdfsharp.com/viewtopic.php?f=2&t=247
Page 1 of 1

Author:  jra2007 [ Wed Oct 31, 2007 5:46 pm ]
Post subject:  PdfReader.Open

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]

Author:  jra2007 [ Thu Nov 01, 2007 12:29 pm ]
Post subject: 

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

Author:  Thomas Hoevel [ Mon Nov 05, 2007 9:55 am ]
Post subject: 

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.

Author:  jra2007 [ Mon Nov 05, 2007 6:37 pm ]
Post subject: 

Thanks Thomas,
It works with current build which you mentioned

Thanks

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/