Import Plugins

From SLIS Second Life Wiki

PDF Importer Plugin - Image Magic Installed?

1) In order to use the PDF import plugin your server will need a special extension installed - called the ImageMagick http://www.imagemagick.org/script/index.php to check for this, create a text file with the following and upload it to your server: <?php phpinfo(); ?>

2) Open your web browser, and view the file you just uploaded. It will give you a bunch of information about your server. Do a quick text search in the list of information for "magicwand" If imagemagick is installed, there will be a a magickwand section. eg: magickwand MagickWand Backend Library ImageMagick MagickWand Extension Version 0.1.8

3) If installed, you'll have to know the location of where it is installed on your server. Currently, the PDF import plugin searches for it in: '/usr/local/bin/convert' In my case, I had to edit the /mod/sloodle/plugins/presenter/pdfimporter.php on line 23 to change the location to: '/usr/bin/convert' You may have to do this as well.

4) Once you have everything properly configured, go to your website and add a presenter to your Sloodle Course.

5) View your Presenter in your Sloodle Course, and "Import Slides"

6) Choose a pdf you have to import.

7) If everything is successful, you will see your slides imported

Extra Installation Help

If you DON'T have image Magick installed, and have access to your Webserver's root folder, you can install ImageMagic, and the appropriate extensions using the following commands. Note - you will need an understanding of Unix / Linux to complete the steps below, so it is advisible to get your System Administrator to complete the tasks below.

  1. yum install -y ImageMagick ImageMagick-devel
  2. yum install -y ghostscript
  3. pear install imagick
  4. service httpd restart
  5. cd /usr/local/src
  6. wget http://magickwand.org/download/php/MagickWandForPHP-1.0.8.tar.gz
  7. tar xzvf MagickWandForPHP-1.0.8.tar.gz
  8. cd MagickWandForPHP-1.0.8
  9. ls
  10. phpize
  11. ./configure
  12. make
  13. make install
  14. ls /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
  15. echo "extension=magickwand.so" >> /usr/local/lib/php.ini
  16. service httpd restart

Back to the Presenter Page

Toolbox
LANGUAGES