This is a migrated thread and some comments may be shown as answers.

ExportToPdf putting out blank content?

1 Answer 101 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Walt
Top achievements
Rank 2
Walt asked on 18 Dec 2008, 08:23 PM
I'm trying to use the ExportToPdf() method in the RadEditor control, and it doesn't actually put out any PDF. At first, I was getting errors about valid XHTML, but I'm converting to XHTML now before invoking the method and no longer get any errors. I just don't get anything. Does anybody have any suggestions?

Thanks,

Walt

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Dec 2008, 03:01 PM
Hi Walt,

The export to pdf functionality is still in development and it does not render some tags.

Please, replace the full html content with this one and see whether the ExportToPdf method will render the content properly:

        protected void Page_Load(object sender, EventArgs e)
        {
            //add content to the editor
            RadEditor1.Content = "<span style='color:red;'>This is a test.</span>";
            //export to pdf
            RadEditor1.ExportToPdf();
        }

If you still experience any problems with the export to pdf functionality my suggestion is to use another third party HTML to PDF convertion tool. You can see this Kb article for more information:
Converting RadEditor HTML to PDF format.


Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Walt
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or