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

@Developer74

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions