Willus.org Home   |   Archive   |   About  

Willus.com's K2pdfopt Help Page

Return to K2pdfopt Home Page

Getting Started:
    1. Windows
  Text Menu
  (now with video!)
  2. Linux
  Env vars
  3. Mac OSX
  4. Help in other languages

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. Protecting Regions
    8. Column Order
    9. Right-to-Left Page Scanning
    10. Using Ghostscript
There isn't quite as much need to set the K2PDFOPT environment variable if you use the Windows GUI since you can store preset settings, but you can still set k2pdfopt command line options in the K2PDFOPT environment variable. This works on all platforms. Whatever command line options are in the K2PDFOPT environment variable are overridden by the command line and the GUI settings, which both take precedence. Below are step by step instructions for how to set the K2PDFOPT environment variable in Windows 7 (Windows XP is very similar).

UPDATE: Setting the Windows environment variable with the v2.x GUI is easy. You can set it right from the GUI in k2pdfopt. Just type in the value and click "Save" (see below).

You can also set environment variables without using k2pdfopt. For video instructions on setting an environment variable in Windows 7, see this page.

For how to set an environment variable in OSX, try this page, or the RC Environment Utility (thanks to Lili819 at the mobileread forums).

For how to set an environment variable in Linux, see this page.

1. Right-click "Computer" and select Properties.

(From desktop icon)
(From start menu)

2. Select Advanced System Settings (or Advanced Settings).


3. Select Environment Variables.


4. Select New... under "User variables."


5. Enter K2PDFOPT for the variable name and your desired command-line options for the variable value.


6. Click OK (three times) and close the properties dialog box. Now when you use any version of k2pdfopt (shortcut or not), the command line options you've put in for the K2PDFOPT environment variable will be used.


This page last modified
Sunday, 28-May-2017 10:09:24 PDT