Class: ODDB::FiPDF::FachinfoWriterProxy

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

Constant Summary

Constants inherited from FachinfoWriter

ODDB::FiPDF::FachinfoWriter::ALPHA_FONT, ODDB::FiPDF::FachinfoWriter::ALPHA_GAP, ODDB::FiPDF::FachinfoWriter::COLOR_BG, ODDB::FiPDF::FachinfoWriter::COLOR_DRUG_NAME_BG, ODDB::FiPDF::FachinfoWriter::COLOR_DRUG_NAME_FNT, ODDB::FiPDF::FachinfoWriter::COLOR_DRUG_NAME_INDEX, ODDB::FiPDF::FachinfoWriter::COLOR_STD, ODDB::FiPDF::FachinfoWriter::COLUMNS_FI, ODDB::FiPDF::FachinfoWriter::COLUMNS_INDEX, ODDB::FiPDF::FachinfoWriter::COLUMN_GAP_FI, ODDB::FiPDF::FachinfoWriter::COLUMN_GAP_INDEX, ODDB::FiPDF::FachinfoWriter::FIXED_WIDTH_FONT, ODDB::FiPDF::FachinfoWriter::FLIC_YPOS, ODDB::FiPDF::FachinfoWriter::FONT_SIZE_ALPHA, ODDB::FiPDF::FachinfoWriter::FONT_SIZE_FIXED_WIDTH, ODDB::FiPDF::FachinfoWriter::FONT_SIZE_FLIC, ODDB::FiPDF::FachinfoWriter::FONT_SIZE_TITLE, ODDB::FiPDF::FachinfoWriter::GRAY_DRUG_NAME_BG, ODDB::FiPDF::FachinfoWriter::ISO_8859_1_DIFFERENCES, ODDB::FiPDF::FachinfoWriter::LANGUAGES, ODDB::FiPDF::FachinfoWriter::MARGIN_BOTTOM, ODDB::FiPDF::FachinfoWriter::MARGIN_IN, ODDB::FiPDF::FachinfoWriter::MARGIN_OUT, ODDB::FiPDF::FachinfoWriter::MARGIN_TOP, ODDB::FiPDF::FachinfoWriter::PAGE_NUMBER_SIZE, ODDB::FiPDF::FachinfoWriter::PAGE_NUMBER_YPOS, ODDB::FiPDF::FachinfoWriter::PAGE_TITLE_HEIGHT, ODDB::FiPDF::FachinfoWriter::SYMBOL_FONT, ODDB::FiPDF::FachinfoWriter::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, #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

#initialize(writer) ⇒ FachinfoWriterProxy

Returns 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

#write_fachinfo(fachinfo) ⇒ Object



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
# 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