Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a PdfPage builder #179

Open
Tracked by #178
victor-pogor opened this issue May 15, 2023 · 0 comments
Open
Tracked by #178

Create a PdfPage builder #179

victor-pogor opened this issue May 15, 2023 · 0 comments
Assignees
Labels
🎯 user story Short requirements or requests written from the perspective of an end user
Milestone

Comments

@victor-pogor
Copy link
Member

victor-pogor commented May 15, 2023

Context

In order to use low-level objects from the Core library, there is a requirement to build a PdfPage class that will help to generate a PDF document at a high level.

This object should implement the builder pattern and support the FluentAPI and the Delegate as a constructor parameter in order to configure the PDF document

Sample Design

var pdfDocument = new PdfDocumentBuilder()
  .AddPage() // Use the builder pattern to add the page properties
     .WithFontFamily("Arial")
     .WithFontSize(14)
     .WithContent("Hello, world!")
  .BuildPage()
  .AddPage(options => option.Content = "This is the second page." ) // Configure using the delegate as a param
.BuildPdfDocument();

Acceptance criteria

  1. Implement the PdfPage object
  2. The code must be covered with the unit and benchmark tests
@victor-pogor victor-pogor added 🎯 user story Short requirements or requests written from the perspective of an end user area:main labels May 15, 2023
@victor-pogor victor-pogor self-assigned this May 15, 2023
@victor-pogor victor-pogor added this to the v0.1 milestone May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 user story Short requirements or requests written from the perspective of an end user
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant