powerpoint

Center-align text with Python-pptx

房东的猫 提交于 2019-12-06 01:44:04
Question in short: Is it possible to align text to the center in Python-pptx? Since I'm using Python-pptx, I have been able to automate quite a lot of things and I really enjoy using it! However, I've run into a problem. I'm trying to center my text horizontally on a slide. If you don't understand me: My text is now aligned to the left, similar to the text in the first two paragraphs. However, I'd like them to be aligned to the center, like those last two paragraphs. This is a snippet of my code: left = Cm(3) top = Cm(2.5) width = Cm(15) height = Cm(1) txBox = slide.shapes.add_textbox(left,

How to programmatically create a powerpoint from a list of images

懵懂的女人 提交于 2019-12-06 01:37:09
问题 I've seen this question: Creating PowerPoint presentations programmatically, but that question asks "Can you?" to which the answer is "yes". But I'm asking "How?" and specifically "From a list of images?" Here's what I do to break a ppt up into images var app = new PowerPoint.Application(); var pres = app.Presentations; var file = pres.Open(input, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse); file.SaveAs(output, Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType

Adding shapes to Powerpoint slide using XSLF (Apache POI Project)

一笑奈何 提交于 2019-12-06 00:12:12
The apache POI project explains how to read a shape from a powerpoint slide http://poi.apache.org/slideshow/xslf-cookbook.html#GetShapes However, I can't find any doc on how to add a shape to a powerpoint slide using this part of the library. If I use an old powerpoint format (ppt as opposed to pptx), I can just use the hslf part of the libaray and do: SlideShow ppt = new SlideShow(); //add first slide Slide s1 = ppt.createSlide(); // create shapes./ java.awt.geom.GeneralPath path = new java.awt.geom.GeneralPath(); path.moveTo(100, 100); path.lineTo(200, 100); path.curveTo(50, 45, 134, 22, 78,

How to programatically re-enable documents in the MS Office list of disabled files

£可爱£侵袭症+ 提交于 2019-12-05 22:11:06
MS Office programs keep a list of disabled files that have caused errors when previously opened. A user can remove documents from this list by accessing the list through the program menu and selecting a document to be re-enabled. ( http://support.microsoft.com/kb/286017 ) The question is: How can this re-enabling of documents be accomplished programmatically, without interaction with the gui? Consolidating previous answers and expounding upon them here. Office products store disabled items in the registry under keys named HKEY_CURRENT_USER\Software\Microsoft\Office\<version>\<product>

PowerPoint command like insert slide or apply theme equivalent on Office javascript API

为君一笑 提交于 2019-12-05 18:49:36
I'm developing a PowerPoint add-in and in future, it will be publish in Office Store. But it is VSTO project (C# and winforms) which could not be publish. Based on my search, it must be Office Web Add-in project (manifest xml and web pages). I'm trying to convert my development from VSTO to Office Web Add-in but some of functionalities like open presentation, insert slide and apply theme aren't found on the Office.js. Is there equivalent functions in Office.js? or other way? Hopefully someone share their ideas about it. Thanks in Advance. This is currently no way to execute these actions

How to make a progress bar in powerpoint vba?

坚强是说给别人听的谎言 提交于 2019-12-05 12:27:41
How can I make a progress bar with PowerPoint VBA? It should be done as an animation on a slide. Is this what you're looking for? http://www.pptfaq.com/FAQ00597.htm This one will put the bar at the top and prevent it from appearing on the first slide (unlike the pptfaq script): http://www.faronics.com/news/blog/how-to-add-a-progress-bar-to-powerpoint/ In Power Point, go to Tools > Macro > Visual Basic Editor. In Office 2010 you might need to activate the Developer tab in order to get to the editor. The Mac version will take you there through Developer tab > Editor. Once you are in the editor,

Save PowerPoint 2007 as PowerPoint 2003 using Open Office SDK 2.0

懵懂的女人 提交于 2019-12-05 09:26:46
Is there anyway to use the Open Office SDK 2.0 to save a PowerPoint presention that you created using OOXML to a PowerPoint 2003 presentation? I know if you open a 2007 file and click Save As you have the option to save it as a PowerPoint 97 to 2003 document and I didn't know if I could do this grammatically using this SDK. The reason I am asking this question is because I need to give the user the option to save data on a website in either Office 2007 or 2003 format. I much rather just use the same code to produce the document instead of having to have two code paths for PowerPoint 2003 and

How to export movie from Powerpoint 2010?

◇◆丶佛笑我妖孽 提交于 2019-12-05 08:06:42
How to export embedded video from powerpoint 2010 to external file programmatically using MS Office PIA (Primary Interop Assemblies) or other ways? Embedding video in presentation is a new feature in Powerpoint 2010 and I Can't find solution for this. PPTX files are just compressed archives. The embedded video should be stored within it somewhere, possibly under the media folder but I'm not sure. You can use something like DotNetZip to extract the media and save to where you like. Note this means you don't need to use PIAs at all which is preferable if you're doing this on a server for

How to programmatically read and change slide notes in PowerPoint

旧街凉风 提交于 2019-12-05 05:36:18
How do you get the Notes text from the current PowerPoint slide using C#? I believe this might be what you are looking for: string s = slide.NotesPage.Shapes[2].TextFrame.TextRange.Text slide.NotesPage.Shapes[2].TextFrame.TextRange.Text = "Hello World" Here is my code that I use for getting the slide notes. Still developing it, but seems to do the trick for the time being. Even in my simple test PPT the slide notes are not always the [2] element in the shapes array, so it is important to check. private string GetNotes(Slide slide) { if (slide.HasNotesPage == MsoTriState.msoFalse) return string

What algorithm does Microsoft Office 2010 use for encryption?

限于喜欢 提交于 2019-12-05 05:12:40
Does it use the standard AES 128bit key for encryption? I've searched a lot on Google, but I still haven't found the algorithm is uses for encrypting. I'm encrypting a PowerPoint file. This technet article confirms that the defaults are AES 128-bit key, SHA1, CBC. Although there are Office 2010 settings to change how encryption is performed, when you encrypt Open XML Format files (.docx, .xslx, .pptx, and so on) the default values — AES (Advanced Encryption Standard), 128-bit key length, SHA1, and CBC (cipher block chaining) — provide strong encryption and should be fine for most organizations