Styling exported pdf programmatically

2 posts, 0 answers
  1. Clive Hoggar
    Clive Hoggar avatar
    348 posts
    Member since:
    Nov 2008

    Posted 02 Feb 2017 Link to this post

    Hi

    I am trying to style the generated table using the 'ApplyStylesToPdfExport' example, and all is working with fonts, and alignment, but I haven't found the way to set cell padding. I tried using cell.style("cellpadding")  = "5px" and, a few variants, but I can't make it work.  What is the right way to do this?

    I am probably being dumb...

    Thanks a lot

    Clive

  2. Eyup
    Admin
    Eyup avatar
    3841 posts

    Posted 07 Feb 2017 Link to this post

    Hi Clive,

    For applying styles during the PDF exporting, you can check the following resources:
    http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/export-formats/pdf-export#appearance
    http://www.telerik.com/forums/export-radgrid-to-pdf---formatting-header-columns

    If the issue remains, you can send us sample screenshots or video demonstrating the desired appearance and we can prepare a corresponding sample.

    Regards,
    Eyup
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top