Willus.com Home   |   Archive   |   About  

Willus.com's K2pdfopt Help Page

Return to K2pdfopt Home Page

MENU
Getting Started:
    1. Windows
  Text Menu
  (now with video!)
  2. Linux
  Ubuntu
  Env vars
  3. Mac OSX

FAQ | Forum

Customizing K2PDFOPT:
    1. K2pdfopt GUIs
    2. Disabling the Windows GUI
    3. The interactive menu
    4. List of command-line options
    5. Using a shortcut
  (now with video!)
  6. Using the K2PDFOPT environment variable
  7. Using the command line

Adjusting the output:
    1. Screen Size
    2. Increasing the magnification
    3. Landscape mode
    4. Output File Size
    5. Setting Margins
    6. Color Output
    7. Uneven Line Breaks/ Excess Margins

Processing Options:
    1. Showing Markings
    2. OCR
    3. Native PDF
  (now with video!)
    4. Auto-Straightening
    5. Ignoring Borders/ Headers/Footers
    6. Detecting Columns
    7. Column Order
    8. Right-to-Left Page Scanning
    9. Using Ghostscript
 
  SETTING ENVIRONMENT VARIABLES IN LINUX
This page shows how to set an environment variable in linux, specifically the TESSERACT_PREFIX variable in the example, but any number of other variables (e.g. K2PDFOPT) can also be set. For more on getting started with k2pdfopt in Linux, see my Linux help page.

NOTE: For instructions on setting the environment variable in Windows 7, see this page.

For how to set an environment variable in OSX, try this page.


SETTING THE TESSDATA_PREFIX ENVIRONMENT VARIABLE IN UBUNTU

Ubuntu has a file called .pam_environment in each user's home folder that is specifically intended to hold environment variables. It is not a script file. You can add an environment variable to it as follows:
     
You will have to logout and then log back in again for the settings to take effect.

SETTING THE TESSDATA_PREFIX ENVIRONMENT VARIABLE IN GENERIC LINUX

1. Press <Alt>-F2. This will bring up the "Run a command" prompt. At the prompt, type: /usr/bin/gnome-terminal and press <Enter>:
     

2. Inside the terminal window, follow the directions below.
     

3. You may have to logout and then log back in again for the settings to take effect.

 

This page last modified
Saturday, 30-Nov-2013 12:58:25 MST