Skip to content

Commit

Permalink
Removed pdf2txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Jun 17, 2014
1 parent 7e31a09 commit aa6febe
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2,077 deletions.
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -33,7 +33,6 @@ gem 'pg', '0.17.1'
gem 'rclconf', '1.0.0'
gem 'rdoc', '4.1.1'
gem 'rmagick', '2.13.2'
gem 'rpdf2txt', '0.8.4'
gem 'rubyXL', '1.2.10'
gem 'rubyzip', '0.9.9'
gem 'wasabi', '2.3.0'
Expand Down
2 changes: 0 additions & 2 deletions Gemfile.lock
Expand Up @@ -117,7 +117,6 @@ GEM
rdoc (4.1.1)
json (~> 1.4)
rmagick (2.13.2)
rpdf2txt (0.8.4)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
Expand Down Expand Up @@ -224,7 +223,6 @@ DEPENDENCIES
rclconf (= 1.0.0)
rdoc (= 4.1.1)
rmagick (= 2.13.2)
rpdf2txt (= 0.8.4)
rspec
rubyXL (= 1.2.10)
rubyzip (= 0.9.9)
Expand Down
234 changes: 0 additions & 234 deletions ext/fiparse/src/fachinfo_pdf.rb

This file was deleted.

12 changes: 0 additions & 12 deletions ext/fiparse/src/fiparse.rb
Expand Up @@ -10,13 +10,8 @@
require 'drb/drb'
require 'util/oddbconfig'
require 'fachinfo_writer'
require 'fachinfo_pdf'
require 'indications'
require 'minifi'
require 'fachinfo_hpricot'
require 'patinfo_hpricot'
# rpdf2txt will be retired soon. As it produces error when loading I exclude it while running unit tests
require 'rpdf2txt/parser' unless defined?(Minitest)
require 'ydocx/document'
require 'ydocx/templates/fachinfo'

Expand Down Expand Up @@ -200,12 +195,6 @@ def parse_fachinfo_html(src, format = :documed, title='', styles = nil)
writer.lang = lang
writer.extract(Hpricot(src), :fi, title, styles)
end
def parse_fachinfo_pdf(src)
writer = FachinfoPDFWriter.new
parser = Rpdf2txt::Parser.new(src, 'UTF-8')
parser.extract_text(writer)
writer.to_fachinfo
end unless defined?(Minitest)
def parse_patinfo_html(src, format=:documed, title='', styles = nil)
lang = (src =~ /\/de\// ? 'de' : 'fr')
if File.exist?(src)
Expand All @@ -221,7 +210,6 @@ def parse_patinfo_html(src, format=:documed, title='', styles = nil)
module_function :storage=
module_function :parse_fachinfo_docx
module_function :parse_fachinfo_html
module_function :parse_fachinfo_pdf unless defined?(Minitest)
module_function :parse_patinfo_html
end
end
53 changes: 0 additions & 53 deletions ext/fiparse/src/indications.rb

This file was deleted.

0 comments on commit aa6febe

Please sign in to comment.