-
Notifications
You must be signed in to change notification settings - Fork 28
/
Program.cs
31 lines (27 loc) · 1.15 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using QuestPDF.Companion;
using QuestPDF.Fluent;
using QuestPDF.Infrastructure;
using QuestPDF.Previewer;
namespace QuestPDF.ExampleInvoice
{
class Program
{
static void Main(string[] args)
{
// TODO: Please make sure that you are eligible to use the Community license.
// To learn more about the QuestPDF licensing, please visit:
// https://www.questpdf.com/pricing.html
Settings.License = LicenseType.Community;
// For documentation and implementation details, please visit:
// https://www.questpdf.com/getting-started.html
var model = InvoiceDocumentDataSource.GetInvoiceDetails();
var document = new InvoiceDocument(model);
// Generate PDF file and show it in the default viewer
document.GeneratePdfAndShow();
// Or open the QuestPDF Companion App and experiment with the document's design
// in real-time without recompilation after each code change
// https://www.questpdf.com/document-previewer.html
//document.ShowInCompanion();
}
}
}