powerpoint

Using OLE to get text out of Powerpoint

笑着哭i 提交于 2019-12-12 09:41:31
问题 I am trying to use Win32::OLE to get a list of slides and their titles from the current presentation. So far I can get my $powerpoint = Win32::OLE->GetActiveObject('Powerpoint.Application') my $ap = $$powerpoint { ActivePresentation } ; my $slides = $$ap { slides } ; But $slides only has properties Application Count Parent Can anyone point me to take this futher. I realise an obvious answer is don't use Powerpoint. Corporate dictat and all that. 回答1: See also my answer to Automating a Job at

Writing image into pdf file in java

孤街醉人 提交于 2019-12-12 08:05:24
问题 I'm writing a code to convert Microsoft power-point(ppt) slides into images and to write the generated images into pdf file. Following code generates and writes the images into pdf file but the problem i'm facing is, when i write image into pdf file it's size is exceeding the pdf page size and i can view only 75% of the image rest is invisible. One more thing to notice here is, written images in pdf file look like zoomed or expanded. Take a look at the following snippet of code: for (int i =

Create a new slide in VBA for PowerPoint 2010 with custom layout using Master

戏子无情 提交于 2019-12-12 08:02:45
问题 I have the following VBA code to create a new PowerPoint slide: longSlideCount = ActivePresentation.Slides.Count With ActivePresentation.Slides Set slideObject = .Add(longSlideCount + 1, ppLayoutTitle) End With ...which inserts a new slide of type 'ppLayoutTitle', but I am wondering if it is possible to create a custom layout in the 'Slide Master View' and then insert that particular slide template into the presentation? Thanks in advance!!! 回答1: All your custom layouts can be accessed via

Read/Extract .ppt Document all text using c#

徘徊边缘 提交于 2019-12-12 06:38:32
问题 I want to extract all the text from the document .ppt file. I need some free library or some code to read/extract the .ppt document. The soultion should not dependent of Ms.Office. : dont want to use Microsoft Office Interop and IFilter 回答1: Hey take a look at the following library: Aspose.com https://github.com/asposeslides/Aspose_Slides_NET you can take a look at these also: http://www.codeproject.com/Articles/13391/Using-IFilter-in-C http://www.citeknet.com/Products/IFilters

PowerPoint / PHP - What tools allow for generating a data driven merged template (pptx) with embedded macros?

对着背影说爱祢 提交于 2019-12-12 06:13:13
问题 I want to generate a Powerpoint Chart with graphs that are dependent on dynamic data from PHP. I have tried OpenTBS but it does not recognize the template because it is a pptm (macro enabled) file. How do I go about dynamically specifying the data to merge with a template that contains complex graphs and macros like below? Embedded Excel Data Chart in PowerPoint slide Sample Color Subroutine in VBA Sub ColorByValue() 'Assume we have only one slide, at slide 1: Set sld = ActivePresentation

Change cell fill color based on font color

孤人 提交于 2019-12-12 06:02:06
问题 I need to move conditionally formatted data from Excel 2013 into pre-existing tables in PowerPoint 2013. The font colors and formatting will carry from Excel to PowerPoint, but the cell fill needs to be manually added. Is it possible to create a macro in PowerPoint that will search through each table's cell, find one of five specific font colors "(xxx,xxx,xxx)", then fill that cell with a specified color? I have tables in Excel that have conditional formatting colors with the following rules:

.PPT macro-enabled show path

我的未来我决定 提交于 2019-12-12 05:49:09
问题 I am trying to save a presentation as a macro-enabled show in PowerPoint, and I'm running into a problem when I do. This code that I'm using works great when I'm save as a macro-enabled presentation - but not as a macro-enabled show : Dim oPPTApp As PowerPoint.Application Dim oPPRFile As PowerPoint.Presentation Dim oPPTShape As PowerPoint.PlaceholderFormat Dim oPPTSlide As PowerPoint.Slide Set oPPTApp = CreateObject("PowerPoint.Application") oPPTApp.Visible = msoTrue 'opening an existing

Removing chart from PowerPoint slide with Apache POI

我的梦境 提交于 2019-12-12 05:12:35
问题 We're trying to remove a chart from a PowerPoint slide using Apache POI 3.16 but we're having difficulties. Our code performs the following steps: Open an existing PowerPoint document (a template document) Add and remove slides Update charts in existing slides This works fine. At some point, we need to remove a chart from a given slide. Here's our attempt: OPCPackage pkg = ppt.getPackage(); String chartRelationId = slide.getRelationId(chart); pkg.removeRelationship(chartRelationId); pkg

Python-pptx slide.shapes.add_picture() not recognizing image files

我的梦境 提交于 2019-12-12 04:55:12
问题 I am trying to add images to a PowerPoint slide using pptx. img_path = 'test.png' prs = Presentation() blank_slide_layout = prs.slide_layouts[6] slide = prs.slides.add_slide(blank_slide_layout) left = top = Inches(1) pic = slide.shapes.add_picture(img_path, left, top) Every time I run this (I have tried with several different images, some generated by matplotlib and some downloaded) I receive the following error from the .add_picture(): Continuum\Anaconda\lib\site-packages\pptx\parts\image

OpenXML- Set a slide layout for a slide in presentation

ぃ、小莉子 提交于 2019-12-12 04:49:08
问题 Here is the code i used to create the presentation. What i'm trying here is to create a slide and insert shapes into it and attach the slide into already created presentation. That works fine. My question is how i set the layout the of the inserted slide. what i mean slide layout here is slideLayoutpart.SlideLayout = new SlideLayout() { Type = SlideLayoutValues.VerticalTitleAndText }; I want to set this layout to my Slide. I had looked working with slidelayout HERE Slide slide = new Slide(new