Hi Team,
Couple of days back my organisation renew the totals license. and they have provided me the lic file. I have replaced the old license after that observed that one extra file is getting generated for PDF saying that Evaluation version. For excel generation it was i didn’t find evaluation version sheet in workbook. Also i am not sure which aspose cells and pdf gradle versions to be used with the latest license. Can you please help asap.
@koteswaragunda
Can you please provide the specific Aspose products you are using and the versions of Aspose.Cells and Aspose.PDF you are currently working with?
I am using,
Aspose.cells, Aspose.pdf, Aspose.words and Aspose.slides
What i did was, I just replaced the license file and i didn’t changed any versions in the gradle build file. And the gradle version are,
gradle version 18.5 for cells and pdf
gradle version 16.6.0 for words
gradle version 16.7.0 for slides
And one more thing is i am generating PDF using Excel to Pdf conversion mechanism in aspose.cells
@koteswaragunda,
Please note that newer licenses are signed with SHA256, while older ones were signed with SHA1. You cannot use a SHA256 license with older versions of the API (e.g., Aspose.Cells v18.5 in your case). You may use your older license to work with older versions of Aspose.Cells for Java and use your new license to work with newer versions. This will always work.
For version 18.5 of Aspose.Cells for Java, it does not support the new license file (which is signed with SHA256) when you are using JDKs other than JDK1.6. However, you may request an updated (new) license for free (in the Aspose.Purchase section) that should be signed with SHA1 and will work for you with both older and newer versions of the API.
Let us know if we can be of any further help.
What if i update gradle version to 24.10? will newer license support?
@koteswaragunda,
Yes, off course it supports new license as newer licenses are signed with SHA256.
I did same, updated my gradle version to 24.10, but still getting evaluation version extra sheet for excel and extra file for pdf. Error log was saying, license file was not found like that message. is anything i am missing?
@koteswaragunda Please check the following points:
- Make sure your call to
SetLicense
gets executed. Step through in the debugger.
- Make sure your code does not catch an exception thrown by Aspose.Words licensing code. For example, Aspose.Words will throw if it cannot find the license.
- Make sure the input documents do not already have the evaluation message. Aspose.Words does not delete existing evaluation messages.
- Make sure
SetLicense
is executed before you instantiate any Document
object.
- Make sure the license is set for all Aspose produces used in your application.
@koteswaragunda,
This seems a java.io error which means Aspose.Cells could not find the license. Did you use license file as an embedded resource in your project? Could you please simply test the license by setting the file path (put license file at some folder on a physical drive) in code if you still find the issue?
Yeah. I will double check the code.
One question, What are the aspose-words and aspose-slides gradle supported version for latest license.
@koteswaragunda,
Unfortunately, I don’t understand your question. The gradle version is not related to Aspose licenses. Could you please clarify which versions of Aspose.Slides and Aspose.Words you are using?
When i was using older license, The gradle versions used for aspose-words and aspose-slides were 16.6.0
Now we renew license few days ago, so checking what are latest api gradle versions for aspose-words and aspose-slides
The most recent versions of Aspose.Words for Java and Aspose.Slides for Java are 24.10. Both libraries can be added to a Gradle project by including the appropriate dependency lines. The exact Gradle configuration can be found on their respective Maven pages or in the Aspose documentation.
Let us know if we can be of any further help.
@amjad.sahi below is the gradle configuration i am using, after gradle update, found cells and pdf jars but not found words and slides jars. is there anything wrong i am doing? please check
implementation group: 'com.aspose', name: 'aspose-cells', version: '24.10'
implementation group: 'com.aspose', name: 'aspose-pdf', version: '24.10'
implementation group: 'com.aspose', name: 'aspose-words', version: '24.10', classifier: 'jdk17'
implementation group: 'com.aspose', name: 'aspose-slides', version: '24.10', classifier: 'jdk17'
Hello Team, aspose-words and aspose-slides jar files are not getting downloaded. i am using the below gradle configuration. fyi, i have checked with both repos. please check and let me know to resolve this issue.
repositories {
mavenCentral()
//maven {
// url "https://releases.aspose.com/java/repo/"
//}
maven {
url "https://repository.aspose.com/repo/"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation group: 'com.aspose', name: 'aspose-cells', version: '24.10'
implementation group: 'com.aspose', name: 'aspose-pdf', version: '24.10'
implementation group: 'com.aspose', name: 'aspose-slides', version: '24.10', classifier: 'jdk17'
implementation group: 'com.aspose', name: 'aspose-words', version: '24.10', classifier: 'jdk17'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
@koteswaragunda,
As for Aspose.Slides, please try using classifier: 'jdk16'
in the dependencies as shown in Aspose.Slides | Java Library to Process PowerPoint Formats (Gradle tab).
now able to download jar files. thank you.
@koteswaragunda,
Thank you for using Aspose products.