Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #213278 > unrolled thread

pdftk

Started bysteef <debian.linux@home.nl>
First post2019-08-26 09:50 +0200
Last post2019-08-26 11:10 +0200
Articles 9 — 7 participants

Back to article view | Back to linux.debian.user


Contents

  pdftk steef <debian.linux@home.nl> - 2019-08-26 09:50 +0200
    Re: pdftk Dominik George <natureshadow@debian.org> - 2019-08-26 10:10 +0200
      Re: pdftk Jonas Smedegaard <jonas@jones.dk> - 2019-08-26 10:20 +0200
    Re: pdftk "Victor A. Stoichita" <victor@svictor.net> - 2019-08-26 10:10 +0200
      Re: pdftk Siard <shiems146@kpnplanet.nl> - 2019-08-26 10:40 +0200
        Re: pdftk "Victor A. Stoichita" <victor@svictor.net> - 2019-08-26 16:20 +0200
    Re: pdftk Curt <curty@free.fr> - 2019-08-26 10:40 +0200
      Re: pdftk steef <debian.linux@home.nl> - 2019-08-27 00:00 +0200
    Re: pdftk "Russell L. Harris" <russell@rlharris.org> - 2019-08-26 11:10 +0200

#213278 — pdftk

Fromsteef <debian.linux@home.nl>
Date2019-08-26 09:50 +0200
Subjectpdftk
Message-ID<yzhVf-1rh-1@gated-at.bofh.it>
hi folks!

is there a simple commandline command to get pdftk so kind to merge a couple of pdf-files? the explanation in the man and --help-files is 
for me in somewhat cryptic english. kind regards, Now it complains with 'input-errors'.

steef

[toc] | [next] | [standalone]


#213279

FromDominik George <natureshadow@debian.org>
Date2019-08-26 10:10 +0200
Message-ID<yzieC-1Ol-3@gated-at.bofh.it>
In reply to#213278
Hi,

>is there a simple commandline command to get pdftk so kind to merge a
>couple of pdf-files?

look at pdfjoin.

-nik

[toc] | [prev] | [next] | [standalone]


#213281

FromJonas Smedegaard <jonas@jones.dk>
Date2019-08-26 10:20 +0200
Message-ID<yzioi-1RS-9@gated-at.bofh.it>
In reply to#213279

[Multipart message — attachments visible in raw view] — view raw

Quoting Dominik George (2019-08-26 10:09:24)
> >is there a simple commandline command to get pdftk so kind to merge a 
> >couple of pdf-files?
> 
> look at pdfjoin.

Or (not exactly what you asked for but perhaps interesting anyway) the 
graphical tool pdfshuffler, which in my experience is by far the easiest 
to use to merge PDFs.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

[toc] | [prev] | [next] | [standalone]


#213280

From"Victor A. Stoichita" <victor@svictor.net>
Date2019-08-26 10:10 +0200
Message-ID<yzieC-1Ol-5@gated-at.bofh.it>
In reply to#213278
Le 26 Aug 2019, steef <debian.linux@home.nl> a écrit :

> hi folks!
>
> is there a simple commandline command to get pdftk so kind to 
> merge
> a couple of pdf-files? the explanation in the man 
> and --help-files is
> for me in somewhat cryptic english. kind regards, Now it 
> complains
> with 'input-errors'.
>
> steef

What did you try?

To merge file1.pdf and file2.pdf into result.pdf:
$ pdftk file1.pdf file2.pdf output result.pdf

Regards,
Victor

[toc] | [prev] | [next] | [standalone]


#213282

FromSiard <shiems146@kpnplanet.nl>
Date2019-08-26 10:40 +0200
Message-ID<yziHE-1YF-11@gated-at.bofh.it>
In reply to#213280
Victor A. Stoichita wrote:
> Le 26 Aug 2019, steef <debian.linux@home.nl> a écrit :
> 
> > hi folks!
> >
> > is there a simple commandline command to get pdftk so kind to merge
> > a couple of pdf-files? the explanation in the man and --help-files is
> > for me in somewhat cryptic english. kind regards, Now it complains
> > with 'input-errors'.
> 
> What did you try?
> 
> To merge file1.pdf and file2.pdf into result.pdf:
> $ pdftk file1.pdf file2.pdf output result.pdf

AFAIK that should be:
$ pdftk file1.pdf file2.pdf cat output result.pdf

[toc] | [prev] | [next] | [standalone]


#213293

From"Victor A. Stoichita" <victor@svictor.net>
Date2019-08-26 16:20 +0200
Message-ID<yzo0F-5t4-7@gated-at.bofh.it>
In reply to#213282
Le 26 Aug 2019, Siard <shiems146@kpnplanet.nl> a écrit :
> AFAIK that should be:
> $ pdftk file1.pdf file2.pdf cat output result.pdf

It also works without "cat". The OP seemed to be looking for the 
simplest possible form. 

Regards,
Victor

[toc] | [prev] | [next] | [standalone]


#213283

FromCurt <curty@free.fr>
Date2019-08-26 10:40 +0200
Message-ID<yziHE-1YF-9@gated-at.bofh.it>
In reply to#213278
On 2019-08-26, steef <debian.linux@home.nl> wrote:
> hi folks!
>
> is there a simple commandline command to get pdftk so kind to merge a
> couple of pdf-files? the explanation in the man and --help-files is
> for me in somewhat cryptic english. kind regards, Now it complains
> with 'input-errors'.

Join pdfs:
 pdftk foo.pdf bar.pdf cat output foobar.pdf

Split pdf into one-page files:
 pdftk foo.pdf burst
(outputs pg_0001.pdf, pg_0002.pdf and so on)

Just page 22:
 pdftk foo.pdf cat 22 output bar22.pdf

Only pages 1-22:
 pdftk foo.pdf cat 1-22 output bar1to22.pdf

> steef
>
>


-- 
“We are all in the gutter, but some of us are looking at the stars.” 
― Oscar Wilde, Lady Windermere's Fan

[toc] | [prev] | [next] | [standalone]


#213302

Fromsteef <debian.linux@home.nl>
Date2019-08-27 00:00 +0200
Message-ID<yzvbP-1v1-1@gated-at.bofh.it>
In reply to#213283
..thank you all for your comments: i got it going.

thanks again

steef




On 26-08-19 10:33, Curt wrote:
> On 2019-08-26, steef <debian.linux@home.nl> wrote:
>> hi folks!
>>
>> is there a simple commandline command to get pdftk so kind to merge a
>> couple of pdf-files? the explanation in the man and --help-files is
>> for me in somewhat cryptic english. kind regards, Now it complains
>> with 'input-errors'.
> 
> Join pdfs:
>   pdftk foo.pdf bar.pdf cat output foobar.pdf
> 
> Split pdf into one-page files:
>   pdftk foo.pdf burst
> (outputs pg_0001.pdf, pg_0002.pdf and so on)
> 
> Just page 22:
>   pdftk foo.pdf cat 22 output bar22.pdf
> 
> Only pages 1-22:
>   pdftk foo.pdf cat 1-22 output bar1to22.pdf
> 
>> steef
>>
>>
> 
> 

[toc] | [prev] | [next] | [standalone]


#213285

From"Russell L. Harris" <russell@rlharris.org>
Date2019-08-26 11:10 +0200
Message-ID<yzjaF-2nA-7@gated-at.bofh.it>
In reply to#213278
On Mon, Aug 26, 2019 at 09:41:39AM +0200, steef wrote:
>is there a simple commandline command to get pdftk so kind to merge a 
>couple of pdf-files? the explanation in the man and --help-files is 
>for me in somewhat cryptic english. kind regards, Now it complains 
>with 'input-errors'.

An example from the man page for pdftk gives three approaches to merge
in1.pdf and in2.pdf into the new PDF, out1.pdf:

approach #1    pdftk in1.pdf in2.pdf cat output out1.pdf

approach #2    pdftk A=in1.pdf B=in2.pdf cat A B output out1.pdf

approach #3    pdftk *.pdf cat output combined.pdf

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web