Results 1 to 7 of 7

Thread: Pdftk is not working in Leap 15.1

  1. #1

    Default Pdftk is not working in Leap 15.1

    I have regularly used pdftk in Leap 42.2 and earlier for extracting pages from a PDF file or joining several PDF files into a single one. In 15.1, it is downloadable from the http://download.opensuse.org/reposit...USE_Leap_15.1/ site.

    It loads without problem but no matter what PDF files I attempt to process using it, all it does is give the "Synopsis" which is normally provided with the "--help" argument is given. The input files are not being read and no output is generated.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,124

    Default Re: Pdftk is not working in Leap 15.1

    Quite possible that someone comes with help here, but I see that repo is a private one. Thus trying to contact the maintainer might be a useful shortcut.
    Henk van Velden

  3. #3
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,975

    Default AW: Pdftk is not working in Leap 15.1

    Can you start it from terminal and post all here?

  4. #4

    Default Re: AW: Pdftk is not working in Leap 15.1

    Quote Originally Posted by Sauerland View Post
    Can you start it from terminal and post all here?
    Code:
    ~> pdftk
    SYNOPSIS
           pdftk <input PDF files | - | PROMPT>
          [ input_pw <input PDF owner passwords | PROMPT> ]
          [ <operation> <operation arguments> ]
          [ output <output filename | - | PROMPT> ]
          [ encrypt_40bit | encrypt_128bit ]
          [ allow <permissions> ]
          [ owner_pw <owner password | PROMPT> ]
          [ user_pw <user password | PROMPT> ]
          [ flatten ] [ need_appearances ]
          [ compress | uncompress ]
          [ keep_first_id | keep_final_id ] [ drop_xfa ] [ drop_xmp ]
          [ verbose ] [ dont_ask | do_ask ]
           Where:
          <operation> may be empty, or:
          [ cat | shuffle | burst | rotate |
            generate_fdf | fill_form |
            background | multibackground |
            stamp | multistamp |
            dump_data | dump_data_utf8 |
            dump_data_fields | dump_data_fields_utf8 |
            dump_data_annots |
            update_info | update_info_utf8 |
            attach_files | unpack_files ]
    
           For Complete Help: pdftk --help
    
    ~> pdftk term-dep.pdf cat output test.pdf
    SYNOPSIS
           pdftk <input PDF files | - | PROMPT>
          [ input_pw <input PDF owner passwords | PROMPT> ]
          [ <operation> <operation arguments> ]
          [ output <output filename | - | PROMPT> ]
          [ encrypt_40bit | encrypt_128bit ]
          [ allow <permissions> ]
          [ owner_pw <owner password | PROMPT> ]
          [ user_pw <user password | PROMPT> ]
          [ flatten ] [ need_appearances ]
          [ compress | uncompress ]
          [ keep_first_id | keep_final_id ] [ drop_xfa ] [ drop_xmp ]
          [ verbose ] [ dont_ask | do_ask ]
           Where:
          <operation> may be empty, or:
          [ cat | shuffle | burst | rotate |
            generate_fdf | fill_form |
            background | multibackground |
            stamp | multistamp |
            dump_data | dump_data_utf8 |
            dump_data_fields | dump_data_fields_utf8 |
            dump_data_annots |
            update_info | update_info_utf8 |
            attach_files | unpack_files ]
    
           For Complete Help: pdftk --help
    
    ~> pdftk A=term-dep.pdf cat A1 output test.pdf
    SYNOPSIS
           pdftk <input PDF files | - | PROMPT>
          [ input_pw <input PDF owner passwords | PROMPT> ]
          [ <operation> <operation arguments> ]
          [ output <output filename | - | PROMPT> ]
          [ encrypt_40bit | encrypt_128bit ]
          [ allow <permissions> ]
          [ owner_pw <owner password | PROMPT> ]
          [ user_pw <user password | PROMPT> ]
          [ flatten ] [ need_appearances ]
          [ compress | uncompress ]
          [ keep_first_id | keep_final_id ] [ drop_xfa ] [ drop_xmp ]
          [ verbose ] [ dont_ask | do_ask ]
           Where:
          <operation> may be empty, or:
          [ cat | shuffle | burst | rotate |
            generate_fdf | fill_form |
            background | multibackground |
            stamp | multistamp |
            dump_data | dump_data_utf8 |
            dump_data_fields | dump_data_fields_utf8 |
            dump_data_annots |
            update_info | update_info_utf8 |
            attach_files | unpack_files ]
    
           For Complete Help: pdftk --help
    
    ~>

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,374
    Blog Entries
    1

    Default Re: Pdftk is not working in Leap 15.1

    Quote Originally Posted by tgf View Post
    I have regularly used pdftk in Leap 42.2 and earlier for extracting pages from a PDF file or joining several PDF files into a single one.
    Not a direct answer to your issue with pdftk, but perhaps 'pdfseparate' and 'pdfunite' might be acceptable alternatives for you? Both are part of poppler-tools.
    Last edited by deano_ferrari; 17-Aug-2019 at 20:15.
    openSUSE Leap 15.0; KDE Plasma 5

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,374
    Blog Entries
    1

    Default Re: Pdftk is not working in Leap 15.1

    FWIW, I stumbled across this ubuntu bug report and a similar debian bug report outlining build problems and the need to drop it.
    Hi,

    pdftk depends or build-depends on GCJ. GCJ has been dropped upstream
    since GCC 7, so we are dropping it from Debian. Thus please either
    drop support for GCJ if you are just building an alternative package
    with GCJ support (e.g. ant-gcj, ecj-gcj) or switch to default-jdk /
    default-jre as appropriate.

    Cheers, Emilio
    Apparently there is a java fork being developed...

    https://gitlab.com/pdftk-java/pdftk
    openSUSE Leap 15.0; KDE Plasma 5

  7. #7

    Default Re: Pdftk is not working in Leap 15.1

    I have checked out pdfunite and pdfseparate and they do most of what I need pdftk for. Ghostscript can be used for other tasks. I will use pdftk if it becomes available again.

Posting Permissions

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