libis-format 1.0.4 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +5 -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/docker_cfg.yml +1 -0
  10. data/lib/libis/format.rb +12 -3
  11. data/lib/libis/format/cli/convert.rb +4 -4
  12. data/lib/libis/format/config.rb +15 -10
  13. data/lib/libis/format/converter/audio_converter.rb +3 -37
  14. data/lib/libis/format/converter/base.rb +22 -8
  15. data/lib/libis/format/converter/chain.rb +3 -3
  16. data/lib/libis/format/converter/image_assembler.rb +82 -0
  17. data/lib/libis/format/converter/image_converter.rb +20 -138
  18. data/lib/libis/format/converter/image_splitter.rb +84 -0
  19. data/lib/libis/format/converter/image_watermarker.rb +261 -0
  20. data/lib/libis/format/converter/jp2_converter.rb +2 -2
  21. data/lib/libis/format/converter/office_converter.rb +2 -2
  22. data/lib/libis/format/converter/pdf_assembler.rb +66 -0
  23. data/lib/libis/format/converter/pdf_converter.rb +10 -134
  24. data/lib/libis/format/converter/pdf_metadata.rb +82 -0
  25. data/lib/libis/format/converter/pdf_optimizer.rb +67 -0
  26. data/lib/libis/format/converter/pdf_protecter.rb +147 -0
  27. data/lib/libis/format/converter/pdf_selecter.rb +83 -0
  28. data/lib/libis/format/converter/pdf_splitter.rb +70 -0
  29. data/lib/libis/format/converter/pdf_watermarker_header.rb +71 -0
  30. data/lib/libis/format/converter/pdf_watermarker_image.rb +76 -0
  31. data/lib/libis/format/converter/pdf_watermarker_text.rb +93 -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 +3 -3
  35. data/lib/libis/format/info.rb +27 -0
  36. data/lib/libis/format/library.rb +147 -0
  37. data/lib/libis/format/tool.rb +4 -1
  38. data/lib/libis/format/tool/droid.rb +2 -2
  39. data/lib/libis/format/tool/extension_identification.rb +4 -4
  40. data/lib/libis/format/tool/ffmpeg.rb +1 -1
  41. data/lib/libis/format/tool/fido.rb +1 -1
  42. data/lib/libis/format/tool/fop_pdf.rb +1 -1
  43. data/lib/libis/format/tool/identification_tool.rb +6 -6
  44. data/lib/libis/format/tool/office_to_pdf.rb +1 -1
  45. data/lib/libis/format/tool/pdf_merge.rb +4 -4
  46. data/lib/libis/format/tool/{pdf_copy.rb → pdf_metadata.rb} +6 -6
  47. data/lib/libis/format/tool/pdf_protect.rb +47 -0
  48. data/lib/libis/format/tool/pdf_select.rb +47 -0
  49. data/lib/libis/format/tool/pdf_split.rb +5 -5
  50. data/lib/libis/format/tool/pdf_to_pdfa.rb +1 -2
  51. data/lib/libis/format/tool/pdf_watermark.rb +47 -0
  52. data/lib/libis/format/tool/pdfa_validator.rb +3 -4
  53. data/lib/libis/format/tool/spreadsheet_to_ods.rb +2 -1
  54. data/lib/libis/format/version.rb +1 -1
  55. data/lib/libis/format/yaml_loader.rb +71 -0
  56. data/libis-format.gemspec +5 -4
  57. data/tools/PdfTool.jar +0 -0
  58. data/tools/bcpkix-jdk15on-167.jar +0 -0
  59. data/tools/bcprov-jdk15on-167.jar +0 -0
  60. data/tools/fop/build/fop.jar +0 -0
  61. data/tools/fop/conf/fop.xconf +466 -0
  62. data/tools/fop/fop +258 -0
  63. data/tools/fop/fop.bat +75 -0
  64. data/tools/fop/fop.cmd +31 -0
  65. data/tools/fop/fop.js +341 -0
  66. data/tools/fop/lib/README.txt +243 -0
  67. data/tools/fop/lib/avalon-framework-api-4.3.1.jar +0 -0
  68. data/tools/fop/lib/avalon-framework-impl-4.3.1.jar +0 -0
  69. data/tools/fop/lib/avalon-framework.LICENSE.txt +175 -0
  70. data/tools/fop/lib/avalon-framework.NOTICE.TXT +11 -0
  71. data/tools/fop/lib/batik-all-1.10.jar +0 -0
  72. data/tools/fop/lib/batik.LICENSE.txt +201 -0
  73. data/tools/fop/lib/batik.NOTICE.txt +18 -0
  74. data/tools/fop/lib/commons-io-1.3.1.jar +0 -0
  75. data/tools/fop/lib/commons-io.LICENSE.txt +203 -0
  76. data/tools/fop/lib/commons-io.NOTICE.txt +6 -0
  77. data/tools/fop/lib/commons-logging-1.0.4.jar +0 -0
  78. data/tools/fop/lib/commons-logging.LICENSE.txt +202 -0
  79. data/tools/fop/lib/commons-logging.NOTICE.txt +3 -0
  80. data/tools/fop/lib/fontbox-2.0.7.jar +0 -0
  81. data/tools/fop/lib/serializer-2.7.2.jar +0 -0
  82. data/tools/fop/lib/serializer.LICENSE.txt +201 -0
  83. data/tools/fop/lib/serializer.NOTICE.txt +15 -0
  84. data/tools/fop/lib/xalan-2.7.2.jar +0 -0
  85. data/tools/fop/lib/xalan.BCEL.LICENSE.txt +52 -0
  86. data/tools/fop/lib/xalan.LICENSE.txt +202 -0
  87. data/tools/fop/lib/xalan.NOTICE.txt +44 -0
  88. data/tools/fop/lib/xalan.regexp.LICENSE.txt +52 -0
  89. data/tools/fop/lib/xalan.runtime.LICENSE.txt +20 -0
  90. data/tools/fop/lib/xerces.LICENSE.txt +56 -0
  91. data/tools/fop/lib/xercesImpl-2.9.1.jar +0 -0
  92. data/tools/fop/lib/xercesImpl.LICENSE.txt +201 -0
  93. data/tools/fop/lib/xercesImpl.NOTICE.txt +14 -0
  94. data/tools/fop/lib/xml-apis-1.3.04.jar +0 -0
  95. data/tools/fop/lib/xml-apis-ext-1.3.04.jar +0 -0
  96. data/tools/fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt +73 -0
  97. data/tools/fop/lib/xml-apis-ext.LICENSE.dom-software.txt +61 -0
  98. data/tools/fop/lib/xml-apis-ext.LICENSE.sac.html +75 -0
  99. data/tools/fop/lib/xml-apis-ext.LICENSE.txt +202 -0
  100. data/tools/fop/lib/xml-apis-ext.NOTICE.txt +16 -0
  101. data/tools/fop/lib/xml-apis-ext.README.dom.txt +56 -0
  102. data/tools/fop/lib/xml-apis.LICENSE-SAX.html +17 -0
  103. data/tools/fop/lib/xml-apis.LICENSE.DOM-documentation.html +74 -0
  104. data/tools/fop/lib/xml-apis.LICENSE.DOM-software.html +66 -0
  105. data/tools/fop/lib/xml-apis.LICENSE.txt +201 -0
  106. data/tools/fop/lib/xml-apis.NOTICE.txt +13 -0
  107. data/tools/fop/lib/xmlgraphics-commons-2.3.jar +0 -0
  108. data/tools/fop/lib/xmlgraphics-commons.LICENSE.txt +202 -0
  109. data/tools/fop/lib/xmlgraphics-commons.NOTICE.txt +5 -0
  110. data/tools/pdfbox/pdfbox-app-2.0.13.jar +0 -0
  111. data/tools/pdfbox/{pdfbox-app-1.8.10.jar → preflight-app-2.0.13.jar} +0 -0
  112. metadata +86 -246
  113. data/lib/libis/format/type_database.rb +0 -134
  114. data/lib/libis/format/type_database_impl.rb +0 -120
  115. data/spec/converter_audio_spec.rb +0 -66
  116. data/spec/converter_fop_spec.rb +0 -37
  117. data/spec/converter_image_spec.rb +0 -166
  118. data/spec/converter_office_spec.rb +0 -84
  119. data/spec/converter_pdf_spec.rb +0 -30
  120. data/spec/converter_repository_spec.rb +0 -97
  121. data/spec/converter_spreadsheet_spec.rb +0 -39
  122. data/spec/converter_video_spec.rb +0 -97
  123. data/spec/converter_xsl_spec.rb +0 -56
  124. data/spec/data/Cevennes2.bmp +0 -0
  125. data/spec/data/Cevennes2.jp2 +0 -0
  126. data/spec/data/Cevennes2.ppm +0 -22492
  127. data/spec/data/NikonRaw-CameraRaw.TIF +0 -0
  128. data/spec/data/NikonRaw-CaptureOne.tif +0 -0
  129. data/spec/data/audio/carlin_disappointed.aac +0 -0
  130. data/spec/data/audio/carlin_disappointed.ac3 +0 -0
  131. data/spec/data/audio/carlin_disappointed.aiff +0 -0
  132. data/spec/data/audio/carlin_disappointed.au +0 -0
  133. data/spec/data/audio/carlin_disappointed.flac +0 -0
  134. data/spec/data/audio/carlin_disappointed.m4a +0 -0
  135. data/spec/data/audio/carlin_disappointed.mka +0 -0
  136. data/spec/data/audio/carlin_disappointed.mp3 +0 -0
  137. data/spec/data/audio/carlin_disappointed.ogg +0 -0
  138. data/spec/data/audio/carlin_disappointed.ra +0 -0
  139. data/spec/data/audio/carlin_disappointed.voc +0 -0
  140. data/spec/data/audio/carlin_disappointed.wav +0 -0
  141. data/spec/data/audio/carlin_disappointed.wma +0 -0
  142. data/spec/data/audio/greensleeves.aac +0 -0
  143. data/spec/data/audio/greensleeves.ac3 +0 -0
  144. data/spec/data/audio/greensleeves.aiff +0 -0
  145. data/spec/data/audio/greensleeves.au +0 -0
  146. data/spec/data/audio/greensleeves.flac +0 -0
  147. data/spec/data/audio/greensleeves.m4a +0 -0
  148. data/spec/data/audio/greensleeves.mka +0 -0
  149. data/spec/data/audio/greensleeves.mp3 +0 -0
  150. data/spec/data/audio/greensleeves.ogg +0 -0
  151. data/spec/data/audio/greensleeves.ra +0 -0
  152. data/spec/data/audio/greensleeves.voc +0 -0
  153. data/spec/data/audio/greensleeves.wav +0 -0
  154. data/spec/data/audio/greensleeves.wma +0 -0
  155. data/spec/data/audio/king_nonviolence.aac +0 -0
  156. data/spec/data/audio/king_nonviolence.ac3 +0 -0
  157. data/spec/data/audio/king_nonviolence.aiff +0 -0
  158. data/spec/data/audio/king_nonviolence.au +0 -0
  159. data/spec/data/audio/king_nonviolence.flac +0 -0
  160. data/spec/data/audio/king_nonviolence.m4a +0 -0
  161. data/spec/data/audio/king_nonviolence.mka +0 -0
  162. data/spec/data/audio/king_nonviolence.mp3 +0 -0
  163. data/spec/data/audio/king_nonviolence.ogg +0 -0
  164. data/spec/data/audio/king_nonviolence.ra +0 -0
  165. data/spec/data/audio/king_nonviolence.voc +0 -0
  166. data/spec/data/audio/king_nonviolence.wav +0 -0
  167. data/spec/data/audio/king_nonviolence.wma +0 -0
  168. data/spec/data/audio/top_gun_secret.aac +0 -0
  169. data/spec/data/audio/top_gun_secret.ac3 +0 -0
  170. data/spec/data/audio/top_gun_secret.aiff +0 -0
  171. data/spec/data/audio/top_gun_secret.au +0 -0
  172. data/spec/data/audio/top_gun_secret.flac +0 -0
  173. data/spec/data/audio/top_gun_secret.m4a +0 -0
  174. data/spec/data/audio/top_gun_secret.mka +0 -0
  175. data/spec/data/audio/top_gun_secret.mp3 +0 -0
  176. data/spec/data/audio/top_gun_secret.ogg +0 -0
  177. data/spec/data/audio/top_gun_secret.ra +0 -0
  178. data/spec/data/audio/top_gun_secret.voc +0 -0
  179. data/spec/data/audio/top_gun_secret.wav +0 -0
  180. data/spec/data/audio/top_gun_secret.wma +0 -0
  181. data/spec/data/multipage.tif +0 -0
  182. data/spec/data/multipage.tif.jp2 +0 -0
  183. data/spec/data/test-ead.xml +0 -392
  184. data/spec/data/test-jpg.tif +0 -0
  185. data/spec/data/test-lzw.tif +0 -0
  186. data/spec/data/test-options.jpg +0 -0
  187. data/spec/data/test-options.png +0 -0
  188. data/spec/data/test.bmp +0 -0
  189. data/spec/data/test.doc +0 -0
  190. data/spec/data/test.docx +0 -0
  191. data/spec/data/test.gif +0 -0
  192. data/spec/data/test.jpg +0 -0
  193. data/spec/data/test.ods +0 -0
  194. data/spec/data/test.odt +0 -0
  195. data/spec/data/test.pdf +0 -0
  196. data/spec/data/test.pdf.tif +0 -0
  197. data/spec/data/test.png +0 -0
  198. data/spec/data/test.ps +0 -8631
  199. data/spec/data/test.psd +0 -0
  200. data/spec/data/test.rtf +0 -1455
  201. data/spec/data/test.tif +0 -0
  202. data/spec/data/test.txt +0 -12
  203. data/spec/data/test.xcf +0 -0
  204. data/spec/data/test.xls +0 -0
  205. data/spec/data/test.xlsx +0 -0
  206. data/spec/data/test.xml +0 -4
  207. data/spec/data/test_pdfa.pdf +0 -0
  208. data/spec/data/video/SampleVideo_1080x720_2mb.flv +0 -0
  209. data/spec/data/video/SampleVideo_1080x720_2mb.mkv +0 -0
  210. data/spec/data/video/SampleVideo_1080x720_2mb.mp4 +0 -0
  211. data/spec/data/video/SampleVideo_176x144_2mb.3gp +0 -0
  212. data/spec/data/video/SampleVideo_320x240_2mb.3gp +0 -0
  213. data/spec/data/video/SampleVideo_360x240_2mb.flv +0 -0
  214. data/spec/data/video/SampleVideo_360x240_2mb.mkv +0 -0
  215. data/spec/data/video/SampleVideo_360x240_2mb.mp4 +0 -0
  216. data/spec/data/video/copyright.png +0 -0
  217. data/spec/data/xml/134476_ead.XML +0 -1
  218. data/spec/data/xml/134476_ead.pdf +0 -0
  219. data/spec/data/xml/134476_fo.XML +0 -383
  220. data/spec/data/xml/134476_raw.XML +0 -141
  221. data/spec/data/xml/ead2fo_pdf.xsl +0 -1453
  222. data/spec/data/xml/header_nolink_pdf.xsl +0 -120
  223. data/spec/data/xml/lookupLists.xsl +0 -488
  224. data/spec/data/xml/scope_eadToHTML.xsl +0 -2376
  225. data/spec/data/xml/scope_xmlToEAD_dom.xsl +0 -952
  226. data/spec/identifier_spec.rb +0 -161
  227. data/spec/spec_helper.rb +0 -58
  228. data/spec/test_types.yml +0 -12
  229. data/spec/type_database_spec.rb +0 -140
  230. data/tools/bcpkix-jdk15on-1.49.jar +0 -0
  231. data/tools/bcprov-jdk15on-1.49.jar +0 -0
  232. 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/).
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2021-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: libis-tools
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: 1.0.9
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '1.0'
96
+ version: 1.0.9
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: os
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -184,6 +184,10 @@ files:
184
184
  - LICENSE.txt
