I have a 30-day evaluation license for Java I got from you recently and I will soon buy it if I solve the next problem:
I have read these instructions:
https://docs.aspose.com/display/pdfjava/Aspose.Pdf+Java+%28Maven%29+for+Eclipse#Aspose.PdfJava(Maven)forEclipse-HowtoapplyAsposeLicense?
So I renamed the file from ‘Aspose.Pdf.lic’ to ‘Aspose.Pdf.Java.lic’ and I use this code:
License licensePdf = new License();
licensePdf.setLicense(“Aspose.Pdf.Java.lic”);
I have the renamed file ‘Apsoe.Pdf.Java.lic’ file in the folder ‘C:\Users\Vladimir.VASOVIC.m2\repository\com\aspose\aspose-pdf\18.12’
I also have it in the src/main/resources folder.
And this is my pom.xml file:
<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-pdf</artifactId> <version>18.12</version> </dependency> <repository> <id>snowtide-releases</id> <url>http://maven.snowtide.com/releases</url> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>AsposeJavaAPI</id> <name>Aspose Java API</name> <url>https://repository.aspose.com/repo/</url> </repository>
It works perfectly locally in Eclipse (when I run unit/integration tests), but when I deploy it on AWS lamba, I get this message:
Expeption message - class com.aspose.pdf.exceptions.PdfException: At most 4 elements (for any collection) can be viewed in evaluation mode.
Pleeeaseeee help!!!
This is so frustrating!!!