sogoumap2pdf 0.0.11 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/sogoumap2pdf/image_to_pdf.rb +4 -1
- data/lib/sogoumap2pdf/version.rb +2 -2
- data/website/index.html +2 -2
- metadata +1 -1
data/History.txt
CHANGED
@@ -192,7 +192,10 @@ module Sogoumap2pdf
|
|
192
192
|
end
|
193
193
|
#crop
|
194
194
|
#map2pdf.rb:339:in `crop!': bignum too big to convert into `long' (RangeError)
|
195
|
-
resimg.
|
195
|
+
x_string,y_string=resimg.density.split("x")
|
196
|
+
resx=x_string.to_i
|
197
|
+
resy=y_string.to_i
|
198
|
+
resimg.crop!(SouthWestGravity,resx<@page_width?resx:@page_width,resy<@page_height?resy:@page_height)
|
196
199
|
resimg.write("itptmp#{@link_end}"){ self.quality = 70 }
|
197
200
|
@pdf.add_image_from_file("itptmp#{@link_end}",0,0)
|
198
201
|
ss = PDF::Writer::StrokeStyle.new(2)
|
data/lib/sogoumap2pdf/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
<h1>sogoumap2pdf</h1>
|
36
36
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/sogoumap2pdf"; return false'>
|
37
37
|
<p>Get Version</p>
|
38
|
-
<a href="http://rubyforge.org/projects/sogoumap2pdf" class="numbers">0.0.
|
38
|
+
<a href="http://rubyforge.org/projects/sogoumap2pdf" class="numbers">0.0.11</a>
|
39
39
|
</div>
|
40
40
|
<h2>What</h2>
|
41
41
|
<p>download map from map.sogou.com and convert to pdf</p>
|
@@ -75,7 +75,7 @@ rake install_gem</pre>
|
|
75
75
|
<h2>Screencast</h2>
|
76
76
|
<object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/SxEZ1lhUDH4"> </param> <embed src="http://www.youtube.com/v/SxEZ1lhUDH4" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object>
|
77
77
|
<p class="coda">
|
78
|
-
<a href="mailto:ruanwz@gmail.com">David Ruan</a>,
|
78
|
+
<a href="mailto:ruanwz@gmail.com">David Ruan</a>, 4th September 2008<br>
|
79
79
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
80
80
|
</p>
|
81
81
|
</div>
|