combine_pdf 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e5d5d814a254c4939fa88b782ebe49057b917d81134c3fc94385eb19d814092
4
- data.tar.gz: b43a6e98d54ca72f7f13600898bdf1d6bbe0614276d411f8575ed9c1fe54c3d0
3
+ metadata.gz: f416a0cbf333fe7e6d49c844a9ff6bbc2c735077bb325d5702019b86c01e0cc7
4
+ data.tar.gz: d5af83b8d3bbb89456edb98fd8961d6de10405d06f15b80297576bc16692a7a5
5
5
  SHA512:
6
- metadata.gz: 061b5aa579f0dd243eb2602150933a00258d54cf22504ba3d15355ff6593f25f3b429e7b752d3f81172e5d3a3186f03b345e228d447236732bf20edf38336686
7
- data.tar.gz: db6820d4af86523dd174f25885e7ab5378bdb176bff40fbb20d58203af264df2c2811a4767b41a2ccf84b3391fa9c3046bfb6efa5ed614c24f0ddf3d52439aa1
6
+ metadata.gz: ed94ad7367e9521a5753656148fe654a225c33427b66c89724ea9ea175799b8f20467bb3adb201770ce61848ca1c22e767ac626cfeaa708bde18609645a4ed9a
7
+ data.tar.gz: eccf69bbd4de266e6b9e7de1f7a0a6ecbf615eb14921940808725c4407181f1e62e89215033a9af15b29659041d7b1b0b97f45a9086adedff38e0312d7206b73
data/CHANGELOG.md CHANGED
@@ -2,9 +2,13 @@
2
2
 
3
3
  ***
4
4
 
5
+ #### Change log v.1.0.9
6
+
7
+ **Fix**: Fixed issue #136 where the `#fix_rotation` function would rotate the page to the wrong direction. Credit to @dmkash for exposing this issue
8
+
5
9
  #### Change log v.1.0.8
6
10
 
7
- **Fix**: Fixed an issue with octal representation in escaped string data. The issue would (usually) go unnoticed (altering internal labels in a non-disruptive manner), however the issue did effect `ColorSpace` data in the rare use of `ICCBased` color maps, causing color distortion and transparency loss.
11
+ **Fix**: Fixed an issue with octal representation in escaped string data. The issue would (usually) go unnoticed (altering internal labels in a non-disruptive manner), however the issue did effect `ColorSpace` data in the rare use of `ICCBased` color maps, causing color distortion and transparency loss. Credit to @react-rails and @bedaronco for exposing the issue (issue #130).
8
12
 
9
13
  **Fix**: Fixed an issue with non English alphabet in PDF literal strings. This issue went undetected since PDF literal strings aren't used by CombinePDF except for the date stamping...
10
14
 
@@ -403,7 +403,7 @@ module CombinePDF
403
403
  def fix_rotation
404
404
  return self if self[:Rotate].to_f == 0.0 || mediabox.nil?
405
405
  # calculate the rotation
406
- r = self[:Rotate].to_f * Math::PI / 180
406
+ r = (360.0 - self[:Rotate].to_f) * Math::PI / 180
407
407
  s = Math.sin(r).round 6
408
408
  c = Math.cos(r).round 6
409
409
  ctm = [c, s, -s, c]
@@ -1,3 +1,3 @@
1
1
  module CombinePDF
2
- VERSION = '1.0.8'.freeze
2
+ VERSION = '1.0.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combine_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-02 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4