PDA

View Full Version : Can this be done?




Sdahe
Aug 14, 2012, 02:57 PM
Hello,

Can I make a script that opens a PDF file ande saves as JPEG... I need to do this to 3,000 PDF files.



samwich
Aug 14, 2012, 03:59 PM
you could try using Automator's 'Render PDF pages as images'

http://superuser.com/questions/88379/batch-convert-multiple-pdf-to-image-on-mac

kryten2
Aug 14, 2012, 04:12 PM
Take a look at post #6 on this link : http://macscripter.net/viewtopic.php?id=25350

midnightvii
Aug 14, 2012, 05:26 PM
Take a look at post #6 on this link : http://macscripter.net/viewtopic.php?id=25350
awesome sir, thank you!

Sdahe
Aug 14, 2012, 08:59 PM
OMG... you just safe my life.... 1,000,000,000,000,000,000 thanks!!!

Sdahe
Aug 14, 2012, 09:28 PM
omg.... thanks again.

You dont imagine how this is helping me

kryten2
Aug 14, 2012, 10:01 PM
No need to thank me. Give credit where credit is due.
Big up and props to Martin Michel.

robvas
Aug 15, 2012, 07:31 AM
Could you do this with ImageMagick?

kryten2
Aug 15, 2012, 08:20 AM
Could you do this with ImageMagick?

Yes, but I'm not sure about multi-paged pdf documents.

Info : http://www.medicalnerds.com/batch-converting-pdf-to-jpgjpeg-using-free-software/

There are several ways to create JPEG from PDF. Automator, ImageMagick, the script from Martin Michel etc. Use whatever method is best for your needs.

Sdahe
Aug 23, 2012, 10:44 AM
OK.... now I need a script that merges the JPGs back to a single PDF...

kryten2
Aug 23, 2012, 01:12 PM
Have you tried searching? You could try this :

Sdahe
Aug 23, 2012, 02:18 PM
OK... this is the situation

I have a folder with 80,610 jpg files. They are pages from different editions.

For example:

1392-01.jpg
1392-02.jpg
1392-03.jpg
1392-04.jpg
1392-05.jpg
1392-06.jpg
1392-07.jpg
1393-01.jpg
1393-02.jpg
1393-03.jpg
1393-04.jpg
1393-05.jpg
1393-06.jpg
1393-07.jpg
1393-08.jpg
1393-09.jpg
1393-010.jpg

As you can see I have edition 1392 with 7 pages and edition 1393 with 10 pages. I need something that can make 1 PDF file for each edition. If it's automatic even better...

Sdahe
Aug 23, 2012, 02:35 PM
I did this automator but I would like to know how to make the PDF file with the same name from the JPG

http://www.peachpit.com/blogs/blog.aspx?uk=Automator-Services-Merge-Selected-Images-as-PDF