[]
DsPdfJS API / DestinationFitB
Display the page designated by Destination#page, with its contents magnified just enough to fit its bounding box entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the bounding box within the window in the other dimension.
new DestinationFitB(
om,pageIndex):DestinationFitB
Initializes a new instance of the DestinationFitB class.
ObjectManager that controls the lifetime of the DestinationFitB.
number
The target page index.
DestinationFitB
Destination.constructor
new DestinationFitB(
pageIndex):DestinationFitB
Initializes a new instance of the DestinationFitB class.
number
The target page index.
DestinationFitB
Destination.constructor
new DestinationFitB(
om,page):DestinationFitB
Initializes a new instance of the DestinationFitB class.
ObjectManager that controls the lifetime of the DestinationFitB.
The target PdfPage.
DestinationFitB
Destination.constructor
new DestinationFitB(
page):DestinationFitB
Initializes a new instance of the DestinationFitB class.
The target PdfPage.
DestinationFitB
Destination.constructor
get id():
number
Gets the reference to the object.
number
get om():
ObjectManager
Gets the owner ObjectManager instance.
get page():
PdfPage|null
Gets this destination's target PdfPage object. Returns null if the target page was specified by index.
PdfPage | null
get pageIndex():
number|null
Gets the index of this destination's target page. Returns null if the target page was specified as a PdfPage object.
Note that if this property is not null, then any Y coordinate is relative to the bottom left corner (see Destination description for details).
number | null
free():
void
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(
omTo):void
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void