public async Task <FileContentResult> GetDinkAsync() => File( _converter.Convert(new HtmlToPdfDocument { GlobalSettings = { ColorMode = ColorMode.Color, Orientation = Orientation.Portrait, PaperSize = PaperKind.A4 }, Objects = { new ObjectSettings { PagesCount = true, HtmlContent = await _viewRenderService .RenderViewAsync("Quote", _quoteModel), WebSettings = { DefaultEncoding = "utf-8" }, HeaderSettings = { FontSize = 9, Right = "Page [page] of [toPage]", Line = true, Spacing = 2.812 } } } }), "application/pdf", "PieQuoteDink.pdf");