Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi, I have another issue of how can we add custom pagesize and also add headers and footer to every page #55

Open
Developer74 opened this issue Dec 24, 2022 · 0 comments

Comments

@Developer74
Copy link

    It appears that the global settings don't have `zoom` as a setting property. Try using `HtmlToPdfObject#zoomFactor` instead, like so:
HtmlToPdf.create()
        .pageSize(PdfPageSize.A4)
        .object(HtmlToPdfObject.forHtml(html)
                        .zoomFactor(10))
        .convert(destination);

Let me know if this works out for you.

Originally posted by @benbarkay in #17 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant