Difference between revisions of "SUNScholar/Media Filters/4.X"

From Libopedia
Jump to navigation Jump to search
Line 20: Line 20:
 
         thumbnail.maxwidth= 80
 
         thumbnail.maxwidth= 80
 
         thumbnail.maxheight = 80
 
         thumbnail.maxheight = 80
 +
</pre>
 +
Now, add the absolute paths to the XPDF tools you installed.
 +
 +
See example below.
 +
<pre>
 +
xpdf.path.pdftotext = /usr/local/bin/pdftotext
 +
xpdf.path.pdftoppm  = /usr/local/bin/pdftoppm
 +
xpdf.path.pdfinfo  = /usr/local/bin/pdfinfo
 
</pre>
 
</pre>
  

Revision as of 21:45, 21 December 2014

Back to Media Filters

Step 1 - Login to the server

http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S01

Step 2 - Install the Ubuntu software packages

Type the following:

sudo apt-get install xpdf poppler-utils jai-core jai-imageio-core

Step 3 - Configuration

First, be sure there is a value for thumbnail.maxwidth and that it corresponds to the size you want for preview images for the UI.

Edit the "dspace.cfg" file.

nano /home/dspace/source/config/dspace.cfg

Search for the following and modify.

# maximum width and height of generated thumbnails
        thumbnail.maxwidth= 80
        thumbnail.maxheight = 80

Now, add the absolute paths to the XPDF tools you installed.

See example below.

xpdf.path.pdftotext = /usr/local/bin/pdftotext
xpdf.path.pdftoppm  = /usr/local/bin/pdftoppm
xpdf.path.pdfinfo   = /usr/local/bin/pdfinfo

References