File: literal_string.rb

package info (click to toggle)
ruby-prawn 1.0.0~rc1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,248 kB
  • sloc: ruby: 17,499; sh: 44; makefile: 17
file content (16 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# encoding: utf-8
module Prawn
  module Core
    # This is used to differentiate strings that must be encoded as
    # a *literal* string, versus those that can be encoded in
    # the PDF hexadecimal format.
    #
    # Some features of the PDF format appear to require that literal
    # strings be used. One such feature is the /Dest key of a link
    # annotation; if a hex encoded string is used there, the links
    # do not work (as tested in Mac OS X Preview, and Adobe Acrobat
    # Reader).
    class LiteralString < String #:nodoc:
    end
  end
end