Good afternoon! I can’t understand the reason for the error in my code: ’
JVMNotFoundException: No JVM shared library file (libjli.dylib) found. Try setting up the JAVA_HOME environment variable properly.’
import jpype
import asposecells
jpype.startJVM()
from asposecells.api import *
# Load Excel file
workbook = Workbook("Акт_МПурга_без допэкономии_'+ str(actual_month).lower() +'.xlsm")
# Create and set PDF options
# pdfOptions = PdfSaveOptions()
# pdfOptions.setCompliance(PdfCompliance.PDF_A_1_B)
# # Convert Excel to PDF
# workbook.save("xlsx-to-pdf.pdf", pdfOptions)
# Convert Excel to PDF
workbook.save("xlsx-to-pdf.pdf", SaveFormat.PDF)
Good afternoon! The code works . Thanks! The only unpleasant thing is the inscription
‘Evaluation Only. Created with Aspose.Cells for Python via Java.Copyright 2003 - 2022 Aspose Pty Ltd.’
Need to buy the paid version?
Yes the evaluation watermark would be always added if you don’t use a valid license and set it in code at the start before processing any other code. You may purchase the license or request for a free 30 days temporary license.
1 Like
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.