Need help working with PDF, DOC and image files
Posted: Thu Mar 12, 2009 5:20 pm
Hi,
I would appreciate any help anyone could give me on this subject. I need to create a script that does:
1. Upload files (allowed formats): PDF, Word Doc, RTF, JPG, GIF, BMP
2. Validate that the file format uploaded corresponds to the ones allowed
3. Search inside PDF, Word Doc and RTF files.
I'm ok with uploading the files, but I don't know how to validate their formats and how to do a search inside a PDF, DOC or RTF file.
Cheers,
R
I would appreciate any help anyone could give me on this subject. I need to create a script that does:
1. Upload files (allowed formats): PDF, Word Doc, RTF, JPG, GIF, BMP
2. Validate that the file format uploaded corresponds to the ones allowed
3. Search inside PDF, Word Doc and RTF files.
I'm ok with uploading the files, but I don't know how to validate their formats and how to do a search inside a PDF, DOC or RTF file.
Cheers,
R