code: public static PdfAction javaScript(String code, PdfWriter writer) {
          return javaScript(code, writer, false);
      }
docs: 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.
  @param code the JavaScript code
  @param writer the writer for this action
  @return the JavaScript action