PDPage.
| Modifier and Type | Field and Description |
|---|---|
| private final org. | |
| private final org. | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | PdfDocumentPageViewModel(org.
|
| Modifier and Type | Method and Description |
|---|---|
| private static Image | |
| public double | getAspectRatio()
Implements abstract org. Calculates the aspect ratio (width / height) of the page. |
| public int | getPageNumber()
Implements abstract org. Get the page number of the current page in the document. |
| public Image | render(int width, int height)
Implements abstract org. Renders this page and returns an image representation of itself. |
| private static BufferedImage |
| document | back to summary |
|---|---|
| private final org. | |
| page | back to summary |
|---|---|
| private final org. | |
| pageNumber | back to summary |
|---|---|
| private final int pageNumber | |
| PdfDocumentPageViewModel | back to summary |
|---|---|
| public PdfDocumentPageViewModel(org. | |
| convertToFxImage | back to summary |
|---|---|
| private static Image convertToFxImage(BufferedImage image) | |
| getAspectRatio | back to summary |
|---|---|
| public double getAspectRatio() Implements abstract org. Doc from org. Calculates the aspect ratio (width / height) of the page.
| |
| getPageNumber | back to summary |
|---|---|
| public int getPageNumber() Implements abstract org. Doc from org. Get the page number of the current page in the document.
| |
| render | back to summary |
|---|---|
| public Image render(int width, int height) Implements abstract org. Doc from org. Renders this page and returns an image representation of itself.
| |
| resize | back to summary |
|---|---|
| private static BufferedImage resize(BufferedImage img, int newWidth, int newHeight) | |