libis-format 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +3 -1
  3. data/.travis.yml +43 -25
  4. data/README.md +2 -2
  5. data/base/Dockerfile +35 -0
  6. data/base/Dockerfile.alpine +20 -0
  7. data/base/Dockerfile.rvm +56 -0
  8. data/base/rework_path +20 -0
  9. data/bin/libis_format +8 -0
  10. data/docker_cfg.yml +1 -0
  11. data/lib/libis/format.rb +5 -1
  12. data/lib/libis/format/cli/convert.rb +310 -0
  13. data/lib/libis/format/cli/format.rb +77 -0
  14. data/lib/libis/format/cli/prompt_helper.rb +87 -0
  15. data/lib/libis/format/cli/sub_command.rb +22 -0
  16. data/lib/libis/format/command_line.rb +25 -0
  17. data/lib/libis/format/config.rb +14 -10
  18. data/lib/libis/format/converter/audio_converter.rb +3 -37
  19. data/lib/libis/format/converter/base.rb +21 -8
  20. data/lib/libis/format/converter/chain.rb +3 -3
  21. data/lib/libis/format/converter/image_assembler.rb +82 -0
  22. data/lib/libis/format/converter/image_converter.rb +36 -134
  23. data/lib/libis/format/converter/image_splitter.rb +80 -0
  24. data/lib/libis/format/converter/image_watermarker.rb +261 -0
  25. data/lib/libis/format/converter/jp2_converter.rb +2 -2
  26. data/lib/libis/format/converter/office_converter.rb +2 -2
  27. data/lib/libis/format/converter/pdf_assembler.rb +66 -0
  28. data/lib/libis/format/converter/pdf_converter.rb +33 -89
  29. data/lib/libis/format/converter/pdf_optimizer.rb +70 -0
  30. data/lib/libis/format/converter/pdf_splitter.rb +65 -0
  31. data/lib/libis/format/converter/pdf_watermarker.rb +110 -0
  32. data/lib/libis/format/converter/spreadsheet_converter.rb +2 -2
  33. data/lib/libis/format/converter/video_converter.rb +1 -1
  34. data/lib/libis/format/identifier.rb +7 -7
  35. data/lib/libis/format/info.rb +27 -0
  36. data/lib/libis/format/library.rb +147 -0
  37. data/lib/libis/format/tool/droid.rb +2 -2
  38. data/lib/libis/format/tool/extension_identification.rb +4 -4
  39. data/lib/libis/format/tool/ffmpeg.rb +1 -1
  40. data/lib/libis/format/tool/fido.rb +1 -1
  41. data/lib/libis/format/tool/fop_pdf.rb +1 -1
  42. data/lib/libis/format/tool/identification_tool.rb +6 -6
  43. data/lib/libis/format/tool/office_to_pdf.rb +1 -1
  44. data/lib/libis/format/tool/pdf_copy.rb +1 -1
  45. data/lib/libis/format/tool/pdf_merge.rb +1 -1
  46. data/lib/libis/format/tool/pdf_split.rb +1 -1
  47. data/lib/libis/format/tool/pdf_to_pdfa.rb +1 -2
  48. data/lib/libis/format/tool/pdfa_validator.rb +3 -4
  49. data/lib/libis/format/tool/spreadsheet_to_ods.rb +2 -1
  50. data/lib/libis/format/version.rb +1 -1
  51. data/lib/libis/format/yaml_loader.rb +71 -0
  52. data/libis-format.gemspec +4 -4
  53. data/tools/fop/build/fop.jar +0 -0
  54. data/tools/fop/conf/fop.xconf +466 -0
  55. data/tools/fop/fop +258 -0
  56. data/tools/fop/fop.bat +75 -0
  57. data/tools/fop/fop.cmd +31 -0
  58. data/tools/fop/fop.js +341 -0
  59. data/tools/fop/lib/README.txt +243 -0
  60. data/tools/fop/lib/avalon-framework-api-4.3.1.jar +0 -0
  61. data/tools/fop/lib/avalon-framework-impl-4.3.1.jar +0 -0
  62. data/tools/fop/lib/avalon-framework.LICENSE.txt +175 -0
  63. data/tools/fop/lib/avalon-framework.NOTICE.TXT +11 -0
  64. data/tools/fop/lib/batik-all-1.10.jar +0 -0
  65. data/tools/fop/lib/batik.LICENSE.txt +201 -0
  66. data/tools/fop/lib/batik.NOTICE.txt +18 -0
  67. data/tools/fop/lib/commons-io-1.3.1.jar +0 -0
  68. data/tools/fop/lib/commons-io.LICENSE.txt +203 -0
  69. data/tools/fop/lib/commons-io.NOTICE.txt +6 -0
  70. data/tools/fop/lib/commons-logging-1.0.4.jar +0 -0
  71. data/tools/fop/lib/commons-logging.LICENSE.txt +202 -0
  72. data/tools/fop/lib/commons-logging.NOTICE.txt +3 -0
  73. data/tools/fop/lib/fontbox-2.0.7.jar +0 -0
  74. data/tools/fop/lib/serializer-2.7.2.jar +0 -0
  75. data/tools/fop/lib/serializer.LICENSE.txt +201 -0
  76. data/tools/fop/lib/serializer.NOTICE.txt +15 -0
  77. data/tools/fop/lib/xalan-2.7.2.jar +0 -0
  78. data/tools/fop/lib/xalan.BCEL.LICENSE.txt +52 -0
  79. data/tools/fop/lib/xalan.LICENSE.txt +202 -0
  80. data/tools/fop/lib/xalan.NOTICE.txt +44 -0
  81. data/tools/fop/lib/xalan.regexp.LICENSE.txt +52 -0
  82. data/tools/fop/lib/xalan.runtime.LICENSE.txt +20 -0
  83. data/tools/fop/lib/xerces.LICENSE.txt +56 -0
  84. data/tools/fop/lib/xercesImpl-2.9.1.jar +0 -0
  85. data/tools/fop/lib/xercesImpl.LICENSE.txt +201 -0
  86. data/tools/fop/lib/xercesImpl.NOTICE.txt +14 -0
  87. data/tools/fop/lib/xml-apis-1.3.04.jar +0 -0
  88. data/tools/fop/lib/xml-apis-ext-1.3.04.jar +0 -0
  89. data/tools/fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt +73 -0
  90. data/tools/fop/lib/xml-apis-ext.LICENSE.dom-software.txt +61 -0
  91. data/tools/fop/lib/xml-apis-ext.LICENSE.sac.html +75 -0
  92. data/tools/fop/lib/xml-apis-ext.LICENSE.txt +202 -0
  93. data/tools/fop/lib/xml-apis-ext.NOTICE.txt +16 -0
  94. data/tools/fop/lib/xml-apis-ext.README.dom.txt +56 -0
  95. data/tools/fop/lib/xml-apis.LICENSE-SAX.html +17 -0
  96. data/tools/fop/lib/xml-apis.LICENSE.DOM-documentation.html +74 -0
  97. data/tools/fop/lib/xml-apis.LICENSE.DOM-software.html +66 -0
  98. data/tools/fop/lib/xml-apis.LICENSE.txt +201 -0
  99. data/tools/fop/lib/xml-apis.NOTICE.txt +13 -0
  100. data/tools/fop/lib/xmlgraphics-commons-2.3.jar +0 -0
  101. data/tools/fop/lib/xmlgraphics-commons.LICENSE.txt +202 -0
  102. data/tools/fop/lib/xmlgraphics-commons.NOTICE.txt +5 -0
  103. data/tools/pdfbox/pdfbox-app-2.0.13.jar +0 -0
  104. data/tools/pdfbox/{pdfbox-app-1.8.10.jar → preflight-app-2.0.13.jar} +0 -0
  105. metadata +78 -252
  106. data/lib/libis/format/type_database.rb +0 -201
  107. data/spec/converter_audio_spec.rb +0 -66
  108. data/spec/converter_fop_spec.rb +0 -37
  109. data/spec/converter_image_spec.rb +0 -166
  110. data/spec/converter_office_spec.rb +0 -84
  111. data/spec/converter_pdf_spec.rb +0 -30
  112. data/spec/converter_repository_spec.rb +0 -97
  113. data/spec/converter_spreadsheet_spec.rb +0 -39
  114. data/spec/converter_video_spec.rb +0 -97
  115. data/spec/converter_xsl_spec.rb +0 -56
  116. data/spec/data/Cevennes2.bmp +0 -0
  117. data/spec/data/Cevennes2.jp2 +0 -0
  118. data/spec/data/Cevennes2.ppm +0 -22492
  119. data/spec/data/NikonRaw-CameraRaw.TIF +0 -0
  120. data/spec/data/NikonRaw-CaptureOne.tif +0 -0
  121. data/spec/data/audio/carlin_disappointed.aac +0 -0
  122. data/spec/data/audio/carlin_disappointed.ac3 +0 -0
  123. data/spec/data/audio/carlin_disappointed.aiff +0 -0
  124. data/spec/data/audio/carlin_disappointed.au +0 -0
  125. data/spec/data/audio/carlin_disappointed.flac +0 -0
  126. data/spec/data/audio/carlin_disappointed.m4a +0 -0
  127. data/spec/data/audio/carlin_disappointed.mka +0 -0
  128. data/spec/data/audio/carlin_disappointed.mp3 +0 -0
  129. data/spec/data/audio/carlin_disappointed.ogg +0 -0
  130. data/spec/data/audio/carlin_disappointed.ra +0 -0
  131. data/spec/data/audio/carlin_disappointed.voc +0 -0
  132. data/spec/data/audio/carlin_disappointed.wav +0 -0
  133. data/spec/data/audio/carlin_disappointed.wma +0 -0
  134. data/spec/data/audio/greensleeves.aac +0 -0
  135. data/spec/data/audio/greensleeves.ac3 +0 -0
  136. data/spec/data/audio/greensleeves.aiff +0 -0
  137. data/spec/data/audio/greensleeves.au +0 -0
  138. data/spec/data/audio/greensleeves.flac +0 -0
  139. data/spec/data/audio/greensleeves.m4a +0 -0
  140. data/spec/data/audio/greensleeves.mka +0 -0
  141. data/spec/data/audio/greensleeves.mp3 +0 -0
  142. data/spec/data/audio/greensleeves.ogg +0 -0
  143. data/spec/data/audio/greensleeves.ra +0 -0
  144. data/spec/data/audio/greensleeves.voc +0 -0
  145. data/spec/data/audio/greensleeves.wav +0 -0
  146. data/spec/data/audio/greensleeves.wma +0 -0
  147. data/spec/data/audio/king_nonviolence.aac +0 -0
  148. data/spec/data/audio/king_nonviolence.ac3 +0 -0
  149. data/spec/data/audio/king_nonviolence.aiff +0 -0
  150. data/spec/data/audio/king_nonviolence.au +0 -0
  151. data/spec/data/audio/king_nonviolence.flac +0 -0
  152. data/spec/data/audio/king_nonviolence.m4a +0 -0
  153. data/spec/data/audio/king_nonviolence.mka +0 -0
  154. data/spec/data/audio/king_nonviolence.mp3 +0 -0
  155. data/spec/data/audio/king_nonviolence.ogg +0 -0
  156. data/spec/data/audio/king_nonviolence.ra +0 -0
  157. data/spec/data/audio/king_nonviolence.voc +0 -0
  158. data/spec/data/audio/king_nonviolence.wav +0 -0
  159. data/spec/data/audio/king_nonviolence.wma +0 -0
  160. data/spec/data/audio/top_gun_secret.aac +0 -0
  161. data/spec/data/audio/top_gun_secret.ac3 +0 -0
  162. data/spec/data/audio/top_gun_secret.aiff +0 -0
  163. data/spec/data/audio/top_gun_secret.au +0 -0
  164. data/spec/data/audio/top_gun_secret.flac +0 -0
  165. data/spec/data/audio/top_gun_secret.m4a +0 -0
  166. data/spec/data/audio/top_gun_secret.mka +0 -0
  167. data/spec/data/audio/top_gun_secret.mp3 +0 -0
  168. data/spec/data/audio/top_gun_secret.ogg +0 -0
  169. data/spec/data/audio/top_gun_secret.ra +0 -0
  170. data/spec/data/audio/top_gun_secret.voc +0 -0
  171. data/spec/data/audio/top_gun_secret.wav +0 -0
  172. data/spec/data/audio/top_gun_secret.wma +0 -0
  173. data/spec/data/multipage.tif +0 -0
  174. data/spec/data/multipage.tif.jp2 +0 -0
  175. data/spec/data/test-ead.xml +0 -392
  176. data/spec/data/test-jpg.tif +0 -0
  177. data/spec/data/test-lzw.tif +0 -0
  178. data/spec/data/test-options.jpg +0 -0
  179. data/spec/data/test-options.png +0 -0
  180. data/spec/data/test.bmp +0 -0
  181. data/spec/data/test.doc +0 -0
  182. data/spec/data/test.docx +0 -0
  183. data/spec/data/test.gif +0 -0
  184. data/spec/data/test.jpg +0 -0
  185. data/spec/data/test.ods +0 -0
  186. data/spec/data/test.odt +0 -0
  187. data/spec/data/test.pdf +0 -0
  188. data/spec/data/test.pdf.tif +0 -0
  189. data/spec/data/test.png +0 -0
  190. data/spec/data/test.ps +0 -8631
  191. data/spec/data/test.psd +0 -0
  192. data/spec/data/test.rtf +0 -1455
  193. data/spec/data/test.tif +0 -0
  194. data/spec/data/test.txt +0 -12
  195. data/spec/data/test.xcf +0 -0
  196. data/spec/data/test.xls +0 -0
  197. data/spec/data/test.xlsx +0 -0
  198. data/spec/data/test.xml +0 -4
  199. data/spec/data/test_pdfa.pdf +0 -0
  200. data/spec/data/video/SampleVideo_1080x720_2mb.flv +0 -0
  201. data/spec/data/video/SampleVideo_1080x720_2mb.mkv +0 -0
  202. data/spec/data/video/SampleVideo_1080x720_2mb.mp4 +0 -0
  203. data/spec/data/video/SampleVideo_176x144_2mb.3gp +0 -0
  204. data/spec/data/video/SampleVideo_320x240_2mb.3gp +0 -0
  205. data/spec/data/video/SampleVideo_360x240_2mb.flv +0 -0
  206. data/spec/data/video/SampleVideo_360x240_2mb.mkv +0 -0
  207. data/spec/data/video/SampleVideo_360x240_2mb.mp4 +0 -0
  208. data/spec/data/video/copyright.png +0 -0
  209. data/spec/data/xml/134476_ead.XML +0 -1
  210. data/spec/data/xml/134476_ead.pdf +0 -0
  211. data/spec/data/xml/134476_fo.XML +0 -383
  212. data/spec/data/xml/134476_raw.XML +0 -141
  213. data/spec/data/xml/ead2fo_pdf.xsl +0 -1453
  214. data/spec/data/xml/header_nolink_pdf.xsl +0 -120
  215. data/spec/data/xml/lookupLists.xsl +0 -488
  216. data/spec/data/xml/scope_eadToHTML.xsl +0 -2376
  217. data/spec/data/xml/scope_xmlToEAD_dom.xsl +0 -952
  218. data/spec/identifier_spec.rb +0 -161
  219. data/spec/spec_helper.rb +0 -58
  220. data/spec/test_types.yml +0 -12
  221. data/spec/type_database_spec.rb +0 -140
  222. data/tools/pdfbox/preflight-app-1.8.10.jar +0 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ Apache XML Graphics Commons
