22 lines
851 B
C#
22 lines
851 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using XP.ReportEngine.Models;
|
|
|
|
namespace XP.ReportEngine.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// PDF 渲染器接口 | PDF renderer interface
|
|
/// </summary>
|
|
public interface IPdfRenderer
|
|
{
|
|
/// <summary>
|
|
/// 将排版结果渲染为 PDF | Render layout result to PDF
|
|
/// </summary>
|
|
/// <param name="pages">排版后的页面列表 | Laid-out pages</param>
|
|
/// <param name="options">生成选项 | Generation options</param>
|
|
/// <param name="template">绑定后的模板(用于页眉页脚配置)| Bound template (for header/footer config)</param>
|
|
/// <returns>PDF 内存流 | PDF memory stream</returns>
|
|
MemoryStream Render(List<LayoutPage> pages, ReportGenerationOptions options, ReportTemplate template = null);
|
|
}
|
|
}
|