code: 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;
      }
docs: Creates a GoTo action to an internal page.
  @param page the page to go. First page is 1
  @param dest the destination for the page
  @param writer the writer for this action
  @return a GoTo action