The encryption support soon landing in #820 increases pdfkit bundle size by 10%. Pdfkit is already quite big: 480Kb minified.
It's good to make the extra dependencies opt-in, so users that do not use this feature does not carries the extra code size.
This could be accomplished by using a plugin or middleware interface. Or even just as a configurable static property