wiki.xsx.core.pdf.doc.XEasyPdfPrintStyle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of x-easypdf Show documentation
Show all versions of x-easypdf Show documentation
A framework based on pdfbox
package wiki.xsx.core.pdf.doc;
/**
* pdf打印形式
*
* @author xsx
* @date 2020/11/14
* @since 1.8
*
* Copyright (c) 2020-2022 xsx All Rights Reserved.
* x-easypdf 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.
*
*/
public enum XEasyPdfPrintStyle {
/**
* 横向
*/
LANDSCAPE(0),
/**
* 纵向
*/
PORTRAIT(1),
/**
* 反向横向
*/
REVERSE_LANDSCAPE(2);
/**
* 方向
*/
private final int orientation;
/**
* 有参构造
*
* @param orientation 方向
*/
XEasyPdfPrintStyle(int orientation) {
this.orientation = orientation;
}
/**
* 获取方向
*
* @return 返回方向
*/
public int getOrientation() {
return orientation;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy