This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using QuestPDF.Elements; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Infrastructure; | |
public class OrderItem | |
{ | |
public string ItemName { get; set; } = Placeholders.Sentence(); | |
public int Price { get; set; } = Placeholders.Random.Next(1, 11) * 10; | |
public int Count { get; set; } = Placeholders.Random.Next(1, 11); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using QuestPDF.Elements; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Infrastructure; | |
using QuestPDF.Previewer; | |
using SkiaSharp; | |
Document.Create(doc => | |
{ | |
doc.Page(page => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using QuestPDF.Elements; | |
using QuestPDF.Infrastructure; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Previewer; | |
Document.Create(doc => | |
{ | |
doc.Page(page => | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Markdig; | |
using Markdig.Syntax; | |
using Markdig.Syntax.Inlines; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Infrastructure; | |
namespace PdfExperiments; | |
public record MarkdownBlockStyle(Func<IContainer, IContainer>? ItemStyle, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PdfExperiments; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Previewer; | |
Document.Create(doc => | |
{ | |
doc.Page(page => | |
{ | |
page.Size(PageSizes.Letter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Markdig; | |
using Markdig.Syntax; | |
using Markdig.Syntax.Inlines; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Infrastructure; | |
namespace PdfExperiments; | |
public enum BlockType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FillSpace : IDynamicComponent<int> | |
{ | |
private readonly Func<TextSpanDescriptor, TextSpanDescriptor> _styler; | |
private readonly char _delimiter; | |
public FillSpace(Func<TextSpanDescriptor, TextSpanDescriptor> styler, char delimiter = '.') | |
{ | |
_styler = styler; | |
_delimiter = delimiter; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Marten; | |
using Oakton; | |
using Wolverine; | |
using Wolverine.Http; | |
using Wolverine.Marten; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Host.UseWolverine(); | |
builder.Host.ApplyOaktonExtensions(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Marten; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
using Wolverine; | |
var builder = Host.CreateDefaultBuilder(); | |
builder.UseWolverine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Marten; | |
using Marten.Events.Daemon.Resiliency; | |
using Marten.Events.Projections; | |
using Marten.Schema; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
var builder = Host.CreateApplicationBuilder(); | |
builder.Services.AddMarten(opts => |
OlderNewer