185
185
  - README.md
186
186
  - Rakefile
187
+ - base/Dockerfile
188
+ - base/Dockerfile.alpine
189
+ - base/Dockerfile.rvm
190
+ - base/rework_path
187
191
  - bin/droid
188
192
  - bin/fido
189
193
  - bin/formatinfo
@@ -196,6 +200,7 @@ files:
196
200
  - data/lias_formats.xml
197
201
  - data/types.yml
198
202
  - data/xlink.xsd
203
+ - docker_cfg.yml
199
204
  - lib/libis-format.rb
200
205
  - lib/libis/format.rb
201
206
  - lib/libis/format/cli/convert.rb
@@ -209,15 +214,29 @@ files:
209
214
  - lib/libis/format/converter/base.rb
210
215
  - lib/libis/format/converter/chain.rb
211
216
  - lib/libis/format/converter/fop_pdf_converter.rb
217
+ - lib/libis/format/converter/image_assembler.rb
212
218
  - lib/libis/format/converter/image_converter.rb
219
+ - lib/libis/format/converter/image_splitter.rb
220
+ - lib/libis/format/converter/image_watermarker.rb
213
221
  - lib/libis/format/converter/jp2_converter.rb
214
222
  - lib/libis/format/converter/office_converter.rb
223
+ - lib/libis/format/converter/pdf_assembler.rb
215
224
  - lib/libis/format/converter/pdf_converter.rb
