Interface IPaperSize
An Interface for configuring PDF rendering classes which support printing HTML onto a PDF as virtual paper.
Namespace: IronPdf.Rendering.Abstractions
Assembly: IronPdf.dll
Syntax
public interface IPaperSize
Properties
PaperOrientation
Landscape or Portrait.
Declaration
PdfPaperOrientation PaperOrientation { get; set; }
Property Value
Type | Description |
---|---|
PdfPaperOrientation |
PaperSize
Set an output paper size for PDF pages. System.Drawing.Printing.PaperKind.
Use SetCustomPaperSize(int width, int height) for custom sizes.
Declaration
PdfPaperSize PaperSize { get; set; }
Property Value
Type | Description |
---|---|
PdfPaperSize |
Methods
SetCustomPaperSizeInInches(Double, Double)
Set an output paper size for PDF pages. Dimensions are in Inches.
Declaration
void SetCustomPaperSizeInInches(double Width, double Height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | Width | Width in Inches (supports double for fractions of an inch). |
System.Double | Height | Height in Inches (supports double for fractions of an inch). |
SetCustomPaperSizeinMilimeters(Double, Double)
Set an output paper size for PDF pages. Dimensions are in Millimeters.
Declaration
void SetCustomPaperSizeinMilimeters(double Width, double Height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | Width | Width in MM (supports double for fractions of an millimeter). |
System.Double | Height | Height in MM (supports double for fractions of an millimeter). |