Код: Выделить всё
// Create document
container.Page(page => {
page.Size(PageSizes.A4);
page.Margin(50);
page.Content().Element(ComposeContent);
page.Background().ShowOnce().Image(ConfigService.AssetPath + "/img/documents/firstpage.jpg").;
page.Background().SkipOnce().Image(ConfigService.AssetPath + "/img/documents/subsequentpages.jpg");
});
< /code>
К сожалению, они не работают в сочетании друг с другом: < /p>
The 'Page.Background' layer has already been defined. Please call this method only once.
at QuestPDF.Fluent.PageDescriptor.Background()
Подробнее здесь: https://stackoverflow.com/questions/796 ... n-questpdf