PDFedit Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000342 [Kernel] XPDF minor always 10-09-09 16:42 02-12-12 10:58
Reporter hockm0bm View Status public  
Assigned To hockm0bm
Priority high Resolution open  
Status assigned  
Summary 0000342: xpdf code doesn't handle multifile documents
Description http://plastyc.cc/~miso/pdfedit/TP108%20package.pdf [^] document displays only one page in any of the xpdf code based PDF viewers (including PDFedit). When you open it in AcrobatReader 8, you can see 19 pages.

PDFSpecification (Chapter 3, Compatibility with PDF 1.4) says that:
"
When a PDF 1.5 consumer opens a hybrid-reference file, objects with entries in
cross-reference streams are not hidden. When the application searches for an object, if an entry is not found in any given standard cross-reference section, the search proceeds to a cross-reference stream specified by the XRefStm entry before looking in the previous cross-reference section (the Prev entry in the trailer).
"

This means that we are probably not checking xref stream for hidden (free) objects.
Additional Information
Attached Files  Portfolio1.pdf [^] (549,951 bytes) 10-30-09 06:53

- Relationships

- Notes
(0000997)
hockm0bm
10-22-09 17:11

xpdf reads the xref stream (defined by XRefStm) prior to the standard xref table and entries only those entries which are not defined by the stream are stored in XRef::entries. This means that all objects defined by the stream are known and object searching fully complies to the standard.
 
(0000998)
hockm0bm
10-22-09 17:14

This is not about hybrid xref documents but rather about multi file document.
I will change the bug title
 
(0000999)
hockm0bm
10-22-09 17:18

I don't have any idea how this is supposed to work, but xpdf (and all viewers based on it) doesn't support this file.

When I open this document in the Acrobat reader I can select from 8 documents.
 
(0001000)
Alister
10-30-09 06:55

I've attached another example of a PDF package/portfolio. This one doesn't have any actual pdfs inside it (it has a .txt inside a folder, a .bmp, and an .mp3).
 
(0001001)
Alister
10-30-09 06:59

Just a little from the original bug in case anyone sees this one without seeing the discussion there first
http://pdfedit.petricek.net/bt/view.php?id=338 [^]

>> When I open it in AcrobadReader 8 I can see 19 pages.
>
>That's not right. The first pdf it contains has 19 pages, the second one has 20, >and then there are 6 more with one page each. I haven't got Reader 8 (only >Reader 9) - maybe you need to turn on a toolbar or something, or click the >button with the house on it...
 
(0001002)
Alister
11-10-09 00:04

FWIW this page provides an explanation of the terminology.
http://blogs.adobe.com/livecycledocs/2008/12/pdf_packages_vs_pdf_portfolios.html [^]
 
(0001125)
Alister
12-09-11 03:17

Note that xpdf provides a tool called pdfdetach which can handle these. I think it is a new tool.
 
(0001132)
Alister
02-10-12 07:49

I have discovered:

- the freeware Foxit Reader (Windows version) can attach files to a PDF. I don't think it supports "PDF Portfolio Layouts".

- in Foxit Reader it is possible to attach a file to a specific page in the PDF. I had a quick look in Adobe and couldn't find the same feature, but I assume it must be possible, as it displays files like this fine.
 
(0001133)
misuj1am
02-10-12 09:28

xpdf3.03 supports this feature as mentions Alister e.g.,

doc = new PDFDoc(fileName, ownerPW, userPW);
nFiles = doc->getNumEmbeddedFiles();
nameLen = doc->getEmbeddedFileNameLength(i);
etc.

we need to upgrade our xpdf code which can be a tough thing to do, I opened another issue for this:
http://pdfedit.petricek.net/bt/view.php?id=376 [^]
 
(0001139)
Alister
02-12-12 10:55

That sounds like the reason shared libraries were invented :)
I've always wondered why pdfedit doesn't use poppler...
 
(0001140)
Alister
02-12-12 10:58

Oh - I see http://pdfedit.petricek.net/bt/bug_view_advanced_page.php?bug_id=124 [^]
 

- Issue History
Date Modified Username Field Change
10-09-09 16:42 hockm0bm New Issue
10-09-09 16:42 hockm0bm Status new => assigned
10-09-09 16:42 hockm0bm Assigned To  => hockm0bm
10-09-09 16:42 hockm0bm Priority normal => high
10-09-09 16:42 hockm0bm Severity minor => major
10-09-09 16:42 hockm0bm Category =Other (Kernel)= => XPDF
10-22-09 17:11 hockm0bm Note Added: 0000997
10-22-09 17:14 hockm0bm Note Added: 0000998
10-22-09 17:14 hockm0bm Severity major => minor
10-22-09 17:14 hockm0bm Summary xpdf code doesn't handle hybrid-xref documents with hidden objects correctly. => xpdf code doesn't handle multifile documents
10-22-09 17:18 hockm0bm Note Added: 0000999
10-30-09 06:53 Alister File Added: Portfolio1.pdf
10-30-09 06:55 Alister Note Added: 0001000
10-30-09 06:59 Alister Note Added: 0001001
11-10-09 00:04 Alister Note Added: 0001002
12-09-11 03:17 Alister Note Added: 0001125
02-10-12 07:49 Alister Note Added: 0001132
02-10-12 09:28 misuj1am Note Added: 0001133
02-12-12 10:55 Alister Note Added: 0001139
02-12-12 10:58 Alister Note Added: 0001140