New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prawn-security

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prawn-security

  • 0.8.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= Prawn/Security: Popular Password Protection & Permissions for Prawn PDFs

Prawn/Security adds encryption, password protection, and permissions to Prawn.

== Usage

See the examples/ directory and/or the RDoc for detailed info. Basically, it's as simple as the first example:

require 'prawn/security'

Prawn::Document.generate("hello_foo.pdf") do text "Hello, world!" encrypt_document :user_password => 'foo', :owner_password => 'bar', :permissions => { :print_document => false } end

This creates a document that requires the password 'foo' to be opened, and cannot be printed without entering the owner password 'bar'.

If you want to prohibit most anyone from performing a certain activity, you can pass :owner_password => :random to generate a probably-unguessable owner password.

== Contributors

Brad Ediger brad.ediger@madriska.com

FAQs

Package last updated on 25 Feb 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc