Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Fri Jun 28, 2024 3:13 pm

Hi we were interested in testing out the AI features highlighted in this post https://www.e-iceblue.com/news/Spire.Pr ... 9.3.0.html

Are they available? In the version we have which is .netstandard 2.0 dll I can see Spire.PresentationAI class, however whenever I try to create a new instance i get an APIKey exception even tho I provided a valid license.

I tried also newer versions after 9.3.0 but I was not able to find that package anymore..

Is it removed or moved elsewhere?

Looking forward for directions

Thank you,
Andrea

andreacalvi
 
Posts: 23
Joined: Tue Jul 11, 2023 11:02 am

Mon Jul 01, 2024 10:17 am

Hi,

Thanks for your inquiry.
Are you using the latest version of Spire.Presentation 9.5.3 to test? I find that the Spire.Presentation.AI exist in Spire.Presentation 9.5.3 to test.
Regarding the license issue, the standard license does not support AI features. You will need an additional special license for the AI feature to use it. I have reached out to my superior and will provide you with an AI feature key. Once I receive the key, I will send it to you via email. Therefore, please provide me with your email address.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Tue Jul 02, 2024 8:35 am

Hi,

Thanks for your patiently wait.
I have sent the AI feature key to you via email. Please kindly check.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Tue Jul 02, 2024 11:13 am

Yes, it installed via nuget with the provided link but still can't see that namespace

For testing purpose i think i am good with spire for net standard 2.0 library.

I received the key via email, thanks for it! I will check it out

andreacalvi
 
Posts: 23
Joined: Tue Jul 11, 2023 11:02 am

Tue Jul 02, 2024 3:06 pm

Ok I tested out the features.
Can you send a couple of working examples for the Generate method? It seems like my "describe" skills are poor and I always get an exception when issuing different descriptions. I just want to see output samples.

thank you again!
Andrea

andreacalvi
 
Posts: 23
Joined: Tue Jul 11, 2023 11:02 am

Wed Jul 03, 2024 10:04 am

Hi,

Thank you for your feedback.
You can refer to the following code to use AI feature to generate a PowerPoint template with the specific subject (“Report on World Economic Situation in 2023”) and specific language (“English”).

Code: Select all
string key = "******************************";
            Spire.Presentation.License.LicenseProvider.SetAppKey(key);
            PresentationAI pptAI = new PresentationAI();
           
            Spire.Presentation.Presentation ppt = pptAI.Generate("Report on World Economic situation in 2023", "english", false);
            ppt.SaveToFile(@"../../../output/Generate.pptx", FileFormat.Pptx2013);



Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.Presentation