Product - Aspose.Total for Java LicensedTo - ********* EditionType - Enterprise SubscriptionExpiry - 20080113 LicenseVersion - 2.0 SerialNumber - Withholding for security reasons. If you specifically require this information please let us know, and we will be happy to provide it.
We have been working with Aspose.Cells (xls) and Aspose.PowerPoint (ppt) for a few months. The following calls work correctly:
File asposeLicenseFile = new File("Aspose.Total.Java.lic"); new com.aspose.slides.License().setLicense(new FileInputStream(asposeLicenseFile)); new com.aspose.cells.License().setLicense(new FileInputStream(asposeLicenseFile));
However, when we try to use the license for Aspose.Pdf (pdf) we get the following error:
File asposeLicenseFile = new File("Aspose.Total.Java.lic"); new com.aspose.pdf.License().setLicense(new FileInputStream(asposeLicenseFile));
Error:
java.lang.Exception: Cannot find black listed licenses resource or black list is invalid. Please report this error to Aspose.
Can you please tell me:
1. Do we have a valid license to use Aspose.Pdf ? 2. If we do not have a valid license, what is the cost for purchasing a license that will enable us to work with Aspose.Pdf ?
Please make sure you are using the latest version of Aspose.PDF for Java. We have fixed such issue before. If it still won’t work, please send your license and let us test it.
Thanks for your reply. The Jan 23 2007 Aspose.Pdf Java library resolved some of the the licensing issues.
We are using ANT for building and deploying our application files. We have a custom task (pdfProcessorTask) which is supposed to generate the necessary PDF files.
The licensing call fails when the pdfProcessorTask is executed. However, everything works file if the PDFProcessor class is run via the command prompt (i.e. java PDFProcessor) or via the Java task.
Here’s our test setup:
public class PDFProcessor { public PDFProcessor () {
}
public static void main (String args[]) throws Exception { (new PDFProcessor()).execute(); }
public void execute() throws BuildException { try { File asposeLicenseFile = new File(“Aspose.Total.Java.lic”); System.out.println("File: " + asposeLicenseFile.getName());
com.aspose.slides.License license = new com.aspose.slides.License(); license.setLicense(new FileInputStream(asposeLicenseFile)); System.out.println(“com.aspose.slides.License: Valid”);
com.aspose.cells.License license1 = new com.aspose.cells.License(); license1.setLicense(new FileInputStream(asposeLicenseFile)); System.out.println(“com.aspose.cells.License: Valid”);
Two developers tested this issue and no error is found. Are you sure you are using the latest version of Aspose.Pdf for Java? Can you please provide the code and let us check it?
Hope you are doing well today. I am pasting the Java code and the build.xml file contents below. If you do not have a copy of our License file, please let me know and I can email that to you as well.
To clarify, we are able execute the PDFProcessor class via the command line (i.e. java PDFProcessor). However when we define a custom task (see taskdef name="pdfProcessorTask" in build.xml) and then try to execute the custom task, that's when the licensing issue occurs.
Please let me know if you require any further information. Thanks for your help.
I test it again and I still can’t reproduce this error. Can you please download the Aspose.Pdf for java from our web site again and create a new project to test it?
I am unable to set the license. I am working on a windows application and one one screen I use the component. I put the file in the same folder as the screen. But it fails to find it. Please help.
The issue has been resolved. I wanted to post the resolution. When I changed the build action property of the license file to Embedded Resource in VS.NET 2005, it worked. I did not have to convert it into a stream.