[Poppler-bugs] [Bug 44085] pdfinfo/pdffonts cannot process >2GB files

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Dec 24 06:56:52 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=44085

--- Comment #6 from Hin-Tak Leung <htl10 at users.sourceforge.net> 2011-12-24 14:56:52 UTC ---
(In reply to comment #5)
> If the xpdf author was open to collaboration poppler would not exist.

There is a half-empty/half-full difference in view-point... maybe one should be
grateful to the xpdf author for providing the *starting point* of poppler? It
would have been more difficult to start a pdf-parsing project from scratch.
Look at the state (or "lack of") of GNUPDF on the GNU web site...

> It would be cool if you could provide the recipe :-)

Here is a recipe - I don't know what is the minimum what you need, but pdflatex
and movie15 (both included in texlive 2011) are necessary (and hyperref is a
requirement of movie15). I have 7 avi files of approx 370MB each. I don't think
they need to be avi files, since movie15 complains that it can't detect the
mime type of those files (hence the mimetype= parameter to \includemovie).
Presumably you can just stuff a linux distro DVD image in there and lie about
the mimetype.

I tried repeating the same file 7 times, but apparently movie15 is clever
enough not to embed the same thing 7 times, so you *do* need to have 2GB of
junk to make this work, rather than repeating the same thing.

Process this with pdflatex:
====================
\documentclass[12pt]{article}
\usepackage{movie15}
\usepackage{hyperref}
\begin{document}
movie15 can detect duplicate - use different files!
\begin{figure}[ht]
\includemovie[mimetype=video/avi]{12cm}{6cm}{1.avi}
\end{figure}
\begin{figure}[ht]
\includemovie[mimetype=video/avi]{12cm}{6cm}{2.avi}
\end{figure}
\begin{figure}[ht]
\includemovie[mimetype=video/avi]{12cm}{6cm}{3.avi}
\end{figure}
\begin{figure}[ht]
\includemovie[mimetype=video/avi]{12cm}{6cm}{4.avi}
\end{figure}
\begin{figure}[ht]
\includemovie[mimetype=video/avi]{12cm}{6cm}{5.avi}
\end{figure}
\begin{figure}[ht]
\includemovie[mimetype=video/avi]{12cm}{6cm}{6.avi}
\end{figure}
\begin{figure}[ht]
\includemovie[mimetype=video/avi]{12cm}{6cm}{7.avi}
\end{figure}
\end{document}
============================

The result is a 2.5GB pdf, with 3 pages. xpdf 3.03's pdfinfo/pdffonts did work
correctly (I downloaded the source and built), so poppler's pdfinfo/pdffonts is
probably seem as a regression... Here is what it says.


===============================================
#distro, poppler
$ pdfinfo a.pdf
Error: Document base stream is not seekable
$ pdffonts a.pdf
Error: Document base stream is not seekable

$ ~/bin/xpdf-3.03/pdffonts a.pdf
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
EVLLHA+CMR12                         Type 1            yes yes no      78  0
$ ~/bin/xpdf-3.03/pdfinfo a.pdf
Title:          
Subject:        
Keywords:       
Author:         
Creator:        LaTeX with hyperref package
Producer:       pdfTeX-1.40.12
CreationDate:   Sat Dec 24 22:22:11 2011
ModDate:        Sat Dec 24 22:22:11 2011
Tagged:         no
Form:           none
Pages:          3
Encrypted:      no
Page size:      612 x 792 pts (letter)
File size:      2543173309 bytes
Optimized:      no
PDF version:    1.5
======================================================

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list