public class PageRectangle extends Object implements Serializable
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
static PageRectangle |
A0
************************************************** A类 ****************************************************
/**
A0
|
static PageRectangle |
A1
A1
|
static PageRectangle |
A2
A2
|
static PageRectangle |
A3
A3
|
static PageRectangle |
A4
A4
|
static PageRectangle |
A5
A5
|
static PageRectangle |
A6
A6
|
static PageRectangle |
A7
A7
|
static PageRectangle |
A8
A8
|
static PageRectangle |
B0
************************************************** B类 ****************************************************
/**
B0
|
static PageRectangle |
B1
B1
|
static PageRectangle |
B2
B2
|
static PageRectangle |
B3
B3
|
static PageRectangle |
B4
B4
|
static PageRectangle |
B5
B5
|
static PageRectangle |
B6
B6
|
static PageRectangle |
B7
B7
|
static PageRectangle |
B8
B8
|
static Float |
POINTS_PER_MM
每毫米像素点
|
Modifier and Type | Method and Description |
---|---|
PageRectangle |
changeLandscape()
切换横向
|
static PageRectangle |
create(float width,
float height)
创建页面尺寸
|
float |
getHeight()
获取高度
|
static Rectangle |
getRotateRectangle(int width,
int height,
double radians)
获取旋转尺寸
|
float |
getUnit()
获取每毫米像素点
|
float |
getWidth()
获取宽度
|
PageRectangle |
setDpi(int dpi)
设置dpi
|
public static final Float POINTS_PER_MM
public static final PageRectangle A0
841 * 1189,单位:mm
2383.937007 * 3370.393700,单位:pt
public static final PageRectangle A1
594 * 841,单位:mm
1683.779527 * 2383.937007,单位:pt
public static final PageRectangle A2
420 * 594,单位:mm
1190.551181 * 1683.779527,单位:pt
public static final PageRectangle A3
297 * 420,单位:mm
841.889763 * 1190.551181,单位:pt
public static final PageRectangle A4
210 * 297,单位:mm
595.275590 * 841.889763,单位:pt
public static final PageRectangle A5
148 * 210,单位:mm
419.527559 * 595.275590,单位:pt
public static final PageRectangle A6
105 * 148,单位:mm
297.637795 * 419.527559,单位:pt
public static final PageRectangle A7
74 * 105,单位:mm
209.763779 * 297.637795,单位:pt
public static final PageRectangle A8
52 * 74,单位:mm
147.401574 * 209.763779,单位:pt
public static final PageRectangle B0
1030 * 1456,单位:mm
2919.685039 * 4127.244094,单位:pt
public static final PageRectangle B1
728 * 1030,单位:mm
2063.622047 * 2919.685039,单位:pt
public static final PageRectangle B2
515 * 728,单位:mm
1459.842519 * 2063.622047,单位:pt
public static final PageRectangle B3
364 * 515,单位:mm
1031.811023 * 1459.842519,单位:pt
public static final PageRectangle B4
257 * 364,单位:mm
728.503937 * 1031.811023,单位:pt
public static final PageRectangle B5
182 * 257,单位:mm
515.905511 * 728.503937,单位:pt
public static final PageRectangle B6
128 * 182,单位:mm
362.834645 * 515.905511,单位:pt
public static final PageRectangle B7
91 * 128,单位:mm
257.952755 * 362.834645,单位:pt
public static final PageRectangle B8
64 * 91,单位:mm
181.417322 * 257.952755,单位:pt
public static PageRectangle create(float width, float height)
width
- 宽度height
- 高度public static Rectangle getRotateRectangle(int width, int height, double radians)
width
- 宽度height
- 高度radians
- 旋转弧度public PageRectangle setDpi(int dpi)
dpi
- 每英寸像素点public PageRectangle changeLandscape()
public float getUnit()
public float getWidth()
public float getHeight()
Copyright © 2024. All rights reserved.