Skip to content

Commit f2523b8

Browse files
authored
Merge pull request #298 from OpenAC-Net/questpdf
Questpdf
2 parents 371b549 + 37be1b2 commit f2523b8

12 files changed

Lines changed: 921 additions & 493 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using QuestPDF.Fluent;
2+
using QuestPDF.Helpers;
3+
using QuestPDF.Infrastructure;
4+
5+
namespace OpenAC.Net.NFSe.DANFSe.QuestPdf.Commom;
6+
7+
internal class PrintConstant
8+
{
9+
public const string OpenSans = "Open Sans";
10+
public const string UbuntuCondensed = "Ubuntu";
11+
public const float BorderSize = 0.5f;
12+
public const float TitleSize = 2.3f;
13+
public static readonly TextStyle ItemTitleStyle;
14+
public static readonly TextStyle ItemContentStyle;
15+
public static readonly TextStyle BoxTitleStyle;
16+
public static readonly TextStyle BoxContentStyle;
17+
18+
static PrintConstant()
19+
{
20+
ItemTitleStyle = TextStyle.Default.FontSize(8)
21+
.FontColor(Colors.Black)
22+
.FontFamily(OpenSans);
23+
24+
ItemContentStyle = TextStyle.Default.FontSize(10).Bold()
25+
.FontColor(Colors.Black)
26+
.FontFamily(OpenSans)
27+
.Bold();
28+
29+
BoxTitleStyle = TextStyle.Default.FontSize(5)
30+
.FontColor(Colors.Black)
31+
.FontFamily(UbuntuCondensed);
32+
33+
BoxContentStyle = TextStyle.Default.FontSize(8)
34+
.FontColor(Colors.Black)
35+
.FontFamily(UbuntuCondensed)
36+
.Bold();
37+
}
38+
}

0 commit comments

Comments
 (0)