Skip to content

jsPDF - Stange spaces bug only on "Input fields" #2777

Open
@kodditcom

Description

@kodditcom

So I'm exporting a page using jsPDF, I get blank spaces and huge spaces between letters on input element values, however the other elements (div, span etc.) are exported just fine.

How can I overcome this problem?

https://ibb.co/kg8jB8K

Activity

HackbrettXXX

HackbrettXXX commented on Jun 18, 2020

@HackbrettXXX
Collaborator

which version of jsPDF do you use? Is this still an issue when you use the jsPDF files that are currently in the dist folder of this repo?

kodditcom

kodditcom commented on Jun 18, 2020

@kodditcom
Author

Hi, I'm encountering with error while using 2.1.1 in this repo.
When I try to export PDF in Safari while using iPad I get this error, works OK in Chrome in Desktop though.

cwalsh7

cwalsh7 commented on Jun 30, 2020

@cwalsh7

I'm experiencing this same issue. Here is my output:
Screen Shot 2020-06-30 at 1 25 31 PM

The output looks fine in Chrome and Firefox

ryahpalma

ryahpalma commented on May 20, 2023

@ryahpalma

Font issue, just set your content for a system font, i was using TailwindCSS and defined font-['Arial'] and worked.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kodditcom@HackbrettXXX@ryahpalma@cwalsh7

        Issue actions

          jsPDF - Stange spaces bug only on "Input fields" · Issue #2777 · parallax/jsPDF