Thursday, November 15, 2007

Create thumbnail for pdf document using php

To convert source test.pdf to image test.jpg

Pass this command to php function ' system()';

#> gs -q -dNOPAUSE -dBATCH -sDEVICE=jpeg -sOutputFile=test.jpg test.pdf
#> convert -resize 120x120 test.jpg test.jpg

** this was successfully done on FreeBSD ....

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...