Class PdfPaperSizeConverter
Class for converting PDF paper sizes from the PdfPaperSize enum to millimeters.
Inheritance
System.Object
PdfPaperSizeConverter
Namespace: IronPdf.Rendering
Assembly: IronPdf.dll
Syntax
public static class PdfPaperSizeConverter : Object
Methods
ToMillimeters(PdfPaperSize)
Converts the given PdfPaperSize value to its equivalent size in millimeters.
Declaration
public static (Length, Length) ToMillimeters(this PdfPaperSize paperSize)
Parameters
Type | Name | Description |
---|---|---|
PdfPaperSize | paperSize | The PdfPaperSize value to convert. |
Returns
Type | Description |
---|---|
System.ValueTuple<Length, Length> | A tuple that contains the width and height in millimeters for the specified PdfPaperSize enum value. |