Auto page size based on content size
Author: kachkaevCreated Apr 10, 2014Updated Jan 2, 2023
LabelsHasPatch
It would be nice to be able to set something like --auto-size when calling wkhtmltopdf to generate a PDF with one page of a minimum possible size. This can be currently done using a workaround, and means to avoid such hack would be useful.
PDFs with sizes that depend on the content are widely used in latex documents. One can render an HTML page and then embed the resulting PDF as a figure.
Source: wkhtmltopdf/wkhtmltopdf