Table of Contents

Class PageLayout

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Class for building a page layout.

public sealed class PageLayout
Inheritance
PageLayout
Inherited Members

Remarks

Read the How to layout PDF pages article to see how you can construct your document pages.

The Getting Started with Layout API article provides essential information on how to generate PDFs with the API.

Check out the other articles and code samples on the C# PDF generation library page.

Methods

Background()

Gets the layout container for the background page content.

BackgroundColor(PdfColor, int)

Sets the background color and opacity.

Content()

Gets the layout container for the primary page content.

ContentFromLeftToRight()

Sets the content direction from left to right.

ContentFromRightToLeft()

Sets the content direction from right to left.

Footer()

Gets the layout container for the page footer.

Foreground()

Gets the layout container for the foreground page content.

Header()

Gets the layout container for the page header.

Margin(double)

Sets all margins to the same value.

MarginBottom(double)

Sets the bottom margin.

MarginHorizontal(double)

Sets the left and right margins.

MarginLeft(double)

Sets the left margin.

MarginRight(double)

Sets the right margin.

MarginTop(double)

Sets the top margin.

MarginVertical(double)

Sets the top and bottom margins.

Size(PdfPaperSize)

Sets the size of the page.

Size(PdfPaperSize, PdfPaperOrientation)

Sets the size and the orientation of the page .

Size(PdfSize)

Sets the size of the page.

Size(double, double)

Sets the size of the page.

TextStyle(TextStyle)

Sets the default text style for the main page content.

TextStyle(Func<Typography, TextStyle>)

Sets the default text style for the main page content.