Skip to content

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

Description

@Developer74
    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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions