Most voted "jspdf" questions
Jspdf is an open source Javascript library used to generate PDF documents.
Learn more…40 questions
Sort by count of
-
13
votes1
answer967
viewsHow to adjust the top margin of PDF for the following problem in html2pdf.js?
This is the main reference The idea was that the image was behind, but the lib is a limited way to do it, and the text ended up being on top: Here is an example, see that although the image is…
-
7
votes2
answers10715
viewsSimplest way to generate a PDF of an HTML, client-side input
I am developing a didactic material in web language, and within it, there are some exercises where the user has to answer some questions, writing a brief dissertation within a Text Area. After…
-
3
votes1
answer209
viewsIs there any way to convert a text into an image without using pictureBox in vb6?
Introducing I have a DLL in VB6 that is generating an array of javascript commands that will be executed on an Asp page to generate a PDF dynamically. So far, so good! In this PDF I need to generate…
-
2
votes2
answers1737
viewsExporting HTML form to PDF with input field initialized by js does not appear in the PDF document
I have an HTML form where each input tag has its empty value attribute. This value attribute must be filled randomly by a javascript code. So far everything is OK. The problem is that when I use the…
-
2
votes1
answer1507
viewsUsing jsPDF, are there any templates ready?
I’m using the jsPDF to make a report from some user input data, however I am having many difficulties to make the report beautiful even more due to the fact that I do not know how to customize much…
-
2
votes1
answer4040
viewsjsPDF include css
How do I save this DIV, with css formatting, if it is easier to do with table, also can, because what I need is only show this DIV with value inside. It will be generated side by side. var doc = new…
-
2
votes1
answer116
viewsjspadf and canvas, does not screenshot the full modal
I have the following code on the page where I check the data with the modal (function($){ $.fn.createPdf = function(parametros) { var config = { 'fileName':'html-to-pdf' }; if (parametros){…
-
1
votes1
answer7022
viewsHow to use jsPDF addHTML?
I’ve been trying to use jsPDF for some time to create a pdf of a specific page in a project. However, all the examples I looked at that include this function (addHTML) do not work. In the developer…
-
1
votes0
answers280
viewsHow to open the jsPDF generated pdf in a new browser tab
can save by downloading through: doc.output('save', 'filename.pdf'); //Try to save PDF as a file (not works on ie before 10, and some mobile devices) doc.save('filename.pdf') and I’m trying to use:…
jspdfasked 6 years, 8 months ago Gabriel Becher 193 -
1
votes2
answers788
viewsJspdf error with Vuejs
I’m having a problem trying to use Jspdf with Vuejs. I picked up a tutorial on the internet (this one) which shows how to print all the contents of a div (for it was not succeeding. However, in the…
-
1
votes1
answer7958
viewsUsing jsPDF to generate PDF
I used jQuery and jsPDF to generate PDF of the content of a DIV, the code created: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script…
-
1
votes1
answer896
viewsPrint two or more pages using jsPDF
I’m generating my own html in PDF with JsPDF. My html is larger than an A4 sheet. To solve the problem I need to create paging in Jspdf. Code I have that only generates pdf with a page:…
-
1
votes1
answer338
viewsPDF generated goes blank with Jspdf
Body of html: <div id="content"> <div class="table-responsive" > <table class="table">'; while($row = mysqli_fetch_array($result)) { $output .= ' <div class="modal-body">…
-
0
votes0
answers267
viewsJSPDF create a pdf and attach to email
Hello I’m having trouble generating an email with an attachment. The attachment is a PDF file generated by the JSPDF library. First I started by generating the pdf and calling the php script through…
-
0
votes2
answers1720
viewsAdd Jspdf image
I have this script that generates a pdf of a div. Bad images that contain in div are not generated in the pdf, someone can help me? $('#downloadpdf').click(function() { var doc = new…
jspdfasked 7 years, 7 months ago Lucas Bicalleto 3 -
0
votes1
answer520
viewsJspdf problems with addHTML printing
I’m having trouble using the addHTML Jspdf, technically everything is working, but it does not print all the content that is in my div that I defined, it only prints what I can see on screen.…
-
0
votes1
answer159
viewsHow to generate a PDF from a registration folder and then attach the generated file and send it by email?
I need to generate a PDF at the end of filling out a form and then attach it and send it by email. I need a light because I have no idea which tools to use! I thank you for your attention.…
-
0
votes0
answers565
viewsJS PDF - Export with html Canvas
I am using Jspdf now with the method that it takes the screen print and then exports this print to pdf , but when generating the pdf I would like to leave more adjusted the screen. When I use…
-
0
votes2
answers326
viewsnodejs, jsPDF and Windows
I am unable to install jsPDF in my nodejs with npm. I have npm install node-jspdf to work with nodejs, but does not install because it gives problem when running the file install.sh. Even specifying…
-
0
votes1
answer522
viewsHow can I repeat the page header with jsPDF
I am printing a table with jsPDF + Autotable and I want the filter section of the page to be always printed in the header of each page. As the example below is only printed on 1 page...? function…
jspdfasked 6 years, 9 months ago user105333 -
0
votes1
answer182
viewsStretched layout Jspdf
I started using Jspdf, and while my page has little content, everything goes smoothly, but if it is large, the layout distorts, someone knows why? Follow the image and the code below let doc = new…
-
0
votes1
answer996
viewsTrouble Generating PDF with hidden content with jsPDF and html2canvas
I am trying to generate a PDF with js using html2canvas and jsPDF. When the content is being viewed, everything works 100%, but I need this content to be hidden. I’ve tried: - display: none; -…
-
0
votes0
answers147
viewsAdd Qrcode to PDF
I am generating a PDF with answers from a form using jspdf, the PDF generates correctly, but I was adding a Qrcode to be used as control and validation of them, but I can’t find anything about how…
-
0
votes1
answer182
viewsdoubts with jsPdf - column definition
I have the following json { "MedPaciente": [ { "ProdutoModel": { "LaboratorioModel": { "id_laboratorio": 7951, "nome": "BOEHRINGER INGELHEIM", "data_cad": "28/12/2017", "situacao": 1 },…
-
0
votes0
answers191
viewsPage loading error when exporting a PDF file using html2canvas and jsPdf
Good afternoon I am developing a system that creates one or more HTML templates and exports them to PDF for creating posters. It takes the html area for each poster, converts it to image with…
-
0
votes1
answer167
viewsHow to use the Javascript pdf.js library in Selenium with Java via the Javascriptexecutor clase
I found this library that does exactly what I need, extract the text from the PDF and turn into a String. http://git.macropus.org/2011/11/pdftotext/example/…
-
0
votes1
answer534
viewsHow do I export the values of a form to PDF with the jsPDF plugin?
I am working on a project that needs to turn a page HTML in an archive PDF. I’m using the plugin jsPDF. There are many examples of how to turn htmls into pdf, "but", all examples I’ve seen use only…
-
0
votes1
answer443
viewsJspdf not receiving content to generate pdf
I am trying to use jspdf based on the examples I have seen here. And I am having 2 basic problems if I use the code below: $('#download_pdf').click(function() { var doc = new jsPDF('portrait', 'pt',…
-
0
votes1
answer64
viewsAdd a new page and continue interaction
I am generating a PDF with jsPDF, but when it reaches a certain limit of for interaction, there is a need to add a new page so you can increase the values to the PDF. I’m able to add a new page, but…
-
0
votes1
answer251
viewsMulti-line jsPDF header
I need to generate pdf from a table, only my header has several lines and my code is overlapping those lines, follow picture: I need each tr to be in a different line, as it would be possible? var…
-
0
votes0
answers342
viewsjsPDF with colspan at the top of the table
i am trying to assemble a pdf based on the image below I can manage the pdf, but without the line with "Info" and "Contact". It is possible to generate the pdf in the same way as in the image?…
-
0
votes1
answer90
viewsCalculation of Javascript rows and columns for PDF
I need to understand this section of js code that is responsible for calculating the positioning of rows and columns, from a html table, to PDF.…
-
0
votes1
answer497
viewsJspdf and responsive canvas
I’m generating PDF with jspdf and do the screenshot with the canvas. The form which generates the PDF is very large and generates more than one page. Code: window.html2canvas = html2canvas; function…
-
0
votes0
answers250
viewsHow to remove this selection blue when generating the PDF?
I have a system that marks the text, creating a span with the notes, I’m using a lib to export PDF, but when it loads the DOM to export to PDF, it’s keeping this blue check mark, very strange. Have…
-
0
votes1
answer846
viewsUncaught (in Promise) error Error: Element is not Attached to a Document when trying to generate a PDF of an HTML page
I am trying to generate a PDF of a page made in HTML. This page has a chart created with Chart Js. I would like to click on the button to generate a PDF of the chart. However, clicking the Button…
-
-1
votes1
answer155
viewsHow to do Jspdf dynamic positioning
I’m using the plugin jsPDF to generate a PDF. In my created method, I receive an array, I go through it, I try to write and position dynamically in the PDF, but I have no idea how to do this.…
-
-1
votes1
answer721
viewsHow to pass data from a table to a PDF report using React and JSPDF?
Follows my code: exportar = () => { var doc = new jsPDF() var d = new Date(); var texto = "Generator PDF" var mes = d.getMonth() + 1; doc.setFont('times', 'bold') doc.setFontSize(14) doc.text(10,…
-
-1
votes1
answer140
viewsExtreme difficulty generating PDF with PHP or Javascript
Extreme difficulty generating PDF with PHP or Javascript I’m here at the attempt of generate PDF file for HTML. I made 3 attempts. The HTML and the CSS are the same to the 3 attempts. Try 1 ->…
-
-1
votes0
answers17
viewsPDF does not capture all html
I’d like a hint, I don’t know if anyone’s been there. I have a JS code, which generates pdf, but... when you download the pdf, it doesn’t take all the html, generates all the pages but only prints…
-
-1
votes2
answers1120
viewsI need to generate a pdf report from a div HTML
When mine is generated, the document appears as an image and not with text, as it should. How to solve this problem? <script type='text/javascript'> $(document).ready(function() {…