Class: ODDB::FiPDF::FachinfoWriterProxy

Inherits:
FachinfoWriter show all
Includes:
DRb::DRbUndumped
Defined in:
ext/fipdf/src/fipdf.rb

Constant Summary

Constants inherited from FachinfoWriter

ALPHA_FONT, ALPHA_GAP, COLOR_BG, COLOR_DRUG_NAME_BG, COLOR_DRUG_NAME_FNT, COLOR_DRUG_NAME_INDEX, COLOR_STD, COLUMNS_FI, COLUMNS_INDEX, COLUMN_GAP_FI, COLUMN_GAP_INDEX, FIXED_WIDTH_FONT, FLIC_YPOS, FONT_SIZE_ALPHA, FONT_SIZE_FIXED_WIDTH, FONT_SIZE_FLIC, FONT_SIZE_TITLE, GRAY_DRUG_NAME_BG, ISO_8859_1_DIFFERENCES, LANGUAGES, MARGIN_BOTTOM, MARGIN_IN, MARGIN_OUT, MARGIN_TOP, PAGE_NUMBER_SIZE, PAGE_NUMBER_YPOS, PAGE_TITLE_HEIGHT, SYMBOL_FONT, VARIABLE_WIDTH_FONT

Instance Method Summary (collapse)

Methods inherited from FachinfoWriter

#_, #add_substance_name, #add_text_wrap, #anchor_name, #chapter_format, #chapter_index_format, #combination_substances, #company_name_format, #draw_background, #draw_column_line, #draw_page_title, #drug_name_format, #encrypted?, #fi_new_column, #fi_new_page, #flic_name_format, #generic_color, #hyphenator=, #initialize_formats, #kombi_index_format, #move_pointer, #new_page, #page_type, #page_type_standard, #page_type_substance_index, #page_type_substance_title, #paragraph_format, #preformatted_format, #prepare_substance_index, #save_pdf, #section_format, #set_bg_bounds, #set_flic_name, #set_page_element_type, #set_page_type_elements, #set_ptype_margins, #single_substances, #start_new_page, #text_index_format, #wrap_tuple, #write_alphabet, #write_chapter, #write_company_name, #write_drug_name, #write_flic_name, #write_heading, #write_index, #write_index_entry, #write_last_minute, #write_outside_bound_text, #write_page_number, #write_paragraph, #write_section, #write_substance_index, #write_tuple

Constructor Details

- (FachinfoWriterProxy) initialize(writer)

A new instance of FachinfoWriterProxy



21
22
23
24
# File 'ext/fipdf/src/fipdf.rb', line 21

def initialize(writer)
  @writer = writer
  super
end

Instance Method Details

- (Object) write_fachinfo(fachinfo)



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'ext/fipdf/src/fipdf.rb', line 25

def write_fachinfo(fachinfo)
  @writer.write_fachinfo(fachinfo)
=begin
  ObjectSpace.each_object(PDF::Writer::Pages){ |font| 
    puts "#"*100
    puts "#{font.id}:#{font.__id__}" 
    if(path = obj_path(font.__id__))
      puts "Direct Path: #{path.join('-')}"
    else
      puts "Paths:"
      paths = []
      ObjectSpace.each_object { |object|
        if(path = object.obj_path(font.__id__))
          puts "#{object.class.to_s}:#{path.join('-')}"
        end
      }
    end
  }
  ObjectSpace.each_object() { |item|
    item.instance_variables.each { |name|
      if((var = item.instance_variable_get(name)) \
        && var.is_a?(Array) \
        && var.any? { |cont| 
          cont.is_a?(PDF::Writer::Contents)
        })
        puts "#"*100
        puts "#{item.class}:#{name}"
        if(path = obj_path(var.__id__))
          puts "Direct Path: #{path.join('-')}"
        end
      end
    }
  }
=end


  ''
end