in reply to pdf - page count

looking at the source, i think that the first two lines are just warnings and unrelated to the third. The third is from this 'die' line in PDF::Parse in the ReadCrossReference_pass1() method:
$_=PDF::Core::PDFGetline ($fd,\$offset); die "Can't read cross-reference section, according to trailer\n" if +! /xref\r?\n?/ ;
what it means? i dunno.. Are you sure you have valid PDF files? can any other PDF module/program parse them correctly?

Replies are listed 'Best First'.
Re^2: pdf - page count
by MiamiGenome (Sexton) on Jun 28, 2006 at 22:03 UTC
    The pdf is a standard file as far as I can tell. Adobe Reader and Acrobat opens it perfectly. The pdf is available at:
    http://www.wormbook.org/chapters/www_gaba/gaba.pdf
      It worked on my files. Yours gives an error:
      Malformed xref in PDF file at C:/Perl/site/lib/PDF/API2/Basic/PDF/Fil +e.pm line 1230.
      Looks like a bad file to me.