Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 23 additions & 26 deletions docs/api-reference/page/slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,31 @@ The main slots are Header, Content, and Footer.


```csharp
.Page(page =>
document.Page(page =>
{
document.Page(page =>
{
page.Size(PageSizes.A4);
page.Margin(2, Unit.Centimetre);
page.DefaultTextStyle(x => x.FontSize(24));
page.Size(PageSizes.A4);
page.Margin(2, Unit.Centimetre);
page.DefaultTextStyle(x => x.FontSize(24));

page.Header()
.Background(Colors.Grey.Lighten1)
.Height(125)
.AlignCenter()
.AlignMiddle()
.Text("Header");

page.Header()
.Background(Colors.Grey.Lighten1)
.Height(125)
.AlignCenter()
.AlignMiddle()
.Text("Header");

page.Content()
.Background(Colors.Grey.Lighten2)
.AlignCenter()
.AlignMiddle()
.Text("Content");

page.Footer()
.Background(Colors.Grey.Lighten1)
.Height(75)
.AlignCenter()
.AlignMiddle()
.Text("Footer");
});
page.Content()
.Background(Colors.Grey.Lighten2)
.AlignCenter()
.AlignMiddle()
.Text("Content");

page.Footer()
.Background(Colors.Grey.Lighten1)
.Height(75)
.AlignCenter()
.AlignMiddle()
.Text("Footer");
});
```

Expand Down
2 changes: 1 addition & 1 deletion docs/concepts/colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can also omit the hash sign (`#`) at the beginning of the color code.


::: warning
Please be aware that in some software the alpha channel is specified at the end of the color code, e.g. `#RRGGBBAA`. This includes the SVG renderer used by QuestPDF: in SVG markup, use `fill-opacity` instead (see [SVG Support](/api-reference/image/svg#transparent-colors)).
Please be aware that in some software the alpha channel is specified at the end of the color code, e.g. `#RRGGBBAA`. This includes the SVG renderer used by QuestPDF: in SVG markup, use `fill-opacity` instead (see [SVG Support](/api-reference/image/svg#limitations)).
:::

## Examples
Expand Down
Loading