Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Jul 01, 2024 2:17 pm

Hello.
In my procedure I call
LicenseProvider.setLicenseKey(Constant.SPIRE_PDF_LICENSE);
where Constant.SPIRE_PDF_LICENSE is the received license code.
After that I'll go to use your library.
When I'm in debug with source code everything works fine.
When I build my JAR with Maven and try it in test environment I see the evalutation warning on the generated PDF.

What I'm missing?

Thanks,
Mirko

mirko.golfieri
 
Posts: 7
Joined: Wed Jan 24, 2024 4:43 pm

Mon Jul 01, 2024 3:18 pm

Hello.
An important information.
This problem is not linked to debug/compile and I'm happy regards this.
This problem happens the second time I run the same procedure.
In the class constructor, I set the license code.
The first time the PDF arrives without any advise.
The second time it arrives with the advise " Evaluation Warning : The document was created with Spire.PDF for Java."

Let me know how to solve.
Thanks,
Mirko

mirko.golfieri
 
Posts: 7
Joined: Wed Jan 24, 2024 4:43 pm

Mon Jul 01, 2024 3:43 pm

Hello.
We have also tried to invoke loadLicense.
Nothing was changed.

Mirko

mirko.golfieri
 
Posts: 7
Joined: Wed Jan 24, 2024 4:43 pm

Tue Jul 02, 2024 2:48 am

Hello Mirko,

I apologize for the delayed response due to the time difference.
May I ask if your "Constant.SPIRE_PDF_LICENSE" is the value of the key inside the license file? It should be a long string of Base-64 characters. Additionally, please ensure that the setLicenseKey() method is placed at the entry point of your program, preferably as the first line within the main() method. It is crucial to apply the license before any new PdfDocument() is instantiated.
If you are still encountering watermarks, kindly send your license file to support@e-iceblue.com. We will conduct further investigation and testing. Thank you for your assistance.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 334
Joined: Mon Nov 07, 2022 8:10 am

Tue Jul 02, 2024 4:03 am

Hi,

I just noticed that you also raised this issue in your email. I will test the license key and the file you provided and reply to you via email again.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 334
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.PDF