Skip to content

Releases: bpampuch/pdfmake

0.1.40

22 Dec 12:28
Compare
Choose a tag to compare
  • updated default Roboto font to latest version 2.137
  • updated file-saver to 2.0.0 and removed hacks for Web Worker
  • implemented text opacity
  • allow passing tableLayouts, fonts and vfs to createPdf instead of using global pdfMake. pdfMake.createPdf(docDefinition, tableLayouts, fonts, vfs) (see readme)

Bugfixes:

  • fixed text opacity after transparent image

0.1.39

10 Nov 14:33
Compare
Choose a tag to compare
  • implemented border style for table (see example)
  • implemented image opacity support (opacity property )
  • implemented ability to preserve trailing white space (preserveTrailingSpaces property)

Bugfixes:

  • fixed returing wrong y position after added repeatables
  • fixed fillOpacity changes for following images

0.1.38

01 Sep 05:41
Compare
Choose a tag to compare
  • added support for elements in text inlines for: pageReference, textReference, tocItem and property id (for pageReference, textReference and toc), see page reference example, ToC example and simple example:
{
	text: [
		{text: 'some sample text '},
		{pageReference: ["element-id"]}
	]
}

output is:

some sample text 2

(element with id "element-id" suppose in page 2)

Bugfixes:

  • fixed text decorations with justified text (#1418)
  • fixed calculating page height with option pageSize.height = 'auto'
  • throw nice error message when page reference id not found
  • fixed preprocessing text inlines
  • fixed text inlines wrapping with styles, eg. "remarkable" is now wrapped as one item (#975)
  • fixed printing repeatable headers for table in second column (#434)

0.1.37

23 Jun 14:55
Compare
Choose a tag to compare
  • new option bufferPages for pages buffering, example: var pdfKitDoc = printer.createPdfKitDocument(docDefinition, {bufferPages: true});
  • added second parameter to background function with page size
  • improved casting null and undefined
  • allows to register binary data in virtual file system

Bugfixes:

  • fix for multi-item backgrounds

0.1.36

24 Feb 16:10
Compare
Choose a tag to compare
  • fixed image Buffer conversion in static header/footer
  • fixed pdf open in js frameworks
  • updated to gulp 4
  • updated webpack

0.1.35

22 Dec 12:57
Compare
Choose a tag to compare
  • added pageReference and textReference for creating nice ToC (see examples)
  • added column index in table fillColor function - fillColor: function (rowIndex, node, columnIndex) { }

Bugfixes:

  • fixed background image overwrite fillColor on table

0.1.34

18 Nov 10:14
Compare
Choose a tag to compare
  • table row height feature (see examples)
  • lineCap support for vectors (butt, round, square) (see examples)
  • fontFeatures property for text (see examples) A specific feature must be suppored by font.
  • ToC - implemented link to page (on page number)
  • support for canvas alignment
  • removed using lodash dependency (pdfmake.js and pdfmake.min.js are smaller file sizes)

Bugfixes:

  • fixed setting compress property
  • fixed page break if is canvas with absolutePosition larger than page
  • fixed page break if is image or qr with absolutePosition out of page
  • fixed multiple tabs replacing

0.1.33

24 Sep 07:52
Compare
Choose a tag to compare
  • lists - own item type (listType):
{
  ul: [
    'item 1',
    {text: 'item 2', listType: 'none'},
    {text: 'item 3', listType: 'circle'}
  ]
}
  • support for nesting text elements:
{
  text: [
    { text: 'a better ' },
    { text: [{ text: 'some text ', bold: true}] },
    { text: 'independently' }
  ]
}
  • ToC - custom style:
toc: {
  title: {text: 'INDEX'},
  textMargin: [0, 0, 0, 0],
  textStyle: {italics: true},
  numberStyle: {bold: true}
}
{
  text: 'This is a header, using header style',
  style: 'header',
  tocItem: true,
  tocStyle: {bold: true},
  tocMargin: [0, 10, 0, 0]
},

0.1.32

31 Jul 15:08
Compare
Choose a tag to compare
  • add leading indent (use leadingIndent)
  • add preserving leading spaces (use preserveLeadingSpaces: true)
  • add unbreakable attribute to elements
  • updated pdfkit to 0.8.3
  • updated fontkit to 1.7.7

Bugfixes:

  • fix rendering after an empty list of columns

0.1.31

10 Jun 15:22
Compare
Choose a tag to compare
  • updated fontkit to 1.7.5

Bugfixes:

  • fix oversized images if they are the only item on a page
  • fix overlap footer with paddingBottom in table