Table of Contents

Method SetFitRect

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

SetFitRect(PdfBox)

Sets the zoom type to use when displaying the page in the view to FitRect and the Left, Top, Width and Height properties to the corresponding properties of the specified box.

public void SetFitRect(PdfBox box)

Parameters

box PdfBox

The PdfBox structure that specifies the new values for Left, Top, Width and Height properties.

The vertical coordinates of the box are relative to the bottom edge of the page.

Use ToRectangle(double) method to map the box to PdfPage coordinate space.