void setTransition ( PdfTransition transition , int page ) { PdfDictionary pg = reader . getPageN ( page ) ; if ( transition == null ) pg . remove ( PdfName . TRANS ) ; else pg . put ( PdfName . TRANS , transition . getTransitionDictionary ( ) ) ; markUsed ( pg ) ; }
Sets the transition for the page