[plugin] jsPDF

Post your work in progress addons and get feedback

Post » Thu Jun 04, 2015 9:26 pm

It's frustrating when addons go missing, especially if you have projects that rely on them...
@jabedbd @mengberg here
B
11
S
2
G
1
Posts: 202
Reputation: 1,580

Post » Mon Jun 08, 2015 5:39 pm

That was really sweet of you! Thanks a bunch!
B
3
Posts: 3
Reputation: 189

Post » Thu Jul 30, 2015 8:53 pm

@JohnnySheffield Did you get a chance to try PhoneGap compatibility? I tried to use it today and in the exported app it doesn't seem to work (I don't know if it doesn't create the pdf or if it just doesn't download it).
Thank you for your answer!
B
3
Posts: 3
Reputation: 179

Post » Thu Oct 06, 2016 4:21 pm

Hi. First of all sorry for my english.
Im doing some tests with this plug in and works fine but i can´t place to the PDF an image that is on a local file.
Im exporting the project using NWjs. On the jsPDF Add image i wrote this image url "NWjs.AppFolder&"/hojas/imagen.jpg" but nothing happens. The only way i can put an image in to the PDF file is using SnapShot as it was described on the capx example file. Can you please tell me the right way to place an external imagen into the PDF file?
B
5
S
2
Posts: 12
Reputation: 499

Post » Tue Jan 17, 2017 3:16 pm

Somebody knows how to solve this space bug ?

Only copy the code below, paste and save as .html and download the jspdf used plugins.

Thanks !!!

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

<script src='require.js'></script>

<script src="jspdf.js"></script>

<script src="context2d.js"></script>
<script src="html2canvas.js"></script>
<script src="canvas.js"></script>
<script src="standard_fonts_metrics.js"></script>

<script src="html2pdf.js"></script>

<script>

function goPDF()
{
require ( ['./js/jspdf/html2pdf'], function()
{

var obj = document.getElementById("div_pdf");

var html = obj.innerHTML;

var params =
{
orientation : 'p',
unit : 'pt',
format : 'a4'
};

var pdf = new jsPDF(params, '', '');

html2pdf ( html, pdf, function()
{
pdf.output('dataurlnewwindow');
}); // html2pdf

}); // require './js/jspdf/html2pdf'

} // goPDF()

</script>

</HEAD>

<BODY>

<a href="javascript:goPDF()">Generate PDF</a>

<div><span style="font-family:courier;font-size:8pt">04.234-72</span></div>

<div id="div_pdf" style="visibility:hidden">

<div><span style="font-family:courier;font-size:8pt">04.234-72</span></div>

</div> <!-- div id="div_pdf" -->

</BODY>
</HTML>
B
2
Posts: 1
Reputation: 152

Post » Fri Apr 21, 2017 9:57 pm

Could someone please re upload this plugin, please?
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Sun Apr 30, 2017 10:50 pm

bump
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Sat May 27, 2017 1:52 am

It seems the plugin link is broken - I get a connection timeout error.
Is it possible for you to fix the link? That would be great
B
36
S
20
G
6
Posts: 1
Reputation: 5,952

Post » Sun Jun 11, 2017 9:41 pm

Hei guys, I found this pulgin in one of my old hard disk, and I was so sad when I didn't find it. Now here https://drive.google.com/open?id=0B-cnmV9sFKDrWHA3a2RxUWttR2c you can get the plugin :D bye bye.
B
3
Posts: 1
Reputation: 177

Previous

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 2 guests