code: 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;
      }
docs: Creates a GoTo action to a named destination.
  @param dest the named destination
  @param isName if true sets the destination as a name, if false sets it as a String
  @return a GoTo action