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


Groups > comp.os.linux.misc > #7006

Re: Converting multiple PNG files to single PDF from BASH

From dave.gma+news002@googlemail.com.invalid (Dave Gibson)
Newsgroups comp.os.linux.misc
Subject Re: Converting multiple PNG files to single PDF from BASH
Date 2013-01-14 09:57 +0000
Organization A noiseless patient Spider
Message-ID <lc1ds9xp42.ln2@perseus.wenlock-data.co.uk> (permalink)
References <ab6ef068-4cf6-4fb2-854f-866844d0d9a1@googlegroups.com>

Show all headers | View raw


zipeppe@gmail.com wrote:
> Hi guys,
> I am looking for a bash script using 'convert' to convert PNG file
> to single PDF.
> The problem is mainly related to their names which are not numerically
> sorted:
> fig1.png fig2.pnf fig3.png ... fig10.png... fig100.png... fig250.png
> 
> The following command creates a PDF file with useless *unsorted* pages:
> 
> convert *png book.pdf

The shell sorts generated filename lists.  Use multiple patterns:

  convert fig?.png fig??.png fig???.png book.pdf

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Converting multiple PNG files to single PDF from BASH zipeppe@gmail.com - 2013-01-14 00:45 -0800
  Re: Converting multiple PNG files to single PDF from BASH Tim Watts <tw+usenet@dionic.net> - 2013-01-14 09:00 +0000
  Re: Converting multiple PNG files to single PDF from BASH dave.gma+news002@googlemail.com.invalid (Dave Gibson) - 2013-01-14 09:57 +0000
    Re: Converting multiple PNG files to single PDF from BASH zipeppe@gmail.com - 2013-01-14 02:11 -0800
    Re: Converting multiple PNG files to single PDF from BASH "Peter J. Holzer" <hjp-usenet2@hjp.at> - 2013-01-14 15:42 +0100
  Re: Converting multiple PNG files to single PDF from BASH zipeppe@gmail.com - 2013-01-14 02:08 -0800
    Re: Converting multiple PNG files to single PDF from BASH The Natural Philosopher <tnp@invalid.invalid> - 2013-01-14 10:11 +0000
      Re: Converting multiple PNG files to single PDF from BASH zipeppe@gmail.com - 2013-01-14 04:06 -0800
        Re: Converting multiple PNG files to single PDF from BASH Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> - 2013-01-14 18:32 +0000
    Re: Converting multiple PNG files to single PDF from BASH unruh <unruh@invalid.ca> - 2013-01-14 17:34 +0000
  Re: Converting multiple PNG files to single PDF from BASH unruh <unruh@invalid.ca> - 2013-01-14 17:30 +0000
  Re: Converting multiple PNG files to single PDF from BASH Anonymous <anonymous@foto.nl1.torservers.net> - 2013-01-15 06:12 -0500
  Re: Converting multiple PNG files to single PDF from BASH Anonymous <anonymous@foto.nl1.torservers.net> - 2013-01-15 07:23 -0500
    Re: Converting multiple PNG files to single PDF from BASH J G Miller <miller@yoyo.ORG> - 2013-01-16 14:37 +0000

csiph-web