PdfOptions
Definition
Namespace: Surya.Ab.Export.Client.Models
Assembly: Surya.Ab.Export.dll
Provides the optional arguments needed for Export in PDF.
public class PdfOptions
Properties
Name | Definition |
---|---|
Header | Header for the PDF Document |
Footer | Footer for the PDF Document |
PdfStyle | Style properties for the PDF Document |
PageFormat | Contains all Page related properties such as PageSize, Margin, Orientation, PageNumberFormat |
MaxColumnWidth | Maximum width a column can have |
MinColumnWidth | Minimum width a column must have |
ClientLogo | To set footer with image of ClientLogo |
Structure
public class PdfOptions
{
public string? Header { get; set; }
public string? Footer { get; set; }
public PdfStyle? PdfStyle { get; set; }
public AbPageFormat? PageFormat { get; set; }
public float MaxColumnWidth { get; set; }
public float MinColumnWidth { get; set; }
public FooterLogo? ClientLogo { get; set; }
}
Example
var pdfOptions = new PdfOptions()
{
Header = "Document Header",
PageFormat = new AbPageFormat()
{
PageSize = AbPageSizes.A4,
Height = 2000,
Width = 1000,
Orientation = AbOrientation.Landscape
}
}