Questions tagged as 'jspdf'

0
answers

Page load error when exporting a PDF file using html2canvas and jsPdf

Good afternoon I'm developing a system that creates one or more templates in HTML and exports them to PDF for the creation of posters. It takes the html area for each poster, converts it to the image with the html2canvas, and then adds it to...
asked by 18.05.2018 / 22:13
1
answer

How to use the JavaScript library pdf.js in Selenium with Java through the JavaScriptExecutor class

I found this library that does exactly what I need, extract the text from the PDF and transform it into a String. link link From what I researched (a lot), it seems to me that the version below is the most recent of pdf.js. However, I can...
asked by 12.04.2018 / 16:28
0
answers

problem at the time of generating pdf by jspdf, is generating only a part

I am having problems when generating pdf by jspdf , I am using the html of my view to generate pdf , however is blushing a part of pdf : JS: $scope.gerarPDF = function gerarPDF(){ var pdf = new jsPDF('p','pt','a4'); pdf.addH...
asked by 05.04.2018 / 21:03
0
answers

How to generate an image from the html2canvas from a view using angularjs

I need to generate an image of the page to insert it into a pdf file that I'm generating from the jspdf library, however the results I found are not working, or generate a pdf without css or generate only part of the page. JS $scope.g...
asked by 09.04.2018 / 13:56
0
answers

How to open the pdf generated by jsPDF in a new browser tab

I 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: doc.output('dataurlnewwindow'); //...
asked by 28.03.2018 / 19:20
0
answers

doubts with jsPdf

I have this function $scope.testepdf = function () { var doc = new jsPDF(); doc.setFontSize(12); doc.text(10, 10, $scope.cons_a.razao) doc.text(10, 15, $scope.cons_a.endereco + ',' + $scope.cons_a.nr...
asked by 05.02.2018 / 10:52
1
answer

Problems generating PDF with hidden content with jsPDF and html2canvas

I am trying to generate a PDF with js using html2canvas and jsPDF . When content is being viewed, everything works 100%, but I need that content to be hidden. Already tried: - display: none; - visibility: hidden; - Position...
asked by 03.11.2017 / 14:23
1
answer

JsPDF problems with print addHTML

I am having trouble using addHTML of JSPdf, technically everything is working, but it does not print all the content that is in my div that I set, it only prints what I can see on screen. Has anyone gone through this? let doc = n...
asked by 13.07.2017 / 17:25
2
answers

nodejs, jsPDF, and Windows

I'm not able to install jsPDF on my nodejs with npm. I ran npm install node-jspdf to work with nodejs, but it does not install because it gives trouble to run install.sh . Even specifying the package version gives problem. So I down...
asked by 09.07.2017 / 03:25
1
answer

Stretched Layout JsPdf

I started using JSPdf, and while my page has little content, everything happens smoothly, but if it is large, the layout distorts, does anyone know why? Follow the image and the code below let doc = new jsPDF('p','pt','a4'); let optio...
asked by 10.07.2017 / 14:58