ExportToPDF Formatting Issues (Ignores CSS styles)

3 posts, 0 answers
  1. Jay
    Jay avatar
    59 posts
    Member since:
    Apr 2009

    Posted 22 Feb 2013 Link to this post

    I've been having issues with RadEditor exporting a very simple and basic version of the actual HTML I've added.

    I've attached 2 screen shots. 
    1. How it appears in a browser when launched from Dreamweaver
    2. The exported PDF

    It's really frustrating that the HTML code has to be so specific and that it ignores all of the formatting (inline styles and css styles)

    Any tips for getting exported PDFs to use CSS styles?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Feb 2013 Link to this post

    Hi Jay

    The third party HTMLtoPDF converter that RadEditor uses to export the HTML content to PDF does not offer support for external CSS files and it does not render the classes specified in the class attributes of the HTML elements.
    It is possible currently to export only inline style attributes.

  3. Rumen
    Rumen avatar
    14166 posts

    Posted 25 Feb 2013 Link to this post

    Hello Jason,

    You can try to integrate another PDF exporter as shown in the following blog post: Using an external library for the export to PDF functionality in Telerik’s ASP.NET Editor.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top