HtmlToPdf/mvp/HtmlToPdfService.Api/Models/PdfOptionsDto.cs
2025-12-11 23:35:52 +08:00

40 lines
786 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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