|
From: <be...@us...> - 2014-06-16 00:28:50
|
Revision: 12604
http://sourceforge.net/p/xoops/svn/12604
Author: beckmi
Date: 2014-06-16 00:28:33 +0000 (Mon, 16 Jun 2014)
Log Message:
-----------
Adding TCPDF 6.0.084 library
Added Paths:
-----------
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/CHANGELOG.TXT
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/LICENSE.TXT
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/README.TXT
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/cache/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/cache/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/composer.json
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/arabic.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/armenian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/brazilian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/bulgarian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/chinese.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/croatian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/czech.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/danish.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/english.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/estonian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/euskara.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/french.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/galician.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/geogian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/german.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/hebrew.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/hungarian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/indonesian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/italian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/japanese.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/korean.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/macedonian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/malaysian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/maltese.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/nederlands.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/norwegian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/persian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/polish.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/portuguese.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/romanian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/russian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/schinese.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/serbian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/slovenian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/spanish.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/swahili.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/swedish.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/tchinese.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/ukrainian.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/lang/urdu.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/tcpdf_config 0.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/tcpdf_config.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/tcpdf_config.php.bak
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/config/tcpdf_config_6_0_082.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/docs/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/docs/README.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/docs/changelog.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/docs/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/courier.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/courierb.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/courierbi.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/courieri.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/dejavusans.ctg.z
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/dejavusans.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/dejavusans.z
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/helvetica.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/helveticab.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/helveticabi.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/helveticai.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/symbol.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/times.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/timesb.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/timesbi.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/timesi.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/fonts/zapfdingbats.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/images/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/images/_blank.png
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/images/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/images/logo.png
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/images/tcpdf_logo.jpg
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/images/tcpdf_signature.png
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/barcodes/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/barcodes/datamatrix.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/barcodes/pdf417.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/barcodes/qrcode.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/sRGB.icc
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/tcpdf_colors.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/tcpdf_filters.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/tcpdf_font_data.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/tcpdf_fonts.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/tcpdf_images.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/include/tcpdf_static.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tcpdf.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tcpdf_autoconfig.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tcpdf_barcodes_1d.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tcpdf_barcodes_2d.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tcpdf_import.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tcpdf_parser.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tools/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tools/.htaccess
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tools/convert_fonts_examples.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/tools/tcpdf_addfont.php
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/CHANGELOG.TXT
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/CHANGELOG.TXT (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/tcpdf/CHANGELOG.TXT 2014-06-16 00:28:33 UTC (rev 12604)
@@ -0,0 +1,2823 @@
+6.0.084 (2014-06-13)
+ - A bug related to MultiCell fitcell feature was fixed.
+ - Bug item #931 "Documentation error for setPageFormat()" was fixed.
+
+6.0.083 (2014-05-29)
+ - Bug item #928 "setHtmlVSpace with HR element" was fixed.
+
+6.0.082 (2014-05-23)
+ - Bug item #926 "test statement instead of assignment used in tcpdf_fonts.php" was fixed.
+ - Bug item #925 "924 transparent images bug" was fixed.
+
+6.0.081 (2014-05-22)
+ - Bug item #922 "writehtml tables thead repeating" was fixed.
+ - Patch #71 "External and internal links, local and remote" wa applied.
+
+6.0.080 (2014-05-20)
+ - Bug item #921 "Fatal error in hyphenateText() function" was fixed.
+ - Bug item #923 "Automatic Hyphenation error" was fixed.
+ - Patch #70 "Augument TCPDFBarcode classes with ability to return raw png image data" was applied.
+
+6.0.079 (2014-05-19)
+ - Patch item #69 "Named destinations, HTML internal and external links" was merged.
+ - Bug item #920 "hyphenateText() should not hyphenate the content of style-tags in HTML mode" was fixed.
+ - Image method now trigs an error in case the cache is now writeable.
+ - Fixed issue with layer default status.
+
+6.0.078 (2014-05-12)
+ - A warning issue in addTTFfont() method was fixed.
+ - Fonts were updated to include cbbox metrics.
+
+6.0.077 (2014-05-06)
+ - A Datamatrix barcode bug was fixed.
+
+6.0.076 (2014-05-06)
+ - A bug in Datamatrix Base256 encoding was fixed.
+ - Merged fix for SVG use/clip-gradient.
+ - Now it is possible to prefix a page number in Link methods with the * character to avoid been changed when adding/deleting/moving pages (see example_045.php).
+
+6.0.075 (2014-05-05)
+ - Bug #917 "Using realtive Units like ex or em for images distort output in HTML mode" was fixed.
+
+6.0.074 (2014-05-03)
+ - Part of Bug #917 "Using realtive Units like ex or em for images distort output in HTML mode" was fixed.
+ - Bug #915 "Problem with SVG Image using Radial Gradients" was fixed.
+
+6.0.073 (2014-04-29)
+ - Bug #913 "Possible bug with line-height" was fixed.
+ - Bug #914 "MultiCell and FitCell" was fixed.
+ - Bug #915 "Problem with SVG Image using Radial Gradients" was fixed.
+
+6.0.072 (2014-04-27)
+ - Deprecated curly braces substring syntax was replaced with square braces.
+
+6.0.071 (2014-04-25)
+ - Bug #911 "error with buffered png pics" was fixed.
+
+6.0.070 (2014-04-24)
+ - Bug #910 "An SVG image is being cut off (with clipping mask) when you use align options" was fixed.
+
+6.0.069 (2014-04-24)
+ - Datamatrix Base256 encoding was fixed.
+
+6.0.068 (2014-04-22)
+ - Some Datamatrix barcode bugs were fixed.
+
+6.0.067 (2014-04-21)
+ - startLayer() method signature was changed to include a new "lock" parameter.
+
+6.0.066 (2014-04-20)
+ - Bug #908 "Linebreak is not considered when getting length of the next string" was fixed.
+
+6.0.065 (2014-04-10)
+ - Bug #905 "RGB percentage color bug in convertHTMLColorToDec()" was fixed.
+
+6.0.064 (2014-04-07)
+ - Header and Footer fonts are now set by default.
+ - Bug #904 "PDF corrupted" was fixed.
+
+6.0.063 (2014-04-03)
+ - Method TCPDF_IMAGES::_parsepng() was fixed to support transparency in Indexed images.
+
+6.0.062 (2014-03-02)
+ - The method startLayer() now accepts the NULL value for the $print parameter to not set the print layer option.
+
+6.0.061 (2014-02-18)
+ - Bug #893 "Parsing error on streamed xref for secured pdf" was fixed.
+
+6.0.060 (2014-02-16)
+ - Bug #891 "Error on parsing hexa fields" was fixed.
+ - Bug #892 "Parsing pdf with trailing space at start" was fixed.
+
+6.0.059 (2014-02-03)
+ - SVG 'use' support was imporved.
+
+6.0.058 (2014-01-31)
+ - Bug #886 "Bugs with SVG using <defs> and <use>" was fixed.
+
+6.0.057 (2014-01-26)
+ - Bug #883 "Parsing error" was fixed.
+
+6.0.056 (2014-01-25)
+ - The automatic cache folder selection now works also with some restricted hosting environments.
+ - CSS text-transform property is now supported (requires the multibyte string library for php) - see examle n. 061 (Thanks to Walter Ferraz).
+ - Bug #884 "Parsing error prev tag looking for" was fixed.
+
+6.0.055 (2014-01-15)
+ - Bug #880 "Error detecting hX tags (h1,h2..)" was fixed
+ - Bug #879 "Thead on the second page inherits style of previous tr" was fixed
+
+6.0.054 (2014-01-13)
+ - Bug #877 "Parenteses causing corrupt text" was fixed.
+
+6.0.053 (2014-01-03)
+ - Bug #876 "Cell padding should not be multiplied with number of lines in getStringHeight" was fixed.
+ - Patch #68 "Empty img src attribute leads to access of uninitialized string offset" was applied.
+
+6.0.052 (2013-12-12)
+ - Bug #871 "Datamatrix coding" was fixed.
+
+6.0.051 (2013-12-02)
+ - cbbox array values in addTTFfont() were converted to integers.
+
+6.0.050 (2013-12-01)
+ - The method getNumLines() was extended to support hyphenation.
+ - The CSS property line-height now supports non percentage values.
+
+6.0.050 (2013-11-27)
+ - A bug related to PNG images was fixed.
+
+6.0.048 (2013-11-24)
+ - SVG vars are now reset in ImageSVG() method.
+
+6.0.047 (2013-11-19)
+ - SVG support was extended to support some nested defs.
+
+6.0.046 (2013-11-17)
+ - preg_replace_callback functions were replaced to improve memory performances.
+
+6.0.045 (2013-11-17)
+ - Bug #862 "Parsing error on flate filter" was fixed.
+
+6.0.044 (2013-11-10)
+ - Bug #857 "Undefined offset error" was fixed.
+ - The uniord method now uses a static cache to improve performances (thanks to Mathieu Masseboeuf for the sugegstion).
+ - Two bugs in the TCPDF_FONTS class were fixed.
+
+6.0.043 (2013-10-29)
+ - Bug #854 "CSS instruction display" was fixed.
+
+6.0.042 (2013-10-25)
+ - Bug #852 "CMYK Colors Bug" was fixed.
+
+6.0.041 (2013-10-21)
+ - Bug #851 "Problem with images in PDF. PHP timing out" was fixed.
+
+6.0.040 (2013-10-20)
+ - Bug #849 "SVG import bug" was fixed.
+
+6.0.039 (2013-10-13)
+ - Bug #843 "Wrong call in parser" was fixed.
+ - Bug #844 "Wrong object type named" was fixed.
+ - Bug #845 "Parsing error on obj ref prefixed by '000000'" was fixed.
+
+6.0.038 (2013-10-06)
+ - Bug #841 "Division by zero warning at writeHTML a <li> tag" was fixed.
+
+6.0.037 (2013-09-30)
+ - Method getAllSpotColors() was added to return all spot colors.
+ - Method colorRegistrationBar() was extended to automatically print all spot colors and support individual spot colors.
+ - The method registrationMarkCMYK() was added to print a registration mark for CMYK colors.
+ - A bug related to page groups was fixed.
+ - Gradient() method now supports CMYK equivalents of spot colors.
+ - Example n. 56 was updated.
+
+6.0.036 (2013-09-29)
+ - Methods for registration bars and crop marks were extended to support registration color (see example n. 56).
+ - New default spot colors were added to tcpdf_colors.php, including the 'All' and 'None' special registration colors.
+
+6.0.035 (2013-09-25)
+ - TCPDF_PARSER class was improved.
+
+6.0.034 (2013-09-24)
+ - Bug #839 "Error in xref parsing in mixed newline chars" was fixed.
+
+6.0.033 (2013-09-23)
+ - Bug fix related to PNG image transparency using GD library.
+
+6.0.032 (2013-09-23)
+ - Bug #838 "Fatal error when imagick cannot handle the image, even though GD is available and can" was fixed.
+
+6.0.031 (2013-09-18)
+ - Bug #836 "Optional EOL marker before endstream" was fixed.
+ - Some additional controls were added to avoid "division by zero" error with badly formatted input.
+
+6.0.030 (2013-09-17)
+ - Bug #835 "PDF417 and Cyrilic simbols" was fixed.
+
+6.0.029 (2013-09-15)
+ - Constants K_TCPDF_PARSER_THROW_EXCEPTION_ERROR and K_TCPDF_PARSER_IGNORE_DECODING_ERRORS where removed in favor of a new configuration array in the TCPDF_PARSER class.
+ - The TCPDF_PARSER class can now be configured using the new $cfg parameter.
+
+6.0.028 (2013-09-15)
+ - A debug print_r was removed form tcpdf_parser.php.
+ - TCPDF_FILTERS class now throws an exception in case of error.
+ - TCPDF_PARSER class now throws an exception in case of error unless you define the constant K_TCPDF_PARSER_THROW_EXCEPTION_ERROR to false.
+ - The constant K_TCPDF_PARSER_IGNORE_DECODING_ERRORS can be set to tru eto ignore decoding errors on TCPDF_PARSER.
+
+6.0.027 (2013-09-14)
+ - A bug in tcpdf_parser wen parsing hexadecimal strings was fixed.
+ - A bug in tcpdf_parser wen looking for statxref was fixed.
+ - A bug on RC4 encryption was fixed.
+
+6.0.026 (2013-09-14)
+ - A bug in tcpdf_parser wen decoding streams was fixed.
+
+6.0.025 (2013-09-04)
+ - A pregSplit() bug was fixed.
+ - Improved content loading from URLs.
+ - Improved font path loading.
+
+6.0.024 (2013-09-02)
+ - Bug #826 "addEmptySignatureAppearance issue" was fixed.
+
+6.0.023 (2013-08-05)
+ - GNU Freefont fonts were updated.
+ - Licensing and copyright information about fonts were improved.
+ - PNG image support was improved.
+
+6.0.022 (2013-08-02)
+ - fixing initialization problem for signature_appearance property.
+
+6.0.021 (2013-07-18)
+ - The bug caused by the preg_split function on some PHP 5.2.x versions was fixed.
+
+6.0.020 (2013-06-04)
+ - The method addTTFfont() was fixed (Bug item #813 Undefined offset).
+
+6.0.019 (2013-06-04)
+ - The magic constant __DIR__ was replaced with dirname(__FILE__) for php 5.2 compatibility.
+ - The exceptions raised by file_exists() function were suppressed.
+
+6.0.018 (2013-05-19)
+ - The barcode examples were changed to automatically search for the barcode class path (in case the examples directory is not installed under the TCPDF root).
+
+6.0.017 (2013-05-16)
+ - The command line tool tcpdf_addfont.php was improved.
+ - The php logic was removed from configuration files that now contains only constant defines.
+ - The tcpdf_autoconfig.php file was added to automatically set missing configuration values.
+
+6.0.016 (2013-05-15)
+ - The tcpdf_addfont.php tool was improved (thanks to Remi Collet).
+ - Constant K_PATH_IMAGES is now automatically set in configuration file.
+
+6.0.015 (2013-05-14)
+ - Some unused vars were removed from AddFont() method.
+ - Some directories were moved inside the examples directory.
+ - All examples were updated to reflect the new default structure.
+ - Source code were clean-up up to be more compatible with system packaging.
+ - Files encodings and permissions were reset.
+ - The command line tool tcpdf_addfont.php was added on the tools directory.
+
+6.0.014 (2013-04-13)
+ - The signature of addTTFfont() method includes a new parameter to link existing fonts instead of copying and compressing them.
+
+6.0.013 (2013-04-10)
+ - Add support for SVG dx and dy text/tspan attributes.
+ - replace require() with require_once().
+ - fix some minor typos on documentation.
+ - fix a problem when deleting all pages.
+
+6.0.012 (2013-04-24)
+ - An error condition in addHtmlLink() method was fixed (bug #799).
+
+6.0.011 (2013-04-22)
+ - Minor documentation changes.
+
+6.0.010 (2013-04-03)
+ - The method Rect() was fixed to print borders correctly.
+
+6.0.009 (2013-04-02)
+ - Adding back some files that were not properly committed on the latest release.
+
+6.0.008 (2013-04-01)
+ - Duplicated encoding maps was removed from tcpdf_font_data.php.
+ - Fixing bug on AddTTFFont().
+
+6.0.007 (2013-03-29)
+ - HTML/CSS font size conversion were improved.
+
+6.0.006 (2013-03-27)
+ - Bug related to SVG and EPS files on xobjects were fixed.
+
+6.0.005 (2013-03-26)
+ - Default font path was fixed.
+
+6.0.004 (2013-03-21)
+ - Return value of addTTFfont() method was fixed.
+
+6.0.003 (2013-03-20)
+ - A bug related to non-unicode mode was fixed.
+
+6.0.002 (2013-03-18)
+ - _getFIXED call on tcpdf_fonts.php was fixed.
+
+6.0.001 (2013-03-18)
+ - Fixed $uni_type call on tcpdf.php.
+
+6.0.000 (2013-03-17)
+ - IMPORTANT: PHP4 support has been removed starting from this version.
+ - Several TCPDF methods and vars were moved to new class files: tcpdf_static.php, tcpdf_colors.php, tcpdf_images.php, tcpdf_font_data.php, tcpdf_fonts.php.
+ - Files htmlcolors.php, spotcolors.php, unicode_data.php and ecodings_maps.php were removed.
+ - Barcode classes were renamed and new barcode examples were added.
+ - Class TCPDF_PARSER was improved.
+
+********************************************************************************
+
+5.9.209 (2013-03-15)
+ - Image method was improved.
+
+5.9.208 (2013-03-15)
+ - objclone fuction was patched to support old imagick extensions.
+ - tcpdf_parser was improved to support Cross-Reference Streams and large streams.
+
+5.9.207 (2013-03-04)
+ - Datamatrix class was fixed (a debug echo was removed).
+
+5.9.206 (2013-02-22)
+ - Bug item #754 "PNG with alpha channel becomes gray scale" was fixed.
+ - Minor documentation fixes.
+
+5.9.205 (2013-02-06)
+ - The constant K_TCPDF_THROW_EXCEPTION_ERROR was added on configuration file to change the behavior of Error() method.
+ - PDF417 barcode bug was fixed.
+
+5.9.204 (2013-01-23)
+ - The method Bookmark() was extended to include named destinations, URLs, internal links or embedded files (see example n. 15).
+ - automatic path calculation on configuration file was fixed.
+ - Error() method was extended to throw new Exception if PHP > 5.
+
+5.9.203 (2013-01-22)
+ - Horizontal position of radiobuttons and checkboxes was adjusted.
+
+5.9.202 (2012-12-16)
+ - Vertical space problem after table was fixed.
+
+5.9.201 (2012-12-10)
+ - First 256 chars are now always included on font subset to overcome a problem reported on the forum.
+
+5.9.200 (2012-12-05)
+ - Bug item #768 "Rowspan with Pagebreak error" was fixed.
+ - Page regions now works also with limited MultiCell() cells.
+
+5.9.199 (2012-11-29)
+ - Internal setImageBuffer() method was improved.
+
+5.9.198 (2012-11-19)
+ - Datamatrix EDIFACT mode was fixed.
+
+5.9.197 (2012-11-06)
+ - Bug item #756 "TCPDF 5.9.196 shows line on top of all PDFs" was fixed.
+
+5.9.196 (2012-11-02)
+ - Several methods were improved to avoid output when the context is out of page.
+ - Bug item #755 "remove cached files before unsetting" was fixed.
+
+5.9.195 (2012-10-24)
+ - Method _putfonts() was improved.
+
+5.9.194 (2012-10-23)
+ - Text alignment on TextField() method was fixed.
+
+5.9.193 (2012-09-25)
+ - Support for named destinations on HTML links was added (i.e.: <a href="#destinationname">link to named destination</a>).
+
+5.9.192 (2012-09-24)
+ - A problem on the releasing process was fixed.
+
+5.9.191 (2012-09-24)
+ - SVG image naow support svg and eps images.
+
+5.9.190 (2012-09-23)
+ - "page" word translation is now set to empty if not defined.
+ - Tooltip feature was added on the radiobutton annotation.
+
+5.9.189 (2012-09-18)
+ - Bug item #3568969 "ini_get safe_mode error" was fixed.
+
+5.9.188 (2012-09-15)
+ - A datamatrix barcode bug was fixed.
+
+5.9.187 (2012-09-14)
+ - Subset feature was extended to include the first 256 characters.
+
+5.9.186 (2012-09-13)
+ - barcodes.php file was resynced.
+ - Methods SetAbsX, SetAbsY, SetAbsXY where added to set the absolute pointer coordinates.
+ - Method getCharBBox were added to get single character bounding box.
+ - Signature of addTTFfont method was changed ($addcbbox paramter was added).
+
+5.9.185 (2012-09-12)
+ - Method _putfontwidths() was fixed.
+
+5.9.184 (2012-09-11)
+ - A problem with EAN barcodes was fixed.
+
+5.9.183 (2012-09-07)
+ - A problem with font names normalization was fixed.
+
+5.9.182 (2012-09-05)
+ - Bug item #3564982 "Infinite loop in Write() method" was fixed.
+
+5.9.181 (2012-08-31)
+ - composer.json file was added.
+ - Bug item #3563369 "Cached images are not unlinked some time" was fixed.
+
+5.9.180 (2012-08-22)
+ - Bug item #3560493 "Problems with nested cells in HTML" was fixed.
+
+5.9.179 (2012-08-04)
+ - SVG 'use' tag was fixed for 'circle' and 'ellipse' shift problem.
+ - Alpha status is now correctly stored and restored by getGraphicVars() and SetGraphicVars() methods.
+
+5.9.178 (2012-08-02)
+ - SVG 'use' tag was fixed for 'circle' and 'ellipse'.
+
+5.9.177 (2012-08-02)
+ - An additional control on annotations was fixed.
+
+5.9.176 (2012-07-25)
+ - A bug related to stroke width was fixed.
+ - A problem related to font spacing in HTML was fixed.
+
+5.9.175 (2012-07-25)
+ - The problem of missing letter on hyphen break was fixed.
+
+5.9.174 (2012-07-25)
+ - The problem of wrong filename when downloading PDF from an Android device was fixed.
+ - The method setHeaderData() was extended to set text and line color for header (see example n. 1).
+ - The method setFooterData() was added to set text and line color for footer (see example n. 1).
+ - The methods setTextShadow() and getTextShadow() were added to set text shadows (see example n. 1).
+ - The GetCharWidth() method was fixed for negative character spacing.
+ - A 'none' border mode is now correctly recognized.
+ - Break on hyphen problem was fixed.
+
+5.9.173 (2012-07-23)
+ - Some additional control wher added on barcode methods.
+ - The option CURLOPT_FOLLOWLOCATION on Image method is now disabled if PHP safe_mode is on or open_basedir is set.
+ - Method Bookmark() was extended to include X parameter.
+ - Method setDestination() was extended to include X parameter.
+ - A problem with Thai language was fixed.
+
+5.9.172 (2012-07-02)
+ - A PNG color profile issue was fixed.
+
+5.9.171 (2012-07-01)
+ - Some SVG rendering problems were fixed.
+
+5.9.170 (2012-06-27)
+ - Bug #3538227 "Numerous errors inserting shared images" was fixed.
+
+5.9.169 (2012-06-25)
+ - Some SVG rendering problems were fixed.
+
+5.9.168 (2012-06-22)
+ - Thai language rendering was fixed.
+
+5.9.167 (2012-06-22)
+ - Thai language rendering was fixed and improved.
+ - Method isCharDefined() was improved.
+ - Protected method replaceChar() was added.
+ - Font "kerning" word was corrected to "tracking".
+
+5.9.166 (2012-06-21)
+ - Array to string conversion on file_id creation was fixed.
+ - Thai language rendering was fixed (thanks to Atsawin Chaowanakritsanakul).
+
+5.9.165 (2012-06-07)
+ - Some HTML form related bugs were fixed.
+
+5.9.164 (2012-06-06)
+ - A bug introduced on the latest release was fixed.
+
+5.9.163 (2012-06-05)
+ - Method getGDgamma() was changed.
+ - Rendering performances of PNG images with alpha channel were improved.
+
+5.9.162 (2012-05-11)
+ - A bug related to long text on TD cells was fixed.
+
+5.9.161 (2012-05-09)
+ - A bug on XREF table was fixed (Bug ID: 3525051).
+ - Deprecated Imagick:clone was replaced.
+ - Method objclone() was fixed for PHP4.
+
+5.9.160 (2012-05-03)
+ - A bug on tcpdf_parser.php was fixed.
+
+5.9.159 (2012-04-30)
+ - Barcode classes were updated to fix PNG export Bug (ID: 3522291).
+
+5.9.158 (2012-04-22)
+ - Some SVG-related bugs were fixed.
+
+5.9.157 (2012-04-16)
+ - Some SVG-related bugs were fixed.
+
+5.9.156 (2012-04-10)
+ - Bug item #3515885 "TOC and booklet: left and right page exchanged".
+ - SetAutoPageBreak(false) now works also in multicolumn mode.
+
+5.9.155 (2012-04-02)
+ - Bug item #3512596 "font import problems" was fixed.
+ - Method addTTFfont() was modified to extract only specified Platform ID and Encoding ID (check the source code documentation).
+ - All fonts were updated.
+ - Bug item #3513867 "booklet and setHeaderTemplateAutoreset: header shifted left" was fixed.
+ - Bug item #3513749 "TCPDF Superscript/Subscript" was ...
[truncated message content] |
|
From: <be...@us...> - 2014-06-16 05:06:42
|
Revision: 12606
http://sourceforge.net/p/xoops/svn/12606
Author: beckmi
Date: 2014-06-16 05:06:36 +0000 (Mon, 16 Jun 2014)
Log Message:
-----------
Adding WideImage
Added Paths:
-----------
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Canvas.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Coordinate.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Exception.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/GDF.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/PS.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/TTF.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Image.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/BMP.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/GD.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/GD2.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/GIF.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/JPEG.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/PNG.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/TGA.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/MapperFactory.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/AddNoise.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/ApplyConvolution.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/ApplyFilter.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/ApplyMask.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/AsGrayscale.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/AsNegative.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/AutoCrop.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/CopyChannelsPalette.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/CopyChannelsTrueColor.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/CorrectGamma.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/Crop.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/Flip.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/GetMask.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/Merge.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/Mirror.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/Resize.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/ResizeCanvas.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/Rotate.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/RoundCorners.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/Unsharp.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Operation/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/OperationFactory.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/PaletteImage.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/TrueColorImage.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/WideImage.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/docs/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/docs/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/docs/readme.txt
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/vendor/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/vendor/de77/
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/vendor/de77/BMP.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/vendor/de77/TGA.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/vendor/de77/index.html
XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/vendor/index.html
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Canvas.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Canvas.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Canvas.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,61 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defined");
+}
+class WideImage_NoFontException extends WideImage_Exception {}
+class WideImage_InvalidFontFileException extends WideImage_Exception {}
+class WideImage_InvalidCanvasMethodException extends WideImage_Exception {}
+class WideImage_Canvas{
+ protected $handle = 0;
+ protected $image = NULL;
+ protected $font = NULL;
+ function __construct($img){
+ $this->handle = $img->getHandle();
+ $this->image = $img;
+ }
+ function setFont($font){
+ $this->font = $font;
+ }
+ function useFont($file, $size = 12, $color = 0, $bgcolor = NULL){
+ $p = strrpos($file, '.');
+ if ($p === false || $p < strlen($file) - 4)
+ $ext = 'ttf';
+ else
+ $ext = strtolower(substr($file, $p + 1));
+ if ($ext == 'ttf' || $ext == 'otf')
+ $font = new WideImage_Font_TTF($file, $size, $color);
+ elseif ($ext == 'ps')
+ $font = new WideImage_Font_PS($file, $size, $color, $bgcolor);
+ elseif ($ext == 'gdf')
+ $font = new WideImage_Font_GDF($file, $color);
+ else
+ throw new WideImage_InvalidFontFileException('"'.$file.' appears to be an invalid font file.');
+ $this->setFont($font);
+ return $font;
+ }
+ function writeText($x, $y, $text, $angle = 0){
+ if ($this->font === NULL)
+ throw new WideImage_NoFontException("Can't write text without a font.");
+ $angle = - floatval($angle);
+ if ($angle < 0)
+ $angle = 360 + $angle;
+ $angle = $angle % 360;
+ $this->font->writeText($this->image, $x, $y, $text, $angle);
+ }
+ function __call($method, $params){
+ if (function_exists('image' . $method)) {
+ array_unshift($params, $this->handle);
+ call_user_func_array('image' . $method, $params);
+ }else{
+ throw new WideImage_InvalidCanvasMethodException("Function doesn't exist: image{$method}.");
+ }
+ }
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Canvas.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Coordinate.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Coordinate.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Coordinate.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,128 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defined");
+}
+class WideImage_InvalidCoordinateException extends WideImage_Exception {}
+class WideImage_Coordinate{
+ static protected $coord_align = array("left", "center", "right", "top", "middle", "bottom");
+ static protected $coord_numeric = array("[0-9]+", "[0-9]+\.[0-9]+", "[0-9]+%", "[0-9]+\.[0-9]+%");
+ static function parse($c){
+ $tokens = array();
+ $operators = array('+', '-');
+ $flush_operand = false;
+ $flush_operator = false;
+ $current_operand = '';
+ $current_operator = '';
+ $coordinate = strval($c);
+ $expr_len = strlen($coordinate);
+ for ($i = 0; $i < $expr_len; $i++){
+ $char = $coordinate[$i];
+ if (in_array($char, $operators)){
+ $flush_operand = true;
+ $flush_operator = true;
+ $current_operator = $char;
+ }else{
+ $current_operand .= $char;
+ if ($i == $expr_len - 1)
+ $flush_operand = true;
+ }
+ if ($flush_operand) {
+ if (trim($current_operand) != '')
+ $tokens[] = array('type' => 'operand', 'value' => trim($current_operand));
+ $current_operand = '';
+ $flush_operand = false;
+ }
+ if ($flush_operator){
+ $tokens[] = array('type' => 'operator', 'value' => $char);
+ $flush_operator = false;
+ }
+ }
+ return $tokens;
+ }
+ static function evaluate($coord, $dim, $sec_dim = NULL) {
+ $comp_regex = implode('|', self::$coord_align) . '|' . implode('|', self::$coord_numeric);
+ if (preg_match("/^([+-])?({$comp_regex})$/", $coord, $matches)) {
+ $sign = intval($matches[1] . "1");
+ $val = $matches[2];
+ if (in_array($val, self::$coord_align)){
+ if ($sec_dim === NULL){
+ switch ($val){
+ case 'left':
+ case 'top':
+ return 0;
+ break;
+ case 'center':
+ case 'middle':
+ return $sign * intval($dim / 2);
+ break;
+ case 'right':
+ case 'bottom':
+ return $sign * $dim;
+ break;
+ default:
+ return NULL;
+ }
+ }else{
+ switch ($val){
+ case 'left':
+ case 'top':
+ return 0;
+ break;
+ case 'center':
+ case 'middle':
+ return $sign * intval($dim / 2 - $sec_dim / 2);
+ break;
+ case 'right':
+ case 'bottom':
+ return $sign * ($dim - $sec_dim);
+ break;
+ default:
+ return NULL;
+ }
+ }
+ }elseif (substr($val, -1) === '%'){
+ return intval(round($sign * $dim * floatval(str_replace('%', '', $val)) / 100));
+ }else{
+ return $sign * intval(round($val));
+ }
+ }
+ }
+ static function fix($value, $dim, $sec_dim = NULL){
+ $coord_tokens = self::parse($value);
+ if (count($coord_tokens) == 0 || $coord_tokens[count($coord_tokens) - 1]['type'] != 'operand')
+ throw new WideImage_InvalidCoordinateException("Couldn't parse coordinate '$value' properly.");
+ $value = 0;
+ $operation = 1;
+ foreach ($coord_tokens as $token){
+ if ($token['type'] == 'operand'){
+ $operand_value = self::evaluate($token['value'], $dim, $sec_dim);
+ if ($operation == 1)
+ $value = $value + $operand_value;
+ elseif ($operation == -1)
+ $value = $value - $operand_value;
+ else
+ throw new WideImage_InvalidCoordinateException("Invalid coordinate syntax.");
+ $operation = 0;
+ }elseif ($token['type'] == 'operator'){
+ if ($token['value'] == '-') {
+ if ($operation == 0)
+ $operation = -1;
+ else
+ $operation = $operation * -1;
+ }elseif ($token['value'] == '+'){
+ if ($operation == 0)
+ $operation = '1';
+ }
+ }
+ }
+ return $value;
+ }
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Coordinate.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Exception.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Exception.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Exception.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,13 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defined");
+}
+ class WideImage_Exception extends RuntimeException {}
+?>
\ No newline at end of file
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Exception.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/GDF.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/GDF.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/GDF.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,26 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defined");
+}
+class WideImage_Font_GDF{
+ protected $font;
+ protected $color;
+ function __construct($face, $color) {
+ if (is_int($face) && $face >= 1 && $face <= 5)
+ $this->font = $face;
+ else
+ $this->font = imageloadfont($face);
+ $this->color = $color;
+ }
+ function writeText($image, $x, $y, $text){
+ imagestring($image->getHandle(), $this->font, $x, $y, $text, $this->color);
+ }
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/GDF.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/PS.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/PS.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/PS.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,35 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defined");
+}
+class WideImage_Font_PS{
+ public $size;
+ public $color;
+ public $handle;
+ function __construct($file, $size, $color, $bgcolor = NULL) {
+ $this->handle = imagepsloadfont($file);
+ $this->size = $size;
+ $this->color = $color;
+ if ($bgcolor === NULL)
+ $this->bgcolor = $color;
+ else
+ $this->color = $color;
+ }
+ function writeText($image, $x, $y, $text, $angle = 0){
+ if ($image->isTrueColor())
+ $image->alphaBlending(true);
+ imagepstext($image->getHandle(), $text, $this->handle, $this->size, $this->color, $this->bgcolor, $x, $y, 0, 0, $angle, 4);
+ }
+ function __destruct(){
+ imagepsfreefont($this->handle);
+ $this->handle = NULL;
+ }
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/PS.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/TTF.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/TTF.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/TTF.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,40 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defined");
+}
+class WideImage_Font_TTF{
+ public $face;
+ public $size;
+ public $color;
+ function __construct($face, $size, $color){
+ $this->face = $face;
+ $this->size = $size;
+ $this->color = $color;
+ }
+ function writeText($image, $x, $y, $text, $angle = 0){
+ if ($image->isTrueColor())
+ $image->alphaBlending(true);
+ $box = imageftbbox($this->size, $angle, $this->face, $text);
+ $obox = array(
+ 'left' => min($box[0], $box[2], $box[4], $box[6]),
+ 'top' => min($box[1], $box[3], $box[5], $box[7]),
+ 'right' => max($box[0], $box[2], $box[4], $box[6]) - 1,
+ 'bottom' => max($box[1], $box[3], $box[5], $box[7]) - 1
+ );
+ $obox['width'] = abs($obox['left']) + abs($obox['right']);
+ $obox['height'] = abs($obox['top']) + abs($obox['bottom']);
+ $x = WideImage_Coordinate::fix($x, $image->getWidth(), $obox['width']);
+ $y = WideImage_Coordinate::fix($y, $image->getHeight(), $obox['height']);
+ $fixed_x = $x - $obox['left'];
+ $fixed_y = $y - $obox['top'];
+ imagettftext($image->getHandle(), $this->size, $angle, $fixed_x, $fixed_y, $this->color, $this->face, $text);
+ }
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/TTF.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/index.html
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/index.html (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Font/index.html 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Image.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Image.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Image.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,250 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defined");
+}
+class WideImage_InvalidImageDimensionException extends WideImage_Exception {}
+class WideImage_UnknownErrorWhileMappingException extends WideImage_Exception {}
+abstract class WideImage_Image{
+ protected $handle = NULL;
+ protected $handleReleased = false;
+ protected $canvas = NULL;
+ protected $sdata = NULL;
+ function __construct($handle){
+ WideImage::assertValidImageHandle($handle);
+ $this->handle = $handle;
+ }
+ function __destruct(){
+ $this->destroy();
+ }
+ function destroy(){
+ if ($this->isValid() && !$this->handleReleased)
+ imagedestroy($this->handle);
+ $this->handle = NULL;
+ }
+ function getHandle(){
+ return $this->handle;
+ }
+ function isValid(){
+ return WideImage::isValidImageHandle($this->handle);
+ }
+ function releaseHandle(){
+ $this->handleReleased = true;
+ }
+ function saveToFile($uri){
+ $mapper = WideImage_MapperFactory::selectMapper($uri, NULL);
+ $args = func_get_args();
+ array_unshift($args, $this->getHandle());
+ $res = call_user_func_array(array($mapper, 'save'), $args);
+ if (!$res)
+ throw new WideImage_UnknownErrorWhileMappingException(get_class($mapper) . ' returned an invalid result while saving to '.$uri);
+ }
+ function asString($format){
+ ob_start();
+ $args = func_get_args();
+ $args[0] = NULL;
+ array_unshift($args, $this->getHandle());
+ $mapper = WideImage_MapperFactory::selectMapper(null, $format);
+ $res = call_user_func_array(array($mapper, 'save'), $args);
+ if (!$res)
+ throw new WideImage_UnknownErrorWhileMappingException(get_class($mapper) . ' returned an invalid result while writing the image data');
+ return ob_get_clean();
+ }
+ protected function writeHeader($name, $data){
+ header($name . ': ' . $data);
+ }
+ function output($format){
+ $args = func_get_args();
+ $data = call_user_func_array(array($this, 'asString'), $args);
+ $this->writeHeader('Content-length', strlen($data));
+ $this->writeHeader('Content-type', WideImage_MapperFactory::mimeType($format));
+ echo $data;
+ }
+ function getWidth(){
+ return imagesx($this->handle);
+ }
+ function getHeight(){
+ return imagesy($this->handle);
+ }
+ function allocateColor($R, $G = NULL, $B = NULL){
+ if (is_array($R))
+ return imageColorAllocate($this->handle, $R['red'], $R['green'], $R['blue']);
+ else
+ return imageColorAllocate($this->handle, $R, $G, $B);
+ }
+ function isTransparent(){
+ return $this->getTransparentColor() >= 0;
+ }
+ function getTransparentColor(){
+ return imagecolortransparent($this->handle);
+ }
+ function setTransparentColor($color){
+ return imagecolortransparent($this->handle, $color);
+ }
+ function getTransparentColorRGB(){
+ $total = imagecolorstotal($this->handle);
+ $tc = $this->getTransparentColor();
+ if ($tc >= $total && $total > 0)
+ return NULL;
+ else
+ return $this->getColorRGB($tc);
+ }
+ function getRGBAt($x, $y){
+ return $this->getColorRGB($this->getColorAt($x, $y));
+ }
+ function setRGBAt($x, $y, $color){
+ $this->setColorAt($x, $y, $this->getExactColor($color));
+ }
+ function getColorRGB($colorIndex){
+ return imageColorsForIndex($this->handle, $colorIndex);
+ }
+ function getColorAt($x, $y) {
+ return imagecolorat($this->handle, $x, $y);
+ }
+ function setColorAt($x, $y, $color) {
+ return imagesetpixel($this->handle, $x, $y, $color);
+ }
+ function getClosestColor($R, $G = NULL, $B = NULL){
+ if (is_array($R))
+ return imagecolorclosest($this->handle, $R['red'], $R['green'], $R['blue']);
+ else
+ return imagecolorclosest($this->handle, $R, $G, $B);
+ }
+ function getExactColor($R, $G = NULL, $B = NULL){
+ if (is_array($R))
+ return imagecolorexact($this->handle, $R['red'], $R['green'], $R['blue']);
+ else
+ return imagecolorexact($this->handle, $R, $G, $B);
+ }
+ function copyTransparencyFrom($sourceImage, $fill = true){
+ if ($sourceImage->isTransparent()){
+ $rgba = $sourceImage->getTransparentColorRGB();
+ if ($rgba === NULL)
+ return;
+ if ($this->isTrueColor()){
+ $rgba['alpha'] = 127;
+ $color = $this->allocateColorAlpha($rgba);
+ }else{
+ $color = $this->allocateColor($rgba);
+ }
+ $this->setTransparentColor($color);
+ if ($fill)
+ $this->fill(0, 0, $color);
+ }
+ }
+ function fill($x, $y, $color){
+ return imagefill($this->handle, $x, $y, $color);
+ }
+ protected function getOperation($name){
+ return WideImage_OperationFactory::get($name);
+ }
+ function getMask(){
+ return $this->getOperation('GetMask')->execute($this);
+ }
+ function resize($width = NULL, $height = NULL, $fit = 'inside', $scale = 'any') {
+ return $this->getOperation('Resize')->execute($this, $width, $height, $fit, $scale);
+ }
+ function resizeDown($width = NULL, $height = NULL, $fit = 'inside') {
+ return $this->resize($width, $height, $fit, 'down');
+ }
+ function resizeUp($width = NULL, $height = NULL, $fit = 'inside'){
+ return $this->resize($width, $height, $fit, 'up');
+ }
+ function rotate($angle, $bgColor = NULL, $ignoreTransparent = true) {
+ return $this->getOperation('Rotate')->execute($this, $angle, $bgColor, $ignoreTransparent);
+ }
+ function merge($overlay, $left = 0, $top = 0, $pct = 100){
+ return $this->getOperation('Merge')->execute($this, $overlay, $left, $top, $pct);
+ }
+ function resizeCanvas($width, $height, $pos_x, $pos_y, $bg_color = NULL, $scale = 'any', $merge = false){
+ return $this->getOperation('ResizeCanvas')->execute($this, $width, $height, $pos_x, $pos_y, $bg_color, $scale, $merge);
+ }
+ function roundCorners($radius, $color = NULL, $smoothness = 2, $corners = 255){
+ return $this->getOperation('RoundCorners')->execute($this, $radius, $color, $smoothness, $corners);
+ }
+ function applyMask($mask, $left = 0, $top = 0){
+ return $this->getOperation('ApplyMask')->execute($this, $mask, $left, $top);
+ }
+ function applyFilter($filter, $arg1 = NULL, $arg2 = NULL, $arg3 = NULL, $arg4 = NULL){
+ return $this->getOperation('ApplyFilter')->execute($this, $filter, $arg1, $arg2, $arg3, $arg4);
+ }
+ function applyConvolution($matrix, $div, $offset){
+ return $this->getOperation('ApplyConvolution')->execute($this, $matrix, $div, $offset);
+ }
+ function crop($left = 0, $top = 0, $width = '100%', $height = '100%'){
+ return $this->getOperation('Crop')->execute($this, $left, $top, $width, $height);
+ }
+ function autoCrop($margin = 0, $rgb_threshold = 0, $pixel_cutoff = 1, $base_color = NULL){
+ return $this->getOperation('AutoCrop')->execute($this, $margin, $rgb_threshold, $pixel_cutoff, $base_color);
+ }
+ function asNegative(){
+ return $this->getOperation('AsNegative')->execute($this);
+ }
+ function asGrayscale(){
+ return $this->getOperation('AsGrayscale')->execute($this);
+ }
+ function mirror(){
+ return $this->getOperation('Mirror')->execute($this);
+ }
+ function unsharp($amount, $radius, $threshold){
+ return $this->getOperation('Unsharp')->execute($this, $amount, $radius, $threshold);
+ }
+ function flip() {
+ return $this->getOperation('Flip')->execute($this);
+ }
+ function correctGamma($inputGamma, $outputGamma){
+ return $this->getOperation('CorrectGamma')->execute($this, $inputGamma, $outputGamma);
+ }
+ function addNoise($amount, $type){
+ return $this->getOperation('AddNoise')->execute($this, $amount, $type);
+ }
+ function __call($name, $args){
+ $op = $this->getOperation($name);
+ array_unshift($args, $this);
+ return call_user_func_array(array($op, 'execute'), $args);
+ }
+ function __toString(){
+ if ($this->isTransparent())
+ return $this->asString('gif');
+ else
+ return $this->asString('png');
+ }
+ function copy() {
+ $dest = $this->doCreate($this->getWidth(), $this->getHeight());
+ $dest->copyTransparencyFrom($this, true);
+ $this->copyTo($dest, 0, 0);
+ return $dest;
+ }
+ function copyTo($dest, $left = 0, $top = 0) {
+ if (!imagecopy($dest->getHandle(), $this->handle, $left, $top, 0, 0, $this->getWidth(), $this->getHeight()))
+ throw new WideImage_GDFunctionResultException("imagecopy() returned false");
+ }
+ function getCanvas(){
+ if ($this->canvas == NULL)
+ $this->canvas = new WideImage_Canvas($this);
+ return $this->canvas;
+ }
+ abstract function isTrueColor();
+ abstract function asTrueColor();
+ abstract function asPalette($nColors = 255, $dither = NULL, $matchPalette = true);
+ abstract function getChannels();
+ abstract function copyNoAlpha();
+ function __sleep() {
+ $this->sdata = $this->asString('png');
+ return array('sdata', 'handleReleased');
+ }
+ function __wakeup() {
+ $temp_image = WideImage::loadFromString($this->sdata);
+ $temp_image->releaseHandle();
+ $this->handle = $temp_image->handle;
+ $temp_image = NULL;
+ $this->sdata = NULL;
+ }
+ }
+?>
\ No newline at end of file
Property changes on: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Image.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/BMP.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/BMP.php (rev 0)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/xoops_lib/vendor/wideimage/Mapper/BMP.php 2014-06-16 05:06:36 UTC (rev 12606)
@@ -0,0 +1,27 @@
+<?php
+/*
+ WideImage_for_xoops
+ By CHG-WEB
+ 2012/04/08
+ Cédric MONTUY (montuy337513 / black_beard)
+ Original author : Gaspar Kozak
+*/
+if (!defined('XOOPS_ROOT_PATH')) {
+ die("XOOPS root path not defin...
[truncated message content] |