Enum PageLayoutOptions

Enum PageLayoutOptions

Namespace: Aspose.Html.Rendering
Assembly: Aspose.HTML.dll (25.2.0)

Specifies flags that together with other PageSetup options determine sizes and layouts of pages. These flags can be combined together according to their descriptions.

[ComVisible(true)]
[Flags]
public enum PageLayoutOptions

Fields

FitToContentHeight = 16

This flag indicates that the height of the page is determined from the content size itself, not from the specified page height. All the documents content will be located on the single page if this flag is specified.

FitToContentWidth = 1

This flag indicates that the width of the pages is determined from the content size itself, not from the specified page width. The width of content is calculated individually for every page.

FitToWidestContentWidth = 3

This flag indicates that the width of the page is determined from the content size itself, not from the specified page width. The width of every page will be the same and will be equal to the widest content size among all pages.

None = 0

Default value which indicates that the PageLayoutOptions will not affect the sizes and layouts of pages.

ScaleToPageHeight = 4096

This flag indicates that the content of the document will be scaled to fit the height of the first page. It collides with Aspose.Html.Rendering.PageLayoutOptions.FitToContentHeight flag and if both flags are specified only Aspose.Html.Rendering.PageLayoutOptions.ScaleToPageHeight will take affect. All document content will be placed on the single page only.

ScaleToPageWidth = 256

This flag indicates that the content of the document will be scaled to fit the page where the difference between the available page width and the overlapping content is greatest. It collides with Aspose.Html.Rendering.PageLayoutOptions.FitToContentWidth flag and if both flags are specified only Aspose.Html.Rendering.PageLayoutOptions.ScaleToPageWidth will take affect.

UseWidestPage = 2

When combined with Aspose.Html.Rendering.PageLayoutOptions.FitToContentWidth indicates that the width of every page will be the same and will be equal to the widest content size among all pages.