Skip to content

the html method expands/zooms #2632

@kamranmuazzam

Description

@kamranmuazzam

I noticed that while using the pdf.html() method, the scale factor by which the html is drawn to the pdf is related with the zoom aka scaleFactor of the browser window.

Steps to reproduce: create any pdf document that uses the .html() method, then output various pdfs using different zoom values, for example, 100%, 150%, 200%. The higher the zoom value the bigger the content of html is.

I have checked it several times, and at times the contents get so much bigger that they go out of the page.

I believe that the problem is with html2canvas but should be possible to solve with some look into fixing the aspect ratio of the window.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions