Php 使用wkhtmltopdf将html转换为pdf时,在单个页面中设置整个内容

Php 使用wkhtmltopdf将html转换为pdf时,在单个页面中设置整个内容,php,codeigniter,pdf-generation,wkhtmltopdf,snappy,Php,Codeigniter,Pdf Generation,Wkhtmltopdf,Snappy,如何在PHP中使用snappy wkhtmltopdf将html转换为pdf时在单个页面中设置整个内容。我只想根据内容增加页面长度,并将其设置为单个页面

如何在PHP中使用snappy wkhtmltopdf将html转换为pdf时在单个页面中设置整个内容。我只想根据内容增加页面长度,并将其设置为单个页面