code: public void addOutline(PdfOutline outline, String name) {
          checkWriter();
          pdf.addOutline(outline, name);
      }
docs: Adds a named outline to the document.
  
  @param outline the outline
  @param name the name for the local destination