Skip to content

Instantly share code, notes, and snippets.

@mr-islam
Created May 10, 2018 18:54
Show Gist options
  • Save mr-islam/67de74c60adb9d10057d9b83d19b5563 to your computer and use it in GitHub Desktop.
Save mr-islam/67de74c60adb9d10057d9b83d19b5563 to your computer and use it in GitHub Desktop.
splits pdf of Qurān to jpegs — will be used in upcoming project
import os
x = 0
while x < 604:
print (str(x)+'doing')
os.system("convert -density 150 ar_Mushaf_AlMadinah_new_TruePDF.pdf["+str(x)+"] -verbose output/"+str(x)+".png")
x += 1
print ('alhamduliLlah')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment