Click or drag to resize

PdfSizeFitToSize Method

Scale to fit given size while maintaining the aspect ratio.

Namespace:  Opait.Pdf.Api
Assembly:  Opait.Pdf.Api (in Opait.Pdf.Api.dll) Version: 1.3.3.0
Syntax
C#
public PdfSize FitToSize(
	double width,
	double height
)

Parameters

width
Type: SystemDouble
The maximum desired width.
height
Type: SystemDouble
The maximum desired height.

Return Value

Type: PdfSize
The scaled size.
See Also