Josh, Mike, and alls-y'all-T.C.LUG-gers-following-this-thread-

There are multiple ways of converting .png-files to .pdf-files. I end up
using *gimp* a lot for this. I'm sure other ways work just fine.

However, when I'm done, I have one .pdf file for each .png file.

To catenate the pages together into a single .pdf file, I use the tool
*pdftk* as follows:

pdftk <file1>.pdf <file2>.pdf ... <fileN>.pdf cat output <output>.pdf

Naturally, you can use wild cards if your .pdf-pages have a sequence to
them.  Something like:

pdftk <base>[0-9].pdf <base>[0-9][0-9].pdf <base>[0-9][0-9][0-9].pdf \
    cat output <output>.pdf

The above is an extreme example for the case when you don't have LEADING
ZEROES. It's also a bad idea if you REALLY have more than a 100 files
because there's a limit (usually, anyway) to the number of characters in a
command line (historically, I believe, it was 4096).

Hope this helps,
-Steve

P.S.- Sometimes things end up with a page type of A4 instead of letterSize
(a problem in the US and Canada), or end up as letterSize instead of A4 (a
problem outside of {.us, .ca}). One of {A4, letter} is longer, and the
other is wider. The differences in {length, width} are, I believe, less
than 1_inch (2.54_cm).

On Thu, 12 Dec 2013 12:30:31 -0600,
Michael Moore <stuporglue at gmail.com> wrote:
> On Thu, Dec 12, 2013 at 12:11 PM, Mike Miller <mbmiller+l at gmail.com>
> wrote:
> 
> > On Thu, 12 Dec 2013, Josh More wrote:
> >
> >  You need to do it in two steps:
> >>
> >> convert *.png test.mng
> >> convert test.mng test.pdf
> >>
> >> This is how I did my security comic book.  The only gotcha is to check
> >> the page order with an "ls *.png" first.  I had to preface each file
> >> with the pagenumber (00 - 24) to get them in the right order.
> >>
> >
> I ended up getting the same results with both
> 
> convert output/*.png output.pdf
> as with the two-step process.
> 
> 
> >  I'm not 100% sure that it would work for you, but here's a trick I
> > sometimes use in this kind of situation (in Bash):
> >
> > convert $(\ls -1v *.png) test.mng
> >
> > The backslash turns of aliasing (which might be adding color to the
> > text). The -v option uses "version" ordering of filenames.
> >
> 
> I'll have to remember that for the future. I had already sorted and named
> my pages.
> 
> In the end I was able to work around the imagemagick page size issue I was
> having by doing an extra padding step to get all the images centered and
> the right size before converting to pdf.
> 
> Thanks,
> Michael Moore

-- 
Name: Steve Trapp
Homepage: http://steventrapp.home.comcast.net
Email: stevetrapp **AT** comcast **DOT** net
Locale: en_US.UTF-8 | Location: Upper Midwest