[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#618033: pdflatex and files bigger than 2Gb



Dear Hilmar,

	I tried using pdflatex build with Largefile support. I generated
a pdffile larger than 2 GiB. Building this file works. The cross ref
table at the end of the pdf file looks reasonable.
But it can not be opened, neither by evince/xpdf nor py acrobat (x86/32bit).

PDF files consists of objects. A table with their offset in
bytes is stored as a 10 Digits offset (base 10) [1], pp 67/68, so
this will stop to function as soon as the file gets larger than
~ 9.31 GiB.

[1]
http://www.pdf-tools.com/public/downloads/pdf-reference/pdfreference12.pdf

So to conclude, I am running tex-binaries and kpathsea build with
--enable-largefiles and it works for me. It solves the problem that
stat in texk/kpathsea/readdable.c will not fail on a CIFS file system,
thus I can compile latex files stored on a CIFS system.

Dvips can build files larger than 2 GiB as does pdflatex.
However the other tools (gs/evince/xpdf/acrobat) are not able to handle
files of these size nor can psselect (psutil package) be used to split
the pdffile.

Sincerely yours
    Pierre



Reply to: