first draft of phpwkhtmltox formula