title: How to create a wrapper class for particular method in C#
body: <p>I need to create a wrapper for a class containing the below code.</p>
  
  <pre><code>PDDocument pdfDoc = PDDocument.load("C:\\Users\\Pictures\\Fillable.pdf");
  PDDocumentCatalog docCatalog = pdfDoc.getDocumentCatalog();
  PDAcroForm acroForm = docCatalog.getAcroForm();
  PDField field = acroForm.getField("last");
  field.setValue("c#");
  pdfDoc.save("C:\\Users\\Pictures\\Fillable.pdf");
  pdfDoc.close(); 
  </code></pre>
  
  <p>I have create two wrapper classes, but I am a bit confused regarding the next steps. </p>
  
  <pre><code>public class c_PDFdocu
  {
      private PDDocument PD;
  
      public c_PDFdocu(string PDFPath)
      {
          PD = PDDocument.load(PDFPath);
  
      }
      public c_documentcatalog getDocumentCatalog()
      {
  
          return new c_documentcatalog(PD);
      }
  }
  
  public class c_documentcatalog
  {
      private PDDocumentCatalog PDFDocCat;
      public c_documentcatalog(PDDocument PDFDoc)
      {
          PDFDocCat = PDFDoc.getDocumentCatalog();
      }
  
      public c_PDAcroForm getAcroForm()
      {
          return new c_PDAcroForm(PDFDocCat);
      }
  }  
  
  
  public class c_PDAcroForm
  {
      private PDAcroForm acroForm;
      public c_PDAcroForm(PDDocumentCatalog docCatalog)
      {
          acroForm = docCatalog.getAcroForm();
      }
  }
  </code></pre>
  
  <p>How can I create a wrapper class for the remaining statements?</p>
  
  <p>I need to pass the value into <code>getField</code>. It's user perspective is similar to setvalue. It falls under the same variable name <code>field</code>.       </p>
  
  <p>Thanks </p>