Generate a Pdf from a twig template

This example will output a Pdf in browser from a Twig Template source.

{%
	set settings = {
		filename: 'my-first-pdf.pdf',
		variables: {
			foo:'bar'
		}
	}
%}

{{ craft.enupalsnapshot.displayTemplate("pdf/examples/revenue", settings) }}