| PDFsharp & MigraDoc Forum https://forum.pdfsharp.net/ |
|
| Error try to read PDF with nested image https://forum.pdfsharp.net/viewtopic.php?f=2&t=2154 |
Page 1 of 1 |
| Author: | jans [ Tue Oct 02, 2012 9:33 am ] |
| Post subject: | Error try to read PDF with nested image |
Hi, we are using PdfSharp from sharpPDF-SL v2.0.50727 for reading pdf-files (It's a silverlight project). But we have a problem when trying read a pdf wcich consists solely of an nested image (e.g. scanned image or fax). The following call produces an error: Code: foreach (FileInfo loFileInfo in FileDialog.Files) { lobmpimage = new BitmapImage(); loImageList = new ImageList(); loImageList.FileName = loFileInfo.Name; . . . else if (loFileInfo.Extension.ToUpper() == ".PDF") { loImageList.PdfFile = XPdfForm.FromStream(loFileInfo.OpenRead()); //that's where the error occures The follwing error message is shown: at Parser.ReadXRefTableAndTrailer(PdfReferenceTable xrefTable) at Parser.ReadTrailer() at PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider) at PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode) at PdfReader.Open(Stream stream, PdfDocumentOpenMode openmode) at PdfReader.Open(Stream stream) at XPdfForm..ctor(Stream stream) at XPdfForm.FromStream(Stream stream) at SelectedFileConverter.btn_LoadFiles_Click(Object sender, RoutedEventArgs e) at ButtonBase.OnClick() at Button.OnClick() at RadButton.OnClick() at ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) at JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags) Thanks for any help in advance. Greetings Jans |
|
| Author: | Thomas Hoevel [ Tue Oct 02, 2012 3:18 pm ] |
| Post subject: | Re: Error try to read PDF with nested image |
jans wrote: we are using PdfSharp from sharpPDF-SL v2.0.50727 for reading pdf-files So you are not using PDFsharp.If the error also occurs with PDFsharp and if you provide us with that PDF file, we can take a look at the problem. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|