JazzCore / python-pdfkit

Wkhtmltopdf python wrapper to convert html to pdf
MIT License
1.99k stars 329 forks source link

Feature Idea: Add a list or dictionary with valid 'page-size' values #234

Open micahcochran opened 2 years ago

micahcochran commented 2 years ago

It might be nice to have a list or dictionary with valid values for the 'page-size'. Such a dictionary could have measurements or a description of the page size measurements.

This data structure could be derived from pageSizeMap() function in https://github.com/wkhtmltopdf/wkhtmltopdf/blob/master/src/lib/pdfsettings.cc