View previous topic :: View next topic |
Author |
Message |
jra2007
Joined: 30 Oct 2007 Posts: 6
|
Posted: 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] |
|
Back to top |
|
|
jra2007
Joined: 30 Oct 2007 Posts: 6
|
Posted: 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 |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: 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. _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
jra2007
Joined: 30 Oct 2007 Posts: 6
|
Posted: Mon Nov 05, 2007 6:37 pm Post subject: |
|
|
Thanks Thomas,
It works with current build which you mentioned
Thanks |
|
Back to top |
|
|
|