File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ - Added support PDF/A and PDF/UA
5
6
- Update pdfkit to 0.15.1
6
7
- Fixed bug with how page breaks provoked by cells with rowspan were handled
7
8
- Fixed find where previous cell started with row span and col span combination
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ class PdfPrinter {
47
47
this . resolveUrls ( docDefinition ) . then ( ( ) => {
48
48
try {
49
49
docDefinition . version = docDefinition . version || '1.3' ;
50
+ docDefinition . subset = docDefinition . subset || undefined ;
51
+ docDefinition . tagged = typeof docDefinition . tagged === 'boolean' ? docDefinition . tagged : false ;
52
+ docDefinition . displayTitle = typeof docDefinition . displayTitle === 'boolean' ? docDefinition . displayTitle : false ;
50
53
docDefinition . compress = typeof docDefinition . compress === 'boolean' ? docDefinition . compress : true ;
51
54
docDefinition . images = docDefinition . images || { } ;
52
55
docDefinition . attachments = docDefinition . attachments || { } ;
@@ -58,6 +61,9 @@ class PdfPrinter {
58
61
let pdfOptions = {
59
62
size : [ pageSize . width , pageSize . height ] ,
60
63
pdfVersion : docDefinition . version ,
64
+ subset : docDefinition . subset ,
65
+ tagged : docDefinition . tagged ,
66
+ displayTitle : docDefinition . displayTitle ,
61
67
compress : docDefinition . compress ,
62
68
userPassword : docDefinition . userPassword ,
63
69
ownerPassword : docDefinition . ownerPassword ,
Original file line number Diff line number Diff line change @@ -138,6 +138,13 @@ module.exports = {
138
138
}
139
139
} ,
140
140
141
+ {
142
+ enforce : 'post' ,
143
+ test : / p d f k i t [ / \\ ] j s [ / \\ ] p d f k i t .e s .j s $ / ,
144
+ use : {
145
+ loader : "transform-loader?brfs"
146
+ }
147
+ } ,
141
148
{
142
149
enforce : 'post' ,
143
150
test : / f o n t k i t [ / \\ ] i n d e x .j s $ / ,
You can’t perform that action at this time.
0 commit comments