Permalink
Browse files

Encrypt outline titles (closes #312)

  • Loading branch information...
1 parent 080e438 commit 1b55d5f2974028bf52b7b31851cc399145160c92 @bradediger bradediger committed Dec 30, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/prawn/security.rb
View
@@ -239,6 +239,8 @@ def EncryptedPdfObject(obj, key, id, gen, in_content_stream=false)
when NameTree::Value
PdfObject(obj.name) + " " +
EncryptedPdfObject(obj.value, key, id, gen, in_content_stream)
+ when Prawn::OutlineRoot, Prawn::OutlineItem
+ EncryptedPdfObject(obj.to_hash, key, id, gen, in_content_stream)
else # delegate back to PdfObject
PdfObject(obj, in_content_stream)
end

0 comments on commit 1b55d5f

Please sign in to comment.