2
+ Copyright 2006-2007 The Apache Software Foundation
3
+
4
+ This product includes software developed at
5
+ The Apache Software Foundation (http://www.apache.org/).
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-02 00:00:00.000000000 Z
11
+ date: 2020-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.6'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.6'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -186,6 +172,7 @@ executables:
186
172
  - droid
187
173
  - fido
188
174
  - formatinfo
175
+ - libis_format
189
176
  - pdf_copy
190
177
  extensions: []
191
178
  extra_rdoc_files: []
@@ -197,9 +184,14 @@ files:
197
184
  - LICENSE.txt
198
185
  - README.md
199
186
  - Rakefile
187
+ - base/Dockerfile
188
+ - base/Dockerfile.alpine
189
+ - base/Dockerfile.rvm
190
+ - base/rework_path
200
191
  - bin/droid
201
192
  - bin/fido
202
193
  - bin/formatinfo
194
+ - bin/libis_format
203
195
  - bin/pdf_copy
204
196
  - data/ISOcoated_v2_eci.icc
205
197
  - data/PDFA_def.ps
@@ -208,23 +200,38 @@ files:
208
200
  - data/lias_formats.xml
209
201
  - data/types.yml
210
202
  - data/xlink.xsd
203
+ - docker_cfg.yml
211
204
  - lib/libis-format.rb
212
205
  - lib/libis/format.rb
206
+ - lib/libis/format/cli/convert.rb
207
+ - lib/libis/format/cli/format.rb
208
+ - lib/libis/format/cli/prompt_helper.rb
209
+ - lib/libis/format/cli/sub_command.rb
210
+ - lib/libis/format/command_line.rb
213
211
  - lib/libis/format/config.rb
214
212
  - lib/libis/format/converter.rb
215
213
  - lib/libis/format/converter/audio_converter.rb
216
214
  - lib/libis/format/converter/base.rb
217
215
  - lib/libis/format/converter/chain.rb
218
216
  - lib/libis/format/converter/fop_pdf_converter.rb
217
+ - lib/libis/format/converter/image_assembler.rb
219
218
  - lib/libis/format/converter/image_converter.rb
219
+ - lib/libis/format/converter/image_splitter.rb
220
+ - lib/libis/format/converter/image_watermarker.rb
220
221
  - lib/libis/format/converter/jp2_converter.rb
221
222
  - lib/libis/format/converter/office_converter.rb
223
+ - lib/libis/format/converter/pdf_assembler.rb
222
224
  - lib/libis/format/converter/pdf_converter.rb
225
+ - lib/libis/format/converter/pdf_optimizer.rb
226
+ - lib/libis/format/converter/pdf_splitter.rb
227
+ - lib/libis/format/converter/pdf_watermarker.rb
223
228
  - lib/libis/format/converter/repository.rb
224
229
  - lib/libis/format/converter/spreadsheet_converter.rb
225
230
  - lib/libis/format/converter/video_converter.rb
226
231
  - lib/libis/format/converter/xslt_converter.rb
227
232
  - lib/libis/format/identifier.rb
233
+ - lib/libis/format/info.rb
234
+ - lib/libis/format/library.rb
228
235
  - lib/libis/format/tool.rb
229
236
  - lib/libis/format/tool/droid.rb
230
237
  - lib/libis/format/tool/extension_identification.rb
@@ -241,129 +248,64 @@ files:
241
248
  - lib/libis/format/tool/pdf_to_pdfa.rb
242
249
  - lib/libis/format/tool/pdfa_validator.rb
243
250
  - lib/libis/format/tool/spreadsheet_to_ods.rb
244
- - lib/libis/format/type_database.rb
245
251
  - lib/libis/format/version.rb
252
+ - lib/libis/format/yaml_loader.rb
246
253
  - libis-format.gemspec
247
- - spec/converter_audio_spec.rb
248
- - spec/converter_fop_spec.rb
249
- - spec/converter_image_spec.rb
250
- - spec/converter_office_spec.rb
251
- - spec/converter_pdf_spec.rb
252
- - spec/converter_repository_spec.rb
253
- - spec/converter_spreadsheet_spec.rb
254
- - spec/converter_video_spec.rb
255
- - spec/converter_xsl_spec.rb
256
- - spec/data/Cevennes2.bmp
257
- - spec/data/Cevennes2.jp2
258
- - spec/data/Cevennes2.ppm
259
- - spec/data/NikonRaw-CameraRaw.TIF
260
- - spec/data/NikonRaw-CaptureOne.tif
261
- - spec/data/audio/carlin_disappointed.aac
262
- - spec/data/audio/carlin_disappointed.ac3
263
- - spec/data/audio/carlin_disappointed.aiff
264
- - spec/data/audio/carlin_disappointed.au
265
- - spec/data/audio/carlin_disappointed.flac
266
- - spec/data/audio/carlin_disappointed.m4a
267
- - spec/data/audio/carlin_disappointed.mka
268
- - spec/data/audio/carlin_disappointed.mp3
269
- - spec/data/audio/carlin_disappointed.ogg
270
- - spec/data/audio/carlin_disappointed.ra
271
- - spec/data/audio/carlin_disappointed.voc
272
- - spec/data/audio/carlin_disappointed.wav
273
- - spec/data/audio/carlin_disappointed.wma
274
- - spec/data/audio/greensleeves.aac
275
- - spec/data/audio/greensleeves.ac3
276
- - spec/data/audio/greensleeves.aiff
277
- - spec/data/audio/greensleeves.au
278
- - spec/data/audio/greensleeves.flac
279
- - spec/data/audio/greensleeves.m4a
280
- - spec/data/audio/greensleeves.mka
281
- - spec/data/audio/greensleeves.mp3
282
- - spec/data/audio/greensleeves.ogg
283
- - spec/data/audio/greensleeves.ra
284
- - spec/data/audio/greensleeves.voc
285
- - spec/data/audio/greensleeves.wav
286
- - spec/data/audio/greensleeves.wma
287
- - spec/data/audio/king_nonviolence.aac
288
- - spec/data/audio/king_nonviolence.ac3
289
- - spec/data/audio/king_nonviolence.aiff
290
- - spec/data/audio/king_nonviolence.au
291
- - spec/data/audio/king_nonviolence.flac
292
- - spec/data/audio/king_nonviolence.m4a
293
- - spec/data/audio/king_nonviolence.mka
294
- - spec/data/audio/king_nonviolence.mp3
295
- - spec/data/audio/king_nonviolence.ogg
296
- - spec/data/audio/king_nonviolence.ra
297
- - spec/data/audio/king_nonviolence.voc
298
- - spec/data/audio/king_nonviolence.wav
299
- - spec/data/audio/king_nonviolence.wma
300
- - spec/data/audio/top_gun_secret.aac
301
- - spec/data/audio/top_gun_secret.ac3
302
- - spec/data/audio/top_gun_secret.aiff
303
- - spec/data/audio/top_gun_secret.au
304
- - spec/data/audio/top_gun_secret.flac
305
- - spec/data/audio/top_gun_secret.m4a
306
- - spec/data/audio/top_gun_secret.mka
307
- - spec/data/audio/top_gun_secret.mp3
308
- - spec/data/audio/top_gun_secret.ogg
309
- - spec/data/audio/top_gun_secret.ra
310
- - spec/data/audio/top_gun_secret.voc
311
- - spec/data/audio/top_gun_secret.wav
312
- - spec/data/audio/top_gun_secret.wma
313
- - spec/data/multipage.tif
314
- - spec/data/multipage.tif.jp2
315
- - spec/data/test-ead.xml
316
- - spec/data/test-jpg.tif
317
- - spec/data/test-lzw.tif
318
- - spec/data/test-options.jpg
319
- - spec/data/test-options.png
320
- - spec/data/test.bmp
321
- - spec/data/test.doc
322
- - spec/data/test.docx
323
- - spec/data/test.gif
324
- - spec/data/test.jpg
325
- - spec/data/test.ods
326
- - spec/data/test.odt
327
- - spec/data/test.pdf
328
- - spec/data/test.pdf.tif
329
- - spec/data/test.png
330
- - spec/data/test.ps
331
- - spec/data/test.psd
332
- - spec/data/test.rtf
333
- - spec/data/test.tif
334
- - spec/data/test.txt
335
- - spec/data/test.xcf
336
- - spec/data/test.xls
337
- - spec/data/test.xlsx
338
- - spec/data/test.xml
339
- - spec/data/test_pdfa.pdf
340
- - spec/data/video/SampleVideo_1080x720_2mb.flv
341
- - spec/data/video/SampleVideo_1080x720_2mb.mkv
342
- - spec/data/video/SampleVideo_1080x720_2mb.mp4
343
- - spec/data/video/SampleVideo_176x144_2mb.3gp
344
- - spec/data/video/SampleVideo_320x240_2mb.3gp
345
- - spec/data/video/SampleVideo_360x240_2mb.flv
346
- - spec/data/video/SampleVideo_360x240_2mb.mkv
347
- - spec/data/video/SampleVideo_360x240_2mb.mp4
348
- - spec/data/video/copyright.png
349
- - spec/data/xml/134476_ead.XML
350
- - spec/data/xml/134476_ead.pdf
351
- - spec/data/xml/134476_fo.XML
352
- - spec/data/xml/134476_raw.XML
353
- - spec/data/xml/ead2fo_pdf.xsl
354
- - spec/data/xml/header_nolink_pdf.xsl
355
- - spec/data/xml/lookupLists.xsl
356
- - spec/data/xml/scope_eadToHTML.xsl
357
- - spec/data/xml/scope_xmlToEAD_dom.xsl
358
- - spec/identifier_spec.rb
359
- - spec/spec_helper.rb
360
- - spec/test_types.yml
361
- - spec/type_database_spec.rb
362
254
  - tools/PdfTool.jar
363
255
  - tools/bcpkix-jdk15on-1.49.jar
364
256
  - tools/bcprov-jdk15on-1.49.jar
365
- - tools/pdfbox/pdfbox-app-1.8.10.jar
366
- - tools/pdfbox/preflight-app-1.8.10.jar
257
+ - tools/fop/build/fop.jar
258
+ - tools/fop/conf/fop.xconf
259
+ - tools/fop/fop
260
+ - tools/fop/fop.bat
261
+ - tools/fop/fop.cmd
262
+ - tools/fop/fop.js
263
+ - tools/fop/lib/README.txt
264
+ - tools/fop/lib/avalon-framework-api-4.3.1.jar
265
+ - tools/fop/lib/avalon-framework-impl-4.3.1.jar
266
+ - tools/fop/lib/avalon-framework.LICENSE.txt
267
+ - tools/fop/lib/avalon-framework.NOTICE.TXT
268
+ - tools/fop/lib/batik-all-1.10.jar
269
+ - tools/fop/lib/batik.LICENSE.txt
270
+ - tools/fop/lib/batik.NOTICE.txt
271
+ - tools/fop/lib/commons-io-1.3.1.jar
272
+ - tools/fop/lib/commons-io.LICENSE.txt
273
+ - tools/fop/lib/commons-io.NOTICE.txt
274
+ - tools/fop/lib/commons-logging-1.0.4.jar
275
+ - tools/fop/lib/commons-logging.LICENSE.txt
276
+ - tools/fop/lib/commons-logging.NOTICE.txt
277
+ - tools/fop/lib/fontbox-2.0.7.jar
278
+ - tools/fop/lib/serializer-2.7.2.jar
279
+ - tools/fop/lib/serializer.LICENSE.txt
280
+ - tools/fop/lib/serializer.NOTICE.txt
281
+ - tools/fop/lib/xalan-2.7.2.jar
282
+ - tools/fop/lib/xalan.BCEL.LICENSE.txt
283
+ - tools/fop/lib/xalan.LICENSE.txt
284
+ - tools/fop/lib/xalan.NOTICE.txt
285
+ - tools/fop/lib/xalan.regexp.LICENSE.txt
286
+ - tools/fop/lib/xalan.runtime.LICENSE.txt
287
+ - tools/fop/lib/xerces.LICENSE.txt
288
+ - tools/fop/lib/xercesImpl-2.9.1.jar
289
+ - tools/fop/lib/xercesImpl.LICENSE.txt
290
+ - tools/fop/lib/xercesImpl.NOTICE.txt
291
+ - tools/fop/lib/xml-apis-1.3.04.jar
292
+ - tools/fop/lib/xml-apis-ext-1.3.04.jar
293
+ - tools/fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt
294
+ - tools/fop/lib/xml-apis-ext.LICENSE.dom-software.txt
295
+ - tools/fop/lib/xml-apis-ext.LICENSE.sac.html
296
+ - tools/fop/lib/xml-apis-ext.LICENSE.txt
297
+ - tools/fop/lib/xml-apis-ext.NOTICE.txt
298
+ - tools/fop/lib/xml-apis-ext.README.dom.txt
299
+ - tools/fop/lib/xml-apis.LICENSE-SAX.html
300
+ - tools/fop/lib/xml-apis.LICENSE.DOM-documentation.html
301
+ - tools/fop/lib/xml-apis.LICENSE.DOM-software.html
302
+ - tools/fop/lib/xml-apis.LICENSE.txt
303
+ - tools/fop/lib/xml-apis.NOTICE.txt
304
+ - tools/fop/lib/xmlgraphics-commons-2.3.jar
305
+ - tools/fop/lib/xmlgraphics-commons.LICENSE.txt
306
+ - tools/fop/lib/xmlgraphics-commons.NOTICE.txt
307
+ - tools/pdfbox/pdfbox-app-2.0.13.jar
308
+ - tools/pdfbox/preflight-app-2.0.13.jar
367
309
  homepage: ''
368
310
  licenses:
369
311
  - MIT
@@ -383,124 +325,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
383
325
  - !ruby/object:Gem::Version
384
326
  version: '0'
385
327
  requirements: []
386
- rubyforge_project:
387
- rubygems_version: 2.5.1
328
+ rubygems_version: 3.0.8
388
329
  signing_key:
389
330
  specification_version: 4
390
331
  summary: LIBIS File format format services.
391
- test_files:
392
- - spec/converter_audio_spec.rb
393
- - spec/converter_fop_spec.rb
394
- - spec/converter_image_spec.rb
395
- - spec/converter_office_spec.rb
396
- - spec/converter_pdf_spec.rb
397
- - spec/converter_repository_spec.rb
398
- - spec/converter_spreadsheet_spec.rb
399
- - spec/converter_video_spec.rb
400
- - spec/converter_xsl_spec.rb
401
- - spec/data/Cevennes2.bmp
402
- - spec/data/Cevennes2.jp2
403
- - spec/data/Cevennes2.ppm
404
- - spec/data/NikonRaw-CameraRaw.TIF
405
- - spec/data/NikonRaw-CaptureOne.tif
406
- - spec/data/audio/carlin_disappointed.aac
407
- - spec/data/audio/carlin_disappointed.ac3
408
- - spec/data/audio/carlin_disappointed.aiff
409
- - spec/data/audio/carlin_disappointed.au
410
- - spec/data/audio/carlin_disappointed.flac
411
- - spec/data/audio/carlin_disappointed.m4a
412
- - spec/data/audio/carlin_disappointed.mka
413
- - spec/data/audio/carlin_disappointed.mp3
414
- - spec/data/audio/carlin_disappointed.ogg
415
- - spec/data/audio/carlin_disappointed.ra
416
- - spec/data/audio/carlin_disappointed.voc
417
- - spec/data/audio/carlin_disappointed.wav
418
- - spec/data/audio/carlin_disappointed.wma
419
- - spec/data/audio/greensleeves.aac
420
- - spec/data/audio/greensleeves.ac3
421
- - spec/data/audio/greensleeves.aiff
422
- - spec/data/audio/greensleeves.au
423
- - spec/data/audio/greensleeves.flac
424
- - spec/data/audio/greensleeves.m4a
425
- - spec/data/audio/greensleeves.mka
426
- - spec/data/audio/greensleeves.mp3
427
- - spec/data/audio/greensleeves.ogg
428
- - spec/data/audio/greensleeves.ra
429
- - spec/data/audio/greensleeves.voc
430
- - spec/data/audio/greensleeves.wav
431
- - spec/data/audio/greensleeves.wma
432
- - spec/data/audio/king_nonviolence.aac
433
- - spec/data/audio/king_nonviolence.ac3
434
- - spec/data/audio/king_nonviolence.aiff
435
- - spec/data/audio/king_nonviolence.au
436
- - spec/data/audio/king_nonviolence.flac
437
- - spec/data/audio/king_nonviolence.m4a
438
- - spec/data/audio/king_nonviolence.mka
439
- - spec/data/audio/king_nonviolence.mp3
440
- - spec/data/audio/king_nonviolence.ogg
441
- - spec/data/audio/king_nonviolence.ra
442
- - spec/data/audio/king_nonviolence.voc
443
- - spec/data/audio/king_nonviolence.wav
444
- - spec/data/audio/king_nonviolence.wma
445
- - spec/data/audio/top_gun_secret.aac
446
- - spec/data/audio/top_gun_secret.ac3
447
- - spec/data/audio/top_gun_secret.aiff
448
- - spec/data/audio/top_gun_secret.au
449
- - spec/data/audio/top_gun_secret.flac
450
- - spec/data/audio/top_gun_secret.m4a
451
- - spec/data/audio/top_gun_secret.mka
452
- - spec/data/audio/top_gun_secret.mp3
453
- - spec/data/audio/top_gun_secret.ogg
454
- - spec/data/audio/top_gun_secret.ra
455
- - spec/data/audio/top_gun_secret.voc
456
- - spec/data/audio/top_gun_secret.wav
457
- - spec/data/audio/top_gun_secret.wma
458
- - spec/data/multipage.tif
459
- - spec/data/multipage.tif.jp2
460
- - spec/data/test-ead.xml
461
- - spec/data/test-jpg.tif
462
- - spec/data/test-lzw.tif
463
- - spec/data/test-options.jpg
464
- - spec/data/test-options.png
465
- - spec/data/test.bmp
466
- - spec/data/test.doc
467
- - spec/data/test.docx
468
- - spec/data/test.gif
469
- - spec/data/test.jpg
470
- - spec/data/test.ods
471
- - spec/data/test.odt
472
- - spec/data/test.pdf
473
- - spec/data/test.pdf.tif
474
- - spec/data/test.png
475
- - spec/data/test.ps
476
- - spec/data/test.psd
477
- - spec/data/test.rtf
478
- - spec/data/test.tif
479
- - spec/data/test.txt
480
- - spec/data/test.xcf
481
- - spec/data/test.xls
482
- - spec/data/test.xlsx
483
- - spec/data/test.xml
484
- - spec/data/test_pdfa.pdf
485
- - spec/data/video/SampleVideo_1080x720_2mb.flv
486
- - spec/data/video/SampleVideo_1080x720_2mb.mkv
487
- - spec/data/video/SampleVideo_1080x720_2mb.mp4
488
- - spec/data/video/SampleVideo_176x144_2mb.3gp
489
- - spec/data/video/SampleVideo_320x240_2mb.3gp
490
- - spec/data/video/SampleVideo_360x240_2mb.flv
491
- - spec/data/video/SampleVideo_360x240_2mb.mkv
492
- - spec/data/video/SampleVideo_360x240_2mb.mp4
493
- - spec/data/video/copyright.png
494
- - spec/data/xml/134476_ead.XML
495
- - spec/data/xml/134476_ead.pdf
496
- - spec/data/xml/134476_fo.XML
497
- - spec/data/xml/134476_raw.XML
498
- - spec/data/xml/ead2fo_pdf.xsl
499
- - spec/data/xml/header_nolink_pdf.xsl
500
- - spec/data/xml/lookupLists.xsl
501
- - spec/data/xml/scope_eadToHTML.xsl
502
- - spec/data/xml/scope_xmlToEAD_dom.xsl
503
- - spec/identifier_spec.rb
504
- - spec/spec_helper.rb
505
- - spec/test_types.yml
506
- - spec/type_database_spec.rb
332
+ test_files: []