Willus.com Home   |   Archive   |   About  

Willus.com's K2pdfopt Help Page

Return to K2pdfopt Home Page

MENU
Getting Started:
    1. Windows
  2. Linux
  Ubuntu
  3. Mac OSX

K2PDFOPT FAQ

Customizing K2PDFOPT:
    1. The interactive menu
    2. List of command-line options
    3. Using a shortcut
  4. Using the K2PDFOPT environment variable
  5. 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. Auto-Straightening
    3. Ignoring Borders/ Headers/Footers
    4. Detecting Columns
    5. Column Order
    6. Right-to-Left Page Scanning
    7. Using Ghostscript
 
  GETTING STARTED: LINUX
Instructions for running the command-line are below. If you are running Ubuntu desktop or another Linux desktop using Gnome Nautilus, you can see my Ubuntu help page.

The linux downloads are executables that should be moved to your path and modified to be executable. Then you can run them from a terminal shell. Open a terminal shell and then:
    
  • cd ~/Downloads/
  • (or wherever you downloaded k2pdfopt)
  • sudo mv k2pdfopt /usr/bin
  • (can be anywhere in your path)
  • chmod +x /usr/bin/k2pdfopt
  •    (make it executable)
  • cd /my/pdf/folder
  • (or wherever you have your PDF file)
  • k2pdfopt myfile.pdf
  • (to convert myfile.pdf)

    If you want to always run with certain customized options, you can create a script. Type the following sequence:
        
  • cat > k2pdfopt_custom
  • (create script called k2pdfopt_custom)
  • /usr/bin/k2pdfopt -j 0 -odpi 250 $*
  • (This is the first/only line of the script.
    Put whatever options you want--leave the $* at the end, though.)
  • (Press <Enter> and <Ctrl-D>)
  • sudo mv k2pdfopt_custom /usr/bin
  •    (move to exe path)
  • chmod +x /usr/bin/k2pdfopt_custom
  •    (make the script executable)
    Now you can use the command k2pdfopt_custom to run with the custom arguments.

    (Thanks to Saša Šnjarića, aka ssnjara, for the first part.)

     

    This page last modified
    Thursday, 16-Feb-2012 22:00:28 CST