public final class PageMetadata extends Object
Constructor and Description |
---|
PageMetadata(double pageHeight,
int pageNumber,
double pageWidth,
double textAngle,
DimensionUnit unit)
Constructs a PageMetadata model.
|
Modifier and Type | Method and Description |
---|---|
double |
getPageHeight()
Get the height property: The height of the image/PDF in pixels/inches,
respectively.
|
int |
getPageNumber()
Get the 1-based page number in the input document.
|
double |
getPageWidth()
Get the width property: The width of the image/PDF in pixels/inches,
respectively.
|
double |
getTextAngle()
Get the angle property: The general orientation of the text in clockwise
direction, measured in degrees between (-180, 180].
|
DimensionUnit |
getUnit()
Get the unit property: The unit used by the width, height and
boundingBox properties.
|
public PageMetadata(double pageHeight, int pageNumber, double pageWidth, double textAngle, DimensionUnit unit)
pageHeight
- The height of the image/PDF in pixels/inches, respectively.pageNumber
- The 1-based page number in the input document.pageWidth
- The width of the image/PDF in pixels/inches, respectively.textAngle
- The orientation of the text in clockwise direction, measured in degrees between (-180, 180].unit
- The unit used by the width, height and boundingBox properties.public double getPageHeight()
public int getPageNumber()
public double getPageWidth()
public double getTextAngle()
public DimensionUnit getUnit()
Copyright © 2020 Microsoft Corporation. All rights reserved.