[pdftex] Re: pdftosrc seg faults
Olaf Weber
olaf at infovore.xs4all.nl
Sun Jun 1 17:13:37 CEST 2003
Reinhard Kotucha writes:
> Hi,
> when I run pdftosrc on a pdf file made from the input file
> --------------------------------------------------------------
> \pdfcompresslevel=0
> \immediate\pdfobj stream
> attr {/Type /SourceFile /SourceName (\jobname.src)}
> file {\jobname.tex}
> \immediate\pdfcatalog{/SourceObject \the\pdflastobj\space 0 R}
> \bye
> --------------------------------------------------------------
> pdftosrc aborts with a segmentation fault.
> I'm using pdftex 1.10a, pdftosrc 2.01 and teTeX-2.0-rc1 under Linux.
> The pdf file doesn't look bad and I can extract the with a Perl script
> someone posted to this list abt. two years ago.
Does the following change fix this?
--- pdftosrc.cc~ 2002-12-20 19:47:27.000000000 +0100
+++ pdftosrc.cc 2003-01-24 23:04:03.000000000 +0100
@@ -72,6 +72,7 @@
if (argc >= 4)
objgen = atoi(argv[3]);
}
+ xref = doc->getXRef();
catalogDict.initNull();
xref->getCatalog(&catalogDict);
if (!catalogDict.isDict("Catalog")) {
--
Olaf Weber
(This space left blank for technical reasons.)
More information about the pdftex
mailing list