Ask a Question related to PERL Modules, Design and Development.
-
Wayne #1
Error: Couldn't open file ‘65280' Failed close on p
I have been attempting to use the pdf2xml program without any success.
I
am running SWISH-E on a Linux 7.3 OS and copied a program (first item
immediatelly below) from
[url]www.linuxjournal.com/articles.php?sid=6652[/url] which uses this program to
index
the PDF files. The SWISH-E program works properly from both a browser
and
the command line when indexing regular text files.
(howto-pdf-prog.pl file)
#!/usr/bin/perl -w
use pdf2xml;
my @files =
system (‘find /var/www/html/ccsp/docs/ -name *.pdf -print‘);
for (@files) {
chomp();
my $xml_record_ref = pdf2xml($_);
print $$xml_record_ref;
}
The following is the configuration file I am using:
(howto-pdf-conf file)
IndexDir ./howto-pdf-prog.pl
# prog file to hand us XML docs
IndexFile ./howto-pdf.index
# Index to create
UseStemming yes
MetaNames swishtitle swishdocpath+
When executed, the following is the result:
[root@DPA2 ccsp]# swish-e -c howto-pdf.conf -S prog
Indexing Data Source: "External-Program"
Indexing "./howto-pdf-prog.pl"
Error: Couldn't open file ‘65280'
../howto-pdf-prog.pl: Failed close on pipe to pdfinfo for 65280: 256 at
pdf2xml.pm line 129.
Removing very common words...
no words removed.
Writing main index...
err: No unique words indexed!
I and my tech support cannot figure out what "..file 65280.." is.
There is
no such filename anywhere on the server and it is not a PDF file in
our test
directory (../ccsp/docs/). We are at a loss as to what to do next.
Thank you for any assistance you can provide.
Wayne Guest
-
#40068 [NEW]: Warning: Unknown: failed to open stream: No such file or directory in Unknown..
From: triphius at tripslair dot com Operating system: FreeBSD 6.1 PHP version: 5.2.0 PHP Bug Type: Scripting Engine problem... -
Log aborts, with Failed to open log file error
Flash Media server version 2.0.3 periodically fails to open the log file and aborts logging. This seems to occur post log file roll time as it... -
Doc.submitForm: RaiseError, File open failed
I create a PDF Form with Acrobat 5.0. With Acrobat 5.0 and Reader 5.0, it works well. But with Reader 6.0, on the call of the javascript... -
Open file, make changes, save file, close, re-open, file contents not changed
I've now run into this several times and it's completely destroyed all of my confidence in Ilustrator CS on Mac. I'm hoping someone can confirm that... -
Opening url's from IIS with file() : failed to open stream
Dear All, I would like to get an external webpage using: $TheUrl="http://123.123.123.123/index.php"; $TheWebpageData =...



Reply With Quote

