xref: /plan9/sys/src/cmd/gs/doc/PUBLIC (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
17dd7cddfSDavid du Colombier
23ff48bf5SDavid du Colombier                          Aladdin Free Public License
33ff48bf5SDavid du Colombier                        (Version 9, September 18, 2000)
43ff48bf5SDavid du Colombier
53ff48bf5SDavid du Colombier   Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000 Aladdin Enterprises,
67dd7cddfSDavid du Colombier            Menlo Park, California, U.S.A. All rights reserved.
77dd7cddfSDavid du Colombier
87dd7cddfSDavid du Colombier     NOTE: This License is not the same as any of the GNU Licenses
97dd7cddfSDavid du Colombier     published by the Free Software Foundation. Its terms are
107dd7cddfSDavid du Colombier     substantially different from those of the GNU Licenses. If you are
113ff48bf5SDavid du Colombier     familiar with the GNU Licenses, please read this license with extra
123ff48bf5SDavid du Colombier     care.
137dd7cddfSDavid du Colombier
143ff48bf5SDavid du Colombier   Aladdin Enterprises hereby grants to anyone the permission to apply
153ff48bf5SDavid du Colombier   this License to their own work, as long as the entire License
163ff48bf5SDavid du Colombier   (including the above notices and this paragraph) is copied with no
173ff48bf5SDavid du Colombier   changes, additions, or deletions except for changing the first
183ff48bf5SDavid du Colombier   paragraph of Section 0 to include a suitable description of the work
193ff48bf5SDavid du Colombier   to which the license is being applied and of the person or entity that
203ff48bf5SDavid du Colombier   holds the copyright in the work, and, if the License is being applied
213ff48bf5SDavid du Colombier   to a work created in a country other than the United States, replacing
223ff48bf5SDavid du Colombier   the first paragraph of Section 6 with an appropriate reference to the
233ff48bf5SDavid du Colombier   laws of the appropriate country.
243ff48bf5SDavid du Colombier
253ff48bf5SDavid du Colombier   This License is not an Open Source license: among other things, it
263ff48bf5SDavid du Colombier   places restrictions on distribution of the Program, specifically
273ff48bf5SDavid du Colombier   including sale of the Program. While Aladdin Enterprises respects and
283ff48bf5SDavid du Colombier   supports the philosophy of the Open Source Definition, and shares the
293ff48bf5SDavid du Colombier   desire of the GNU project to keep licensed software freely
303ff48bf5SDavid du Colombier   redistributable in both source and object form, we feel that Open
313ff48bf5SDavid du Colombier   Source licenses unfairly prevent developers of useful software from
323ff48bf5SDavid du Colombier   being compensated proportionately when others profit financially from
333ff48bf5SDavid du Colombier   their work. This License attempts to ensure that those who receive,
343ff48bf5SDavid du Colombier   redistribute, and contribute to the licensed Program according to the
353ff48bf5SDavid du Colombier   Open Source and Free Software philosophies have the right to do so,
363ff48bf5SDavid du Colombier   while retaining for the developer(s) of the Program the power to make
373ff48bf5SDavid du Colombier   those who use the Program to enhance the value of commercial products
383ff48bf5SDavid du Colombier   pay for the privilege of doing so.
397dd7cddfSDavid du Colombier
407dd7cddfSDavid du Colombier0. Subject Matter
417dd7cddfSDavid du Colombier
423ff48bf5SDavid du Colombier   This License applies to the computer program known as "AFPL
433ff48bf5SDavid du Colombier   Ghostscript." The "Program", below, refers to such program. The
443ff48bf5SDavid du Colombier   Program is a copyrighted work whose copyright is held by artofcode
453ff48bf5SDavid du Colombier   LLC, located in Benicia, California (the "Licensor"). Please note that
46*593dc095SDavid du Colombier   AFPL Ghostscript is neither the program known as "GPL Ghostscript" nor
473ff48bf5SDavid du Colombier   the version of Ghostscript available for commercial licensing from
483ff48bf5SDavid du Colombier   Artifex Software Inc.
497dd7cddfSDavid du Colombier
503ff48bf5SDavid du Colombier   A "work based on the Program" means either the Program or any
513ff48bf5SDavid du Colombier   derivative work of the Program, as defined in the United States
523ff48bf5SDavid du Colombier   Copyright Act of 1976, such as a translation or a modification.
537dd7cddfSDavid du Colombier
543ff48bf5SDavid du Colombier   BY MODIFYING OR DISTRIBUTING THE PROGRAM (OR ANY WORK BASED ON THE
553ff48bf5SDavid du Colombier   PROGRAM), YOU INDICATE YOUR ACCEPTANCE OF THIS LICENSE TO DO SO, AND
563ff48bf5SDavid du Colombier   ALL ITS TERMS AND CONDITIONS FOR COPYING, DISTRIBUTING OR MODIFYING
573ff48bf5SDavid du Colombier   THE PROGRAM OR WORKS BASED ON IT. NOTHING OTHER THAN THIS LICENSE
583ff48bf5SDavid du Colombier   GRANTS YOU PERMISSION TO MODIFY OR DISTRIBUTE THE PROGRAM OR ITS
593ff48bf5SDavid du Colombier   DERIVATIVE WORKS. THESE ACTIONS ARE PROHIBITED BY LAW. IF YOU DO NOT
603ff48bf5SDavid du Colombier   ACCEPT THESE TERMS AND CONDITIONS, DO NOT MODIFY OR DISTRIBUTE THE
613ff48bf5SDavid du Colombier   PROGRAM.
627dd7cddfSDavid du Colombier
637dd7cddfSDavid du Colombier1. Licenses.
647dd7cddfSDavid du Colombier
653ff48bf5SDavid du Colombier   Licensor hereby grants you the following rights, provided that you
663ff48bf5SDavid du Colombier   comply with all of the restrictions set forth in this License and
673ff48bf5SDavid du Colombier   provided, further, that you distribute an unmodified copy of this
683ff48bf5SDavid du Colombier   License with the Program:
693ff48bf5SDavid du Colombier   (a)
703ff48bf5SDavid du Colombier          You may copy and distribute literal (i.e., verbatim) copies of
713ff48bf5SDavid du Colombier          the Program's source code as you receive it throughout the
723ff48bf5SDavid du Colombier          world, in any medium.
733ff48bf5SDavid du Colombier   (b)
743ff48bf5SDavid du Colombier          You may modify the Program, create works based on the Program
753ff48bf5SDavid du Colombier          and distribute copies of such throughout the world, in any
767dd7cddfSDavid du Colombier          medium.
777dd7cddfSDavid du Colombier
787dd7cddfSDavid du Colombier2. Restrictions.
797dd7cddfSDavid du Colombier
807dd7cddfSDavid du Colombier   This license is subject to the following restrictions:
813ff48bf5SDavid du Colombier   (a)
823ff48bf5SDavid du Colombier          Distribution of the Program or any work based on the Program by
833ff48bf5SDavid du Colombier          a commercial organization to any third party is prohibited if
843ff48bf5SDavid du Colombier          any payment is made in connection with such distribution,
853ff48bf5SDavid du Colombier          whether directly (as in payment for a copy of the Program) or
863ff48bf5SDavid du Colombier          indirectly (as in payment for some service related to the
873ff48bf5SDavid du Colombier          Program, or payment for some product or service that includes a
883ff48bf5SDavid du Colombier          copy of the Program "without charge"; these are only examples,
893ff48bf5SDavid du Colombier          and not an exhaustive enumeration of prohibited activities).
903ff48bf5SDavid du Colombier          The following methods of distribution involving payment shall
913ff48bf5SDavid du Colombier          not in and of themselves be a violation of this restriction:
923ff48bf5SDavid du Colombier        (i)
933ff48bf5SDavid du Colombier               Posting the Program on a public access information storage
943ff48bf5SDavid du Colombier               and retrieval service for which a fee is received for
953ff48bf5SDavid du Colombier               retrieving information (such as an on-line service),
963ff48bf5SDavid du Colombier               provided that the fee is not content-dependent (i.e., the
973ff48bf5SDavid du Colombier               fee would be the same for retrieving the same volume of
983ff48bf5SDavid du Colombier               information consisting of random data) and that access to
993ff48bf5SDavid du Colombier               the service and to the Program is available independent of
1003ff48bf5SDavid du Colombier               any other product or service. An example of a service that
1013ff48bf5SDavid du Colombier               does not fall under this section is an on-line service
1023ff48bf5SDavid du Colombier               that is operated by a company and that is only available
1037dd7cddfSDavid du Colombier               to customers of that company. (This is not an exhaustive
1047dd7cddfSDavid du Colombier               enumeration.)
1053ff48bf5SDavid du Colombier        (ii)
1063ff48bf5SDavid du Colombier               Distributing the Program on removable computer-readable
1073ff48bf5SDavid du Colombier               media, provided that the files containing the Program are
1083ff48bf5SDavid du Colombier               reproduced entirely and verbatim on such media, that all
1093ff48bf5SDavid du Colombier               information on such media be redistributable for
1103ff48bf5SDavid du Colombier               non-commercial purposes without charge, and that such
1113ff48bf5SDavid du Colombier               media are distributed by themselves (except for
1123ff48bf5SDavid du Colombier               accompanying documentation) independent of any other
1133ff48bf5SDavid du Colombier               product or service. Examples of such media include CD-ROM,
1143ff48bf5SDavid du Colombier               magnetic tape, and optical storage media. (This is not
1153ff48bf5SDavid du Colombier               intended to be an exhaustive list.) An example of a
1163ff48bf5SDavid du Colombier               distribution that does not fall under this section is a
1173ff48bf5SDavid du Colombier               CD-ROM included in a book or magazine. (This is not an
1183ff48bf5SDavid du Colombier               exhaustive enumeration.)
1193ff48bf5SDavid du Colombier   (b)
1203ff48bf5SDavid du Colombier          Activities other than copying, distribution and modification of
1213ff48bf5SDavid du Colombier          the Program are not subject to this License and they are
1223ff48bf5SDavid du Colombier          outside its scope. Functional use (running) of the Program is
1233ff48bf5SDavid du Colombier          not restricted, and any output produced through the use of the
1243ff48bf5SDavid du Colombier          Program is subject to this license only if its contents
1253ff48bf5SDavid du Colombier          constitute a work based on the Program (independent of having
1263ff48bf5SDavid du Colombier          been made by running the Program).
1273ff48bf5SDavid du Colombier   (c)
1283ff48bf5SDavid du Colombier          You must meet all of the following conditions with respect to
1293ff48bf5SDavid du Colombier          any work that you distribute or publish that in whole or in
1303ff48bf5SDavid du Colombier          part contains or is derived from the Program or any part
1313ff48bf5SDavid du Colombier          thereof ("the Work"):
1323ff48bf5SDavid du Colombier        (i)
1333ff48bf5SDavid du Colombier               If you have modified the Program, you must cause the Work
1343ff48bf5SDavid du Colombier               to carry prominent notices stating that you have modified
1353ff48bf5SDavid du Colombier               the Program's files and the date of any change. In each
1363ff48bf5SDavid du Colombier               source file that you have modified, you must include a
1373ff48bf5SDavid du Colombier               prominent notice that you have modified the file,
1383ff48bf5SDavid du Colombier               including your name, your e-mail address (if any), and the
1393ff48bf5SDavid du Colombier               date and purpose of the change;
1403ff48bf5SDavid du Colombier        (ii)
1413ff48bf5SDavid du Colombier               You must cause the Work to be licensed as a whole and at
1423ff48bf5SDavid du Colombier               no charge to all third parties under the terms of this
1433ff48bf5SDavid du Colombier               License;
1447dd7cddfSDavid du Colombier        (iii)
1453ff48bf5SDavid du Colombier               If the Work normally reads commands interactively when
1463ff48bf5SDavid du Colombier               run, you must cause it, at each time the Work commences
1473ff48bf5SDavid du Colombier               operation, to print or display an announcement including
1483ff48bf5SDavid du Colombier               an appropriate copyright notice and a notice that there is
1493ff48bf5SDavid du Colombier               no warranty (or else, saying that you provide a warranty).
1503ff48bf5SDavid du Colombier               Such notice must also state that users may redistribute
1513ff48bf5SDavid du Colombier               the Work only under the conditions of this License and
1523ff48bf5SDavid du Colombier               tell the user how to view the copy of this License
1533ff48bf5SDavid du Colombier               included with the Work. (Exceptions: if the Program is
1543ff48bf5SDavid du Colombier               interactive but normally prints or displays such an
1553ff48bf5SDavid du Colombier               announcement only at the request of a user, such as in an
1563ff48bf5SDavid du Colombier               "About box", the Work is required to print or display the
1573ff48bf5SDavid du Colombier               notice only under the same circumstances; if the Program
1583ff48bf5SDavid du Colombier               itself is interactive but does not normally print such an
1593ff48bf5SDavid du Colombier               announcement, the Work is not required to print an
1607dd7cddfSDavid du Colombier               announcement.);
1613ff48bf5SDavid du Colombier        (iv)
1623ff48bf5SDavid du Colombier               You must accompany the Work with the complete
1633ff48bf5SDavid du Colombier               corresponding machine-readable source code, delivered on a
1643ff48bf5SDavid du Colombier               medium customarily used for software interchange. The
1653ff48bf5SDavid du Colombier               source code for a work means the preferred form of the
1663ff48bf5SDavid du Colombier               work for making modifications to it. For an executable
1673ff48bf5SDavid du Colombier               work, complete source code means all the source code for
1683ff48bf5SDavid du Colombier               all modules it contains, plus any associated interface
1693ff48bf5SDavid du Colombier               definition files, plus the scripts used to control
1703ff48bf5SDavid du Colombier               compilation and installation of the executable code. If
1713ff48bf5SDavid du Colombier               you distribute with the Work any component that is
1723ff48bf5SDavid du Colombier               normally distributed (in either source or binary form)
1733ff48bf5SDavid du Colombier               with the major components (compiler, kernel, and so on) of
1743ff48bf5SDavid du Colombier               the operating system on which the executable runs, you
1753ff48bf5SDavid du Colombier               must also distribute the source code of that component if
1763ff48bf5SDavid du Colombier               you have it and are allowed to do so;
1773ff48bf5SDavid du Colombier        (v)
1783ff48bf5SDavid du Colombier               If you distribute any written or printed material at all
1793ff48bf5SDavid du Colombier               with the Work, such material must include either a written
1803ff48bf5SDavid du Colombier               copy of this License, or a prominent written indication
1813ff48bf5SDavid du Colombier               that the Work is covered by this License and written
1823ff48bf5SDavid du Colombier               instructions for printing and/or displaying the copy of
1833ff48bf5SDavid du Colombier               the License on the distribution medium;
1843ff48bf5SDavid du Colombier        (vi)
1853ff48bf5SDavid du Colombier               You may not impose any further restrictions on the
1863ff48bf5SDavid du Colombier               recipient's exercise of the rights granted herein.
1877dd7cddfSDavid du Colombier
1887dd7cddfSDavid du Colombier   If distribution of executable or object code is made by offering the
1893ff48bf5SDavid du Colombier   equivalent ability to copy from a designated place, then offering
1903ff48bf5SDavid du Colombier   equivalent ability to copy the source code from the same place counts
1913ff48bf5SDavid du Colombier   as distribution of the source code, even though third parties are not
1923ff48bf5SDavid du Colombier   compelled to copy the source code along with the object code.
1937dd7cddfSDavid du Colombier
1947dd7cddfSDavid du Colombier  3. Reservation of Rights.
1957dd7cddfSDavid du Colombier
1963ff48bf5SDavid du Colombier   No rights are granted to the Program except as expressly set forth
1973ff48bf5SDavid du Colombier   herein. You may not copy, modify, sublicense, or distribute the
1983ff48bf5SDavid du Colombier   Program except as expressly provided under this License. Any attempt
1993ff48bf5SDavid du Colombier   otherwise to copy, modify, sublicense or distribute the Program is
2003ff48bf5SDavid du Colombier   void, and will automatically terminate your rights under this License.
2013ff48bf5SDavid du Colombier   However, parties who have received copies, or rights, from you under
2023ff48bf5SDavid du Colombier   this License will not have their licenses terminated so long as such
2033ff48bf5SDavid du Colombier   parties remain in full compliance.
2047dd7cddfSDavid du Colombier
2057dd7cddfSDavid du Colombier  4. Other Restrictions.
2067dd7cddfSDavid du Colombier
2077dd7cddfSDavid du Colombier   If the distribution and/or use of the Program is restricted in certain
2087dd7cddfSDavid du Colombier   countries for any reason, Licensor may add an explicit geographical
2093ff48bf5SDavid du Colombier   distribution limitation excluding those countries, so that
2103ff48bf5SDavid du Colombier   distribution is permitted only in or among countries not thus
2113ff48bf5SDavid du Colombier   excluded. In such case, this License incorporates the limitation as if
2123ff48bf5SDavid du Colombier   written in the body of this License.
2137dd7cddfSDavid du Colombier
2147dd7cddfSDavid du Colombier  5. Limitations.
2157dd7cddfSDavid du Colombier
2167dd7cddfSDavid du Colombier   THE PROGRAM IS PROVIDED TO YOU "AS IS," WITHOUT WARRANTY. THERE IS NO
2173ff48bf5SDavid du Colombier   WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
2183ff48bf5SDavid du Colombier   NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
2193ff48bf5SDavid du Colombier   FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
2203ff48bf5SDavid du Colombier   THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
2213ff48bf5SDavid du Colombier   WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
2223ff48bf5SDavid du Colombier   ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
2237dd7cddfSDavid du Colombier
2243ff48bf5SDavid du Colombier   IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
2253ff48bf5SDavid du Colombier   WILL LICENSOR, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
2263ff48bf5SDavid du Colombier   THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
2273ff48bf5SDavid du Colombier   INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
2283ff48bf5SDavid du Colombier   ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
2293ff48bf5SDavid du Colombier   NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
2303ff48bf5SDavid du Colombier   LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
2313ff48bf5SDavid du Colombier   TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
2323ff48bf5SDavid du Colombier   PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
2337dd7cddfSDavid du Colombier
2347dd7cddfSDavid du Colombier  6. General.
2357dd7cddfSDavid du Colombier
2363ff48bf5SDavid du Colombier   This License is governed by the laws of the State of California,
2373ff48bf5SDavid du Colombier   U.S.A., excluding choice of law rules.
2387dd7cddfSDavid du Colombier
2393ff48bf5SDavid du Colombier   If any part of this License is found to be in conflict with the law,
2403ff48bf5SDavid du Colombier   that part shall be interpreted in its broadest meaning consistent with
2413ff48bf5SDavid du Colombier   the law, and no other parts of the License shall be affected.
2427dd7cddfSDavid du Colombier
2433ff48bf5SDavid du Colombier   For United States Government users, the Program is provided with
2443ff48bf5SDavid du Colombier   RESTRICTED RIGHTS. If you are a unit or agency of the United States
2453ff48bf5SDavid du Colombier   Government or are acquiring the Program for any such unit or agency,
2463ff48bf5SDavid du Colombier   the following apply:
2477dd7cddfSDavid du Colombier
2487dd7cddfSDavid du Colombier     If the unit or agency is the Department of Defense ("DOD"), the
2497dd7cddfSDavid du Colombier     Program and its documentation are classified as "commercial
2503ff48bf5SDavid du Colombier     computer software" and "commercial computer software documentation"
2513ff48bf5SDavid du Colombier     respectively and, pursuant to DFAR Section 227.7202, the Government
2523ff48bf5SDavid du Colombier     is acquiring the Program and its documentation in accordance with
2533ff48bf5SDavid du Colombier     the terms of this License. If the unit or agency is other than DOD,
2543ff48bf5SDavid du Colombier     the Program and its documentation are classified as "commercial
2553ff48bf5SDavid du Colombier     computer software" and "commercial computer software documentation"
2563ff48bf5SDavid du Colombier     respectively and, pursuant to FAR Section 12.212, the Government is
2573ff48bf5SDavid du Colombier     acquiring the Program and its documentation in accordance with the
2583ff48bf5SDavid du Colombier     terms of this License.
259