Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ -f /usr/bin/wkhtmltopdf ];
- then
- website=$(zenity --title "Enter your website address: " --entry --text="Ex: http://google.com " --width 300)
- name=$(zenity --title "Enter pdf name: " --entry --text="Ex: google \nUse no spaces" --width 300 )
- cd $HOME/Desktop
- wkhtmltopdf $website $name.pdf | zenity --title="Saving..." --progress --pulsate --auto-close --no-cancel --text="Saving your page to Desktop and coverting to pdf...\n $website" --width 350
- else
- echo | zenity --progress --title="The program not installed" --text=" Install using commandline:\n \n sudo apt-get install wkhtmltopdf" --width 300
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement