Combine PDFs and JPGs into one PDF

2

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?

Chris

Posted 2010-11-16T20:33:04.633

Reputation: 143

Answers

0

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

Take a look at this post:

icyrock.com

Posted 2010-11-16T20:33:04.633

Reputation: 4 623

If not absolutely necessary you may want to avoid the step that involves re-compressing the PDF content. – Joey – 2010-11-17T16:08:03.117

Nice, glad it solves your problem! – icyrock.com – 2010-11-17T21:00:27.877