After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591136 - Cannot handle iref streams
Cannot handle iref streams
Status: RESOLVED WONTFIX
Product: pdfmod
Classification: Other
Component: general
0.5
Other All
: Normal normal
: ---
Assigned To: pdfmod-maint
pdfmod-maint
gnome[unmaintained]
: 620833 634457 648489 667442 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-08 10:19 UTC by Tomasz Kubacki
Modified: 2018-07-16 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pdf generated by pdfmod with faulty bookmarks (4.70 KB, application/pdf)
2016-06-29 06:28 UTC, Alister
Details
original pdf before without bookmarks (3.62 KB, application/pdf)
2016-06-29 06:29 UTC, Alister
Details

Description Tomasz Kubacki 2009-08-08 10:19:42 UTC
Please describe the problem:
Ebook from http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf can't be opened due to PDFsharp limitations (see stacktrace)

Steps to reproduce:
1. download ebook chapter from http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf
2. try open pdf with pdfmod



Actual results:
"Error loading document" dialog is shown

Expected results:
opened document

Does this happen every time?
yes

Other information:
stacktrace:
[Debug 12:10:58.704] Starting PdfMod
[Warn  12:11:16.787] Caught an exception - 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] 
  at PdfSharp.Pdf.IO.Parser.ReadTrailer () [0x00000] 
  at PdfSharp.Pdf.IO.PdfReader.Open (System.IO.Stream stream, System.String password, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider) [0x00000] 
  at PdfSharp.Pdf.IO.PdfReader.Open (System.String path, System.String password, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider provider) [0x00000] 
  at PdfSharp.Pdf.IO.PdfReader.Open (System.String path, PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider provider) [0x00000] 
  at PdfMod.Document.Load (System.String uri, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider, Boolean isAlreadyTmp) [0x00000] 
  at PdfMod.PdfMod+<LoadPath>c__AnonStorey9.<>m__19 () [0x00000] 
[Error 12:11:16.788] Error Loading Document - There was an error loading /home/tomek/Dokumenty/books/aspnetmvc.pdf
Comment 1 Gabriel Burt 2009-08-12 17:42:32 UTC
Filed upstream at http://pdfsharp.codeplex.com/WorkItem/View.aspx?WorkItemId=8466
Comment 2 Gabriel Burt 2010-06-07 16:37:20 UTC
*** Bug 620833 has been marked as a duplicate of this bug. ***
Comment 3 Gabriel Burt 2011-03-03 16:13:30 UTC
*** Bug 634457 has been marked as a duplicate of this bug. ***
Comment 4 Gabriel Burt 2011-04-22 21:09:44 UTC
*** Bug 648489 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2012-01-06 22:23:31 UTC
*** Bug 667442 has been marked as a duplicate of this bug. ***
Comment 6 Alister 2016-06-11 09:34:55 UTC
I believe this is now supported in the beta version of pdfsharp, so pdfmod could be updated to use that.
Comment 7 Alister 2016-06-29 06:06:40 UTC
I'm having pretty good results with the beta version.  An alternative option is to borrow the CompatiblePdfReader function which has been patched into pdfsharp at http://sourceforge.net/projects/pdfmerge - it uses an old iText.
Comment 8 Alister 2016-06-29 06:28:05 UTC
Created attachment 330525 [details]
pdf generated by pdfmod with faulty bookmarks
Comment 9 Alister 2016-06-29 06:29:10 UTC
Created attachment 330526 [details]
original pdf before without bookmarks
Comment 10 Alister 2016-06-29 06:29:53 UTC
Oops - sorry, posted those attachments to the wrong ticket!
Comment 11 Kip 2016-11-15 04:15:29 UTC
It looks like this has been broken for about 6 years now. Has there been any progress made on a patch?
Comment 12 André Klapper 2018-07-16 10:12:20 UTC
pdfmod is not under active development anymore and had its last code changes
in 2011. Its codebase has been archived:
https://gitlab.gnome.org/Archive/pdfmod/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.