PPDFileInfo

app.PPDFileList[index].PPDInfo

Description

Information about a PostScript Printer Description (PPD) file.


Properties

PPDFileInfo.languageLevel

app.PPDFileList[index].PPDInfo.languageLevel

Description

The PostScript language level.

Type

String


PPDFileInfo.PPDFilePath

app.PPDFileList[index].PPDInfo.PPDFilePath

Description

Path specification for the PPD file.

Type

File


PPDFileInfo.screenList

app.PPDFileList[index].PPDInfo.screenList

Description

List of color separation screens.

Type

Array of Screen


PPDFileInfo.screenSpotFunctionList

app.PPDFileList[index].PPDInfo.screenSpotFunctionList

Description

List of color separation screen spot functions.

Type

Array of ScreenSpotFunction


Example

Displaying PPD file properties

// Displays postscript level and path for each PPD file found in a new text frame
var sPPD = "";
var docRef = documents.add();

var x = 30;
var y = (docRef.height - 30);

var iLength = PPDFileList.length;
if (iLength > 20)
  iLength = 20;

for (var i = 0; i < iLength; i++) {
  var ppdRef = PPDFileList[i];
  sPPD = ppdRef.name;
  sPPD += "\r\tPS Level ";

  var ppdInfoRef = ppdRef.PPDInfo;
  sPPD += ppdInfoRef.languageLevel;
  sPPD += "\r\tPath: ";
  sPPD += ppdInfoRef.PPDFilePath;

  var textRef = docRef.textFrames.add();
  textRef.textRange.characterAttributes.size = 8;
  textRef.contents = sPPD;
  textRef.top = (y);
  textRef.left = x;

  redraw();

  if ((y -= (textRef.height)) <= 30) {
    y = (docRef.height - 30);
    x += 150;
  }
}