Table of Contents

Method CreateFitRectangle

Namespace
PdfSharp.Pdf.Advanced
Assembly
PdfSharp.dll

CreateFitRectangle(double, double, double, double)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page. The given rectangle is fitted to the window.

public static PdfNamedDestinationParameters CreateFitRectangle(double left, double top, double right, double bottom)

Parameters

left double

The left value of the rectangle to display in PDF world space units.

top double

The top value of the rectangle to display in PDF world space units.

right double

The right value of the rectangle to display in PDF world space units.

bottom double

The bottom value of the rectangle to display in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitRectangle(XRect)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page. The given rectangle is fitted to the window.

public static PdfNamedDestinationParameters CreateFitRectangle(XRect rect)

Parameters

rect XRect

The XRect representing the rectangle to display in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitRectangle(XPoint, XPoint)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page. The given rectangle is fitted to the window.

public static PdfNamedDestinationParameters CreateFitRectangle(XPoint point1, XPoint point2)

Parameters

point1 XPoint

The first XPoint representing the rectangle to display in PDF world space units.

point2 XPoint

The second XPoint representing the rectangle to display in PDF world space units.

Returns

PdfNamedDestinationParameters