powerpoint

Find out page numbers of PDF, Docx, Doc, Ppt, Pptx files with PHP [closed]

早过忘川 提交于 2019-12-02 13:21:57
I want this functionality in my PHP application: When user upload a document (PDF, DOCX, DOC, PPT, PPTC extensions) then after uploading user get the total number of pages of document. But without using exec() function. Whiteflash It is possible to do some formats right in PHP. The DOCx and PPTx are easy: For Word files: function PageCount_DOCX($file) { $pageCount = 0; $zip = new ZipArchive(); if($zip->open($file) === true) { if(($index = $zip->locateName('docProps/app.xml')) !== false) { $data = $zip->getFromIndex($index); $zip->close(); $xml = new SimpleXMLElement($data); $pageCount = $xml-

Extracting an OLEObject (XML Document) from PowerPoint VBA

…衆ロ難τιáo~ 提交于 2019-12-02 13:16:26
I am developing an application in VBA. Userforms connect to a COM object that reads an SPSS Statistics SAV file or an SPSS Dimensions MDD file. Part of this application stores metadata in an XML document so that we can retrieve the metadata later and repopulate or update the graphics created from the userforms. This works fine as long as we rely on an XML file existing on a local drive - which is not a desirable solution. We would prefer to embed (not link) the XML in to the PPTM file, which I have been able to do (see attached). The problem is that I can't find a way to get VBA to extract the

Attach 3 images in single slide at specified positions using Apache POI XSLF

我怕爱的太早我们不能终老 提交于 2019-12-02 12:56:18
问题 I need to paste 3 pictures in single slide using Apache POI XSLF. However I could able to add only one picture in a slide. Also I could not find any ways to specify the size and orientation the picture should be. Tried the following code XMLSlideShow ppt = new XMLSlideShow(); XSLFSlide slide = ppt.createSlide(); XSLFGroupShape group1 = slide.createGroup(); byte buf[] = new byte[1024]; for (int i = 1; i <= 2; i++) { byte[] pictureData = IOUtils.toByteArray(new FileInputStream( "C:\\Users\

Apache POI XSLF Adding movie to the slide

北战南征 提交于 2019-12-02 10:09:06
I am using the Apache POI library to create powerpoint slides with Java. Our client is interested in embedded text, images and videos. No fancy stuff like charts etc. is needed for now. I understand that XSLF is still under development and not yet a mature product. I have achieved my target using Apache POI HSLF model but the only thing it is missing is that videos which are embedded doesn't show up any playback controls. After little researching I found that it is the pptx and ppt file standards which are making the things different. So now to solve this issue I am migrating from HSLF to XSLF

Disable PowerPoint features using C#

痴心易碎 提交于 2019-12-02 09:51:56
My scenario: I have a requirement in my project(C#).I need to give the user only reading capability for my powerpoint presentation opened thru my application.All other featues like cut,copy,paste,save,saveas,print,right click context menus should be disabled.How can i achieve this in powerpoint programatically using c#? can anyone extend their help? Just export each slide as a JPG or PNG and display those: Slide.Export . This would be for static slide views. If you want to retain animations, transitions, video/audio and navigation features for your PPT/PPTX, a PowerPoint-to-Flash converter is

VBA: Copy + Paste Selected Charts from Excel to Powerpoint

…衆ロ難τιáo~ 提交于 2019-12-02 08:41:19
问题 I am looking to copy and paste selected charts from Excel 2010 to Powerpoint 2010 as Microsoft Excel Chart Object formats into an active PPT slide. Ideally, I would like to be able to place these charts into specific positions on the active Powerpoint slide. I've scrounged the web but all if not most solutions are for all slides in a sheet to be pasted randomly on a PPT slide. I don't even have a code but if anyone can help, that would be awesome. Thanks! 回答1: Well, here's something: This is

Convert PPT into JPG/PNG on windows

血红的双手。 提交于 2019-12-02 07:43:12
I would like to convert a ppt presentation in a collection of images, one per each slide, programmatically in a windows environment. I tried to modify the following code that transform a ppt to a pdf(perfectly working) but I dind't succed. Can anyone help me? Thanks a lot. Option Explicit Sub WriteLine ( strLine ) WScript.Stdout.WriteLine strLine End Sub ' http://msdn.microsoft.com/en-us/library/office/aa432714(v=office.12).aspx Const msoFalse = 0 ' False. Const msoTrue = -1 ' True. ' http://msdn.microsoft.com/en-us/library/office/bb265636(v=office.12).aspx Const ppFixedFormatIntentScreen = 1

VBA: Copy + Paste Selected Charts from Excel to Powerpoint

亡梦爱人 提交于 2019-12-02 07:14:38
I am looking to copy and paste selected charts from Excel 2010 to Powerpoint 2010 as Microsoft Excel Chart Object formats into an active PPT slide. Ideally, I would like to be able to place these charts into specific positions on the active Powerpoint slide. I've scrounged the web but all if not most solutions are for all slides in a sheet to be pasted randomly on a PPT slide. I don't even have a code but if anyone can help, that would be awesome. Thanks! Well, here's something: This is a pptGenerator-class that I wrote some time back. In my scenario I wanted to right click specific charts in

Read From PowerPoint Table in Python?

我只是一个虾纸丫 提交于 2019-12-02 06:40:03
问题 I am using the python pptx module to automatically update values in a powerpoint file. I am able to extract all the text in the file using the code below: from pptx import Presentation prs = Presentation(path_to_presentation) # text_runs will be populated with a list of strings, # one for each text run in presentation text_runs = [] for slide in prs.slides: for shape in slide.shapes: if not shape.has_text_frame: continue for paragraph in shape.text_frame.paragraphs: for run in paragraph.runs:

Read From PowerPoint Table in Python?

↘锁芯ラ 提交于 2019-12-02 06:19:53
I am using the python pptx module to automatically update values in a powerpoint file. I am able to extract all the text in the file using the code below: from pptx import Presentation prs = Presentation(path_to_presentation) # text_runs will be populated with a list of strings, # one for each text run in presentation text_runs = [] for slide in prs.slides: for shape in slide.shapes: if not shape.has_text_frame: continue for paragraph in shape.text_frame.paragraphs: for run in paragraph.runs: text_runs.append(run.text) This code will extract all the text in a file but fails to extract text