Class PDF::Writer::Object::Procset
In: lib/pdf/writer/object/procset.rb
Parent: PDF::Writer::Object
TechBook Transaction::Simple SimpleTable Complex Action FontDescriptor Procset Catalog FontEncoding Pages Destination Info Encryption Annotation Contents Outline Page Outlines Font ViewerPreferences Image Hash OHash QuickRef StdDev FontMetrics StrokeStyle ARC4 PolygonPoint ImageInfo lib/pdf/simpletable.rb lib/pdf/writer.rb lib/pdf/techbook.rb lib/pdf/quickref.rb lib/pdf/charts/stddev.rb Charts Math lib/pdf/writer/ohash.rb lib/pdf/writer/fontmetrics.rb lib/pdf/writer/strokestyle.rb lib/pdf/writer/arc4.rb lib/pdf/writer/graphics.rb lib/pdf/writer/object.rb lib/pdf/writer/object/image.rb External lib/pdf/writer/object/font.rb lib/pdf/writer/object/outlines.rb lib/pdf/writer/object/contents.rb lib/pdf/writer/object/annotation.rb lib/pdf/writer/object/destination.rb lib/pdf/writer/object/viewerpreferences.rb lib/pdf/writer/object/info.rb lib/pdf/writer/object/fontencoding.rb lib/pdf/writer/object/page.rb lib/pdf/writer/object/catalog.rb lib/pdf/writer/object/outline.rb lib/pdf/writer/object/encryption.rb lib/pdf/writer/object/procset.rb lib/pdf/writer/object/action.rb lib/pdf/writer/object/pages.rb lib/pdf/writer/object/fontdescriptor.rb Object OffsetReader EN Lang lib/pdf/writer/graphics/imageinfo.rb Graphics Writer PDF dot/m_33_0.png

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.

Methods

<<   new   to_s  

Public Class methods

[Source]

    # File lib/pdf/writer/object/procset.rb, line 23
23:   def initialize(parent)
24:     super
25: 
26:     @info = ["PDF", "Text"]
27:     @parent.pages.procset = self
28:     @parent.procset = self
29:   end

Public Instance methods

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

[Source]

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

[Source]

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

[Validate]