[plugin] jsPDF

0 favourites
From the Asset Store
I18N - Translation plugin
$7.20 USD
10% off
The I18N (Translation) is a Construct plugin created to translate text in game.
  • It's frustrating when addons go missing, especially if you have projects that rely on them...

    jabedbd here

  • That was really sweet of you! Thanks a bunch!

  • 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!

  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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>

  • Could someone please re upload this plugin, please?

  • bump

  • 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

  • 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 bye bye.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)