Module: Origami

Defined in:
lib/origami.rb,
lib/origami/3d.rb,
lib/origami/pdf.rb,
lib/origami/xfa.rb,
lib/origami/font.rb,
lib/origami/name.rb,
lib/origami/null.rb,
lib/origami/page.rb,
lib/origami/tree.rb,
lib/origami/array.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/version.rb,
lib/origami/xfa/pdf.rb,
lib/origami/xfa/xdc.rb,
lib/origami/xfa/xfa.rb,
lib/origami/acroform.rb,
lib/origami/filespec.rb,
lib/origami/graphics.rb,
lib/origami/metadata.rb,
lib/origami/xfa/xfdf.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/xfa/config.rb,
lib/origami/annotations.rb,
lib/origami/collections.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/xfa/package.rb,
lib/origami/xfa/xmpmeta.rb,
lib/origami/destinations.rb,
lib/origami/xfa/datasets.rb,
lib/origami/xfa/template.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/xfa/localeset.rb,
lib/origami/xfa/signature.rb,
lib/origami/xfa/sourceset.rb,
lib/origami/extensions/fdf.rb,
lib/origami/graphics/state.rb,
lib/origami/xfa/stylesheet.rb,
lib/origami/graphics/colors.rb,
lib/origami/graphics/render.rb,
lib/origami/optionalcontent.rb,
lib/origami/parsers/ppklite.rb,
lib/origami/graphics/xobject.rb,
lib/origami/parsers/pdf/lazy.rb,
lib/origami/template/widgets.rb,
lib/origami/filters/runlength.rb,
lib/origami/graphics/patterns.rb,
lib/origami/template/patterns.rb,
lib/origami/xfa/connectionset.rb,
lib/origami/extensions/ppklite.rb,
lib/origami/filters/predictors.rb,
lib/origami/parsers/pdf/linear.rb,
lib/origami/filters/ccitt/tables.rb,
lib/origami/graphics/instruction.rb

Overview

This file is part of Origami, PDF manipulation framework for Ruby

Copyright (C) 2016	Guillaume Delugré.

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: Encryption, Field, FieldAccessor, Filter, Function, Graphics, HintTable, Number, Obfuscator, Object, OptionalContent, PageLayout, PageMode, ResourcesHolder, Signature, StandardObject, String, Template, Text, TypeConversion, UsageRights, WebCapture, XDP, XFA Classes: Action, AngularDimensionMeasurement3D, AnimationStyle3D, Annotation, Array, Background3D, Boolean, Catalog, CatalogAdditionalActions, Collection, CommentNote3D, ContentStream, CrossSection3D, Date, Destination, DestinationDictionary, DeveloperExtension, Dictionary, EmbeddedFileParameters, EmbeddedFileStream, Encoding, EncryptionError, EncryptionInvalidPasswordError, EncryptionNotSupportedError, Error, Extensions, ExternalFile, ExternalStream, FDF, FileSpec, Filename, Font, FontDescriptor, FontStream, HexaString, HintStream, Integer, InteractiveForm, InvalidArrayObjectError, InvalidBooleanObjectError, InvalidDateError, InvalidDictionaryObjectError, InvalidHexaStringObjectError, InvalidHintStreamObjectError, InvalidHintTableError, InvalidIntegerObjectError, InvalidLiteralStringObjectError, InvalidNameObjectError, InvalidNameTreeError, InvalidNullObjectError, InvalidObjectError, InvalidObjectStreamObjectError, InvalidPDFError, InvalidPDFInstructionError, InvalidPageTreeError, InvalidRealObjectError, InvalidReferenceError, InvalidStreamObjectError, InvalidTrailerError, InvalidXRefError, InvalidXRefStreamObjectError, LightingScheme3D, LinearDimensionMeasurement3D, Linearization, LiteralString, Measurement3D, Metadata, MetadataStream, Name, NameLeaf, NameTreeNode, Names, Node3D, Null, NumberTreeNode, ObjectStream, Outline, OutlineItem, OutputIntent, PDF, PPKLite, Page, PageLabel, PageTreeNode, Parser, Perms, PerpendicularDimensionMeasurement3D, Projection3D, RadialMeasurement3D, Real, Rectangle, Reference, Reference3D, RenderMode3D, Requirement, Resources, Stream, Trailer, U3DStream, URL, Units3D, UnterminatedObjectError, View3D, ViewerPreferences, XFAStream, XRef, XRefStream, XRefToCompressedObject

Constant Summary collapse

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.
    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.
    ignore_png_errors: false,        # set to true to ignore exceptions on invalid PNG predictors.
}
REGULARCHARS =

:nodoc:

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

:nodoc:

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

:nodoc:

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

:nodoc:

"\r\n"
WHITECHARS =

:nodoc:

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

:nodoc:

Regexp.new(WHITESPACES)
VERSION =
"2.1.0"