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.

Sun Apr 14, 2024 10:22 pm

Hello,
I’m using the Spire.Presentation API to extract text from power point presentations and have been having issues extracted text from .pot formatted files.
I’ve being following the C#/VB.NET: Extract Text from PowerPoint Presentations tutorial and are managing to extract text from every other format.
As far as I can tell none of the shapes are showing up as IAutoShape and don’t get the text pulled out of them.
Is there any other sort of object I need to be looking for for .pot files?
I’ve attached one of my test files, and any help would be appreciated.

Thank you,
Zac

ZCliff92
 
Posts: 31
Joined: Thu Jan 20, 2022 1:58 am

Mon Apr 15, 2024 5:45 am

Hi,

Thanks for your inquiry.
I have created a console project with NetFrameWork 4.7.2 and the latest version of Spire.PPt 9.3.4 to test your PPT file, but I didn’t reproduce your issue, I can get the text from ppt, I put the screenshot of result TXT file below. Are you using the latest version to test? If not, please update and have a test.
1.png


Sincerely
Abel
E-iceblue support team
User avatar

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

Wed Apr 17, 2024 12:06 am

Hi Abel,

Sorry I accidentally sent you a .pptx file. I've tried uploading a .pot file but unfortunately even just a single slide .pot file is at least 5mb in size and too large to upload to these forums.

Can I ask that you convert that file that I have already sent you into a .pot file locally and run your extract text logic again to see if the issue still exists or not?

Please let me know once you have done this and what the results are.

Thank you,
Zac

ZCliff92
 
Posts: 31
Joined: Thu Jan 20, 2022 1:58 am

Wed Apr 17, 2024 2:58 am

Hi,

Thanks for your feedback.
I first convert your ppt file to pot file with office 2016, then extract the text from the pot file with the latest version of Spire.PPt 9.3.4, I can get a part of text but not complete text, as shown in the following screenshot:
444.png


Are you same with me? I have logged the issue into our bug track system with the ticket number SPIREPPT-2485. Once it is resolved, I’ll inform you in time.

Sincerely
Abel
E-iceblue support team
User avatar

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

Return to Spire.PDF