summaryrefslogtreecommitdiff
path: root/scripts/context/ruby
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-09-18 02:20:26 +0300
committerMarius <mariausol@gmail.com>2013-09-18 02:20:26 +0300
commit28ca2f4e9846c23692b1a88f3bb941a5b84ce95f (patch)
tree9dfd92a292b4caf7d407490c4cd4d8a45e6f6047 /scripts/context/ruby
parenteb70e25dec7a24bfc6a395a2896f4aec97177f59 (diff)
downloadcontext-28ca2f4e9846c23692b1a88f3bb941a5b84ce95f.tar.gz
beta 2013.09.18 01:14
Diffstat (limited to 'scripts/context/ruby')
-rw-r--r--scripts/context/ruby/base/pdf.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/context/ruby/base/pdf.rb b/scripts/context/ruby/base/pdf.rb
index 5aec06fc5..6be0d3f98 100644
--- a/scripts/context/ruby/base/pdf.rb
+++ b/scripts/context/ruby/base/pdf.rb
@@ -5,16 +5,24 @@ module PDFview
@closecalls = Hash.new
@allcalls = Hash.new
- @method = 'default' # 'xpdf'
+ # acrobat no longer is a valid default as (1) it keeps crashing with pdfopen due to a dual acrobat/reader install (a side effect
+ # of the api changing every version, and (2) because there are all these anyoing popups with respect to signed, review, online
+ # this and that stuff ... hardly useable as fast previewer, and (3) sumatra is faster and nicer and doesn't block (okay, we have to
+ # get rid of this horrible yellow bg-coloring buts that is doable
+
+ @method = 'sumatra' # 'default' # 'xpdf'
@opencalls['default'] = "pdfopen --file" # "pdfopen --back --file"
@opencalls['xpdf'] = "xpdfopen"
+ @opencalls['sumatra'] = 'start "test" sumatrapdf.exe -reuse-instance -bg-color 0xCCCCCC'
@closecalls['default'] = "pdfclose --file"
@closecalls['xpdf'] = nil
+ @closecalls['sumatra'] = nil
@allcalls['default'] = "pdfclose --all"
@allcalls['xpdf'] = nil
+ @allcalls['sumatra'] = nil
def PDFview.setmethod(method)
@method = method