[]
DsPdfJS API / DestinationFitBH
Display the page designated by Destination#page, with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of its bounding box within the window. A null value for top specifies that the current value of that parameter is to be retained unchanged.
new DestinationFitBH(
om,pageIndex,pdfTop?):DestinationFitBH
Initializes a new instance of the DestinationFitBH class.
ObjectManager that controls the lifetime of the DestinationFitBH.
number
The target page index.
number
The top coordinate of the document window relative to the bottom of the page.
DestinationFitBH
Destination.constructor
new DestinationFitBH(
pageIndex,pdfTop?):DestinationFitBH
Initializes a new instance of the DestinationFitBH class.
number
The target page index.
number
The top coordinate of the document window relative to the bottom of the page.
DestinationFitBH
Destination.constructor
new DestinationFitBH(
om,page,top?):DestinationFitBH
Initializes a new instance of the DestinationFitBH class.
ObjectManager that controls the lifetime of the DestinationFitBH.
The target PdfPage.
number
The top coordinate of the document window relative to the top of the page.
DestinationFitBH
Destination.constructor
new DestinationFitBH(
page,top?):DestinationFitBH
Initializes a new instance of the DestinationFitBH class.
The target PdfPage.
number
The top coordinate of the document window relative to the top of the page.
DestinationFitBH
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
get pdfTop():
number|null
Gets the top coordinate of the document window relative to the bottom left corner, unchanged if null.
number | null
get top():
number|null
Gets the top coordinate of the document window, if null then unchanged.
If the target page of this destination was specified as an index (Destination#pageIndex), then this property returns the Y coordinate relative to the page bottom. If the target page was specified as a page object (see Destination#page), then this property returns the Y coordinate relative to the page top. 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