#!/usr/bin/perl use strict; use warnings; use diagnostics; use utf8; $source = "/root/source.html"; $destination = "/root/test.pdf"; system("xvfb-run --server-args='-screen 0, 1024x768x24' wkhtmltopdf $source $destination");