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
The instructions for how to add an "Open with k2pdfopt" option to the right-click menu for PDF files in Ubuntu Desktop 11.1 running Gnome Nautilus are below. Note that you can also run the MS Windows version of k2pdfopt in Wine to take advantage of the MS-Windows GUI in Linux. For linux command-line usage, see the Linux help page. For how to set an environment variable in Linux, see my Linux environment variable help page. If you're bored and want to know what I think of Ubuntu vs. Windows 7, try my Win 7/Linux Diary.

To use k2pdfopt from the Ubuntu 11.1 desktop, start by running Firefox and going to the k2pdfopt download page to download the Linux executable. 1. Type in the capcha code, 2. choose the appropriate download for your version of Linux (if you are not sure, choose the 32-bit version), and 3. Choose "Save File":


Next, right-click the k2pdfopt download in the downloads window and select "open containing folder":


Right-click the k2pdfopt icon and move it to your home folder:


Now, close Firefox and, with just your desktop showing, press <Alt>-F2. This will bring up the "Run a command" prompt. In the prompt, type: /usr/bin/gnome-terminal and then press <Enter>:


A terminal window should come up. Type the following commands in the terminal window:
sudo mv k2pdfopt /usr/local/bin
(type in your password)
chmod a+x /usr/local/bin/k2pdfopt
mkdir .local/share/applications
cat > .local/share/applications/k2pdfopt.desktop
[Desktop Entry]
Exec=/usr/local/bin/k2pdfopt %f
(type <Ctrl-D>)
(example shown below)

Note 1: If the "mkdir" command fails, try it in steps:
  mkdir .local
  mkdir .local/share
  mkdir .local/share/applications

Note 2: In KDE, you can skip everything after the "chmod" command above and use these steps (tested in Linux Mint KDE 17.1)


Now, go to a PDF file, right-click the PDF file icon, and select "Open With Other Application...":


Select "Show other applications":


Click on k2pdfopt and then click "Select":


Hopefully k2pdfopt will successfully launch, as shown below. Just press <Enter> to process the file using the default settings, or type in one of the menu selections:


From now on, the option to open with k2pdfopt should be one of the selections in the right-click menu for a PDF file:



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