Results 1 to 6 of 6

Thread: Help on combining PDF files

  1. #1
    Join Date
    Mar 2009
    Beans
    58

    Help on combining PDF files

    I used this tutorial to try to combine PDF files.
    http://www.zolved.com/synapse/view_c...iles_on_Ubuntu


    It worked the first time I tried but then it stopped.


    I get this error

    /home/whatiscreation/bin/pdftk_cat: line 2: cd: /home/whatiscreation/Documents/PDF/Volume: No such file or directory
    Error: Failed to open PDF file:
    *.pdf
    Errors encountered. No output created.
    Done. Input errors, so no output created.
    I really like this way of doing it, so how would I fix this

  2. #2
    Join Date
    Jun 2008
    Location
    California
    Beans
    2,271
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Help on combining PDF files

    I clicked on the link you provided but it didn't take me to a tutorial. Perhaps it would be better if you posted the command you are using.

  3. #3
    Join Date
    Mar 2009
    Beans
    58

    Re: Help on combining PDF files

    Quote Originally Posted by kaibob View Post
    I clicked on the link you provided but it didn't take me to a tutorial. Perhaps it would be better if you posted the command you are using.

    here is the link Again sorry.

    http://www.zolved.com/synapse/view_c...iles_on_Ubuntu

  4. #4
    Join Date
    Jun 2008
    Location
    California
    Beans
    2,271
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Help on combining PDF files

    The script in question is:

    Code:
    #!/bin/bash
    cd ${1%/*}
    outfile="00out.pdf"
    if [ -f $outfile ] ; then
         rm -f $outfile
    fi
    /usr/bin/pdftk *.pdf cat output $outfile
    The script is designed to be used with the Nautilus open-with command. At what point do you see the error message shown in your original post? I tried the script, and it worked fine in all instances.

    BTW, the variable in the second line of the script should be quoted--otherwise it won't work with directories that contains spaces.

    Code:
    cd "${1%/*}"
    Last edited by kaibob; April 27th, 2009 at 03:20 AM.

  5. #5
    Join Date
    Apr 2006
    Location
    State Center, Ia USA
    Beans
    353

    Re: Help on combining PDF files

    Hi kut77less

    have you tried pdfsam
    it is a graphical interface program

    I justed installed and tried it. Merged four pdf files together with no problems.
    It left the four original file and created one new file


    hope this help
    alway check Synaptic for apps that might work

    Good Luck and have fun

  6. #6
    Join Date
    Mar 2009
    Beans
    58

    Re: Help on combining PDF files

    Quote Originally Posted by kaibob View Post
    The script in question is:

    Code:
    #!/bin/bash
    cd ${1%/*}
    outfile="00out.pdf"
    if [ -f $outfile ] ; then
         rm -f $outfile
    fi
    /usr/bin/pdftk *.pdf cat output $outfile
    The script is designed to be used with the Nautilus open-with command. At what point do you see the error message shown in your original post? I tried the script, and it worked fine in all instances.

    BTW, the variable in the second line of the script should be quoted--otherwise it won't work with directories that contains spaces.

    Code:
    cd "${1%/*}"


    Thanks for all your help. All I did is put quotations around the script, and it worked. The only thing I need to is know how to unsecure PDF files.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •