Skip to content

bug in measure the width for px unit #3921

@mraminrzn

Description

@mraminrzn
    const doc = new jsPDF({
      unit: 'px',
      format: 'a4', // ensures proper A4 size
    }); 
    const pageWidth2 = doc.internal.pageSize.width;
  console.log(doc.internal.pageSize.height , doc.internal.pageSize.width);

the res is 631.4175 446.46

also i test other unit they are work as well

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