pdfmd 2.4.2 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/pdfmd +1 -3
- data/lib/pdfmd.rb +3 -0
- data/lib/pdfmd/long_desc.pdfmdedit.txt +3 -3
- data/lib/pdfmd/pdfmdedit.rb +4 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 970844407051f137b893c42e9702e1a51a7558e8
|
4
|
+
data.tar.gz: a0f7daf1d0fa37e297f37650b087181a3ae64402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b36151807b90b6474065900c29414b4ff95b74adb9a956ae56b1fab5439628f64994091a654ccf51d5bd255abffc072c90fed9edeb1b06e3d8043601dba905e
|
7
|
+
data.tar.gz: 6ee948b86f665d1ae105083fb0075d6e25cd0fde22f69d9172041da0b0e9041c57f2a90a9cec6556f2ef088f710f35f756e9e5ef907361a7f96f346aed8e07d8
|
data/CHANGELOG.md
CHANGED
data/bin/pdfmd
CHANGED
@@ -8,7 +8,7 @@ require "fileutils"
|
|
8
8
|
require "i18n"
|
9
9
|
require 'pathname'
|
10
10
|
|
11
|
-
VERSION = '2.
|
11
|
+
VERSION = '2.5.0'
|
12
12
|
NAME = 'pdfmd'
|
13
13
|
|
14
14
|
# Read the content of the long description from an external file
|
@@ -148,7 +148,6 @@ def edit(*filename)
|
|
148
148
|
|
149
149
|
pdfdoc = Pdfmdedit.new current_file
|
150
150
|
tags = pdfdoc.determineValidSetting(options[:tag],'edit:tags')
|
151
|
-
puts 'tag: ' + tags
|
152
151
|
pdfdoc.opendoc = pdfdoc.determineValidSetting(options[:opendoc], 'edit:opendoc')
|
153
152
|
pdfdoc.pdfviewer = pdfdoc.determineValidSetting(nil, 'edit:pdfviewer')
|
154
153
|
pdfdoc.set_tags tags
|
@@ -233,7 +232,6 @@ def sort(*input)
|
|
233
232
|
|
234
233
|
if File.file?(file)
|
235
234
|
pdfdoc = Pdfmdsort.new file
|
236
|
-
puts options[:copy]
|
237
235
|
pdfdoc.copy = pdfdoc.determineValidSetting(options[:copy], 'sort:copy')
|
238
236
|
pdfdoc.interactive = pdfdoc.determineValidSetting(options[:interactive], 'sort:interactive')
|
239
237
|
pdfdoc.destination = pdfdoc.determineValidSetting(options[:destination], 'sort:destination')
|
data/lib/pdfmd.rb
CHANGED
@@ -87,7 +87,7 @@ $ pdfmd edit -t tag1,tag2,tag3 <filename>
|
|
87
87
|
|
88
88
|
# Edit multiple Tags and set a new value in batch mode.
|
89
89
|
|
90
|
-
$ pdfmd edit -t tag1
|
90
|
+
$ pdfmd edit -t tag1='value1',tag2='value2' <filename>
|
91
91
|
|
92
92
|
|
93
93
|
|
@@ -108,9 +108,9 @@ $ pdfmd edit -t all example.pdf
|
|
108
108
|
|
109
109
|
# Set tags 'Author', 'CreateDate' in example.pdf in batch mode (non-interactive:
|
110
110
|
|
111
|
-
pdfmd edit -t author
|
111
|
+
pdfmd edit -t author='Me',createdate='1970:00:00 01:01:01' example.pdf
|
112
112
|
|
113
|
-
pdfmd edit -t author
|
113
|
+
pdfmd edit -t author='Me',Createdate=19700000 example.pdf
|
114
114
|
|
115
115
|
|
116
116
|
|
data/lib/pdfmd/pdfmdedit.rb
CHANGED
@@ -57,10 +57,12 @@ class Pdfmdedit < Pdfmd
|
|
57
57
|
tagsForEditing = tags.split(',')
|
58
58
|
tagsForEditing.each do |value|
|
59
59
|
|
60
|
-
|
60
|
+
# Matchin for seperator
|
61
|
+
separator = @@edit_separator
|
62
|
+
if value.match(/#{separator}/)
|
61
63
|
|
62
64
|
self.log('debug', 'Found tag value assignment.')
|
63
|
-
tagmatching = value.split(
|
65
|
+
tagmatching = value.split(separator)
|
64
66
|
|
65
67
|
# Check date for validity
|
66
68
|
if tagmatching[0] == 'createdate'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Roos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -174,8 +174,8 @@ homepage: https://github.com/Micronarrativ/ruby-pmd
|
|
174
174
|
licenses:
|
175
175
|
- MIT
|
176
176
|
metadata:
|
177
|
-
created: '2016-
|
178
|
-
revision: '
|
177
|
+
created: '2016-09-25 20:19:06'
|
178
|
+
revision: '20160925201906'
|
179
179
|
post_install_message: ". Run `pdfmd` to see the command help."
|
180
180
|
rdoc_options: []
|
181
181
|
require_paths:
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements:
|
194
194
|
- "[exiftools](http://www.sno.phy.queensu.ca/~phil/exiftool/)"
|
195
195
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.4.
|
196
|
+
rubygems_version: 2.4.6
|
197
197
|
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: pdfmd - pdf-meta-data management
|