[pdftex] Re: pdftosrc seg faults

Reinhard Kotucha reinhard at kammer.uni-hannover.de
Sat Jan 25 23:07:12 CET 2003


>>>>> "Olaf" == Olaf Weber <olaf at infovore.xs4all.nl> writes:

    > Does the following change fix this?

Yes, thank you.  But I have to provide the stream object number,
though the usage message says that it's optional.

  pdftosrc version 2.01
  Usage: pdftosrc <PDF-file> [<stream-object-number>]


Without the object number I get:

  pdftosrc version 2.01
  No SourceObject found

I suppose that it should be optional. If it is omitted, pdftosrc
should behave as if stream-object-number is 0.  In this case 
it should look for /SourceFile.  But srcStream.isStream("SourceFile")
is always 0. (pdftosrc.cc, line 85)


And probably a little typo should be fixed:

diff -u pdftosrc.cc-orig pdftosrc.cc
--- pdftosrc.cc-orig	Sat Jan 25 22:00:30 2003
+++ pdftosrc.cc	Sat Jan 25 22:40:44 2003
@@ -111,7 +111,7 @@
         outname = buf;
     }
     if (!(outfile = fopen(outname, "wb"))) {
-        fprintf(stderr, "Cannot open file for writting\n");
+        fprintf(stderr, "Cannot open file for writing\n");
         exit(1);
     }
     s = srcStream.getStream();

Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			             Phone: +49-511-27060390
Marschnerstr. 25
D-30167 Hannover	              mailto:reinhard at kammer.uni-hannover.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------





More information about the pdftex mailing list