Inability to 'Export To PDF' when using CSS Table Styles available by default

2 posts, 0 answers
  1. Josh
    Josh avatar
    1 posts
    Member since:
    Apr 2015

    Posted 25 May Link to this post


    So the title sort of says what we're experiencing - we're using the radEditor in an area of our application to create html "letter bodies" that are then saved to the database and can eventually be converted to a PDF format via the ExportToPDF function included in the Telerik assemblies.  The issue occurs when we attempt to "export to PDF" a letter that contains a table which we have applied a CSS style to (all testing so far has been done with the CSS Styles available from the dropdown by default).  This table styling appears to work correctly when it is selected in the editor, and affects the table correctly in the preview, but when the body is ultimately converted to a PDF, the css of the html is included as text rather than as styling on the table as expected. 

    So my questions are two-fold:

    Is this a known issue in the ConvertToPDF function that is included in the Telerik product? (an inability to convert inlike css to the applicable style) And if so,

    Can you recommend an alternative PDF converter that might support this functionality?



  2. Ianko
    Ianko avatar
    1507 posts

    Posted 26 May Link to this post

    Hello Josh,

    Testing with the table styles in this demo (, the PDF generated seems fine.

    However, in the demo, in the description, it is noted that full HTML page is not supported. If the table styles are inside the head tag they will definitely be disregarded. This, however, is only a guess as I am not well aware how the styles are applied in the HTML content you use and how to possible recreate the same situation so to provide a better answer. 

    Possible alternative of the built-in export-to-PDF functionality is incorporating RadWordsProcessing and RadPdfProcessing for exporting PDF—

    Another option is using RadClientExportManager—

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top