From 0b6af8d965710654bafb22310d93ff6a0e03d910 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 27 Nov 2017 13:41:46 -0800 Subject: [PATCH] Clarify hocrtransform license/copyright --- ocrmypdf/hocrtransform.py | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/ocrmypdf/hocrtransform.py b/ocrmypdf/hocrtransform.py index 4badf19b..75faf8d3 100755 --- a/ocrmypdf/hocrtransform.py +++ b/ocrmypdf/hocrtransform.py @@ -1,12 +1,33 @@ #!/usr/bin/env python3 -############################################################################## -# Copyright (c) 2013-14: fritz-hh from Github -# (https://github.com/fritz-hh) # -# Copyright (c) 2010: Jonathan Brinley from Github -# (https://github.com/jbrinley/HocrConverter) -# Initial version by Jonathan Brinley, jonathanbrinley@gmail.com -############################################################################## +# Copyright (c) 2010, Jonathan Brinley +# Original version from: https://github.com/jbrinley/HocrConverter +# +# Copyright (c) 2013-14, Julien Pfefferkorn +# Modifications +# +# Copyright (c) 2015-16, James R. Barlow +# Set text to transparent +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + from reportlab.pdfgen.canvas import Canvas from reportlab.lib.units import inch from xml.etree import ElementTree