lib/axlsx/package.rb in axlsx-1.0.14 vs lib/axlsx/package.rb in axlsx-1.0.15

- old
+ new

@@ -2,10 +2,11 @@ module Axlsx # Package is responsible for managing all the bits and peices that Open Office XML requires to make a valid # xlsx document including valdation and serialization. class Package + # plain text password # provides access to the app doc properties for this package # see App attr_reader :app # provides access to the core doc properties for the package @@ -85,9 +86,14 @@ end end true end + # Encrypt the package into a CFB using the password provided + # def encrypt(file_name, password) + # moc = MsOffCrypto.new(file_name, password) + # moc.save + # end # Validate all parts of the package against xsd schema. # @return [Array] An array of all validation errors found. # @note This gem includes all schema from OfficeOpenXML-XMLSchema-Transitional.zip and OpenPackagingConventions-XMLSchema.zip # as per ECMA-376, Third edition. opc schema require an internet connection to import remote schema from dublin core for dc,