Skip to main content
Inspiring
July 3, 2009
Answered

Can "Actual PPI" and "Effective PPI" be extracted from InDesign?

  • July 3, 2009
  • 1 reply
  • 3649 views

A script that I may require, needs to reach inside InDesign and extract the Actual PPI and Effective PPI from certain images, and then process the images in Photoshop. Are those variables available to scripts?

This topic has been closed for replies.
Correct answer Kasyan Servetsky

Yes, Image has properties: effectivePpi and actualPpi.

1 reply

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
July 3, 2009

Yes, Image has properties: effectivePpi and actualPpi.

Guy BurnsAuthor
Inspiring
July 8, 2009

Thanks Kasyan. Where do you find such info? I've searched these four documents:

• Adobe InDesign Scripting Tutorial

• Scripting Read Me for Adobe® InDesign CS4

• Adobe Introduction to Scripting

• Adove InDesign CS4 Scripting Guide: Applescript

but there is not mention of effective ppi.

So, I've another question. I've noticed that some of my images have a two part effective ppi, in the 'x' and 'y' direction, such as: 654 x 723. Can you tell me the names of those variables?

interesting_Flower157F
Inspiring
July 8, 2009

Update: this applies for javascript, i don't actually know if you in Applescript would use the Open Library function, and then selecting Indesign.?

With Creative Suite comes a program called Adobe ExtendScript Toolkit (in CS3 and CS4 its ESTK 2).

Open this program and look under (for CS3) "Help" -> "Adobe Indesign CS3 Object Model" this is the Object Model Viewer, or in short OMV.

In there you will se all the available objects, methods and so on.

If f.ex. you will like to know how to get a reference of a image:

app.activeDocument.pages[0].images[0]; // will give you the first image of page 1 of the currently active document

In ESTK, click application, now you see all available objects for the app (activeDocument is one of them), click this and you will see that Data-Type is document. Click on the blue link document, now you see what objects are available for a document.

Have fun.