PeachPDF

PeachPDF.Layout

IPageDescriptor Interface

Configures one page-section of a declarative document (Page(Action<IPageDescriptor>)): its page geometry and the content that flows and paginates within it.

public interface IPageDescriptor
Methods  
Background(PdfColor) Paints a solid background color behind this page’s whole sheet.
Content(Action<IContainer>) Sets this page’s main flowing, paginated content.
DefaultTextStyle(Action<ITextStyle>) Sets the default text style every span of text in this page inherits unless it overrides a property itself.
Footer(Action<IContainer>) Sets content repeated at the bottom of every physical page this page’s content paginates across.
Header(Action<IContainer>) Sets content repeated at the top of every physical page this page’s content paginates across.
Margin(PdfLength) Sets all four margins to the same value. Unset falls back to the document’s PdfGenerateConfig margins.
MarginBottom(PdfLength) Sets the bottom margin.
MarginHorizontal(PdfLength) Sets the left and right margins.
MarginLeft(PdfLength) Sets the left margin.
MarginRight(PdfLength) Sets the right margin.
MarginTop(PdfLength) Sets the top margin.
MarginVertical(PdfLength) Sets the top and bottom margins.
Orientation(PageOrientation) Sets this page’s orientation (swaps width/height when it disagrees with the declared size).
Size(PageSize) Sets this page’s sheet size. Unset falls back to the document’s PageSize.
Size(PdfLength, PdfLength) Sets this page’s sheet size explicitly. Unset falls back to the document’s PdfGenerateConfig page size.