Pro-Form Quick Start 9.0 Betriebsanweisung Seite 163

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 270
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 162
147 ©Nitro
OCG object
This object provides support for Optional Content Groups. OCGs hold a collection of graphical objects,
and are known as layers. You can dynamically switch properties of layers to make them visible or invisible
to provide navigation in a PDF document.
For more information, see The Layers Pane.
Properties & Methods
The OCG object supports all properties and methods included in the Acrobat JavaScript specification.
Example:
Turns an OCG named Overlay’ on (to turn it off, just change true to false in JavaScript code).
function turnOverlayOCG(doc)
{
var ocgArray = doc.getOCGs();
for(var i=0; i<ocgArray.length){
if(ocgArray[i].name == “Overlay”){
ocgArray[i].state = true;
}
}
}
Properties
state
initState
locked
name
Methods
getIntent
getAction
setIntent
Nitro Pro 9 - User Guide
Seitenansicht 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 269 270

Kommentare zu diesen Handbüchern

Keine Kommentare