Pdfmake – PDF printing in pure JavaScript
pdfmake.org
Pdfmake – PDF printing in pure JavaScript
1–10 of 49 posts
Re: Pdfmake – PDF printing in pure JavaScript
#2Re: Pdfmake – PDF printing in pure JavaScript
#3Re: Pdfmake – PDF printing in pure JavaScript
#4Just looked at the sample on the playground section of the website. No hyphenation, no ligatures, and overall the output looks ugly (compared to TeX). What is the advantage over simply creating an appropriate LaTeX/ConTeXt document in the background and serving that?
Re: Pdfmake – PDF printing in pure JavaScript
#5Mozilla's PDF.js https://mozilla.github.io/pdf.js/
or
Parallax's jsPDF https://parall.ax/products/jspdf
Re: Pdfmake – PDF printing in pure JavaScript
#6How does it compare to Mozilla's PDF.js https://mozilla.github.io/pdf.js/ or Parallax's jsPDF https://parall.ax/products/jspdf
jsPDF prints using:
var doc = new jsPDF();
doc.setFontSize(40);
doc.text(35, 25, "Paranyan loves jsPDF");
doc.addImage(imgData, 'JPEG', 15, 40, 180, 160);
Pdfmake on the other hand: var dd = {
content: [
'First paragraph',
'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines'
]
}Re: Pdfmake – PDF printing in pure JavaScript
#7How does it compare to Mozilla's PDF.js https://mozilla.github.io/pdf.js/ or Parallax's jsPDF https://parall.ax/products/jspdf
PDF.js is a Portable Document Format (PDF) viewer . jsPDF prints using: var doc = new jsPDF(); doc.setFontSize(40); doc.text(35, 25, "Paranyan loves jsPDF"); doc.addImage(imgData, 'JPEG', 15, 40, 180, 160); Pdfmake on the other hand: var dd = { content: [ 'First paragraph', 'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines' ] }
Re: Pdfmake – PDF printing in pure JavaScript
#8Re: Pdfmake – PDF printing in pure JavaScript
#9How does it compare to Mozilla's PDF.js https://mozilla.github.io/pdf.js/ or Parallax's jsPDF https://parall.ax/products/jspdf
PDF.js is a Portable Document Format (PDF) viewer . jsPDF prints using: var doc = new jsPDF(); doc.setFontSize(40); doc.text(35, 25, "Paranyan loves jsPDF"); doc.addImage(imgData, 'JPEG', 15, 40, 180, 160); Pdfmake on the other hand: var dd = { content: [ 'First paragraph', 'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines' ] }