Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [jspdf]

jsPDF is an open-source library written in JavaScript, used for generating PDF documents. Do not use with the [pdf.js] tag as that is a different library.

jspdf
0 votes
0 answers
29 views

html2pdf rendering partial DOM

I am using the html2pdf JS library to generate a PDF page with a title with a table. function generatePDF(form_id, user_id, title) { console.log('Ready'); var element = document.getElementById(...
ffabrice's user avatar
-1 votes
0 answers
19 views

Angular with jsPDF generates Pdf with sanitized description error when downloading the pdf

Whenever I download (from an email received) the generated pdf (generated by jsPDF) it has a sanitized description error that was detected by my antivirus. It says a low risk script was removed. Does ...
Guy Gallant's user avatar
1 vote
1 answer
44 views

jsPDF png and custom ttf broken when using output()

I'm currently working on my first jsPDF project, and it's going great, accept for one issue ... On the clientside, I'm generating a PDF which then gets sent to a local REST API. Saving the PDF locally,...
jam0's user avatar
  • 55
0 votes
0 answers
15 views

Using jsPDF in Blazor to download and generate PDF

I am facing some styling issue when I generate and download pdf using jsPDF in blazor. What I am doing is loading html string coming from DB into iframe then there are two buttons Print and Download ...
Mohamad Usman's user avatar
0 votes
0 answers
59 views

How to convert html view to pdf using jspdf npm library?

When i am using jspdf library to convert the html view to pdf its giving me below error. TypeError: Method Promise.prototype.then called on incompatible receiver #<WrappedPromise> at Promise....
Shagun Rai's user avatar
-2 votes
1 answer
52 views

JavaScript Uncaught ReferenceError: jsPDF is not defined at HTMLButtonElement.<anonymous> (id.php?userPhone=123:93:23)

I am trying to create a user ID card web page that displays user information which was received via the backend. I also have to add a button below the id card which allows users to download the ID ...
Unusual Catcher's user avatar
0 votes
0 answers
20 views

Problem with horizontalPageBreak with colspan column header

I have used jspdf and autotable library in my angular project for export to PDF. Here when colspan range is some little bit larger than horizontalPager not working in library. Where header is dynamic ...
vijay lathiya's user avatar
0 votes
0 answers
36 views

Html2canvas push text outside of con

I have a simple div with a paragraph in it. when the pdf is generated, the paragraph is pushed down outside the div I'm also using DaisyUI <div class="bg-blue-50"> <p class=&...
Ngalla Juke's user avatar
2 votes
0 answers
85 views

Download PDF Failing

The following urls set in the BrowserComponent uses JavaScript to converts HTML to a PDF which can be downloaded by clicking a button. This works in a web browser, but it doesn't download in Codename ...
Eric's user avatar
  • 475
0 votes
0 answers
51 views

PNG images getting cropped using jspdf and html2canvas library

When I click the download button to generate the PDF, everything is downloaded correctly except for PNG images, which are getting cropped. SVG images are downloaded as expected. I’m attaching a ...
Tanishq Agarwal's user avatar
1 vote
2 answers
39 views

Node.exe cannot find module jspdf even after install

I am trying to run a stand-alone TypeScript script using Node.exe (v14.18.1 on Windows). The script starts by requiring jspdf and jspdf-autotable: const { jsPDF } = require("jspdf"); ...
Eduardo Álvarez's user avatar
0 votes
0 answers
48 views

jsPDF doesn't render the whole div i'm trying to export

I have a big scrollable table in the content body and i'm trying to save it as PDF table this is the code i'm using to save the pdf (i use this in other parts of the code for single page exports and ...
Emanuele Carluccio's user avatar
0 votes
0 answers
46 views

A div with sub-divs by z-order(main.css) containing layers of images and text should be saved as new jsPDF()

I tried this: <html> ... <link rel="stylesheet" type="text/css" href="main.css"> <script src="Connections/jspdf.min.js"></script> ... &...
HWKWvL's user avatar
  • 15
0 votes
1 answer
135 views

Seeking a solution to convert HTML code to a PDF

My tool code convert content to image I am trying to convert HTML and CSS to a PDF file using JavaScript, but my current implementation with html2pdf converts the content to an image, which makes the ...
Nguyễn Sơn's user avatar
0 votes
0 answers
14 views

JSPDF multiplies the margin established on each page

JSPDF multiplies the margin established on each page, for example if I put 40 at the top, then on each page it increases 40 more. my code: y = ((doc.getNumberOfPages() - 1) * doc.internal.pageSize....
Tania's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
178