Thanks a lot for your reply. I have modified the
UnknownPlug.pm file and now all files are saved as
doc.pdf. When I opened the doc.xml file in archives
directory I still find following info
This is making the links for the file as original
filename and not for doc.pdf and hence the HTTP 404 -
File not found error is displayed.
What are the changes I have to make to resolve the
Thanks once again,
--- Katherine Don <firstname.lastname@example.org> wrote:
> Hi Sharad
> You can do it if you modify the plugin.
> In greenstone/perllib/plugins/UnknownPlug.pm, look
> for the line like
> $doc_obj->associate_file($filename, $file,
> $mime_type, $section);
> in function associate_unknown_file
> THe first argument to associate file ($filename) is
> the full path to the
> existing file, the second argument ($file) is the
> file name for the
> copied file.
> If you change $file to "doc.pdf" then the files will
> be saved as doc.pdf
> instead of their original filename.
> This will apply to all files and all collections
> though. I suggest you
> put a copy of PDFPlug.pm into the collection that
> you want this
> Then modify the collection one, rather than the main
> When you rebuild the collection, it should use the
> collection version in
> preference to the main version.
> Sharad Jadhav wrote:
> > Hi,
> > I am using UnknownPlug for processing secured PDf
> > documents (as these cannot be converted by
> > If we use PDFPlug to process the PDF files, the
> > processed pdf file name is always doc.pdf, incase
> > UnknownPlug, original file names are preserved
> such as
> > abcd.pdf or xyz.pdf, I wish to have final filename
> > doc.pdf when I use UnknownPlug.
> > UnknownPlug -file_format PDF -mime_type
> > application/PDF -process_extension pdf -srcicon
> > iconpdf
> > Is this possible with UnknownPlug?
> > Regards,
> > Sharad
> > Yahoo! India Answers: Share what you know. Learn
> something new
> > http://in.answers.yahoo.com/
> > _______________________________________________
> > greenstone-devel mailing list
> > email@example.com
Yahoo! India Answers: Share what you know. Learn something new