225
+ - lib/libis/format/converter/pdf_metadata.rb
226
+ - lib/libis/format/converter/pdf_optimizer.rb
227
+ - lib/libis/format/converter/pdf_protecter.rb
228
+ - lib/libis/format/converter/pdf_selecter.rb
229
+ - lib/libis/format/converter/pdf_splitter.rb
230
+ - lib/libis/format/converter/pdf_watermarker_header.rb
231
+ - lib/libis/format/converter/pdf_watermarker_image.rb
232
+ - lib/libis/format/converter/pdf_watermarker_text.rb
216
233
  - lib/libis/format/converter/repository.rb
217
234
  - lib/libis/format/converter/spreadsheet_converter.rb
218
235
  - lib/libis/format/converter/video_converter.rb
219
236
  - lib/libis/format/converter/xslt_converter.rb
220
237
  - lib/libis/format/identifier.rb
238
+ - lib/libis/format/info.rb
239
+ - lib/libis/format/library.rb
221
240
  - lib/libis/format/tool.rb
222
241
  - lib/libis/format/tool/droid.rb
223
242
  - lib/libis/format/tool/extension_identification.rb
@@ -227,137 +246,74 @@ files:
227
246
  - lib/libis/format/tool/fop_pdf.rb
228
247
  - lib/libis/format/tool/identification_tool.rb
229
248
  - lib/libis/format/tool/office_to_pdf.rb
230
- - lib/libis/format/tool/pdf_copy.rb
231
249
  - lib/libis/format/tool/pdf_merge.rb
250
+ - lib/libis/format/tool/pdf_metadata.rb
232
251
  - lib/libis/format/tool/pdf_optimizer.rb
252
+ - lib/libis/format/tool/pdf_protect.rb
253
+ - lib/libis/format/tool/pdf_select.rb
233
254
  - lib/libis/format/tool/pdf_split.rb
234
255
  - lib/libis/format/tool/pdf_to_pdfa.rb
256
+ - lib/libis/format/tool/pdf_watermark.rb
235
257
  - lib/libis/format/tool/pdfa_validator.rb
236
258
  - lib/libis/format/tool/spreadsheet_to_ods.rb
237
- - lib/libis/format/type_database.rb
238
- - lib/libis/format/type_database_impl.rb
239
259
  - lib/libis/format/version.rb
260
+ - lib/libis/format/yaml_loader.rb
240
261
  - libis-format.gemspec
241
- - spec/converter_audio_spec.rb
242
- - spec/converter_fop_spec.rb
243
- - spec/converter_image_spec.rb
244
- - spec/converter_office_spec.rb
245
- - spec/converter_pdf_spec.rb
246
- - spec/converter_repository_spec.rb
247
- - spec/converter_spreadsheet_spec.rb
248
- - spec/converter_video_spec.rb
249
- - spec/converter_xsl_spec.rb
250
- - spec/data/Cevennes2.bmp
251
- - spec/data/Cevennes2.jp2
252
- - spec/data/Cevennes2.ppm
253
- - spec/data/NikonRaw-CameraRaw.TIF
254
- - spec/data/NikonRaw-CaptureOne.tif
255
- - spec/data/audio/carlin_disappointed.aac
256
- - spec/data/audio/carlin_disappointed.ac3
257
- - spec/data/audio/carlin_disappointed.aiff
258
- - spec/data/audio/carlin_disappointed.au
259
- - spec/data/audio/carlin_disappointed.flac
260
- - spec/data/audio/carlin_disappointed.m4a
261
- - spec/data/audio/carlin_disappointed.mka
262
- - spec/data/audio/carlin_disappointed.mp3
263
- - spec/data/audio/carlin_disappointed.ogg
264
- - spec/data/audio/carlin_disappointed.ra
265
- - spec/data/audio/carlin_disappointed.voc
266
- - spec/data/audio/carlin_disappointed.wav
267
- - spec/data/audio/carlin_disappointed.wma
268
- - spec/data/audio/greensleeves.aac
269
- - spec/data/audio/greensleeves.ac3
270
- - spec/data/audio/greensleeves.aiff
271
- - spec/data/audio/greensleeves.au
272
- - spec/data/audio/greensleeves.flac
273
- - spec/data/audio/greensleeves.m4a
274
- - spec/data/audio/greensleeves.mka
275
- - spec/data/audio/greensleeves.mp3
276
- - spec/data/audio/greensleeves.ogg
277
- - spec/data/audio/greensleeves.ra
278
- - spec/data/audio/greensleeves.voc
279
- - spec/data/audio/greensleeves.wav
280
- - spec/data/audio/greensleeves.wma
281
- - spec/data/audio/king_nonviolence.aac
282
- - spec/data/audio/king_nonviolence.ac3
283
- - spec/data/audio/king_nonviolence.aiff
284
- - spec/data/audio/king_nonviolence.au
285
- - spec/data/audio/king_nonviolence.flac
286
- - spec/data/audio/king_nonviolence.m4a
287
- - spec/data/audio/king_nonviolence.mka
288
- - spec/data/audio/king_nonviolence.mp3
289
- - spec/data/audio/king_nonviolence.ogg
290
- - spec/data/audio/king_nonviolence.ra
291
- - spec/data/audio/king_nonviolence.voc
292
- - spec/data/audio/king_nonviolence.wav
293
- - spec/data/audio/king_nonviolence.wma
294
- - spec/data/audio/top_gun_secret.aac
295
- - spec/data/audio/top_gun_secret.ac3
296
- - spec/data/audio/top_gun_secret.aiff
297
- - spec/data/audio/top_gun_secret.au
298
- - spec/data/audio/top_gun_secret.flac
299
- - spec/data/audio/top_gun_secret.m4a
300
- - spec/data/audio/top_gun_secret.mka
301
- - spec/data/audio/top_gun_secret.mp3
302
- - spec/data/audio/top_gun_secret.ogg
303
- - spec/data/audio/top_gun_secret.ra
304
- - spec/data/audio/top_gun_secret.voc
305
- - spec/data/audio/top_gun_secret.wav
306
- - spec/data/audio/top_gun_secret.wma
307
- - spec/data/multipage.tif
308
- - spec/data/multipage.tif.jp2
309
- - spec/data/test-ead.xml
310
- - spec/data/test-jpg.tif
311
- - spec/data/test-lzw.tif
312
- - spec/data/test-options.jpg
313
- - spec/data/test-options.png
314
- - spec/data/test.bmp
315
- - spec/data/test.doc
316
- - spec/data/test.docx
317
- - spec/data/test.gif
318
- - spec/data/test.jpg
319
- - spec/data/test.ods
320
- - spec/data/test.odt
321
- - spec/data/test.pdf
322
- - spec/data/test.pdf.tif
323
- - spec/data/test.png
324
- - spec/data/test.ps
325
- - spec/data/test.psd
326
- - spec/data/test.rtf
327
- - spec/data/test.tif
328
- - spec/data/test.txt
329
- - spec/data/test.xcf
330
- - spec/data/test.xls
331
- - spec/data/test.xlsx
332
- - spec/data/test.xml
333
- - spec/data/test_pdfa.pdf
334
- - spec/data/video/SampleVideo_1080x720_2mb.flv
335
- - spec/data/video/SampleVideo_1080x720_2mb.mkv
336
- - spec/data/video/SampleVideo_1080x720_2mb.mp4
337
- - spec/data/video/SampleVideo_176x144_2mb.3gp
338
- - spec/data/video/SampleVideo_320x240_2mb.3gp
339
- - spec/data/video/SampleVideo_360x240_2mb.flv
340
- - spec/data/video/SampleVideo_360x240_2mb.mkv
341
- - spec/data/video/SampleVideo_360x240_2mb.mp4
342
- - spec/data/video/copyright.png
343
- - spec/data/xml/134476_ead.XML
344
- - spec/data/xml/134476_ead.pdf
345
- - spec/data/xml/134476_fo.XML
346
- - spec/data/xml/134476_raw.XML
347
- - spec/data/xml/ead2fo_pdf.xsl
348
- - spec/data/xml/header_nolink_pdf.xsl
349
- - spec/data/xml/lookupLists.xsl
350
- - spec/data/xml/scope_eadToHTML.xsl
351
- - spec/data/xml/scope_xmlToEAD_dom.xsl
352
- - spec/identifier_spec.rb
353
- - spec/spec_helper.rb
354
- - spec/test_types.yml
355
- - spec/type_database_spec.rb
356
262
  - tools/PdfTool.jar
357
- - tools/bcpkix-jdk15on-1.49.jar
358
- - tools/bcprov-jdk15on-1.49.jar
359
- - tools/pdfbox/pdfbox-app-1.8.10.jar
360
- - tools/pdfbox/preflight-app-1.8.10.jar
263
+ - tools/bcpkix-jdk15on-167.jar
264
+ - tools/bcprov-jdk15on-167.jar
265
+ - tools/fop/build/fop.jar
266
+ - tools/fop/conf/fop.xconf
267
+ - tools/fop/fop
268
+ - tools/fop/fop.bat
269
+ - tools/fop/fop.cmd
270
+ - tools/fop/fop.js
271
+ - tools/fop/lib/README.txt
272
+ - tools/fop/lib/avalon-framework-api-4.3.1.jar
273
+ - tools/fop/lib/avalon-framework-impl-4.3.1.jar
274
+ - tools/fop/lib/avalon-framework.LICENSE.txt
275
+ - tools/fop/lib/avalon-framework.NOTICE.TXT
276
+ - tools/fop/lib/batik-all-1.10.jar
277
+ - tools/fop/lib/batik.LICENSE.txt
278
+ - tools/fop/lib/batik.NOTICE.txt
279
+ - tools/fop/lib/commons-io-1.3.1.jar
280
+ - tools/fop/lib/commons-io.LICENSE.txt
281
+ - tools/fop/lib/commons-io.NOTICE.txt
282
+ - tools/fop/lib/commons-logging-1.0.4.jar
283
+ - tools/fop/lib/commons-logging.LICENSE.txt
284
+ - tools/fop/lib/commons-logging.NOTICE.txt
285
+ - tools/fop/lib/fontbox-2.0.7.jar
286
+ - tools/fop/lib/serializer-2.7.2.jar
287
+ - tools/fop/lib/serializer.LICENSE.txt
288
+ - tools/fop/lib/serializer.NOTICE.txt
289
+ - tools/fop/lib/xalan-2.7.2.jar
290
+ - tools/fop/lib/xalan.BCEL.LICENSE.txt
291
+ - tools/fop/lib/xalan.LICENSE.txt
292
+ - tools/fop/lib/xalan.NOTICE.txt
293
+ - tools/fop/lib/xalan.regexp.LICENSE.txt
294
+ - tools/fop/lib/xalan.runtime.LICENSE.txt
295
+ - tools/fop/lib/xerces.LICENSE.txt
296
+ - tools/fop/lib/xercesImpl-2.9.1.jar
297
+ - tools/fop/lib/xercesImpl.LICENSE.txt
298
+ - tools/fop/lib/xercesImpl.NOTICE.txt
299
+ - tools/fop/lib/xml-apis-1.3.04.jar
300
+ - tools/fop/lib/xml-apis-ext-1.3.04.jar
301
+ - tools/fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt
302
+ - tools/fop/lib/xml-apis-ext.LICENSE.dom-software.txt
303
+ - tools/fop/lib/xml-apis-ext.LICENSE.sac.html
304
+ - tools/fop/lib/xml-apis-ext.LICENSE.txt
305
+ - tools/fop/lib/xml-apis-ext.NOTICE.txt
306
+ - tools/fop/lib/xml-apis-ext.README.dom.txt
307
+ - tools/fop/lib/xml-apis.LICENSE-SAX.html
308
+ - tools/fop/lib/xml-apis.LICENSE.DOM-documentation.html
309
+ - tools/fop/lib/xml-apis.LICENSE.DOM-software.html
310
+ - tools/fop/lib/xml-apis.LICENSE.txt
311
+ - tools/fop/lib/xml-apis.NOTICE.txt
312
+ - tools/fop/lib/xmlgraphics-commons-2.3.jar
313
+ - tools/fop/lib/xmlgraphics-commons.LICENSE.txt
314
+ - tools/fop/lib/xmlgraphics-commons.NOTICE.txt
315
+ - tools/pdfbox/pdfbox-app-2.0.13.jar
316
+ - tools/pdfbox/preflight-app-2.0.13.jar
361
317
  homepage: ''
362
318
  licenses:
363
319
  - MIT
@@ -377,124 +333,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
377
333
  - !ruby/object:Gem::Version
378
334
  version: '0'
379
335
  requirements: []
380
- rubyforge_project:
381
- rubygems_version: 2.5.1
336
+ rubygems_version: 3.1.4
382
337
  signing_key:
383
338
  specification_version: 4
384
339
  summary: LIBIS File format format services.
385
- test_files:
386
- - spec/converter_audio_spec.rb
387
- - spec/converter_fop_spec.rb
388
- - spec/converter_image_spec.rb
389
- - spec/converter_office_spec.rb
390
- - spec/converter_pdf_spec.rb
391
- - spec/converter_repository_spec.rb
392
- - spec/converter_spreadsheet_spec.rb
393
- - spec/converter_video_spec.rb
394
- - spec/converter_xsl_spec.rb
395
- - spec/data/Cevennes2.bmp
396
- - spec/data/Cevennes2.jp2
397
- - spec/data/Cevennes2.ppm
398
- - spec/data/NikonRaw-CameraRaw.TIF
399
- - spec/data/NikonRaw-CaptureOne.tif
400
- - spec/data/audio/carlin_disappointed.aac
401
- - spec/data/audio/carlin_disappointed.ac3
402
- - spec/data/audio/carlin_disappointed.aiff
403
- - spec/data/audio/carlin_disappointed.au
404
- - spec/data/audio/carlin_disappointed.flac
405
- - spec/data/audio/carlin_disappointed.m4a
406
- - spec/data/audio/carlin_disappointed.mka
407
- - spec/data/audio/carlin_disappointed.mp3
408
- - spec/data/audio/carlin_disappointed.ogg
409
- - spec/data/audio/carlin_disappointed.ra
410
- - spec/data/audio/carlin_disappointed.voc
411
- - spec/data/audio/carlin_disappointed.wav
412
- - spec/data/audio/carlin_disappointed.wma
413
- - spec/data/audio/greensleeves.aac
414
- - spec/data/audio/greensleeves.ac3
415
- - spec/data/audio/greensleeves.aiff
416
- - spec/data/audio/greensleeves.au
417
- - spec/data/audio/greensleeves.flac
418
- - spec/data/audio/greensleeves.m4a
419
- - spec/data/audio/greensleeves.mka
420
- - spec/data/audio/greensleeves.mp3
421
- - spec/data/audio/greensleeves.ogg
422
- - spec/data/audio/greensleeves.ra
423
- - spec/data/audio/greensleeves.voc
424
- - spec/data/audio/greensleeves.wav
425
- - spec/data/audio/greensleeves.wma
426
- - spec/data/audio/king_nonviolence.aac
427
- - spec/data/audio/king_nonviolence.ac3
428
- - spec/data/audio/king_nonviolence.aiff
429
- - spec/data/audio/king_nonviolence.au
430
- - spec/data/audio/king_nonviolence.flac
431
- - spec/data/audio/king_nonviolence.m4a
432
- - spec/data/audio/king_nonviolence.mka
433
- - spec/data/audio/king_nonviolence.mp3
434
- - spec/data/audio/king_nonviolence.ogg
435
- - spec/data/audio/king_nonviolence.ra
436
- - spec/data/audio/king_nonviolence.voc
437
- - spec/data/audio/king_nonviolence.wav
438
- - spec/data/audio/king_nonviolence.wma
439
- - spec/data/audio/top_gun_secret.aac
440
- - spec/data/audio/top_gun_secret.ac3
441
- - spec/data/audio/top_gun_secret.aiff
442
- - spec/data/audio/top_gun_secret.au
443
- - spec/data/audio/top_gun_secret.flac
444
- - spec/data/audio/top_gun_secret.m4a
445
- - spec/data/audio/top_gun_secret.mka
446
- - spec/data/audio/top_gun_secret.mp3
447
- - spec/data/audio/top_gun_secret.ogg
448
- - spec/data/audio/top_gun_secret.ra
449
- - spec/data/audio/top_gun_secret.voc
450
- - spec/data/audio/top_gun_secret.wav
451
- - spec/data/audio/top_gun_secret.wma
452
- - spec/data/multipage.tif
453
- - spec/data/multipage.tif.jp2
454
- - spec/data/test-ead.xml
455
- - spec/data/test-jpg.tif
456
- - spec/data/test-lzw.tif
457
- - spec/data/test-options.jpg
458
- - spec/data/test-options.png
459
- - spec/data/test.bmp
460
- - spec/data/test.doc
461
- - spec/data/test.docx
462
- - spec/data/test.gif
463
- - spec/data/test.jpg
464
- - spec/data/test.ods
465
- - spec/data/test.odt
466
- - spec/data/test.pdf
467
- - spec/data/test.pdf.tif
468
- - spec/data/test.png
469
- - spec/data/test.ps
470
- - spec/data/test.psd
471
- - spec/data/test.rtf
472
- - spec/data/test.tif
473
- - spec/data/test.txt
474
- - spec/data/test.xcf
475
- - spec/data/test.xls
476
- - spec/data/test.xlsx
477
- - spec/data/test.xml
478
- - spec/data/test_pdfa.pdf
479
- - spec/data/video/SampleVideo_1080x720_2mb.flv
480
- - spec/data/video/SampleVideo_1080x720_2mb.mkv
481
- - spec/data/video/SampleVideo_1080x720_2mb.mp4
482
- - spec/data/video/SampleVideo_176x144_2mb.3gp
483
- - spec/data/video/SampleVideo_320x240_2mb.3gp
484
- - spec/data/video/SampleVideo_360x240_2mb.flv
485
- - spec/data/video/SampleVideo_360x240_2mb.mkv
486
- - spec/data/video/SampleVideo_360x240_2mb.mp4
487
- - spec/data/video/copyright.png
488
- - spec/data/xml/134476_ead.XML
489
- - spec/data/xml/134476_ead.pdf
490
- - spec/data/xml/134476_fo.XML
491
- - spec/data/xml/134476_raw.XML
492
- - spec/data/xml/ead2fo_pdf.xsl
493
- - spec/data/xml/header_nolink_pdf.xsl
494
- - spec/data/xml/lookupLists.xsl
495
- - spec/data/xml/scope_eadToHTML.xsl
496
- - spec/data/xml/scope_xmlToEAD_dom.xsl
497
- - spec/identifier_spec.rb
498
- - spec/spec_helper.rb
499
- - spec/test_types.yml
500
- - spec/type_database_spec.rb
340
+ test_files: []