Here is my code in C# & its give instruction to load pdf.
public void SetPdfFormat()
{
    Response.ContentType = "application/pdf";
     Response.AddHeader("content-disposition", "attachment;filename=Panel.pdf");
    Response.AddHeader("content-disposition", "filename=Panel.pdf");
    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    StringWriter sw = new StringWriter();
    HtmlTextWriter hw = new HtmlTextWriter(sw);
    pnlQuotation.RenderControl(hw);
    StringReader sr = new StringReader(sw.ToString());
    Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 100f, 0f);
    HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
    PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
    pdfDoc.Open();
    htmlparser.Parse(sr);
    pdfDoc.Close();
    Response.Write(pdfDoc);
    Response.End();
}
But when I call that function pdf load as per html more items, but datatables are loaded with cells with borders. I need only borders for left/right margins, not for top and bottom.
Can I override and add css seperately for pdf cells?
Please give me solution with example codes
 
     
     
    