XFINIUM.PDF Documentation
GetPredefinedPageSize Method



Xfinium.Pdf Namespace > PdfPageSize Class : GetPredefinedPageSize Method
Width.
Height.
Gets the predefined page size that matches the given dimensions.
Syntax
'Declaration
 
Public Shared Function GetPredefinedPageSize( _
   ByVal width As Double, _
   ByVal height As Double _
) As PdfPageSize
'Usage
 
Dim width As Double
Dim height As Double
Dim value As PdfPageSize
 
value = PdfPageSize.GetPredefinedPageSize(width, height)
public static PdfPageSize GetPredefinedPageSize( 
   double width,
   double height
)
public:
static PdfPageSize^ GetPredefinedPageSize( 
   double width,
   double height
) 

Parameters

width
Width.
height
Height.

Return Value

A predefined page size if the dimensions match otherwise an unknown page size is returned.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfPageSize Class
PdfPageSize Members