File: literal_string.rb

package info (click to toggle)
ruby-pdf-core 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 408 kB
  • sloc: ruby: 2,270; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 577 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module PDF
  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).
    #
    # @api private
    class LiteralString < String
    end
  end
end