Fixed bug (encryption disabled when exporting to pdf)
Updated version