/** * Default constructor. */ public PDAction() { action = new COSDictionary(); setType( TYPE ); }
@Override public String getS() { return ((org.apache.pdfbox.pdmodel.interactive.action.PDAction) simplePDObject) .getSubType(); }
private List<PDAction> getNext() { List<org.apache.pdfbox.pdmodel.interactive.action.PDAction> nextActionList = ((org.apache.pdfbox.pdmodel.interactive.action.PDAction) this.simplePDObject) .getNext(); if (nextActionList != null) { List<PDAction> actions = new ArrayList<>(nextActionList.size()); for (org.apache.pdfbox.pdmodel.interactive.action.PDAction action : nextActionList) { PDAction result = getAction(action); if (result != null) { actions.add(result); } } return Collections.unmodifiableList(actions); } return Collections.emptyList(); }
public List<CosReal> getD() { COSDictionary cosDictionary = ((PDAction) simplePDObject).getCOSObject(); if (cosDictionary != null) { COSBase dEntry = cosDictionary.getDictionaryObject(COSName.D); if (dEntry != null && dEntry instanceof COSArray) { List<CosReal> result = new ArrayList<>(); for (COSBase cosBase : (COSArray) dEntry) { if (cosBase instanceof COSNumber) { result.add(new PBCosReal((COSNumber) cosBase)); } } return Collections.unmodifiableList(result); } } return Collections.emptyList(); }
public static PDAction getAction(org.apache.pdfbox.pdmodel.interactive.action.PDAction action) { if (action == null) { return null; } switch (action.getSubType()) { case "Named": return new PBoxPDNamedAction((PDActionNamed) action); case "GoTo": return new PBoxPDGoToAction((PDActionGoTo) action); case "GoToR": return new PBoxPDGoToRemoteAction((PDActionRemoteGoTo) action); default: return new PBoxPDAction(action); } } }
/** * Default constructor. */ public PDAction() { action = new COSDictionary(); setType( TYPE ); }
/** * Default constructor. */ public PDAction() { action = new COSDictionary(); setType( TYPE ); }