libis-format 1.2.1 → 2.0.0
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 +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +19 -23
- data/Gemfile +0 -2
- data/README.md +2 -2
- data/base/Dockerfile +5 -3
- data/base/rework_path +5 -10
- data/data/PDFA_def.ps +3 -3
- data/data/eciRGB_v2.icc +0 -0
- data/lib/libis/format/cli/convert.rb +4 -4
- data/lib/libis/format/config.rb +3 -3
- data/lib/libis/format/converter/audio_converter.rb +6 -38
- data/lib/libis/format/converter/base.rb +21 -8
- data/lib/libis/format/converter/chain.rb +7 -19
- data/lib/libis/format/converter/fop_pdf_converter.rb +2 -0
- data/lib/libis/format/converter/image_assembler.rb +82 -0
- data/lib/libis/format/converter/image_converter.rb +21 -141
- data/lib/libis/format/converter/image_splitter.rb +80 -0
- data/lib/libis/format/converter/image_watermarker.rb +261 -0
- data/lib/libis/format/converter/jp2_converter.rb +4 -4
- data/lib/libis/format/converter/office_converter.rb +5 -3
- data/lib/libis/format/converter/pdf_assembler.rb +66 -0
- data/lib/libis/format/converter/pdf_converter.rb +31 -98
- data/lib/libis/format/converter/pdf_optimizer.rb +70 -0
- data/lib/libis/format/converter/pdf_splitter.rb +65 -0
- data/lib/libis/format/converter/pdf_watermarker.rb +110 -0
- data/lib/libis/format/converter/spreadsheet_converter.rb +5 -3
- data/lib/libis/format/converter/video_converter.rb +3 -6
- data/lib/libis/format/converter/xslt_converter.rb +14 -15
- data/lib/libis/format/identifier.rb +3 -3
- data/lib/libis/format/info.rb +27 -0
- data/lib/libis/format/library.rb +147 -0
- data/lib/libis/format/tool/extension_identification.rb +4 -4
- data/lib/libis/format/tool/{ff_mpeg.rb → ffmpeg.rb} +1 -10
- data/lib/libis/format/tool/fop_pdf.rb +0 -12
- data/lib/libis/format/tool/identification_tool.rb +6 -6
- data/lib/libis/format/tool/office_to_pdf.rb +1 -10
- data/lib/libis/format/tool/pdf_copy.rb +1 -11
- data/lib/libis/format/tool/pdf_merge.rb +1 -11
- data/lib/libis/format/tool/pdf_optimizer.rb +2 -11
- data/lib/libis/format/tool/pdf_split.rb +1 -11
- data/lib/libis/format/tool/pdf_to_pdfa.rb +43 -59
- data/lib/libis/format/tool/pdfa_validator.rb +35 -28
- data/lib/libis/format/tool/spreadsheet_to_ods.rb +2 -10
- data/lib/libis/format/tool.rb +1 -1
- data/lib/libis/format/version.rb +1 -1
- data/lib/libis/format/yaml_loader.rb +71 -0
- data/lib/libis/format.rb +5 -2
- data/libis-format.gemspec +3 -5
- data/tools/fop/fop.bat +75 -75
- data/tools/fop/fop.cmd +31 -31
- data/tools/fop/fop.js +341 -341
- data/tools/fop/lib/avalon-framework.NOTICE.TXT +11 -11
- data/tools/fop/lib/xml-apis.LICENSE-SAX.html +17 -17
- data/tools/fop/lib/xml-apis.LICENSE.DOM-documentation.html +74 -74
- data/tools/fop/lib/xml-apis.LICENSE.DOM-software.html +66 -66
- metadata +19 -29
- data/data/AdobeRGB1998.icc +0 -0
- data/lib/libis/format/converter/email_converter.rb +0 -38
- data/lib/libis/format/tool/email_to_pdf.rb +0 -75
- data/lib/libis/format/type_database.rb +0 -133
- data/lib/libis/format/type_database_impl.rb +0 -120
- data/tools/emailconverter.jar +0 -0
- data/tools/pdf2pdfa +0 -395
- /data/bin/{droid_tool → droid} +0 -0
- /data/bin/{fido_tool → fido} +0 -0
@@ -1,11 +1,11 @@
|
|
1
|
-
=========================================================================
|
2
|
-
== NOTICE file corresponding to the section 4 d of ==
|
3
|
-
== the Apache License, Version 2.0, ==
|
4
|
-
=========================================================================
|
5
|
-
|
6
|
-
This product is developed by the Apache Avalon Project.
|
7
|
-
http://avalon.apache.org
|
8
|
-
|
9
|
-
The names "Avalon" and "Merlin" must not be used to endorse or promote
|
10
|
-
products derived from this software without prior written permission.
|
11
|
-
For written permission, please contact pmc@avalon.apache.org.
|
1
|
+
=========================================================================
|
2
|
+
== NOTICE file corresponding to the section 4 d of ==
|
3
|
+
== the Apache License, Version 2.0, ==
|
4
|
+
=========================================================================
|
5
|
+
|
6
|
+
This product is developed by the Apache Avalon Project.
|
7
|
+
http://avalon.apache.org
|
8
|
+
|
9
|
+
The names "Avalon" and "Merlin" must not be used to endorse or promote
|
10
|
+
products derived from this software without prior written permission.
|
11
|
+
For written permission, please contact pmc@avalon.apache.org.
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<html>
|
2
|
-
<head>SAX LICENSE</head>
|
3
|
-
<body>
|
4
|
-
<p>This license applies to all interfaces and classes in the
|
5
|
-
org/xml/sax hierarchy.
|
6
|
-
</p>
|
7
|
-
<p>
|
8
|
-
<blockquote>
|
9
|
-
<em>This module, both source code and documentation, is in the
|
10
|
-
Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
11
|
-
See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
12
|
-
for further information.
|
13
|
-
</blockquote>
|
14
|
-
</p>
|
15
|
-
</body>
|
16
|
-
</html>
|
17
|
-
|
1
|
+
<html>
|
2
|
+
<head>SAX LICENSE</head>
|
3
|
+
<body>
|
4
|
+
<p>This license applies to all interfaces and classes in the
|
5
|
+
org/xml/sax hierarchy.
|
6
|
+
</p>
|
7
|
+
<p>
|
8
|
+
<blockquote>
|
9
|
+
<em>This module, both source code and documentation, is in the
|
10
|
+
Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
|
11
|
+
See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
12
|
+
for further information.
|
13
|
+
</blockquote>
|
14
|
+
</p>
|
15
|
+
</body>
|
16
|
+
</html>
|
17
|
+
|
@@ -1,74 +1,74 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
2
|
-
<?xml version="1.0" encoding="iso-8859-1"?><HTML
|
3
|
-
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>W3C Document License</TITLE>
|
4
|
-
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
|
5
|
-
|
6
|
-
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
|
7
|
-
<BODY text=#000000 bgColor=#ffffff>
|
8
|
-
<H1>W3C<SUP>�</SUP> DOCUMENT LICENSE</H1>
|
9
|
-
<H3 id=version><A
|
10
|
-
href="http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231</A></H3>
|
11
|
-
<P>Public documents on the W3C site are provided by the copyright holders under
|
12
|
-
the following license. By using and/or copying this document, or the W3C
|
13
|
-
document from which this statement is linked, you (the licensee) agree that you
|
14
|
-
have read, understood, and will comply with the following terms and
|
15
|
-
conditions:</P>
|
16
|
-
<P>Permission to copy, and distribute the contents of this document, or the W3C
|
17
|
-
document from which this statement is linked, in any medium for any purpose and
|
18
|
-
without fee or royalty is hereby granted, provided that you include the
|
19
|
-
following on <I>ALL</I> copies of the document, or portions thereof, that you
|
20
|
-
use:</P>
|
21
|
-
<OL>
|
22
|
-
<LI>A link or URL to the original W3C document.
|
23
|
-
<LI>The pre-existing copyright notice of the original author, or if it doesn't
|
24
|
-
exist, a notice (hypertext is preferred, but a textual representation is
|
25
|
-
permitted) of the form: "Copyright � [$date-of-document] <A
|
26
|
-
href="http://www.w3.org/">World Wide Web Consortium</A>, (<A
|
27
|
-
href="http://www.lcs.mit.edu/">Massachusetts Institute of Technology</A>, <A
|
28
|
-
href="http://www.ercim.org/">European Research Consortium for Informatics and
|
29
|
-
Mathematics</A>, <A href="http://www.keio.ac.jp/">Keio University</A>). All
|
30
|
-
Rights Reserved. <A
|
31
|
-
href="http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231</A>"
|
32
|
-
|
33
|
-
<LI><EM>If it exists</EM>, the STATUS of the W3C document. </LI></OL>
|
34
|
-
<P>When space permits, inclusion of the full text of this <B>NOTICE</B> should
|
35
|
-
be provided. We request that authorship attribution be provided in any software,
|
36
|
-
documents, or other items or products that you create pursuant to the
|
37
|
-
implementation of the contents of this document, or any portion thereof.</P>
|
38
|
-
<P>No right to create modifications or derivatives of W3C documents is granted
|
39
|
-
pursuant to this license. However, if additional requirements (documented in the
|
40
|
-
<A href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A>) are
|
41
|
-
satisfied, the right to create modifications or derivatives is sometimes
|
42
|
-
granted by the W3C to individuals complying with those requirements.</P>
|
43
|
-
<P>THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
|
44
|
-
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED
|
45
|
-
TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
|
46
|
-
NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR
|
47
|
-
ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY
|
48
|
-
THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</P>
|
49
|
-
<P>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
50
|
-
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE
|
51
|
-
OR IMPLEMENTATION OF THE CONTENTS THEREOF.</P>
|
52
|
-
<P>The name and trademarks of copyright holders may NOT be used in advertising
|
53
|
-
or publicity pertaining to this document or its contents without specific,
|
54
|
-
written prior permission. Title to copyright in this document will at all times
|
55
|
-
remain with copyright holders.</P>
|
56
|
-
<P></P>
|
57
|
-
<P>----------------------------------------------------------------------------</P>
|
58
|
-
<P>This formulation of W3C's notice and license became active on December 31
|
59
|
-
2002. This version removes the copyright ownership notice such that this license
|
60
|
-
can be used with materials other than those owned by the W3C, moves information
|
61
|
-
on style sheets, DTDs, and schemas to the <A
|
62
|
-
href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A>, reflects
|
63
|
-
that ERCIM is now a host of the W3C, includes references to this specific dated
|
64
|
-
version of the license, and removes the ambiguous grant of "use". See the <A
|
65
|
-
href="http://www.w3.org/Consortium/Legal/copyright-documents-19990405">older
|
66
|
-
formulation</A> for the policy prior to this date. Please see our <A
|
67
|
-
href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A> for common
|
68
|
-
questions about using materials from our site, such as the translating or
|
69
|
-
annotating specifications. Other questions about this notice can be directed to
|
70
|
-
<A href="mailto:site-policy@w3.org">site-policy@w3.org</A>.</P>
|
71
|
-
<P></P>
|
72
|
-
<ADDRESS>Joseph Reagle <<A
|
73
|
-
href="mailto:site-policy@w3.org">mailto:site-policy@w3.org</A> </ADDRESS>
|
74
|
-
<P>Last revised by Reagle $Date: 2005/07/19 16:33:09 $</P></BODY></HTML>
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
2
|
+
<?xml version="1.0" encoding="iso-8859-1"?><HTML
|
3
|
+
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>W3C Document License</TITLE>
|
4
|
+
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
|
5
|
+
|
6
|
+
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
|
7
|
+
<BODY text=#000000 bgColor=#ffffff>
|
8
|
+
<H1>W3C<SUP>�</SUP> DOCUMENT LICENSE</H1>
|
9
|
+
<H3 id=version><A
|
10
|
+
href="http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231</A></H3>
|
11
|
+
<P>Public documents on the W3C site are provided by the copyright holders under
|
12
|
+
the following license. By using and/or copying this document, or the W3C
|
13
|
+
document from which this statement is linked, you (the licensee) agree that you
|
14
|
+
have read, understood, and will comply with the following terms and
|
15
|
+
conditions:</P>
|
16
|
+
<P>Permission to copy, and distribute the contents of this document, or the W3C
|
17
|
+
document from which this statement is linked, in any medium for any purpose and
|
18
|
+
without fee or royalty is hereby granted, provided that you include the
|
19
|
+
following on <I>ALL</I> copies of the document, or portions thereof, that you
|
20
|
+
use:</P>
|
21
|
+
<OL>
|
22
|
+
<LI>A link or URL to the original W3C document.
|
23
|
+
<LI>The pre-existing copyright notice of the original author, or if it doesn't
|
24
|
+
exist, a notice (hypertext is preferred, but a textual representation is
|
25
|
+
permitted) of the form: "Copyright � [$date-of-document] <A
|
26
|
+
href="http://www.w3.org/">World Wide Web Consortium</A>, (<A
|
27
|
+
href="http://www.lcs.mit.edu/">Massachusetts Institute of Technology</A>, <A
|
28
|
+
href="http://www.ercim.org/">European Research Consortium for Informatics and
|
29
|
+
Mathematics</A>, <A href="http://www.keio.ac.jp/">Keio University</A>). All
|
30
|
+
Rights Reserved. <A
|
31
|
+
href="http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231</A>"
|
32
|
+
|
33
|
+
<LI><EM>If it exists</EM>, the STATUS of the W3C document. </LI></OL>
|
34
|
+
<P>When space permits, inclusion of the full text of this <B>NOTICE</B> should
|
35
|
+
be provided. We request that authorship attribution be provided in any software,
|
36
|
+
documents, or other items or products that you create pursuant to the
|
37
|
+
implementation of the contents of this document, or any portion thereof.</P>
|
38
|
+
<P>No right to create modifications or derivatives of W3C documents is granted
|
39
|
+
pursuant to this license. However, if additional requirements (documented in the
|
40
|
+
<A href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A>) are
|
41
|
+
satisfied, the right to create modifications or derivatives is sometimes
|
42
|
+
granted by the W3C to individuals complying with those requirements.</P>
|
43
|
+
<P>THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
|
44
|
+
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED
|
45
|
+
TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
|
46
|
+
NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR
|
47
|
+
ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY
|
48
|
+
THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</P>
|
49
|
+
<P>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
50
|
+
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE
|
51
|
+
OR IMPLEMENTATION OF THE CONTENTS THEREOF.</P>
|
52
|
+
<P>The name and trademarks of copyright holders may NOT be used in advertising
|
53
|
+
or publicity pertaining to this document or its contents without specific,
|
54
|
+
written prior permission. Title to copyright in this document will at all times
|
55
|
+
remain with copyright holders.</P>
|
56
|
+
<P></P>
|
57
|
+
<P>----------------------------------------------------------------------------</P>
|
58
|
+
<P>This formulation of W3C's notice and license became active on December 31
|
59
|
+
2002. This version removes the copyright ownership notice such that this license
|
60
|
+
can be used with materials other than those owned by the W3C, moves information
|
61
|
+
on style sheets, DTDs, and schemas to the <A
|
62
|
+
href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A>, reflects
|
63
|
+
that ERCIM is now a host of the W3C, includes references to this specific dated
|
64
|
+
version of the license, and removes the ambiguous grant of "use". See the <A
|
65
|
+
href="http://www.w3.org/Consortium/Legal/copyright-documents-19990405">older
|
66
|
+
formulation</A> for the policy prior to this date. Please see our <A
|
67
|
+
href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A> for common
|
68
|
+
questions about using materials from our site, such as the translating or
|
69
|
+
annotating specifications. Other questions about this notice can be directed to
|
70
|
+
<A href="mailto:site-policy@w3.org">site-policy@w3.org</A>.</P>
|
71
|
+
<P></P>
|
72
|
+
<ADDRESS>Joseph Reagle <<A
|
73
|
+
href="mailto:site-policy@w3.org">mailto:site-policy@w3.org</A> </ADDRESS>
|
74
|
+
<P>Last revised by Reagle $Date: 2005/07/19 16:33:09 $</P></BODY></HTML>
|
@@ -1,66 +1,66 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
2
|
-
<?xml version="1.0" encoding="iso-8859-1"?><HTML
|
3
|
-
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>W3C Software License</TITLE>
|
4
|
-
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
|
5
|
-
|
6
|
-
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
|
7
|
-
<BODY text=#000000 bgColor=#ffffff>
|
8
|
-
<H1>W3C<SUP>�</SUP> SOFTWARE NOTICE AND LICENSE</H1>
|
9
|
-
<H3 id=version><A
|
10
|
-
href="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231</A></H3>
|
11
|
-
<P>This work (and included software, documentation such as READMEs, or other
|
12
|
-
related items) is being provided by the copyright holders under the following
|
13
|
-
license. By obtaining, using and/or copying this work, you (the licensee) agree
|
14
|
-
that you have read, understood, and will comply with the following terms and
|
15
|
-
conditions.</P>
|
16
|
-
<P>Permission to copy, modify, and distribute this software and its
|
17
|
-
documentation, with or without modification, for any purpose and without
|
18
|
-
fee or royalty is hereby granted, provided that you include the following on ALL
|
19
|
-
copies of the software and documentation or portions thereof, including
|
20
|
-
modifications:</P>
|
21
|
-
<OL>
|
22
|
-
<LI>The full text of this NOTICE in a location viewable to users of the
|
23
|
-
redistributed or derivative work.
|
24
|
-
<LI>Any pre-existing intellectual property disclaimers, notices, or terms and
|
25
|
-
conditions. If none exist, the <A
|
26
|
-
href="http://www.w3.org/Consortium/Legal/2002/copyright-software-short-notice-20021231.html">W3C
|
27
|
-
Software Short Notice</A> should be included (hypertext is preferred, text is
|
28
|
-
permitted) within the body of any redistributed or derivative code.
|
29
|
-
<LI>Notice of any changes or modifications to the files, including the date
|
30
|
-
changes were made. (We recommend you provide URIs to the location from which
|
31
|
-
the code is derived.) </LI></OL>
|
32
|
-
<P>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS
|
33
|
-
MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
34
|
-
LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE
|
35
|
-
OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
|
36
|
-
PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</P>
|
37
|
-
<P>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
38
|
-
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
39
|
-
DOCUMENTATION.</P>
|
40
|
-
<P>The name and trademarks of copyright holders may NOT be used in advertising
|
41
|
-
or publicity pertaining to the software without specific, written prior
|
42
|
-
permission. Title to copyright in this software and any associated documentation
|
43
|
-
will at all times remain with copyright holders.</P>
|
44
|
-
<P></P>
|
45
|
-
<P>____________________________________</P>
|
46
|
-
<P>This formulation of W3C's notice and license became active on December 31
|
47
|
-
2002. This version removes the copyright ownership notice such that this license
|
48
|
-
can be used with materials other than those owned by the W3C, reflects that
|
49
|
-
ERCIM is now a host of the W3C, includes references to this specific dated
|
50
|
-
version of the license, and removes the ambiguous grant of "use". Otherwise,
|
51
|
-
this version is the same as the <A
|
52
|
-
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">previous
|
53
|
-
version</A> and is written so as to preserve the <A
|
54
|
-
href="http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses">Free
|
55
|
-
Software Foundation's assessment of GPL compatibility</A> and <A
|
56
|
-
href="http://www.opensource.org/licenses/W3C.php">OSI's certification</A> under
|
57
|
-
the <A href="http://www.opensource.org/docs/definition.php">Open Source
|
58
|
-
Definition</A>. Please see our <A
|
59
|
-
href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A> for common
|
60
|
-
questions about using materials from our site, including specific terms and
|
61
|
-
conditions for packages like libwww, Amaya, and Jigsaw. Other questions about
|
62
|
-
this notice can be directed to <A
|
63
|
-
href="mailto:site-policy@w3.org">site-policy@w3.org</A>.<BR> </P>
|
64
|
-
<ADDRESS>Joseph Reagle <<A
|
65
|
-
href="mailto:site-policy@w3.org">mailto:site-policy@w3.org</A> </ADDRESS>
|
66
|
-
<P>Last revised by Reagle $Date: 2005/07/19 16:33:09 $</P></BODY></HTML>
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
2
|
+
<?xml version="1.0" encoding="iso-8859-1"?><HTML
|
3
|
+
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>W3C Software License</TITLE>
|
4
|
+
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
|
5
|
+
|
6
|
+
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
|
7
|
+
<BODY text=#000000 bgColor=#ffffff>
|
8
|
+
<H1>W3C<SUP>�</SUP> SOFTWARE NOTICE AND LICENSE</H1>
|
9
|
+
<H3 id=version><A
|
10
|
+
href="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231</A></H3>
|
11
|
+
<P>This work (and included software, documentation such as READMEs, or other
|
12
|
+
related items) is being provided by the copyright holders under the following
|
13
|
+
license. By obtaining, using and/or copying this work, you (the licensee) agree
|
14
|
+
that you have read, understood, and will comply with the following terms and
|
15
|
+
conditions.</P>
|
16
|
+
<P>Permission to copy, modify, and distribute this software and its
|
17
|
+
documentation, with or without modification, for any purpose and without
|
18
|
+
fee or royalty is hereby granted, provided that you include the following on ALL
|
19
|
+
copies of the software and documentation or portions thereof, including
|
20
|
+
modifications:</P>
|
21
|
+
<OL>
|
22
|
+
<LI>The full text of this NOTICE in a location viewable to users of the
|
23
|
+
redistributed or derivative work.
|
24
|
+
<LI>Any pre-existing intellectual property disclaimers, notices, or terms and
|
25
|
+
conditions. If none exist, the <A
|
26
|
+
href="http://www.w3.org/Consortium/Legal/2002/copyright-software-short-notice-20021231.html">W3C
|
27
|
+
Software Short Notice</A> should be included (hypertext is preferred, text is
|
28
|
+
permitted) within the body of any redistributed or derivative code.
|
29
|
+
<LI>Notice of any changes or modifications to the files, including the date
|
30
|
+
changes were made. (We recommend you provide URIs to the location from which
|
31
|
+
the code is derived.) </LI></OL>
|
32
|
+
<P>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS
|
33
|
+
MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
34
|
+
LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE
|
35
|
+
OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
|
36
|
+
PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</P>
|
37
|
+
<P>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
38
|
+
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
39
|
+
DOCUMENTATION.</P>
|
40
|
+
<P>The name and trademarks of copyright holders may NOT be used in advertising
|
41
|
+
or publicity pertaining to the software without specific, written prior
|
42
|
+
permission. Title to copyright in this software and any associated documentation
|
43
|
+
will at all times remain with copyright holders.</P>
|
44
|
+
<P></P>
|
45
|
+
<P>____________________________________</P>
|
46
|
+
<P>This formulation of W3C's notice and license became active on December 31
|
47
|
+
2002. This version removes the copyright ownership notice such that this license
|
48
|
+
can be used with materials other than those owned by the W3C, reflects that
|
49
|
+
ERCIM is now a host of the W3C, includes references to this specific dated
|
50
|
+
version of the license, and removes the ambiguous grant of "use". Otherwise,
|
51
|
+
this version is the same as the <A
|
52
|
+
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">previous
|
53
|
+
version</A> and is written so as to preserve the <A
|
54
|
+
href="http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses">Free
|
55
|
+
Software Foundation's assessment of GPL compatibility</A> and <A
|
56
|
+
href="http://www.opensource.org/licenses/W3C.php">OSI's certification</A> under
|
57
|
+
the <A href="http://www.opensource.org/docs/definition.php">Open Source
|
58
|
+
Definition</A>. Please see our <A
|
59
|
+
href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</A> for common
|
60
|
+
questions about using materials from our site, including specific terms and
|
61
|
+
conditions for packages like libwww, Amaya, and Jigsaw. Other questions about
|
62
|
+
this notice can be directed to <A
|
63
|
+
href="mailto:site-policy@w3.org">site-policy@w3.org</A>.<BR> </P>
|
64
|
+
<ADDRESS>Joseph Reagle <<A
|
65
|
+
href="mailto:site-policy@w3.org">mailto:site-policy@w3.org</A> </ADDRESS>
|
66
|
+
<P>Last revised by Reagle $Date: 2005/07/19 16:33:09 $</P></BODY></HTML>
|
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:
|
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:
|
11
|
+
date: 2020-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -164,27 +164,13 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '2.1'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: pdfinfo
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '1.4'
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '1.4'
|
181
167
|
description: Collection of tools and classes that help to identify formats of binary
|
182
168
|
files and create derivative copies (e.g. PDF from Word).
|
183
169
|
email:
|
184
170
|
- kris.dekeyser@libis.be
|
185
171
|
executables:
|
186
|
-
-
|
187
|
-
-
|
172
|
+
- droid
|
173
|
+
- fido
|
188
174
|
- formatinfo
|
189
175
|
- libis_format
|
190
176
|
- pdf_copy
|
@@ -202,15 +188,15 @@ files:
|
|
202
188
|
- base/Dockerfile.alpine
|
203
189
|
- base/Dockerfile.rvm
|
204
190
|
- base/rework_path
|
205
|
-
- bin/
|
206
|
-
- bin/
|
191
|
+
- bin/droid
|
192
|
+
- bin/fido
|
207
193
|
- bin/formatinfo
|
208
194
|
- bin/libis_format
|
209
195
|
- bin/pdf_copy
|
210
|
-
- data/AdobeRGB1998.icc
|
211
196
|
- data/ISOcoated_v2_eci.icc
|
212
197
|
- data/PDFA_def.ps
|
213
198
|
- data/ead.xsd
|
199
|
+
- data/eciRGB_v2.icc
|
214
200
|
- data/lias_formats.xml
|
215
201
|
- data/types.yml
|
216
202
|
- data/xlink.xsd
|
@@ -227,22 +213,29 @@ files:
|
|
227
213
|
- lib/libis/format/converter/audio_converter.rb
|
228
214
|
- lib/libis/format/converter/base.rb
|
229
215
|
- lib/libis/format/converter/chain.rb
|
230
|
-
- lib/libis/format/converter/email_converter.rb
|
231
216
|
- lib/libis/format/converter/fop_pdf_converter.rb
|
217
|
+
- lib/libis/format/converter/image_assembler.rb
|
232
218
|
- lib/libis/format/converter/image_converter.rb
|
219
|
+
- lib/libis/format/converter/image_splitter.rb
|
220
|
+
- lib/libis/format/converter/image_watermarker.rb
|
233
221
|
- lib/libis/format/converter/jp2_converter.rb
|
234
222
|
- lib/libis/format/converter/office_converter.rb
|
223
|
+
- lib/libis/format/converter/pdf_assembler.rb
|
235
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
|
236
228
|
- lib/libis/format/converter/repository.rb
|
237
229
|
- lib/libis/format/converter/spreadsheet_converter.rb
|
238
230
|
- lib/libis/format/converter/video_converter.rb
|
239
231
|
- lib/libis/format/converter/xslt_converter.rb
|
240
232
|
- lib/libis/format/identifier.rb
|
233
|
+
- lib/libis/format/info.rb
|
234
|
+
- lib/libis/format/library.rb
|
241
235
|
- lib/libis/format/tool.rb
|
242
236
|
- lib/libis/format/tool/droid.rb
|
243
|
-
- lib/libis/format/tool/email_to_pdf.rb
|
244
237
|
- lib/libis/format/tool/extension_identification.rb
|
245
|
-
- lib/libis/format/tool/
|
238
|
+
- lib/libis/format/tool/ffmpeg.rb
|
246
239
|
- lib/libis/format/tool/fido.rb
|
247
240
|
- lib/libis/format/tool/file_tool.rb
|
248
241
|
- lib/libis/format/tool/fop_pdf.rb
|
@@ -255,14 +248,12 @@ files:
|
|
255
248
|
- lib/libis/format/tool/pdf_to_pdfa.rb
|
256
249
|
- lib/libis/format/tool/pdfa_validator.rb
|
257
250
|
- lib/libis/format/tool/spreadsheet_to_ods.rb
|
258
|
-
- lib/libis/format/type_database.rb
|
259
|
-
- lib/libis/format/type_database_impl.rb
|
260
251
|
- lib/libis/format/version.rb
|
252
|
+
- lib/libis/format/yaml_loader.rb
|
261
253
|
- libis-format.gemspec
|
262
254
|
- tools/PdfTool.jar
|
263
255
|
- tools/bcpkix-jdk15on-1.49.jar
|
264
256
|
- tools/bcprov-jdk15on-1.49.jar
|
265
|
-
- tools/emailconverter.jar
|
266
257
|
- tools/fop/build/fop.jar
|
267
258
|
- tools/fop/conf/fop.xconf
|
268
259
|
- tools/fop/fop
|
@@ -313,7 +304,6 @@ files:
|
|
313
304
|
- tools/fop/lib/xmlgraphics-commons-2.3.jar
|
314
305
|
- tools/fop/lib/xmlgraphics-commons.LICENSE.txt
|
315
306
|
- tools/fop/lib/xmlgraphics-commons.NOTICE.txt
|
316
|
-
- tools/pdf2pdfa
|
317
307
|
- tools/pdfbox/pdfbox-app-2.0.13.jar
|
318
308
|
- tools/pdfbox/preflight-app-2.0.13.jar
|
319
309
|
homepage: ''
|
@@ -335,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
335
325
|
- !ruby/object:Gem::Version
|
336
326
|
version: '0'
|
337
327
|
requirements: []
|
338
|
-
rubygems_version: 3.
|
328
|
+
rubygems_version: 3.0.8
|
339
329
|
signing_key:
|
340
330
|
specification_version: 4
|
341
331
|
summary: LIBIS File format format services.
|
data/data/AdobeRGB1998.icc
DELETED
Binary file
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require_relative 'base'
|
4
|
-
|
5
|
-
require 'libis/format/tool/email_to_pdf'
|
6
|
-
require 'libis/format/type_database'
|
7
|
-
require 'rexml/document'
|
8
|
-
|
9
|
-
module Libis
|
10
|
-
module Format
|
11
|
-
module Converter
|
12
|
-
|
13
|
-
class EmailConverter < Libis::Format::Converter::Base
|
14
|
-
|
15
|
-
def self.input_types
|
16
|
-
[ :MSG ]
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.output_types(format = nil)
|
20
|
-
return [] unless input_types.include?(format)
|
21
|
-
[ :PDF ]
|
22
|
-
end
|
23
|
-
|
24
|
-
def email_convert(_)
|
25
|
-
#force usage of this converter
|
26
|
-
end
|
27
|
-
|
28
|
-
def convert(source, target, format, opts = {})
|
29
|
-
super
|
30
|
-
|
31
|
-
Format::Tool::EmailToPdf.run(source, target)
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,75 +0,0 @@
|
|
1
|
-
require "fileutils"
|
2
|
-
|
3
|
-
require "libis/tools/extend/string"
|
4
|
-
require "libis/tools/logger"
|
5
|
-
require "libis/tools/command"
|
6
|
-
|
7
|
-
require "libis/format/config"
|
8
|
-
require "rexml/document"
|
9
|
-
|
10
|
-
module Libis
|
11
|
-
module Format
|
12
|
-
module Tool
|
13
|
-
class EmailToPdf
|
14
|
-
include ::Libis::Tools::Logger
|
15
|
-
|
16
|
-
def self.installed?
|
17
|
-
result = Libis::Tools::Command.run(Libis::Format::Config[:email2pdf_cmd], "-v")
|
18
|
-
result[:status] == 0
|
19
|
-
end
|
20
|
-
|
21
|
-
def self.run(source, target, options = {})
|
22
|
-
new.run source, target, options
|
23
|
-
end
|
24
|
-
|
25
|
-
def run(source, target, _ = {})
|
26
|
-
timeout = Libis::Format::Config[:timeouts][:email2pdf] || 120
|
27
|
-
result = Libis::Tools::Command.run(
|
28
|
-
Libis::Format::Config[:java_cmd],
|
29
|
-
"-Duser.timezone=Europe/Brussels", "-Duser.language=nl", "-Duser.country=BE",
|
30
|
-
"-jar", Libis::Format::Config[:email2pdf_jar],
|
31
|
-
"-e", "-hd", "-a",
|
32
|
-
"-o", target,
|
33
|
-
source,
|
34
|
-
timeout: timeout,
|
35
|
-
kill_after: timeout * 2
|
36
|
-
)
|
37
|
-
|
38
|
-
warn "EmailToPdf conversion messages: \n\t#{result[:err].join("\n\t")}" unless result[:err].empty?
|
39
|
-
|
40
|
-
raise "#{self.class} took too long (> #{timeout} seconds) to complete" if result[:timeout]
|
41
|
-
raise "#{self.class} failed to generate target file #{target}" unless File.exist?(target)
|
42
|
-
raise "#{self.class} command failed with status code #{result[:status]}" unless result[:status] == 0
|
43
|
-
|
44
|
-
base_path = File.join(File.dirname(target), File.basename(target, ".*"))
|
45
|
-
headers_file = "#{base_path}.headers.xml"
|
46
|
-
headers = read_header(headers_file)
|
47
|
-
|
48
|
-
{
|
49
|
-
command: result,
|
50
|
-
files: [target, headers_file] + headers[:attachments].map { |a| File.join("#{base_path}-attachments", a) },
|
51
|
-
headers: headers
|
52
|
-
}
|
53
|
-
end
|
54
|
-
|
55
|
-
private
|
56
|
-
|
57
|
-
def read_header(headers_file)
|
58
|
-
headers = {}
|
59
|
-
return headers unless File.exist?(headers_file)
|
60
|
-
doc = REXML::Document.new(File.new(headers_file))
|
61
|
-
root = doc.root
|
62
|
-
root.children.each do |element|
|
63
|
-
case element.name
|
64
|
-
when "attachments"
|
65
|
-
headers[:attachments] = element.elements.map { |e| e.text }
|
66
|
-
else
|
67
|
-
headers[element.name.to_sym] = element.text
|
68
|
-
end
|
69
|
-
end
|
70
|
-
headers
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|