Permalink
Browse files

change license to LGPLv3 according to TCPDF license

  • Loading branch information...
1 parent 5c1eaff commit c20bfd40e3d7f40ff4083de5971b2a9e7a839dd5 @smalot committed Jan 3, 2017
Showing with 477 additions and 986 deletions.
  1. +0 −674 LICENSE
  2. +165 −0 LICENSE.txt
  3. +1 −1 README.md
  4. +4 −4 composer.json
  5. +7 −7 src/Smalot/PdfParser/Document.php
  6. +6 −6 src/Smalot/PdfParser/Element.php
  7. +6 −6 src/Smalot/PdfParser/Element/ElementArray.php
  8. +6 −6 src/Smalot/PdfParser/Element/ElementBoolean.php
  9. +6 −6 src/Smalot/PdfParser/Element/ElementDate.php
  10. +7 −7 src/Smalot/PdfParser/Element/ElementHexa.php
  11. +6 −6 src/Smalot/PdfParser/Element/ElementMissing.php
  12. +6 −6 src/Smalot/PdfParser/Element/ElementName.php
  13. +6 −6 src/Smalot/PdfParser/Element/ElementNull.php
  14. +6 −6 src/Smalot/PdfParser/Element/ElementNumeric.php
  15. +6 −6 src/Smalot/PdfParser/Element/ElementString.php
  16. +6 −6 src/Smalot/PdfParser/Element/ElementStruct.php
  17. +6 −6 src/Smalot/PdfParser/Element/ElementXRef.php
  18. +6 −6 src/Smalot/PdfParser/Encoding.php
  19. +6 −6 src/Smalot/PdfParser/Encoding/ISOLatin1Encoding.php
  20. +6 −6 src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php
  21. +6 −6 src/Smalot/PdfParser/Encoding/MacRomanEncoding.php
  22. +6 −6 src/Smalot/PdfParser/Encoding/StandardEncoding.php
  23. +6 −6 src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php
  24. +8 −8 src/Smalot/PdfParser/Font.php
  25. +6 −6 src/Smalot/PdfParser/Font/FontCIDFontType0.php
  26. +6 −6 src/Smalot/PdfParser/Font/FontCIDFontType2.php
  27. +6 −6 src/Smalot/PdfParser/Font/FontTrueType.php
  28. +6 −6 src/Smalot/PdfParser/Font/FontType0.php
  29. +6 −6 src/Smalot/PdfParser/Font/FontType1.php
  30. +6 −6 src/Smalot/PdfParser/Header.php
  31. +6 −6 src/Smalot/PdfParser/Object.php
  32. +6 −6 src/Smalot/PdfParser/Page.php
  33. +6 −6 src/Smalot/PdfParser/Pages.php
  34. +6 −6 src/Smalot/PdfParser/Parser.php
  35. +6 −6 src/Smalot/PdfParser/Tests/Units/Document.php
  36. +6 −6 src/Smalot/PdfParser/Tests/Units/Element.php
  37. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementArray.php
  38. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementBoolean.php
  39. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementDate.php
  40. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementHexa.php
  41. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementMissing.php
  42. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementName.php
  43. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementNull.php
  44. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementNumeric.php
  45. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementString.php
  46. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementStruct.php
  47. +6 −6 src/Smalot/PdfParser/Tests/Units/Element/ElementXRef.php
  48. +9 −9 src/Smalot/PdfParser/Tests/Units/Font.php
  49. +6 −6 src/Smalot/PdfParser/Tests/Units/Header.php
  50. +6 −6 src/Smalot/PdfParser/Tests/Units/Object.php
  51. +6 −6 src/Smalot/PdfParser/Tests/Units/Page.php
  52. +6 −6 src/Smalot/PdfParser/Tests/Units/Parser.php
  53. +6 −6 src/Smalot/PdfParser/XObject/Form.php
  54. +6 −6 src/Smalot/PdfParser/XObject/Image.php
