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 Jan 06, 2025 5:32 pm

Hi there
I'm using Spire PDF Version 10.12.4.1360 with a purchased license. (C# Net7.0)
I don't have a XML license file, just the license key.
I have the same error as the one reported in "the-input-is-not-a-valid-base-64-string-t12401.html" forum older post. (Aug 07, 2023)

However :
a) Spire.License.LicenseProvider.SetLicenseKey does not work since there is no LicenseProvider class with the SpirePDF.dll
b) Spire.Pdf.License.LicenseProvider.SetLicenseKey("the_provided_license_key") does not return any error but saving a PdfDocument triggers the "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters." error.

Any idea ?

Thanks

lbouchard
 
Posts: 2
Joined: Mon Jan 06, 2025 3:31 pm

Tue Jan 07, 2025 2:12 am

Hello,

Thank you for your inquiry. Based on the error message, I speculate that the key you used is incomplete. As shown in the attached screenshot, the parameter key value is the string value in the license file with key="". Please first confirm if you have applied the complete key string in the following code.
Code: Select all
Spire.Pdf.License.LicenseProvider.SetLicenseKey("the_provided_license_key")

If there are still issues, could you please provide your purchase information such as order number or license registration email for us reference? Thanks in advance.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1371
Joined: Wed Apr 25, 2018 3:20 am

Tue Jan 07, 2025 3:19 pm

Hi Lisa

It turned out that our IT guy forgot to provide me with the license XML file (I had only a key under the form of a GUID which I thought was the one to be used)).
And of course, using the XML license file works now.
Thanks for your help!

lbouchard
 
Posts: 2
Joined: Mon Jan 06, 2025 3:31 pm

Wed Jan 08, 2025 1:13 am

Hello,

I'm glad to hear that your issue has been resolved. If there are any other issues during the use of our product, please feel free to contact us.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1371
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF