Hi,
We are using third party library(io.woo.htmltopdf) library to generate PDF out of AEM web page which works fine in localhost publish instance(on windows machine) but in QA or Pre-Prod environments which are on linux box, we see below error
java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: Unable to load library '/tmp/io.woo.htmltopdf/wkhtmltox/0.12.5/libwkhtmltox.so': Native library (tmp/io.woo.htmltopdf/wkhtmltox/0.12.5/libwkhtmltox.so) not found in resource path (crx-quickstart/app/cq-quickstart-6.5.0-standalone-quickstart.jar)
Can anyone let us know how this issue can be fixed?
We have added below dependencies to the maven project
<dependency>
<groupId>io.woo</groupId>
<artifactId>htmltopdf</artifactId>
<version>1.0.8</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.5.2</version>
</dependency>
Solved! Go to Solution.
Views
Replies
Total Likes
Could you pls confirm if you are using the same java version on local and other environments?
try to use the same java version in ur local and see
Check the below link and try adding the native dependencies.
https://github.com/wooio/htmltopdf-java/blob/master/README.md#troubleshooting
Hope this will resolve your issue.
AG
Views
Replies
Total Likes
Views
Replies
Total Likes
@Anudeep_Garnepudi, i have already added them in core pom.xml as below for the two dependencies which we have included
Include-Resource: htmltopdf-1.0.8.jar,jna-4.5.2.jar
Bundle-ClassPath: ., htmltopdf-1.0.8.jar,jna-4.5.2.jar
In a similar way, we need to add for the below native libraries?
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @srikanthp689160,
We are facing this similar issue in AEM as Cloud Service.
Did you find any way to add the native libraries in AEM, can you suggest any solution which you followed for resolving this, or help with any other approach you followed for converting HTML to PDF.
@Ankur_Khare Can you please reshare the link you added as an answer below (404 - File or directory not found. (iditect.com)), since that is not opening now.
Views
Replies
Total Likes
Refer this link and accordingly use with respect to ur requirement:
Views
Replies
Total Likes
Views
Replies
Total Likes
Could you pls confirm if you are using the same java version on local and other environments?
try to use the same java version in ur local and see
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies