Permalink
Browse files

Support for :use => :pdf (requires pdftotext and iconv to be installed)

  • Loading branch information...
1 parent 83c21db commit 509dcb5cdc0e28b4b2c570ab095a998a7371c17f @tomtom committed May 1, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/websitary/configuration.rb
@@ -1193,6 +1193,9 @@ def initialize_options
shortcut :text, :delegate => :diff,
:download => lambda {|url| doc_to_text(read_document(url))}
+ shortcut :pdf, :delegate => :diff,
+ :download => 'curl -s "%s" | pdftotext -layout - - | iconv -t UTF-8'
+
shortcut :body_html, :delegate => :webdiff,
:strip_tags => :default,
:download => lambda {|url|

0 comments on commit 509dcb5

Please sign in to comment.