Class: PDF::Core::LiteralString Private

Inherits:
String
  • Object
show all
Defined in:
lib/pdf/core/literal_string.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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).