combine_pdf 0.1.15 → 0.1.16

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
  SHA1:
3
- metadata.gz: fcabdcfbb7f58ec22dbc23d3edc0182f3a8dc2ca
4
- data.tar.gz: 9ff09d74f401086ac834c21a0059266c08b3c1ef
3
+ metadata.gz: 90f944411ca558412ef3b80122e28ddce34ba7a6
4
+ data.tar.gz: 58b1a3974d6daa5bb15000f0b4581ab0a8d12454
5
5
  SHA512:
6
- metadata.gz: f103e64dc370eb7742add0f21a1263adda67d53a2fd9e72848c29a9f81dac9db9b392a8a6b51dcc61aa2c78995fc2de8fb00aa561f376959498e357938bf9a08
7
- data.tar.gz: 8c6fc6df3c6f046d1eb7a1da2f50088cb4e246cfd2ffd69edcbf74711f1a04d339bf782979e28cd8458beb1b28c61431938c1b3b8f413cddf5afd310e172415c
6
+ metadata.gz: 485b82fe87fa1de7d4ab7d2cffa8d30fc9f863c4570a640284460c85a8dc70e31925929e8be3823e82ea4ae3dbfaad6bc3984d3ed3be53fb7379e6fc3e7ed93e
7
+ data.tar.gz: ae0bf2a4216d44cb518093dd136aa9af2ec0abf4aba9eec97d7b3ce5312ff445e5ae0a8f9af7d4766a2c81ceaecbe00a4c35fca057a3386c8995cb534473ba11
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ***
4
4
 
5
+ Change log v.0.1.16
6
+
7
+ **fix?**: Compatability reports came in showing that some email servers convery new-line (\n) characters to CRLF (\r\n) - corrupting the binary code in the PDF files. This version attemps to fix this by adding more binary characters to the first comment line of the PDF file (right after the header). Most email programs and Antivirus programs should preserve the original EOL character once they recognize the file as binary.
8
+
9
+ ***
10
+
11
+ Change log v.0.1.15
12
+
13
+ **features**: added new PDF#Page API to deal with page rotation and orientation. see the docs for more info.
14
+
15
+ ***
16
+
5
17
  Change log v.0.1.14
6
18
 
7
19
  **changes**: changed the way the PDF Page objects are 'injected' with their methods, so that the PDF#pages method is faster and more methods can be injected into the Hash object. For instance, textbox can now be called on an existing page without creating a PDFWriter object and 'stumping' the new data.
data/README.md CHANGED
@@ -94,7 +94,7 @@ Loading from the memory is especially effective for importing PDF data recieved
94
94
  Demo
95
95
  ====
96
96
 
97
- You can see a Demo for a ["Bates stumping web-app"](http://nameless-gorge-3596.herokuapp.com/bates) and read through it's [code](http://nameless-gorge-3596.herokuapp.com/code) . Good luck :)
97
+ You can see a Demo for a ["Bates stumping web-app"](http://combine-pdf-demo.herokuapp.com/bates) and read through it's [code](http://combine-pdf-demo.herokuapp.com/code) . Good luck :)
98
98
 
99
99
  Decryption & Filters
100
100
  ====================
data/combine_pdf.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "combine_pdf"
8
8
  spec.version = CombinePDF::VERSION
9
9
  spec.authors = ["Boaz Segev"]
10
- spec.email = ["We try, we fail, we do, we are"]
10
+ spec.email = ["boaz@2be.co.il"]
11
11
  spec.summary = %q{Combine, stamp and watermark PDF files in pure Ruby.}
12
12
  spec.description = %q{A nifty gem, in pure Ruby, to parse PDF files and combine (merge) them with other PDF files, number the pages, watermark them or stamp them, create tables or basic text objects etc` (all using the PDF file format).}
13
13
  spec.homepage = "https://github.com/boazsegev/combine_pdf"
@@ -332,8 +332,8 @@ module CombinePDF
332
332
  end
333
333
  # reset the Rotate property
334
334
  self.delete :Rotate
335
- # re-initialize the content stream, so that future inserts aren't rotated
336
- init_contents
335
+ # disconnect the content stream, so that future inserts aren't rotated
336
+ @contents = false #init_contents
337
337
 
338
338
  # always return self, for chaining.
339
339
  self
@@ -140,7 +140,7 @@ module CombinePDF
140
140
  xref = []
141
141
  indirect_object_count = 1 #the first object is the null object
142
142
  #write head (version and binanry-code)
143
- out << "%PDF-#{@version.to_s}\n%\x00\x00\x00\x00".force_encoding(Encoding::ASCII_8BIT)
143
+ out << "%PDF-#{@version.to_s}\n%\xFF\xFF\xFF\xFF\xFF\x00\x00\x00\x00".force_encoding(Encoding::ASCII_8BIT)
144
144
 
145
145
  #collect objects and set xref table locations
146
146
  loc = 0
@@ -1,3 +1,3 @@
1
1
  module CombinePDF
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
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: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-25 00:00:00.000000000 Z
11
+ date: 2015-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-rc4
@@ -56,7 +56,7 @@ description: A nifty gem, in pure Ruby, to parse PDF files and combine (merge) t
56
56
  with other PDF files, number the pages, watermark them or stamp them, create tables
57
57
  or basic text objects etc` (all using the PDF file format).
58
58
  email:
59
- - We try, we fail, we do, we are
59
+ - boaz@2be.co.il
60
60
  executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []