class 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
PDF::Writer::Object::new
# File lib/pdf/writer/object/procset.rb 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’.
# File lib/pdf/writer/object/procset.rb 36 def <<(p) 37 @info << p 38 end
# File lib/pdf/writer/object/procset.rb 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