Table of Contents

Method CreatePosition

Namespace
PdfSharp.Pdf.Advanced
Assembly
PdfSharp.dll

CreatePosition(double?, double?, double?)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired left and top value and the optional zoom value on the destination page. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreatePosition(double? left, double? top, double? zoom = null)

Parameters

left double?

The left value of the displayed area in PDF world space units.

top double?

The top value of the displayed area in PDF world space units.

zoom double?

Optional: The zoom value for the displayed area. 1 = 100%, 2 = 200% etc.

Returns

PdfNamedDestinationParameters

CreatePosition(XPoint, double?)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired left and top value and the optional zoom value on the destination page. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreatePosition(XPoint position, double? zoom = null)

Parameters

position XPoint

An XPoint defining the left and top value of the displayed area in PDF world space units.

zoom double?

Optional: The zoom value for the displayed area. 1 = 100%, 2 = 200% etc.

Returns

PdfNamedDestinationParameters