}
// Associate the action to the document!
document.getBaseDataObject().put(
new PdfName("OpenAction"),
file.register(action) // Adds the action to the file, returning its reference.
); document.update(); // Updates the existing document object (fundamental to override previous content).
}
// (boilerplate metadata insertion -- ignore it)
buildAccessories(document,"Primitive objects","manipulating a document at primitive object level");