public class ProductInfo
{
public static String COMPANY = "ICEsoft Technologies, Inc.";
public static String PRODUCT = "ICEpdf-pro";
public static String PRIMARY = "6";
public static String SECONDARY = "2";
public static String TERTIARY = "4";
public static String RELEASE_TYPE = "";
public static String BUILD_NO = "170";
public static String REVISION = "";
文档预览转换方案
文档转PDF
安装openoffice,可参照官网安装。
启动服务
java集成openoffice转换
PDF转图片
POM依赖
去除水印
public class ProductInfo { public static String COMPANY = "ICEsoft Technologies, Inc."; public static String PRODUCT = "ICEpdf-pro"; public static String PRIMARY = "6"; public static String SECONDARY = "2"; public static String TERTIARY = "4"; public static String RELEASE_TYPE = ""; public static String BUILD_NO = "170"; public static String REVISION = "";
public String toString() { StringBuilder localStringBuilder = new StringBuilder(); localStringBuilder.append("\n"); localStringBuilder.append(COMPANY); localStringBuilder.append("\n"); localStringBuilder.append(PRODUCT); localStringBuilder.append(" "); localStringBuilder.append(PRIMARY); localStringBuilder.append("."); localStringBuilder.append(SECONDARY); localStringBuilder.append("."); localStringBuilder.append(TERTIARY); localStringBuilder.append(" "); localStringBuilder.append(RELEASE_TYPE); localStringBuilder.append("\n"); localStringBuilder.append("Build number: "); localStringBuilder.append(BUILD_NO); localStringBuilder.append("\n"); localStringBuilder.append("Revision: "); localStringBuilder.append(REVISION); localStringBuilder.append("\n"); return localStringBuilder.toString(); }
public String getVersion() { StringBuilder localStringBuilder = new StringBuilder(); /localStringBuilder.append(PRIMARY); localStringBuilder.append("."); localStringBuilder.append(SECONDARY); localStringBuilder.append("."); localStringBuilder.append(TERTIARY); localStringBuilder.append(" "); localStringBuilder.append(RELEASE_TYPE);/ return localStringBuilder.toString(); }
public static void main(String[] paramArrayOfString) { ProductInfo localProductInfo = new ProductInfo(); System.out.println(localProductInfo.toString()); } }