(function () {
    'use strict';

    angular.module('dataProtection', [])
        .controller('DataProtectionFormController', ['$scope', function ($scope) {

            // controller logic goe here

        }]);

    $('#download-pdf').click(function (evt) {
        evt.preventDefault();

        var doc = new jsPDF();

        doc.fromHTML($('#document').get(0), 15, 15, {
            'width': 170,
            'elementHandlers': {
                '#editor': function (element, renderer) {
                    return true;
                }
            }
        });
        doc.save('document.pdf');
    });

})();

@@ -329,21 +329,19 @@
     
-doc.fromHTML(
+var html = 
 $('#
@@ -355,14 +355,437 @@
 t').
-get(0)
+html();%0A        var charmap = %5B%0A            %5B'%C8%99', 's'%5D,%0A            %5B'%C8%9B', 't'%5D,%0A            %5B'%C4%83', 'a'%5D,%0A            %5B'%C3%A2', 'a'%5D,%0A            %5B'%C3%AE', 'i'%5D,%0A            %5B'%C8%98', 'S'%5D,%0A            %5B'%C8%9A', 'T'%5D,%0A            %5B'%C4%82', 'A'%5D,%0A            %5B'%C3%82', 'A'%5D,%0A            %5B'%C3%8E', 'I'%5D%0A        %5D;%0A        charmap.forEach(function(pair) %7B%0A            html = html.replace(new RegExp(pair%5B0%5D, 'g'), pair%5B1%5D);%0A        %7D);%0A%0A        doc.fromHTML(html
 , 15

remove latin-2 characters