Module: Origami

Defined in:
lib/origami/3d.rb,
lib/origami.rb,
lib/origami/pdf.rb,
lib/origami/xfa.rb,
lib/origami/file.rb,
lib/origami/font.rb,
lib/origami/name.rb,
lib/origami/null.rb,
lib/origami/page.rb,
lib/origami/array.rb,
lib/origami/export.rb,
lib/origami/header.rb,
lib/origami/object.rb,
lib/origami/parser.rb,
lib/origami/stream.rb,
lib/origami/string.rb,
lib/origami/actions.rb,
lib/origami/boolean.rb,
lib/origami/catalog.rb,
lib/origami/filters.rb,
lib/origami/numeric.rb,
lib/origami/outline.rb,
lib/origami/trailer.rb,
lib/origami/acroform.rb,
lib/origami/metadata.rb,
lib/origami/functions.rb,
lib/origami/reference.rb,
lib/origami/signature.rb,
lib/origami/xreftable.rb,
lib/origami/dictionary.rb,
lib/origami/encryption.rb,
lib/origami/javascript.rb,
lib/origami/webcapture.rb,
lib/origami/annotations.rb,
lib/origami/filters/dct.rb,
lib/origami/filters/jpx.rb,
lib/origami/filters/lzw.rb,
lib/origami/obfuscation.rb,
lib/origami/parsers/fdf.rb,
lib/origami/parsers/pdf.rb,
lib/origami/destinations.rb,
lib/origami/filters/ascii.rb,
lib/origami/filters/ccitt.rb,
lib/origami/filters/crypt.rb,
lib/origami/filters/flate.rb,
lib/origami/filters/jbig2.rb,
lib/origami/graphics/path.rb,
lib/origami/graphics/text.rb,
lib/origami/linearization.rb,
lib/origami/outputintents.rb,
lib/origami/extensions/fdf.rb,
lib/origami/graphics/state.rb,
lib/origami/graphics/colors.rb,
lib/origami/graphics/render.rb,
lib/origami/parsers/ppklite.rb,
lib/origami/graphics/xobject.rb,
lib/origami/filters/runlength.rb,
lib/origami/graphics/patterns.rb,
lib/origami/extensions/ppklite.rb,
lib/origami/filters/predictors.rb,
lib/origami/parsers/pdf/linear.rb,
lib/origami/graphics/instruction.rb

Overview

File

graphics/instruction.rb

Info

This file is part of Origami, PDF manipulation framework for Ruby Copyright © 2010 Guillaume Delugré <guillaume AT security-labs DOT org> All right reserved.

Origami is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Origami is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with Origami.  If not, see <http://www.gnu.org/licenses/>.

Defined Under Namespace

Modules: Adobe, Console, Destination, Encryption, Field, Filter, Function, Graphics, HintTable, Number, Obfuscator, Object, PageLayout, PageMode, ResourcesHolder, Signature, StandardObject, String, Text, UsageRights, Webcapture, XDP, XFA Classes: Action, AnimationStyle3D, Annotation, Array, Background3D, Boolean, ByteString, Catalog, CatalogAdditionalActions, ContentStream, CrossSection3D, Date, DeveloperExtension, Dictionary, EmbeddedFileParameters, EmbeddedFileStream, Encoding, EncryptionError, EncryptionInvalidPasswordError, EncryptionNotSupportedError, Extensions, ExternalFile, ExternalStream, FDF, FileSpec, Filename, Font, FontDescriptor, FontStream, HexaString, HintStream, Integer, InteractiveForm, InvalidArrayObjectError, InvalidBooleanObjectError, InvalidByteStringObjectError, InvalidDictionaryObjectError, InvalidHexaStringObjectError, InvalidHintStreamObjectError, InvalidHintTableError, InvalidIntegerObjectError, InvalidNameObjectError, InvalidNameTreeError, InvalidNullObjectError, InvalidObjectError, InvalidObjectStreamObjectError, InvalidPDFError, InvalidPDFInstructionError, InvalidRealObjectError, InvalidReferenceError, InvalidStreamObjectError, InvalidTrailerError, InvalidXRefError, InvalidXRefStreamObjectError, LightingScheme3D, Linearization, Metadata, MetadataStream, Name, NameLeaf, NameTreeNode, Names, NavigationNode, Node3D, Null, ObjectStream, Outline, OutlineItem, OutputIntent, PDF, Page, PageAdditionalActions, PageTreeNode, Parser, Perms, Projection3D, Real, Rectangle, Reference, Reference3D, RenderMode3D, Requirement, Resources, Stream, Trailer, U3DStream, URL, UnterminatedObjectError, View3D, ViewerPreferences, XRef, XRefStream, XRefToCompressedObj

Constant Summary collapse

VERSION =
"1.2.6"
REVISION =

:nodoc:

"$Revision$"
OPTIONS =

Global options for Origami.

{
  :enable_type_checking => true,      # set to false to disable type consistency checks during compilation.
  :enable_type_guessing => true,      # set to false to prevent the parser to guess the type of special dictionary and streams (not recommended).
  :enable_type_propagation => true,   # set to false to prevent the parser to propagate type from parents to children.
  :use_openssl => true,               # set to false to use Origami crypto backend.
  :ignore_bad_references => false,    # set to interpret invalid references as Null objects, instead of raising an exception.
  :ignore_zlib_errors => false,       # set to true to ignore exceptions on invalid Flate streams.
}
REGULARCHARS =

:nodoc:

"([^ \\t\\r\\n\\0\\[\\]<>()%\\/]|#[a-fA-F0-9][a-fA-F0-9])*"
WHITESPACES =

:nodoc:

"([ \\f\\t\\r\\n\\0]|%[^\\n]*\\n)*"
WHITECHARS_NORET =

:nodoc:

"[ \\f\\t\\0]*"
EOL =

:nodoc:

"\r\n"
WHITECHARS =

:nodoc:

"[ \\f\\t\\r\\n\\0]*"
REGEXP_WHITESPACES =

:nodoc:

Regexp.new(WHITESPACES)