From f76cae3af6780ba30b32fd21c4048c39f510a418 Mon Sep 17 00:00:00 2001
From: Vladimir Rybas Usage
xls and so on, as well as html, odf, rtf, swf, svg, and wpd.
The first time that you convert a new file type, OpenOffice will lazy-load
the code that processes it — subsequent conversions will be much faster.
-
docsplit pdf documentation/*.html
diff --git a/lib/docsplit/command_line.rb b/lib/docsplit/command_line.rb
index 8d48500..098b2ee 100755
--- a/lib/docsplit/command_line.rb
+++ b/lib/docsplit/command_line.rb
@@ -94,6 +94,9 @@ def parse_options
opts.on('--no-clean', 'disable cleaning of OCR\'d text') do |c|
@options[:clean] = false
end
+ opts.on('-t', '--timeout [SEC]', 'Timeout for PDF extraction from OpenOffice document format (default is 1 hour)') do |t|
+ @options[:timeout] = t
+ end
opts.on('-r', '--rolling', 'generate images from each previous image') do |r|
@options[:rolling] = true
end
From e52a17d6e99c2c4f26d8fe67aa0e6bdffbffc7ad Mon Sep 17 00:00:00 2001
From: Vladimir Rybas
Date: Wed, 19 Jun 2013 20:17:40 +0700
Subject: [PATCH 3/3] Fixed help message for `--timeout` option
---
lib/docsplit/command_line.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/docsplit/command_line.rb b/lib/docsplit/command_line.rb
index 098b2ee..22a9dad 100755
--- a/lib/docsplit/command_line.rb
+++ b/lib/docsplit/command_line.rb
@@ -94,7 +94,7 @@ def parse_options
opts.on('--no-clean', 'disable cleaning of OCR\'d text') do |c|
@options[:clean] = false
end
- opts.on('-t', '--timeout [SEC]', 'Timeout for PDF extraction from OpenOffice document format (default is 1 hour)') do |t|
+ opts.on('-t', '--timeout [SEC]', 'Timeout for PDF extraction from OpenOffice supported document format (default is 1 hour)') do |t|
@options[:timeout] = t
end
opts.on('-r', '--rolling', 'generate images from each previous image') do |r|
@@ -119,4 +119,4 @@ def parse_options
end
-end
\ No newline at end of file
+end