pdftailor 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: db3c469fc269a2bfc7eb0f8051633adf731f4675
4
+ data.tar.gz: 340844095c36382b98300084ae962bc30497ab0d
5
+ SHA512:
6
+ metadata.gz: 12c923c8ca121179e1039a1470fc94f1988f6880851448f6da84bbeb17f36366490f7a9a77ea63ead9c685303f4cfdf58a8157fe4a58795d3d92c4d9b7def921
7
+ data.tar.gz: ada1dbe2cd455efa2520418d7be4241cec7ab08ce66207f3f1220cfb8be8315bddf318a1e3fef11339a101402152175ccb641d6c6d7ba164977dd5906cbcd6ae
Binary file
Binary file
Binary file
data/jars/pdftailor.jar CHANGED
Binary file
@@ -12,6 +12,7 @@ import com.itextpdf.text.DocumentException;
12
12
  import com.itextpdf.text.pdf.PdfCopy;
13
13
  import com.itextpdf.text.pdf.PdfReader;
14
14
  import com.itextpdf.text.pdf.PdfWriter;
15
+ import com.itextpdf.text.exceptions.BadPasswordException;
15
16
 
16
17
  import com.beust.jcommander.Parameter;
17
18
  import com.beust.jcommander.JCommander;
@@ -49,7 +50,7 @@ public class PdfTailor {
49
50
  }
50
51
  }
51
52
 
52
- public static String VERSION = "0.0.1";
53
+ public static String VERSION = "0.0.3";
53
54
  public static String USAGE_MESSAGE = "pdftailor stitches and unstitches pdfs.\n\n" +
54
55
  "Version: " + VERSION + "\n\n" +
55
56
  "Usage:\n" +
@@ -109,7 +110,12 @@ public class PdfTailor {
109
110
  public static void unstitch( UnstitchCommand cli ) throws IOException, DocumentException {
110
111
  // use JCommander's default file list to get the file to split.
111
112
  String readerPath = cli.files.get(0);
112
- PdfReader reader = new PdfReader(readerPath);
113
+ PdfReader reader = null;
114
+ try {
115
+ reader = new PdfReader(readerPath);
116
+ } catch (BadPasswordException e) {
117
+ System.exit(1);
118
+ }
113
119
 
114
120
  // Loop over the document's pages by page number.
115
121
  for ( int pageNumber = 0; pageNumber < reader.getNumberOfPages(); ) {
data/pdftailor.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pdftailor'
3
- s.version = '0.0.1'
4
- s.date = '2013-09-09'
3
+ s.version = '0.0.3'
4
+ s.date = '2014-01-19'
5
5
 
6
6
  s.summary = "Stitching and unstitching for PDFs"
7
7
  s.description = <<-EOS
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdftailor
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.1
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ted Han
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-09 00:00:00.000000000 Z
11
+ date: 2014-01-19 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: |2
15
14
  Stitching and unstitching for PDFs. A java library delivered via ruby out of convenience.
@@ -19,20 +18,24 @@ executables:
19
18
  extensions: []
20
19
  extra_rdoc_files: []
21
20
  files:
21
+ - bin/pdftailor
22
+ - jars/bcpkix-jdk15on-1.48.jar
23
+ - jars/bcprov-jdk15on-1.48.jar
22
24
  - jars/itextpdf-5.3.4.jar
25
+ - jars/itextpdf-5.4.5.jar
23
26
  - jars/jcommander-1.31-SNAPSHOT.jar
24
27
  - jars/pdftailor.jar
25
- - lib/pdftailor.rb
26
- - bin/pdftailor
27
28
  - java/src/META-INF/MANIFEST.MF
28
29
  - java/src/org/documentcloud/pdftailor/PdfTailor$StitchCommand.class
29
30
  - java/src/org/documentcloud/pdftailor/PdfTailor$UnstitchCommand.class
30
31
  - java/src/org/documentcloud/pdftailor/PdfTailor.class
31
32
  - java/src/org/documentcloud/pdftailor/PdfTailor.java
33
+ - lib/pdftailor.rb
32
34
  - pdftailor.gemspec
33
35
  homepage: http://documentcloud.github.io/pdftailor
34
36
  licenses:
35
37
  - MIT
38
+ metadata: {}
36
39
  post_install_message:
37
40
  rdoc_options: []
38
41
  require_paths:
@@ -42,17 +45,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
45
  - - '>='
43
46
  - !ruby/object:Gem::Version
44
47
  version: '0'
45
- none: false
46
48
  required_rubygems_version: !ruby/object:Gem::Requirement
47
49
  requirements:
48
50
  - - '>='
49
51
  - !ruby/object:Gem::Version
50
52
  version: '0'
51
- none: false
52
53
  requirements: []
53
54
  rubyforge_project:
54
- rubygems_version: 1.8.24
55
+ rubygems_version: 2.2.1
55
56
  signing_key:
56
- specification_version: 3
57
+ specification_version: 4
57
58
  summary: Stitching and unstitching for PDFs
58
59
  test_files: []