Commit c1708fd2 authored by Vadim Makeev's avatar Vadim Makeev

Print script for wkhtmltopdf

parent 8a43fcda
#!/bin/bash
file=$1
name=${file%.*}
echo 'Printing…'
wkhtmltopdf -T 0 -R 0 -B 0 -L 0 --page-width 1024px --page-height 640px --dpi 300 --print-media-type --quiet ${file} ${name}.pdf
echo 'Finished.'
# Usage example: sh print.sh index.html
\ No newline at end of file
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