title: I want to add a class to the web project that will do some PDF creation
body: <p>I cannot for the life of me figure out how to make the class I am creating visible to the client.  I have the following class :</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.IO;
  using iTextSharp.text;
  using iTextSharp.text.pdf;
  using System.ServiceModel.DomainServices.Hosting;
  using System.ServiceModel.DomainServices.EntityFramework;
  using System.ServiceModel.DomainServices.Server;
  using System.ServiceModel;
  
  namespace Test1.Web
  {
      [EnableClientAccess]
      public class CreatePDF  
      {
  
  
          public string paragraph { get; set; }
          public CreatePDF()
          { }
  
          public void GoGoGadgetPDF()
          {
              var document = new Document();
              string path = HttpContext.Current.Server.MapPath("PDFs");
              PdfWriter.GetInstance(document, new FileStream(path + "/document.pdf", FileMode.Create));
              document.Open();
              document.Add(new Paragraph(paragraph));
              document.Close();
          }
      }
  }
  </code></pre>
  
  <p>I put the class directly beneath the Web Project in the folder structure i.e.</p>
  
  <ul>
  <li>Test1.Web
  <ul>
  <li>References</li>
  <li>ClientBin (folder)</li>
  <li>Models (folder)</li>
  <li>CreatedPDF.cs</li>
  <li>Authentication.cs</li>
  </ul></li>
  </ul>
  
  <p>I can get access to my DomainService class in the models folder and the Authentication.cs class.  But not the CreatePDF.</p>
  
  <p>Any help would be much appreciated!!</p>