namespace HtmlToPdfService.Api.Models;
///
/// PDF 选项 DTO
///
public class PdfOptionsDto
{
///
/// 纸张格式:A4, A3, Letter, Legal 等
///
public string? Format { get; set; }
///
/// 是否横向
///
public bool? Landscape { get; set; }
///
/// 是否打印背景
///
public bool? PrintBackground { get; set; }
///
/// 页边距
///
public MarginDto? Margin { get; set; }
}
///
/// 页边距 DTO
///
public class MarginDto
{
public string? Top { get; set; }
public string? Right { get; set; }
public string? Bottom { get; set; }
public string? Left { get; set; }
}