Questions tagged [pdfmake]

Client/server side PDF printing in pure JavaScript

Client/server side PDF printing in pure JavaScript

In-browser

Print PDFs directly in the browser or delegate it to your NodeJS backend. Use the same document definition in both cases.

Fully declarative

Forget about manual x, y calculations. Declare document structure and let pdfmake do the rest.

Powerful layout engine

Use paragraphs, columns, lists, tables, canvas, etc... Declare your own styles, use custom fonts, build a DSL and extend the framework.

Features

  • line-wrapping,
  • text-alignments (left, right, centered, justified),
  • numbered and bulleted lists,
  • tables and columns
    • auto/fixed/star-sized widths,
    • col-spans and row-spans,
    • headers automatically repeated in case of a page-break,
  • images and vector graphics,
  • convenient styling and style inheritance,
  • page headers and footers:
    • static or dynamic content,
    • access to current page number and page count,
  • background-layer
  • page dimensions and orientations,
  • margins,
  • custom page breaks,
  • font embedding,
  • support for complex, multi-level (nested) structures,
  • helper methods for opening/printing/downloading the generated PDF.

References

560 questions
0
votes
2 answers

How to prevent IE from freezing while long running script execution?

I'm experiencing quite long freezes of Internet Explorer while it's executing long run tasks. The task is about generating large PDF document using pdfmake and pure/vanilla javascript. So, that means I dont have control of what this script do, I…
werasquez
  • 99
  • 2
  • 10
0
votes
0 answers

Indian languages are not working in Pdfmake in ionic1

I am creating a pdf file using pdfmake in ionic1 in which i would like to download the pdf in indian languages(Tamil). I have added custom fonts for tamil language also but when i try to download the pdf i am getting boxes. can anyone tell me how to…
Nidhin Kumar
  • 3,278
  • 9
  • 40
  • 72
0
votes
0 answers

Large image not converting into pdf using pdfmake

The image I'm creating with dimension 1140x3190 is not converting properly into pdf using pdfmake. Only first part with one page pdf is generating. Here is my code ::