[FreeBSD] add crossplatform script & pkg_base
[dotfiles_afify.git] / .scripts / convert_html_pdf.sh
bloba5c6aa1d094b7787b7f6cd9127ca89a4d8c26df9
1 #!/usr/bin/env bash
3 #==============================================================================
4 # Name : convert_html_pdf
5 # GitHub : HassanAfify
6 # Copyright : MIT
7 # Version : 0.1
8 # Description :
9 #==============================================================================
11 html_file=$1
12 output_pdf=$html_file.pdf
13 page_size='A4'
15 wkhtmltopdf -s $page_size $html_file $output_pdf