Commit c591c6c5 authored by Rachel Wil Sha Singh's avatar Rachel Wil Sha Singh 💬
Browse files

Backup - going to reinstall Linux

parent 46a997b5
#!/usr/bin/python
import os, sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
if ( len( sys.argv ) < 2 ):
print( "Please specify the PDF file to convert." )
sys.exit()
filename = sys.argv[1]
if ( ".pdf" in filename ):
# convert to png
print( filename )
directory = filename + "_slides"
os.system( "mkdir " + directory )
os.system( "convert -verbose -density 150 " + filename + " " + directory + "/slide.png" )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment