/// <summary> /// Initializes a new instance of the Bytescout.PDF.NamedAction. /// </summary> /// <param name="action">The Bytescout.PDF.NamedActions object representing the destination of an action.</param> public NamedAction(NamedActions action) : base(null) { _dictionary = new PDFDictionary(); _dictionary.AddItem("Type", new PDFName("Action")); _dictionary.AddItem("S", new PDFName("Named")); Action = action; }
public static PDFName PDFNamedActionToPDFName(NamedActions action) { switch (action) { case NamedActions.FirstPage: return(new PDFName("FirstPage")); case NamedActions.LastPage: return(new PDFName("LastPage")); case NamedActions.NextPage: return(new PDFName("NextPage")); case NamedActions.PreviousPage: return(new PDFName("PrevPage")); } return(new PDFName("NextPage")); }