v5.0.0

Tue, 09 Apr, 2024

Breaking changes

  • The datatype for BrandLogo in the BrandSettings class has been updated from IDocumentFile to IImageFile. This change enables the flexibility to pass instances such as ImageFilePath, ImageFileBytes, or ImageFileStream for the brand logo.

Previous

// removed code for brevity
BrandSettings brandSettings = new BrandSettings()
{
    BrandLogo = new DocumentFileBytes()
    {
        ContentType = "image/png",
        FileName = "D:/SyncfusionLogo.png",
    },
};

Now

// removed code for brevity
BrandSettings brandSettings = new BrandSettings()
{
    BrandLogo = new ImageFileBytes()
    {
        ContentType = "image/png",
        FileBytes = File.ReadAllBytes("D:/SyncfusionLogo.png"),
    },
};