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:
So I renamed the file from ‘Aspose.Pdf.lic’ to ‘Aspose.Pdf.Java.lic’ and I use this code:
License licensePdf = new License();
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.
This is so frustrating!!!