You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to generate a PDF file for a self-published book. A common format is 6 inches by 9 inches. Is it possible to customise the paper size with sphinx-simplepdf?
The text was updated successfully, but these errors were encountered:
Haven't tested it, but as the PDF generation is based in weasyprint, which config is mostly done in CSS and which Sphinx-SimplePDF allows to manipulate, I would say yes :)
Just follow the docs from weasyrpint for page size and introduce the changes to Sphinx by using html_css_file in your conf.py. That should do the trick, maybe add an !important after your custom CSS attribute to overwrite the config from Sphinx-SimplePDF.
I would like to generate a PDF file for a self-published book. A common format is 6 inches by 9 inches. Is it possible to customise the paper size with sphinx-simplepdf?
The text was updated successfully, but these errors were encountered: