Skip to main content

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

NameDefinition
HeaderHeader for the PDF Document
FooterFooter for the PDF Document
PdfStyleStyle properties for the PDF Document
PageFormatContains all Page related properties such as PageSize, Margin, Orientation, PageNumberFormat
MaxColumnWidthMaximum width a column can have
MinColumnWidthMinimum width a column must have
ClientLogoTo 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
}
}

Edit on GitHub