apt-get install poppler-utils unrtf antiword ppthtml
poppler-utils อ่านไฟล์ PDF
unrtf อ่านไฟล์ RTF
antiword อ่านไฟล์ word
ppthtml อ่านไฟล์ PPT
Suspendisse sollicitudin velit sed leo. Pharetra augue nec augueam elit magna, hendrerit sit amet, tinciduntac. Aenean nec eros. Vestibulm primis in faucibus

วิธีการติดตั้ง
apt-get install antiword
การใช้งาน
$ antiword abc.doc
$content = shell_exec(‘/usr/local/bin/antiword ‘.$filename);
โปรแกรม PDFTOTEXT ใช้สำหรับอ่านข้อมูลในไฟล์ pdf ให้ออกมาเป็น text file เพื่อนำไปใช้ในระบบค้นหาข้อมูลจากไฟล์ PDF
สามารถติดตั้งด้วยคำสั่ง
apt-get install poppler-utils
การใช้งาน
$ pdftotext abc.pdf xyz.txt
$ pdftotext -l 5 abc.pdf xyz.txt ( convert last 5 pages)
$ pdftotext -f 5 abc.pdf xyz.txt (convert first 5 pages)
$ pdftotext -upw ‘password’ abc.pdf xyz.txt ( for password protected pdf)
$content = shell_exec(‘/usr/local/bin/pdftotext ‘.$filename.‘ -’);
Recent Comments