Ask Your Question
0

Can the output of Wkhtmltopdf be adjusted to fit the entire width of the page?

asked 2023-05-30 20:27:42 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-30 20:49:01 +0000

plato gravatar image

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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2023-05-30 20:27:42 +0000

Seen: 13 times

Last updated: May 30 '23