pdfmake-unicode
v0.0.1
Published
Support Unicode Characters in PDFmake library.
Readme
PDFMake Unicode
Support Unicode Characters in PDFmake library.
Getting Started
pdfmake is library for PDF printing in pure JavaScript.
By default pdfmake uses Roboto font, which does not support Unicode characters.
This package is an extension for adding unicode character support. It comes with a Arial GEO font, which has 4 styles: Regular, Bold, Italic and Bold Italic.
Installation
Install with NPM:
$ npm install pdfmake-unicode --saveInstall with Yarn:
$ yarn add pdfmake-unicodeInstall with Bower:
$ bower install pdfmake-unicode --saveUsage
Note: You don't need to include
vfs_fonts.jsfile from pdfmake library.
<script src="pdfmake.min.js"></script>
<script src="build/pdfmake-unicode.js"></script>
<script>
var docDefinition = { content: 'Your unicode text will go here.' };
pdfMake.createPdf(docDefinition).download('filename.pdf');
</script>
Licence
The PDFMake Unicode is open-sourced software licensed under the MIT license.
