var files = Directory.GetFiles(@"F:\已加图片");
files.ToList().ForEach(
w=>
{
richEditControl1.LoadDocument(w);
var newName = w.Substring(0, w.Length - 4) + "pdf";
//System.IO.File.WriteAllText(@"C:\Documents and Settings\Administrator\桌哩面?\11.htm", richEditControl1.HtmlText);
//richEditControl1.SaveDocument(newName, DevExpress.XtraRichEdit.DocumentFormat.);
PrintingSystem ps = new PrintingSystem();
PrintableComponentLink pcl = new PrintableComponentLink(ps);
pcl.Component = richEditControl1;
pcl.CreateDocument();
ps.ExportToPdf(newName);
});