From 7f94ae589a2bf9faebce50359a2975d71b97754f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zi=C4=85bek?= Date: Tue, 3 Aug 2021 01:43:48 +0200 Subject: [PATCH] Updated release notes and code example --- QuestPDF.ReportSample/Layouts/StandardReport.cs | 11 ----------- QuestPDF/QuestPDF.csproj | 4 ++-- readme.md | 13 ++++++++----- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/QuestPDF.ReportSample/Layouts/StandardReport.cs b/QuestPDF.ReportSample/Layouts/StandardReport.cs index 88fedf8..036b86b 100644 --- a/QuestPDF.ReportSample/Layouts/StandardReport.cs +++ b/QuestPDF.ReportSample/Layouts/StandardReport.cs @@ -25,17 +25,6 @@ namespace QuestPDF.ReportSample.Layouts public void Compose(IDocumentContainer container) { container - // .Page(page => - // { - // page.MarginVertical(40); - // page.MarginHorizontal(50); - // - // page.ContinuousSize(PageSizes.A4.Width); - // - // page.Header().Element(ComposeHeader); - // page.Content().Element(ComposeContent); - // page.Footer().AlignCenter().PageNumber("Page A {number}"); - // }) .Page(page => { page.MarginVertical(40); diff --git a/QuestPDF/QuestPDF.csproj b/QuestPDF/QuestPDF.csproj index a986983..d201916 100644 --- a/QuestPDF/QuestPDF.csproj +++ b/QuestPDF/QuestPDF.csproj @@ -4,9 +4,9 @@ MarcinZiabek CodeFlint QuestPDF - 2021.5.2 + 2021.8 QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API. - New elements: Box, Grid, Canvas, EnsureSpance and Layers. Redesigned the Debug element. Added material design colors. Added list of basic fonts. Added spacing property to the Row element. Fluent API improvements and increased stability. + New elements: Unconstrained, Scale, ScaleHorizontal, ScaleVertical, FlipOver, FlipHorizontal, FlipVertical, Rotate, RotateLeft, RotateRight, TranslateX, TranslateY. Added support for more placeholders in the PageNumber element (current page, total number of pages, page number of any predefined location). Added support for documents with various page sizes. Various API improvements. 8 true Logo.png diff --git a/readme.md b/readme.md index ec84114..2d43c7c 100644 --- a/readme.md +++ b/readme.md @@ -54,16 +54,19 @@ For tutorial, documentation and API reference, please visit [the QuestPDF docume Here you can find an example code showing how easy is to write and understand the fluent API: ```csharp -public void Compose(IContainer container) -{ +public void Compose(IDocumentContainer container) +{ container - .PaddingHorizontal(50) - .PaddingVertical(50) .Page(page => { + page.MarginVertical(60); + page.MarginHorizontal(40); + + page.Size(PageSizes.A4); + page.Header().Element(ComposeHeader); page.Content().Element(ComposeContent); - page.Footer().AlignCenter().PageNumber("Page {number}"); + page.Footer().AlignCenter().PageNumber(); }); }