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