iTextSharp.text.pdf.PdfAction.PdfAction C# (CSharp) Method

PdfAction() public method

public PdfAction ( int named ) : System
named int
return System
        public PdfAction(int named)
        {
            Put(PdfName.S, PdfName.NAMED);
            switch (named) {
                case FIRSTPAGE:
                    Put(PdfName.N, PdfName.FIRSTPAGE);
                    break;
                case LASTPAGE:
                    Put(PdfName.N, PdfName.LASTPAGE);
                    break;
                case NEXTPAGE:
                    Put(PdfName.N, PdfName.NEXTPAGE);
                    break;
                case PREVPAGE:
                    Put(PdfName.N, PdfName.PREVPAGE);
                    break;
                case PRINTDIALOG:
                    Put(PdfName.S, PdfName.JAVASCRIPT);
                    Put(PdfName.JS, new PdfString("this.print(true);\r"));
                    break;
                default:
                    throw new ArgumentException(MessageLocalization.GetComposedMessage("invalid.named.action"));
            }
        }

Same methods

PdfAction::PdfAction ( ) : System
PdfAction::PdfAction ( PdfIndirectReference destination ) : System
PdfAction::PdfAction ( Uri url ) : System
PdfAction::PdfAction ( Uri url, bool isMap ) : System
PdfAction::PdfAction ( string url ) : System
PdfAction::PdfAction ( string url, bool isMap ) : System
PdfAction::PdfAction ( string filename, int page ) : System
PdfAction::PdfAction ( string filename, string name ) : System
PdfAction::PdfAction ( string application, string parameters, string operation, string defaultDir ) : System