Skip to content

Instantly share code, notes, and snippets.

@flew2bits
flew2bits / FillAbove.cs
Created March 10, 2023 22:50
QuestPDF sample Dynamic Component to use available space aboce
using QuestPDF.Elements;
using QuestPDF.Fluent;
using QuestPDF.Helpers;
using QuestPDF.Infrastructure;
using QuestPDF.Previewer;
using SkiaSharp;
Document.Create(doc =>
{
doc.Page(page =>
@flew2bits
flew2bits / OptimizedOrderTablesWithAutoColumn.cs
Last active August 25, 2023 13:09
QuestPDF pre-calculated column width based on content.
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);