Skip to main content
61 votes
5 answers
176k views

Why do I get an "unrecognized document structure" error when generating a PDF from HTML using pdfMake in Angularjs

I am trying to create a PDF from my HTML using pdfMake and Angular (I've also tried jsPDF and couldn't get it to work either). I tried using the following code in my Angular controller: var blob = new ...
Rani Radcliff's user avatar
4 votes
1 answer
5k views

How to apply web worker to rendering of a PDF using makepdf

I successfully created a PDF using a JavaScript plug-in (pdfmake) and it was great. But when I try to render an ~8,000-row inventory/ledger printout, it freeze for over a minute. This is how I ...
melvnberd's user avatar
  • 3,143
2 votes
3 answers
26k views

PDFmake - html table to pdfmake table?

I am trying to make an application, which contains html tables. I want a download button, and onClick event, downloads a PDF file containing all the html tables in it. Can it be done? Can someone ...
Tanuj Dhaundiyal's user avatar
-1 votes
2 answers
19k views

How to convert html table to pdf using pdfmake

Am trying to convert my html table to pdf using pdfmake http://pdfmake.org/ but i cant make it to how to use <!DOCTYPE html> <html> <?php $pdffile = md5(time()).'.pdf'; ?> <...
SyntaxError's user avatar
16 votes
3 answers
35k views

pdfmake: How to create multiple page pdf with different orientation?

is there a way to create multiple page pdf with different page orientation using pdfmake? to make it simple, I want something like this : Page 1 with portrait orientation page 2 with landscape ...
Ismail Sunny's user avatar
13 votes
4 answers
25k views

Angular2: How to use pdfmake library

Trying to use client-side pdf library pdfmake in my Angular 2 (version=4.2.x) project. In .angular-cli.json file, I declared js like this: "scripts": [ "../node_modules/pdfmake/build/pdfmake.js",...
Softhinker.com's user avatar
13 votes
3 answers
63k views

Building table dynamically with PDFMake

I'm working with pdfmake to generate pdf with javascript. I'm trying to build a table dynamically but not works ,this my attempt $.ajax({ type: "POST", url: myURL, success:function(data){ ...
Cristian's user avatar
  • 1,478
9 votes
6 answers
29k views

pdfmake - using own fonts not working

I am using pdfmake to create PDF's on the client side. We have a WYSIWYG editor that allows the users to created a pdf. This is then parsed to work with the pdfmake. However, i cannot get normal ...
Pooshonk's user avatar
  • 1,324
6 votes
1 answer
5k views

How can I use pdfmake custom fonts in Angular without using the gulp tool?

The standard method for installing custom font files is via the gulp tool, and that's described here: https://pdfmake.github.io/docs/fonts/custom-fonts-client-side/ But if that fails for you, and for ...
MotoRidingMelon's user avatar
5 votes
2 answers
12k views

DataTables & PDFmake

I'm trying to work with DataTables Export feature, where I am able to export as CSV, xlxs, pdf. Now my current requirement is to export a custom pdf (change the font size, color, etc.). In the ...
Darshan's user avatar
  • 53
1 vote
1 answer
1k views

How can I export the <a> tag using pdfhtml5 in DataTables

I want to export the <a> tag or link inside a cell in DataTables using pdfhtml5. As of now the link is showing as plain text. How can I print it including its format?
EdBel's user avatar
  • 13
1 vote
1 answer
4k views

PDFMake - make PDF from dynamical content (an array)

I'm having trouble creating PDF file, where I can put a data from array dynamically, with for loop for example. Length of the array can be different every time so there is no way I'll just write for ...
Petr Bečka's user avatar
0 votes
1 answer
402 views

Why is my PDF not saving intermittently in my Node function?

First, let me say, I am very new to backend application and Nodejs. I primarily do mobile development, so my knowledge of the language is limited. I have an endpoint in Firebase Functions that builds ...
Jake Gray's user avatar
0 votes
2 answers
2k views

Save this pdf in the cache/local storage on ionic

Ho to everyone. I followed this tutorial to create a modal view with a pdf generated with pdfmake. http://gonehybrid.com/how-to-create-and-display-a-pdf-file-in-your-ionic-app/ My simply question is ...
Steph8's user avatar
  • 1,563
0 votes
2 answers
7k views

Nested/Sub Tables with PDFMake

How do I use nested/sub tables with PDFmake? I've tried simply putting in multiple tables but that doesn't automatically repeat the top level table's header for page breaks.
Elijah Lofgren's user avatar

15 30 50 per page