*/
private ArrayList<String> documentOpenAction() {
ArrayList<String> result = new ArrayList<String>();
PDDocumentCatalog catalog = document.getDocumentCatalog();
PDDestinationOrAction act = null;
try {
act = catalog.getOpenAction();
} catch (IOException e) {
log.error("", e);
return result;
} finally {
if (act == null) {
return result;
}
}
if (act.getCOSObject() instanceof COSDictionary) {
COSDictionary openaction_ref = (COSDictionary) act.getCOSObject();
if (openaction_ref.getItem(COSName.S) != null && openaction_ref.getItem(COSName.S).equals(COSName.JAVA_SCRIPT)) {
extractJavaScript(openaction_ref, result);
}
} else if (act.getCOSObject() instanceof COSArray) {
COSArray openaction_ref = (COSArray) act.getCOSObject();
Iterator<COSBase> it = openaction_ref.iterator();
while (it.hasNext()) {
COSBase b = it.next();
if (b instanceof COSObject) {
COSObject b2 = (COSObject) b;