guipdftk - pdf split merge

Discussion in 'Linux' started by matteosg, Sep 1, 2008.

  1. matteosg

    matteosg

    Joined:
    Jul 19, 2008
    Messages:
    22
    Likes Received:
    0
    Hi Guys,

    Guipdftk - used to split & Merge pdf files with GUI http://www.paehl.de/pdf/gui_pdftk.html

    Downloaded guipdftk.tar.gz, I try extracting to /usr/lib and got error message ' Can't perform Extraction'. Am I doing it right?

    Appreciate any advise .... Thanks in advance

    Matt
     
    matteosg, Sep 1, 2008
    #1
  2. matteosg

    hasfrochbuster

    Joined:
    Aug 16, 2008
    Messages:
    30
    Likes Received:
    0
    to extract to that directory, you should have root privileges.

    Make sure to use "su" first, or sudo...

    I hope this helps.
     
    hasfrochbuster, Sep 1, 2008
    #2
  3. matteosg

    tpcug

    Joined:
    Sep 1, 2008
    Messages:
    20
    Likes Received:
    0
    to unpack it you need something like
    tar zxvf <filename>.tar.gz
    and as the other poster says /usr/lib is probably not a good choice

    but even when unpacked it is only a front-end for pdf toolkit. see:
    http://www.accesspdf.com/pdftk/

    and from what I see there is not a suitable precompiled package for the AA1, so you will probably have to compile it yourself.

    A suggestion, for basic split/merge try PDFSam - http://www.pdfsam.org/

    This is a java app and the basic split/merge version is free. Download the .zip option and unpack all the files to a folder.

    I'm new to Xfce (only had the AA1 a week) and still struggling with the menu system, so I have only verified that PDFSam works.
    Open a terminal
    Navigate to the folder where pdfsam is located.
    Use the command
    java -jar pdfsam-1.0.1.jar

    If you find it useful it is worth investing a couple of euros to register and get the enhanced version.
     
    tpcug, Sep 1, 2008
    #3
  4. matteosg

    matteosg

    Joined:
    Jul 19, 2008
    Messages:
    22
    Likes Received:
    0
    hi tpcug,

    I followed your instruction but got the following error:-

    [user@localhost pdfsam-1.0.1]$ sudo java -jar pdfsam-1.0.1.jar
    audit_log_user_command(): Connection refused
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
    at org.pdfsam.guiclient.GuiClient.<clinit>(GuiClient.java:33)
    Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
    at java.net.URLClassLoader$1.run(URLClassLoader.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:209)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:324)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
    ... 1 more
    Error: Could not find the main class.
    Error: A JNI error has occurred, please check your installation and try again
    [user@localhost pdfsam-1.0.1]$

    Please advise on how you install yours...

    Matt
     
    matteosg, Sep 2, 2008
    #4
  5. matteosg

    tpcug

    Joined:
    Sep 1, 2008
    Messages:
    20
    Likes Received:
    0
    I have managed to to reproduce the error so I (only) think I know what you are doing.

    You have unpacked all the files from the pdfsam...zip into the pdfsam folder. Most of them should be in sub-folders.

    Best thing would be to delete all these files and start again

    You have downloaded the pdfsam...zip file and by default it goes to 'My Disk:///Downloads' (aka /home/Downloads)

    In file manager you go to 'My Disk../Downloads' and click on the pdfsam...zip file and it opens in Xarchiver.

    Click on 'Extract'
    change the 'Extract to' to /mnt/home/pdfsam
    'Files to Extract' should be 'All"
    'Options' ** tick the 'extract files with full path' box **

    Check that you have a folder 'My Disk:///pdfsam containing
    pdfsam-1.0.1.jar, config.xml
    and the sub folders lib, plugins. bin, doc
    you can delete the file pdf-starter.exe if you want - this is for windows.

    When you come to run it **it is in your home folder** so no need to run as 'root' using sudo.

    You should now be able to open in a terminal and run using java -jar ...etc

    or (remember I'm learning the AA1 as well)

    use the file manager.
    go to the pdfsam-1.0.1.jar file
    *right click* on it
    choose 'Open with other applications'
    choose 'Use a custom command' and type java -jar in the box
    click on 'Open'

    Back to the original subject - guipdftk and pdftk which I used in windows in the past. Could not remember why I did not have it installed on my desktop which runs Mepis - a debian linux OS.
    It is in the debian repository so its easy to install. It was going to take 30 something MB of dependencies on top of the pdftk installation. Gave it a miss.
     
    tpcug, Sep 2, 2008
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.