pdf-core 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pdf/core/text.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ad75dd976f2668839c982efd24ce49e3b699752
|
4
|
+
data.tar.gz: e93711787ed30c984b053d75c6ed64d4f26ad336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd65e2ad057716601050e53cbb8b9e409cd5be8049c1dc54ad687d84b2f1311abe00b8d31b0542d2fd61cb36393be6044e0a4de2659b8eb444e8daf9faf861ad
|
7
|
+
data.tar.gz: 482df3ef1bb811625319b8098c51738218da5a2db3e22ca7dcdfdd14285c456d1bc35ed66d551b89eb861e841cbfde9bc69b346c50004314d5a653cac7077888
|
data/lib/pdf/core/text.rb
CHANGED
@@ -237,10 +237,10 @@ module PDF
|
|
237
237
|
|
238
238
|
if options[:rotate]
|
239
239
|
rad = options[:rotate].to_f * Math::PI / 180
|
240
|
-
|
240
|
+
array = [ Math.cos(rad), Math.sin(rad), -Math.sin(rad), Math.cos(rad), x, y ]
|
241
241
|
add_content "#{PDF::Core.real_params(array)} Tm"
|
242
242
|
else
|
243
|
-
add_content "#{x
|
243
|
+
add_content "#{PDF::Core.real_params([x,y])} Td"
|
244
244
|
end
|
245
245
|
|
246
246
|
chunks.each do |(subset, string)|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Brown
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: pdf-reader
|