Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have three PDFs and up to 10 JPGs that I need to merge into one PDF. I found PDFSam, but it looks like it doesn't accept JPGs. I'd also like to create a single batch file to do this for me (if that's possible). Since I have CutePDF installed, I can print to PDF, so I thought I might be able to first print all the JPGs to a PDF and then use PDFSam to merge it with the other PDFs. I'm stuck on printing the JPGs through a cmd though. I found this command in the registry

> "%SystemRoot%\System32\rundll32.exe" "%SystemRoot%\System32\shimgvw.dll",ImageView_PrintTo /pt "%1" "%2" "%3" "%4"

Under this key

HKEY_CLASSES_ROOT\jpegfile\shell\open\command

I'm not sure what the parameters mean though. Should I even be using that command? If so, how can I pass the PDF printer and all of my JPGs to it? Are there any other/better solutions I might be able to use?

share|improve this question
up vote 0 down vote accepted

You can use mogrify to convert pdf to jpg and then combine these with the rest of jpgs:

Take a look at this post:

share|improve this answer
    
If not absolutely necessary you may want to avoid the step that involves re-compressing the PDF content. – Joey Nov 17 '10 at 16:08
    
Looks like this will work. Thanks. – Rfvgyhn Nov 17 '10 at 17:29
    
Nice, glad it solves your problem! – icyrock.com Nov 17 '10 at 21:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .