What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Batch procedure pdf to jpg


webbuilders

Member
Messages
12
Likes
0
HI i m a new member of this forum

I have the following issue ...

I have many pdf files with 80 pages each that i want to convert to jpg ....

Except of that i want to cut the jpg page at half and save it separate into two images (action)

The problem is at the batch procedure ..
1. I opened all images of the PDF
2. I made the action that i wanted (cut the jpg at the half and save as ...)
3. When i m trying to do this for the rest pages with batch procedure i have the pages saved always at the same name. It doesnt create new files for each save...

What shall i do ??

i have cs3
 
But i have a problem with the white areas of pdf pages (transparent).. There not saved ... so the result is to have different dimensions for many images...

How can i have it exactly as it is in pdf??
 
it's difficult to give an answer as transparency saves ok with me. Have you tried opening that page manually in Photoshop and does transparency exist then?
 
it's difficult to give an answer as transparency saves ok with me. Have you tried opening that page manually in Photoshop and does transparency exist then?

I tried it now ... No it does not open the image with the transparency ...

The procedure i take is file-->open--> i choose my .pdf file

And photoshop opens a window "import PDF" i choose the first page only and i press ok

(i noticed that in the preview where i choose the photo.. the transparent section is already cutted....)
 
Looks as if the problem is with your PDF not the script, sorry but nothing can be done unless you can get another source document in the correct format.
 
The document was wrong you were right.....

Can i ask for a little tweak on your scipt .....???

I want to save three digit number like pdfname + -page + 001 +extension

I found this in script
var saveFile = new File(decodeURI(file.fsName.slice(0,-4) +"-Page" + k + EXT));

I just dont now the var "K" how is possible to take three digit like 001, 002 , 003 and not 1,2,3

Looks as if the problem is with your PDF not the script, sorry but nothing can be done unless you can get another source document in the correct format.
 
Glad you managed to sort the problem.
To change the numbering change that line to ..
Code:
var saveFile = new File(decodeURI(file.fsName.slice(0,-4) +"-Page" + zeroPad(k,3) + EXT));

Then at the end of the script add this function ..
Code:
function zeroPad(n, s) { 
   n = n.toString(); 
   while (n.length < s)  n = '0' + n; 
   return n; 
};
 
Yes, Photoshop is able to finish this job.
As an alternative you can use an online pdf to jpg converter, pdfjpg.net for example
It will free your system resources.
 

Back
Top