Skip to main content.
home | support | download

Back to List Archive

Re: Configuration

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Thu Dec 15 2005 - 16:31:04 GMT
On Thu, Dec 15, 2005 at 11:08:38AM -0500, Lars D. Noodén wrote:
> Yes, I meant swish-filter-test.  That works.
> 
> The filter is a SWISH::Filters::* filter and I want to make sure it gets 
> run.  It does not seem to be happening automatically, even for PDF.

What's your code look like?  How does it compare with the other PDF
module?

Did you run swish-filter-test -v test.pdf and watch the output?

Does it need a helper program?  Here you can see a filter looking for
"pdftotext" and finding it:

>> Loading filter: [SWISH/Filters/Pdf2HTML.pm]
Filter: SWISH::Filters::Pdf2HTML=HASH(0x88b72f4): Find path of [pdftotext] in /home/moseley/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/lib/swish-e
Filter: SWISH::Filters::Pdf2HTML=HASH(0x88b72f4):   Not found at path [/home/moseley/bin/pdftotext]
Filter: SWISH::Filters::Pdf2HTML=HASH(0x88b72f4):   Not found at path [/usr/local/bin/pdftotext]
Filter: SWISH::Filters::Pdf2HTML=HASH(0x88b72f4):  * Found program at: [/usr/bin/pdftotext]


And here's searching for a filter to handle application/pdf:

>> Starting to process new document: application/pdf
 ++Checking filter [SWISH::Filters::Doc2txt=HASH(0x84322f4)] for application/pdf
 ++Checking filter [SWISH::Filters::Doc2html=HASH(0x8440d40)] for application/pdf
 ++Checking filter [SWISH::Filters::ID3toHTML=HASH(0x844c46c)] for application/pdf
 ++Checking filter [SWISH::Filters::XLtoHTML=HASH(0x8351ea0)] for application/pdf
 ++Checking filter [SWISH::Filters::Pdf2HTML=HASH(0x88b72f4)] for application/pdf
 ++ application/pdf *WAS* filtered by SWISH::Filters::Pdf2HTML=HASH(0x88b72f4)



> >>e.g. 	/\.pdf$/ to Pdf2HTML.pm
> >> 	/\.od[tspmhgcif]$/ to ODF2xml.pm

Those are checking for the file name.  The filters work by content
type.


-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Thu Dec 15 08:31:09 2005