How nice to use a tool that just does the right thing with excellent results. I normally type up my assignments using LaTeX, but I needed to send a waaay overdue assignment to a lecturer pronto. Given the time constraints I scrawled out the solutions and scanned the pages to pngs.
I thought it was going to be a nightmare to get the pages converted and sized into a single pdf. Enter ImageMagick, which generated a perfect-resolution pdf using a simple
convert q*.png myassignment.pdf
Thank you ImageMagick, you rock.