Yes, the output of Wkhtmltopdf can be adjusted to fit the entire width of the page using the --zoom
option. For example, you can use the following command to adjust the zoom level to fit the content to the width of the page:
wkhtmltopdf --zoom 1.0 input.html output.pdf
You can adjust the zoom factor as needed to achieve the desired output.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-30 20:27:42 +0000
Seen: 13 times
Last updated: May 30 '23
How does the page alignment get disrupted when the zoom is out?
How to ensure a page break when creating Velocity HTML resumes?
How can I prevent the LeafletJS page from jumping when a layer is clicked?
What is the method to remove a particular page from the directory layout of a NextJS 13 application?
What is the reason that my controller is providing an HTML page instead of JSON?
What causes elements to move on the page during page loading through transitions?
What does the HTTP 404 error message mean?
Is it impossible to navigate to a specific page in AppSync List Query Pagination?