
| » Forum Index » Problems and solutions » Topic: Javascript scripting to process a lot of files using photoshop |  | 
| Posted on 15/09/09 7:21:24 PM | 
| Peter Kalmus * Posts: 3 Reply | Javascript scripting to process a lot of files using photoshop Can anyone tell me if I can resize the pages of my e-book using adobe photoshop, as I know a bit of Javascript. I thought, as my pages are of various sizes and have patches of transparencies, I must first mount them on a base layer of the correct (A4 in my case) size , flatten the layers, and save each page as separate files. I would like to write a program to do this to a page, and manually open the pages one by one in photoshop, ( or automated) to perform the operation. Can anyone tell me if such a thing can be done, or are there smarter methods. Can Steve Caplin answer my question-if nobody else knows the answer, he certainly does! | 
| Posted on 16/09/09 03:25:12 AM | 
| cy98 ** Posts: 104 Reply | Re: Javascript scripting to process a lot of files using photoshop In Adobe Forums there is a scripting one. Check that out and see if there is something already written that will work, or at least close enough to modify. http://forums.adobe.com/community/photoshop/photoshop_scripting | 
| Posted on 16/09/09 11:19:17 AM | 
| Steve Caplin Administrator Posts: 7072 Reply   | Re: Javascript scripting to process a lot of files using photoshop You can certainly use Photoshop's Fit Image command to resize everything to standard dimensions. But are you sure Photoshop is the right solution for an ebook? Surely you want to keep the text as vector objects, rather than rasterising it? | 
| Posted on 24/09/09 2:07:49 PM | 
| Peter Kalmus * Posts: 3 Reply | Re: Javascript scripting to process a lot of files using photoshop 
 What's the best solution for an e-book? I have removed the transparencies, from my scanned document pages and have them in jpeg form. When I get them back into pdfs, the resizing if any has vanished. Maybe resizing occurred but on recoversion to pdf the disparities in size came back. I've tried everything and am at wits end | 
| Posted on 24/09/09 2:21:34 PM | 
| Steve Caplin Administrator Posts: 7072 Reply   | Re: Javascript scripting to process a lot of files using photoshop Are you on a Mac or PC? | 
| Posted on 24/09/09 6:30:19 PM | 
| Peter Kalmus * Posts: 3 Reply | Re: Javascript scripting to process a lot of files using photoshop 
 A PC with Windows Vista Home Premium | 
| Posted on 25/09/09 07:53:40 AM | 
| Steve Caplin Administrator Posts: 7072 Reply   | Re: Javascript scripting to process a lot of files using photoshop OK. On a Mac there's a way of creating automations that handle PDF files in many ways - not sure how this is done on PCs. I don't understand how you lose the resizing, if it's all been done through Photoshop. Have you written an Action to do the resizing? Can you post it as an attachment, so I can try it out? |