Cannot handle iref streams. The current implementation of PDFsharp cannot handle this PDF feature introduced with Acrobat 6. (in `PdfSharp')

Bug #975928 reported by Amr Ibrahim
90
This bug affects 19 people
Affects Status Importance Assigned to Milestone
pdfmod (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Some PDF files don't open, I get this error message "Error Loading Document" (See screenshot).

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: pdfmod 0.9.1-3
ProcVersionSignature: Ubuntu 3.0.0-17.30-generic 3.0.22
Uname: Linux 3.0.0-17-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Apr 7 14:44:06 2012
ExecutablePath: /usr/lib/pdfmod/PdfMod.exe
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
InterpreterPath: /usr/bin/mono
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: pdfmod
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pdfmod (Ubuntu):
status: New → Confirmed
Revision history for this message
Guy Stone (stoneguy3) wrote :

I think this is caused by a change to the pdf compression algorithm with Adobe 6+
There's something that may be a solution (requiring source changes) at
   http://forum.pdfsharp.net/viewtopic.php?f=2&t=693#p5855
but as I'm not a C#/Mono person I have no idea what it's doing.

Revision history for this message
Colan Schwartz (colan) wrote :

This only happens with some PDFs. Attached is an example.

Here is the output when run from the command line:

[1 Debug 23:12:26.237] Loaded /path/to/file.pdf
[3 Warn 23:12:26.369] Caught an exception - PdfSharp.Pdf.IO.PdfReaderException: Cannot handle iref streams. The current implementation of PDFsharp cannot handle this PDF feature introduced with Acrobat 6. (in `PdfSharp')
  at PdfSharp.Pdf.IO.Parser.ReadXRefTableAndTrailer (PdfSharp.Pdf.PdfReferenceTable xrefTable) [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.Parser.ReadTrailer () [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.PdfReader.Open (System.IO.Stream stream, System.String password, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider) [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.PdfReader.Open (System.String path, System.String password, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider provider) [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.PdfReader.Open (System.String path, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider provider) [0x00000] in <filename unknown>:0
  at PdfMod.Pdf.Document.Load (System.String uri, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider, Boolean isAlreadyTmp) [0x00000] in <filename unknown>:0
  at PdfMod.Gui.Client+<LoadPath>c__AnonStorey10.<>m__1C () [0x00000] in <filename unknown>:0
[3 Error 23:12:26.371] Error Loading Document - There was an error loading /path/to/file.pdf

summary: - Error Loading Document
+ Cannot handle iref streams. The current implementation of PDFsharp
+ cannot handle this PDF feature introduced with Acrobat 6. (in
+ `PdfSharp')
tags: added: precise
Revision history for this message
Colan Schwartz (colan) wrote :

It looks like the upstream bug exists over at http://pdfsharp.codeplex.com/workitem/8466, but Launchpad won't let me add it.

Revision history for this message
exactt (giesbert) wrote :

would love to get the patched version as I actually can't print from evince...

description: updated
Revision history for this message
The EYE (maxtheman) wrote :

I get the following error with my LaTeX documents:

[1 Debug 08:56:15.191] Starting PdfMod 0.9.1
[1 Debug 08:56:15.197] Initializing i18n catalog from /usr/share/locale/
[1 Debug 08:56:15.239] Loaded custom AccelMap from /home/max/.config/pdfmod/gtk_accel_map
[1 Debug 08:56:15.249] Cache directory set to /home/max/.cache/pdfmod

(PdfMod:4740): GLib-GObject-WARNING **: Attempt to add property __gtksharp_3_PdfMod_Gui_PageCell::page after class was initialised
[1 Debug 08:56:15.505] Loaded ./VirtualBox VMs/Shared Folder/Studium/Masterarbeit/temp/main.pdf
[3 Warn 08:56:15.558] Caught an exception - PdfSharp.Pdf.IO.PdfReaderException: Cannot handle iref streams. The current implementation of PDFsharp cannot handle this PDF feature introduced with Acrobat 6. (in `PdfSharp')
  at PdfSharp.Pdf.IO.Parser.ReadXRefTableAndTrailer (PdfSharp.Pdf.PdfReferenceTable xrefTable) [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.Parser.ReadTrailer () [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.PdfReader.Open (System.IO.Stream stream, System.String password, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider) [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.PdfReader.Open (System.String path, System.String password, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider provider) [0x00000] in <filename unknown>:0
  at PdfSharp.Pdf.IO.PdfReader.Open (System.String path, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider provider) [0x00000] in <filename unknown>:0
  at PdfMod.Pdf.Document.Load (System.String uri, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider, Boolean isAlreadyTmp) [0x00000] in <filename unknown>:0
  at PdfMod.Gui.Client+<LoadPath>c__AnonStorey10.<>m__1C () [0x00000] in <filename unknown>:0
[3 Error 08:56:15.558] Error Loading Document - There was an error loading ***PATH TO DOCUMENT***

Revision history for this message
Helmo (helmo) wrote :

This stackoverflow question has a few answers that might help: http://stackoverflow.com/questions/12782295/does-pdf-file-contain-iref-stream

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.