public static PdfAction javaScript ( String code , PdfWriter writer ) { return javaScript ( code , writer , false ) ; }
Creates a JavaScript action . If the JavaScript is smaller than 50 characters it will be place as a string otherwise it will be placed as a compressed stream .