public static PdfAction gotoLocalPage ( int page , PdfDestination dest , PdfWriter writer ) { PdfIndirectReference ref = writer . getPageReference ( page ) ; dest . addPage ( ref ) ; PdfAction action = new PdfAction ( ) ; action . put ( PdfName . S , PdfName . GOTO ) ; action . put ( PdfName . D , dest ) ; return action ; }
Creates a GoTo action to an internal page .