Aspose购买全部功能后使用问题

您好:
我公司已经购买了aspose的全部功能的license文件,但是在转换的过程中,只有aspose.cells的功能正常,aspose.words和aspose.image,aspose.pdf的功能在使用过程中都会出现测试页面,也就是功能停留在试用版本。

@Menghai_Su

感谢您联系支持。

为了获得正确的或评估标签的免费输出,您需要为每个API(Aspose.Cells,Aspose.Imaging,Aspose.Pdf,Aspose.Words)设置许可证。而根据我的假设,您只是设置Aspose.Cells的许可证。

请通过为应用程序中的每个API设置许可证来尝试您的程序。如果您仍然遇到任何问题,请分享一些更多的细节,如应用程序类型,输入/输出文件和示例代码片段。

我们将在我们的环境中测试场景,并据此处理。


最好的祝愿,
Asad Ali

您好:
我已经在PDF转换、image转换、word转换的每一个方法中都设置Aspose.Total的许可证,但除了cells转换的pdf没有水印外,其他的仍有。
以下是注册lic文件的代码:
private void setLic() {
/c文件相对路径
String licPath = UtilURL.getDefaultXmlConfigUriString(“resource/Aspose.Total.Java.lic”);
System.out.println("___-------------------" + licPath);
License license = new License();
InputStream is = null;
try {
File file = new File(licPath);
System.out.println("==================================================" + file.getAbsolutePath());
is = new FileInputStream(new File(licPath));
} catch (FileNotFoundException e2) {
log.logError(“注册License出错!”);
e2.printStackTrace();
}
license.setLicense(is);
}
}

@Menghai_Su

感谢您分享代码段。

您的代码片段设置许可证似乎是正确的,它似乎只是为一个API设置许可证。如上所述,您需要为每个API分别设置许可证以使用其所有功能,而不受任何限制。

请检查以下代码段,其中显示了每个API的许可证设置。

com.aspose.pdf.License license = new com.aspose.pdf.License();
com.aspose.words.License wlicense = new com.aspose.words.License();
com.aspose.imaging.License ilicense = new com.aspose.imaging.License();
InputStream is = null;
try {
	File file = new File(dataDir + "Aspose.Total.Java.lic");
	System.out.println("==================================================" + file.getAbsolutePath());
	is = new FileInputStream(new File(dataDir + "Aspose.Total.Java.lic"));
	} catch (FileNotFoundException e2) {
		e2.printStackTrace();
}
try {
	license.setLicense(is);
	wlicense.setLicense(is);
	ilicense.setLicense(is);
	System.out.println("set");
	} catch (Exception e1) {
		// TODO Auto-generated catch block
		e1.printStackTrace();
}

请尝试以上述方式设置许可证,如果您仍然面临任何问题,请与您的示例输入/输出文件一起转换代码,以便我们可以在我们的环境中测试场景并将其解决因此。


最好的祝愿,
Asad Ali

您好:
看了您的代码,图片转pdf已经成功。但是word转pdf的时候仍出了这样的一个异常:The subscription included in this license allows free upgrades until 18 十月 2016, but this version of the product was released on 01 六月 2017. Please renew the subscription or use a previous version of the product. 这个错误的原因应该是lic文件和jar包的版本不吻合。 因为项目的需要,您能否给我发一份我们购买的的lic文件的最新版本和这个lic文件对应的jar包版本,邮箱:1556900466@qq.com。感谢!

@Menghai_Su

谢谢你的回信。

每个许可证文件的有效期为一年免费升级,许可证到期日期在 <SubscriptionExpiry> 20170825 </SubscriptionExpiry>标签中指定,其中2017年为08年为月,25为月。您可以升级到许可证订阅到期之前发布的任何/最新版本的API。然后请注意,许可证文件可以在您想要的时间内使用(除非您使用许可证到期之前发布的API版本)。

此外,如果您需要续订您的订阅,您可以参考我们网站的“Renewal Policies”页面,或者在“Aspose.Purchase”论坛中发布您的查询,相关人员会相应协助您。如有任何进一步协助,请随时与我们联系。


最好的祝福,
Asad Ali