Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

How to use the Photoshop PDFSaveOptions.presetFile property?

$
0
0

Hi,

 

Hopefully this is a relatively simple question for someone - as I'm new to scripting in Adobe Photoshop.

 

I'm trying to retrieve the PDR Presets using the PDFSaveOptions.presetFile property, rather than setting all of the PDFSaveOptions properties one by one. I'm scripting in Javascript using Photoshop CC 2014 with ExtendScript Toolkit.

 

In the Photoshop Scriptref_js.pdf on page 149 it indicates that this property will override other settings which is exactly what I want it to do.

 

Unfortunately this doesn't seem to work for me. 


The property is read/write and I can set the value to match the PDF Preset e.g. PDFSaveOptions.presetFile = "Press Quality" and I can read the value back.  However, all of the other values (such as  jpegQuality) are not set and I get an error when I attempt to read them.

 

Does any one have a simple example of how to use this feature?

 

Many thanks,

Mark


Viewing all articles
Browse latest Browse all 12244

Trending Articles