<div dir="ltr"><div>Yes, that's a way to do it.  I've used pdftk after I generate the PDF using ImageMagick to mess with pagination.  It's a good tool too.<br><br></div>-Josh<br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Thu, Dec 12, 2013 at 3:49 PM, Steve Trapp <span dir="ltr"><<a href="mailto:stevetrapp@comcast.net" target="_blank">stevetrapp@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Josh, Mike, and alls-y'all-T.C.LUG-gers-following-this-thread-<br>
<br>
There are multiple ways of converting .png-files to .pdf-files. I end up<br>
using *gimp* a lot for this. I'm sure other ways work just fine.<br>
<br>
However, when I'm done, I have one .pdf file for each .png file.<br>
<br>
To catenate the pages together into a single .pdf file, I use the tool<br>
*pdftk* as follows:<br>
<br>
pdftk <file1>.pdf <file2>.pdf ... <fileN>.pdf cat output <output>.pdf<br>
<br>
Naturally, you can use wild cards if your .pdf-pages have a sequence to<br>
them.  Something like:<br>
<br>
pdftk <base>[0-9].pdf <base>[0-9][0-9].pdf <base>[0-9][0-9][0-9].pdf \<br>
    cat output <output>.pdf<br>
<br>
The above is an extreme example for the case when you don't have LEADING<br>
ZEROES. It's also a bad idea if you REALLY have more than a 100 files<br>
because there's a limit (usually, anyway) to the number of characters in a<br>
command line (historically, I believe, it was 4096).<br>
<br>
Hope this helps,<br>
-Steve<br>
<br>
P.S.- Sometimes things end up with a page type of A4 instead of letterSize<br>
(a problem in the US and Canada), or end up as letterSize instead of A4 (a<br>
problem outside of {.us, .ca}). One of {A4, letter} is longer, and the<br>
other is wider. The differences in {length, width} are, I believe, less<br>
than 1_inch (2.54_cm).<br>
<br>
On Thu, 12 Dec 2013 12:30:31 -0600,<br>
Michael Moore <<a href="mailto:stuporglue@gmail.com">stuporglue@gmail.com</a>> wrote:<br>
> On Thu, Dec 12, 2013 at 12:11 PM, Mike Miller <<a href="mailto:mbmiller%2Bl@gmail.com">mbmiller+l@gmail.com</a>><br>
> wrote:<br>
><br>
> > On Thu, 12 Dec 2013, Josh More wrote:<br>
> ><br>
> >  You need to do it in two steps:<br>
> >><br>
> >> convert *.png test.mng<br>
> >> convert test.mng test.pdf<br>
> >><br>
> >> This is how I did my security comic book.  The only gotcha is to check<br>
> >> the page order with an "ls *.png" first.  I had to preface each file<br>
> >> with the pagenumber (00 - 24) to get them in the right order.<br>
> >><br>
> ><br>
> I ended up getting the same results with both<br>
><br>
> convert output/*.png output.pdf<br>
> as with the two-step process.<br>
><br>
><br>
> >  I'm not 100% sure that it would work for you, but here's a trick I<br>
> > sometimes use in this kind of situation (in Bash):<br>
> ><br>
> > convert $(\ls -1v *.png) test.mng<br>
> ><br>
> > The backslash turns of aliasing (which might be adding color to the<br>
> > text). The -v option uses "version" ordering of filenames.<br>
> ><br>
><br>
> I'll have to remember that for the future. I had already sorted and named<br>
> my pages.<br>
><br>
> In the end I was able to work around the imagemagick page size issue I was<br>
> having by doing an extra padding step to get all the images centered and<br>
> the right size before converting to pdf.<br>
><br>
> Thanks,<br>
> Michael Moore<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Name: Steve Trapp<br>
Homepage: <a href="http://steventrapp.home.comcast.net" target="_blank">http://steventrapp.home.comcast.net</a><br>
Email: stevetrapp **AT** comcast **DOT** net<br>
Locale: en_US.UTF-8 | Location: Upper Midwest<br>
_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
</font></span></blockquote></div><br></div>