Releases: bpampuch/pdfmake
Releases · bpampuch/pdfmake
0.1.38
- added support for elements in text inlines for:
pageReference
,textReference
,tocItem
and propertyid
(forpageReference
,textReference
andtoc
), 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 secondcolumn
(#434)
0.1.37
- 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
0.1.35
0.1.34
- 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
andpdfmake.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
- 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
0.1.31
0.1.30
0.1.29
- improved performance significantly
- updated pdfkit to 0.8.2
- updated fontkit to 1.7.1 (add indic shaper)
- simple table of contents (see examples)
- colored QR codes (example:
{qr: 'text', foreground: 'red', background: 'yellow'}
) - support for "hard" wrapping non-wrappable long words
Bugfixes:
- fixed colSpan line rendering bug in table header