View
Oops, something went wrong.
View
@@ -0,0 +1,165 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
View
@@ -40,5 +40,5 @@ Original PDF References files can be downloaded from this url : http://www.adobe
## License ##
-This library is under the [GPLv3 license](https://github.com/smalot/pdfparser/blob/master/LICENSE).
+This library is under the [LGPLv3 license](https://github.com/smalot/pdfparser/blob/master/LICENSE.txt).
View
@@ -1,13 +1,13 @@
{
"name": "smalot/pdfparser",
"description": "Pdf parser library. Can read and extract information from pdf file.",
- "license": "GPL-3.0",
+ "keywords": ["PDF", "text", "parser", "parse", "extract"],
+ "type": "library",
+ "license": "LGPLv3",
"authors": [
{
"name": "Sebastien MALOT",
- "email": "sebastien@malot.fr",
- "role": "Developer",
- "homepage": "http://www.malot.fr"
+ "email": "sebastien@malot.fr"
}
],
"support": {
@@ -5,24 +5,24 @@
* This file is part of the PdfParser library.
*
* @author Sébastien MALOT <sebastien@malot.fr>
- * @date 2013-08-08
- * @license GPL-3.0
+ * @date 2017-01-03
+ * @license LGPLv3
* @url <https://github.com/smalot/pdfparser>
*
* PdfParser is a pdf library written in PHP, extraction oriented.
- * Copyright (C) 2014 - Sébastien MALOT <sebastien@malot.fr>
+ * Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
*
* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
+ * it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
+ * You should have received a copy of the GNU Lesser General Public License
* along with this program.
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
*
@@ -266,7 +266,7 @@ public function getText(Page $page = null)
}
/**
- * @param Header $header
+ * @param Header $trailer
*/
public function setTrailer(Header $trailer)
{
@@ -5,24 +5,24 @@
* This file is part of the PdfParser library.
*
* @author Sébastien MALOT <sebastien@malot.fr>
- * @date 2013-08-08
- * @license GPL-3.0
+ * @date 2017-01-03
+ * @license LGPLv3
* @url <https://github.com/smalot/pdfparser>
*
* PdfParser is a pdf library written in PHP, extraction oriented.
- * Copyright (C) 2014 - Sébastien MALOT <sebastien@malot.fr>
+ * Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
*
* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
+ * it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
+ * You should have received a copy of the GNU Lesser General Public License
* along with this program.
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
*
@@ -5,24 +5,24 @@
* This file is part of the PdfParser library.
*
* @author Sébastien MALOT <sebastien@malot.fr>
- * @date 2013-08-08
- * @license GPL-3.0
+ * @date 2017-01-03
+ * @license LGPLv3
* @url <https://github.com/smalot/pdfparser>
*
* PdfParser is a pdf library written in PHP, extraction oriented.
- * Copyright (C) 2014 - Sébastien MALOT <sebastien@malot.fr>
+ * Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
*
* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
+ * it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
+ * You should have received a copy of the GNU Lesser General Public License
* along with this program.
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
*
@@ -5,24 +5,24 @@
* This file is part of the PdfParser library.
*
* @author Sébastien MALOT <sebastien@malot.fr>
- * @date 2013-08-08
- * @license GPL-3.0
+ * @date 2017-01-03
+ * @license LGPLv3
* @url <https://github.com/smalot/pdfparser>
*
* PdfParser is a pdf library written in PHP, extraction oriented.
- * Copyright (C) 2014 - Sébastien MALOT <sebastien@malot.fr>
+ * Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
*
* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
+ * it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
+ * You should have received a copy of the GNU Lesser General Public License
* along with this program.
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
*
@@ -5,24 +5,24 @@
* This file is part of the PdfParser library.
*
* @author Sébastien MALOT <sebastien@malot.fr>
- * @date 2013-08-08
- * @license GPL-3.0
+ * @date 2017-01-03
+ * @license LGPLv3
* @url <https://github.com/smalot/pdfparser>
*
* PdfParser is a pdf library written in PHPi, extraction oriented.
- * Copyright (C) 2014 - Sébastien MALOT <sebastien@malot.fr>
+ * Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
*
* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
+ * it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
+ * You should have received a copy of the GNU Lesser General Public License
* along with this program.
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
*
@@ -5,24 +5,24 @@
* This file is part of the PdfParser library.
*
* @author Sébastien MALOT <sebastien@malot.fr>
- * @date 2013-08-08
- * @license GPL-3.0
+ * @date 2017-01-03
+ * @license LGPLv3
* @url <https://github.com/smalot/pdfparser>
*
* PdfParser is a pdf library written in PHP, extraction oriented.
- * Copyright (C) 2014 - Sébastien MALOT <sebastien@malot.fr>
+ * Copyright (C) 2017 - Sébastien MALOT <sebastien@malot.fr>
*
* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
+ * it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
+ * You should have received a copy of the GNU Lesser General Public License
* along with this program.
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>.
*
@@ -85,7 +85,7 @@ public static function decode($value, Document $document = null)
$text .= chr(hexdec($hex));
}
}
-
+
$text = html_entity_decode($text, ENT_NOQUOTES, 'UTF-8');
return $text;
Oops, something went wrong.

0 comments on commit c20bfd4

Please sign in to comment.