public static PdfAction gotoLocalPage ( String dest , boolean isName ) { PdfAction action = new PdfAction ( ) ; action . put ( PdfName . S , PdfName . GOTO ) ; if ( isName ) action . put ( PdfName . D , new PdfName ( dest ) ) ; else action . put ( PdfName . D , new PdfString ( dest , null ) ) ; return action ; }
Creates a GoTo action to a named destination .