I'm currently working on a way to generate Powerpoint presentation from Excel file. So, I decided to use Python as there is python-pptx which allows to work on .pptx files.
I have to use a standard file on which I will add some shapes and texts but just whithin the first slide.
I've read python-pptx documentation but I didn't find a way to work on a defined slide (the first slide of my standard file). I found just a way to add a slide and work on it.
Can someone explain how to do it ?
If you don't understand my problem, tell me I will try to rephrase it.
Thanks
N.B : I'm French, on the web I didn't find a French documentation so I had to search English documentation. It's possible that I didn't understand something about my problem when I read it. Sorry, if you find it easily. I'm still working my English :D
Is this what you are looking for?
prs = Presentation('existing-prs-file.pptx')
first_slide = prs.slides[0]
# do something with the content of the slides
prs.save('new-file-name.pptx')
btw I have just copied it from the docs.
Related
I just want to do a quick project on my spare time :
I take a photo (with my webcam) of a page of a book with my finger pointing at a word on the page. Something like that:
I want to use opencv so I can isolate the word and translate it with OCR, etc ...
I cant' figure out exactly what to use in opencv to achieve this (I mean the "extraction" of the word in the complete photo), i read the tutorials but there is a lot of possibilities, so if someone can guide me by telling me what kind of functions do I need to use that would be kind :)
Thanks :)
So, for some quick background, one of my favorite musicians, Scandroid, put out a riddle that states "If you alter the extension of a new beginning, you can READ what others can only SEE." When you purchased the song from their label's website, you got a bonus picture. the picture was titled "Origins" (New beginning) so i had the idea to convert the .jpg file to a .txt and just see if there was a hidden message. Inside I found some unusual coding that my friend seems to think is in java language, and thinks it may be an audio file because there are some stream commands. unfortunately neither of us have the skill to separate this coding, nor do we know how to use it in the way it was intended. Below is a link to a google doc that contains the segments of the .txt file that seemed unusual to me. Please note, the segments were separated by quite some space inside the txt file. If you would like to take a look at the whole file feel free to give me your E-Mail and i will be glad to send it to you. Thanks in advance - Pat D.
https://docs.google.com/document/d/1nTTfxcrNZRtb9otybuG4VAhJRFlnAmfBnuTDE1o43UM/edit?usp=sharing
Its a pdf file. You should be able to open it with Adobe Acrobat Reader.
I was using notepad++ to create a report and its taking a quite a while for me to type and do so.
Well i had tried a software called typing assistant it was really good(except for the money part :D).
TO the Point :
is there any way tat i can link a dict(text file of words) and use notepad ++ as typing assistant please tell me if so i
can speed my report.
Cause i am a programmer too so i really like the keyword completion and stuff .But is there a way to use it for text ?
already tried Phrase Express -.-:
Takes long and its kinda for macro text and text completion don't work tat fast for me to tab and complete
if there's a question in the form like mine link me to tat :
i searched it and i didn't get it
Yes, you can set up your own custom auto-complete dictionaries in notepad++. You need to create an xml file with your language name and put it under the plugins/APIs directory in notepad++. Of course this assumes you know how to write xml. There's a formal description of how to implement this here.
I've never tried to create an auto-complete dictionary for plain text files, so I'm not sure if it's possible, but I have successfully created them for user-defined languages, which you could also do if you can't get it to work with text files.
I'm not sure if this question is really a duplicate, but here is a very similar one, which may help you in your research.
Trying to code a basic text editor to play around with Java's file objects and classes.
What I cannot seem to figure out is how to go about developing something like the 'nano' interface. Or 'vim' interface, for that matter.
File creation is not a problem, its editing on the fly, and post-creation editing, that has just got me.
Any ideas?
Edits: Similar questions on Stackoverflow that I found interesting:
1 Text editor theory
User CHARVA
You can get the output like below.
Check out this link http://www.pitman.co.za/projects/charva/index.html
I have a problem where I need a way to display a repeating series of "images" on a computer monitor. Specifically, given a series of text files, I'd like a way to display the contents of said files on a screen in a way much like a powerpoint would.
My current thoughts are to find some tool that will take in a text file of some format, and then output an image which contains the text from the file. Then I'd put it in a directory and have some Slideshow program continuously go between the images in that directory. It's a very hacky solution, obviously.
So, does anyone know of tools that would do such a thing? Or is there a better way to do this? I've looked into the library libgd2, but it doesn't seem to support text-wrapping for images, which is something I'd need.
Thanks!
MagicPoint is a tool for displaying presentations. Presentations are written in a simple plain text file format, much like HTML.
You could easily generate the MagicPoint file automatically and then run it and display the presentation. You can also generate HTML, PS oder PDF from the presentation and display that.
Are you looking for powerpoint equivalent for linux? Openoffice??
have you tried some magic scripting with TeX?
a chain like
tex file | dvi2ps | ps2jpg > output
and define some TeX-Macros?
Showoff's pretty cool. It uses Markdown-formatted slides to create a simple little Sinatra app that you run (with showoff serve), and then view in a browser.
Docutils. See http://docutils.sourceforge.net/docs/user/slide-shows.html
The text syntax is reStructuredText
another idea:
text2gif
To complement the suggestions given by others, if you were going to write a program to do this, it would probably be more efficient to just render the text to the screen directly, rather than converting it to images first. It could probably be done using a canvas or text box component in a full-screen window on whatever window manager you are using (e.g. KDE or Gnome).
I give presentations with Opera's #media projection CSS support. On http://talks.webconverger.com/ you can find a template and an example which you can load in Opera's full screen mode and start sliding through.
So besides writing in a familiar language HTML, it's dead easy to share the slides and even get your audience to look at the slides as you're going through them.
If you are looking for something more flashy, there are tools on the Web to generate animations and what not, and again you would simply use a full screen browser to play it back to your audience.