Class: PDF::Writer::Object::Procset

### Home Classes Methods

### In Files

- lib/pdf/writer/object/procset.rb

### Parent

PDF::Writer::Object

### Methods

- ::new
- #<<
- #to_s

### Files

- ChangeLog

### Class/Module Index

Quicksearch

- PDF
- PDF::Charts
- PDF::Charts::StdDev
- PDF::Charts::StdDev::Label
- PDF::Charts::StdDev::Marker
- PDF::Charts::StdDev::Scale
- PDF::Math
- PDF::QuickRef
- PDF::SimpleTable
- PDF::SimpleTable::Column
- PDF::SimpleTable::Column::Heading
- PDF::TechBook
- PDF::TechBook::TagTocDots
- PDF::TechBook::TagXref
- PDF::Writer
- PDF::Writer::ARC4
- PDF::Writer::Complex
- PDF::Writer::External
- PDF::Writer::FontMetrics
- PDF::Writer::Graphics
- PDF::Writer::Graphics::ImageInfo
- PDF::Writer::Graphics::ImageInfo::Formats
- PDF::Writer::Graphics::ImageInfo::Type
- PDF::Writer::Lang
- PDF::Writer::Lang::EN
- PDF::Writer::OHash
- PDF::Writer::Object
- PDF::Writer::Object::Action
- PDF::Writer::Object::Annotation
- PDF::Writer::Object::Catalog
- PDF::Writer::Object::Contents
- PDF::Writer::Object::Destination
- PDF::Writer::Object::Encryption
- PDF::Writer::Object::Font
- PDF::Writer::Object::FontDescriptor
- PDF::Writer::Object::FontEncoding
- PDF::Writer::Object::Info
- PDF::Writer::Object::Outline
- PDF::Writer::Object::Outlines
- PDF::Writer::Object::Pages
- PDF::Writer::Object::Procset
- PDF::Writer::Object::ViewerPreferences
- PDF::Writer::OffsetReader
- PDF::Writer::PolygonPoint
- PDF::Writer::State
- PDF::Writer::StateStack
- PDF::Writer::StrokeStyle

No matching classes.

# PDF::Writer::Object::Procset

The document Procedure Set. Not necessary in PDF 1.4 or later, but producing applications are recommended to provide the /ProcSet /Resource in any case for older viewers. Viewing applications are not recommended to rely on this information being correct.

These procedure sets are used only when the content stream is printed to a PostScript output device; the names identify PostScript procedure sets that must be sent to the device to interpret the PDF operators in the content stream. Each element of this array must be one of the following predefined names: 'PDF', 'Text', 'ImageB', 'ImageC', and 'ImageI'. See also Appendix H note 102.

### Public Class Methods

new(parent) click to toggle source

    # File lib/pdf/writer/object/procset.rb, line 23
    def initialize(parent)
      super

      @info = ["PDF", "Text"]
      @parent.pages.procset = self
      @parent.procset = self
    end

### Public Instance Methods

<<(p) click to toggle source

This is to add new items to the procset list, despite the fact that this is considered obselete, the items are required for printing to some PostsCript printers.

`p` may be 'ImageB', 'ImageC', or 'ImageI'.

    # File lib/pdf/writer/object/procset.rb, line 36
    def <<(p)
      @info << p
    end

to_s() click to toggle source

    # File lib/pdf/writer/object/procset.rb, line 40
    def to_s
      info = @info.uniq
      res = "\n#{@oid} 0 obj\n["
      @info.each { |k| res << "/#{k} " }
      res << "]\nendobj"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.