diff --git a/#kostenerstattung.html# b/#kostenerstattung.html# new file mode 100644 index 0000000..3edf99e --- /dev/null +++ b/#kostenerstattung.html# @@ -0,0 +1,497 @@ + + + + + + Kostenerstattungsantrag Wikimedia Deutschland e.V. + + + + + + + + + + +
+ logo +

Antrag auf Kostenerstattung

+

Reimbursement Claims

+

Bitte beachte beim Ausfüllen die Reisekostenordnung.

+
+
+
+
+
+ Bitte fülle die allgemeinen Daten für die Erstattung aus. + Please fill in the general data for reimbursement. +
+ Dein Projekt / Zweck der Reise + Your project / purpose of travel + +
+
+ Deine Ansprechperson bei Wikimedia + Your contact person at Wikimedia + +
+
+
+ Deine Kontaktdaten + Contact details + + + + + + + + + + +
+
+ Auszahlungsweg + Payout method + + + + + + + + + + + + + + + + + + +
+ + +
+
+ Bitte trage deine einzelnen Kostenpositionen ein. + Please enter your cost items. +

Bitte trage nur eine Ausgabe pro Zeile ein, lege den Originalbeleg dem Antrag bei und kennzeichne den Beleg mit der entsprechenden Zeilennummer. + Aus der Beschreibung soll zu ersehen sein, ob es sich um Transport, Dienstleistung, Materialien, Verpflegung oder ähnliches handelt. + +

Please enter only one expense per line, provide original receipt with your claim and tag the receipt with the appropriate line number. + The description of the expense should refer to the kind of expense, e.g. travel, service, materials, food or similar.

+ + + + + + + + + + + + + + + + + + + + + + + + +
Pos.BeschreibungDescriptionBelegdatumDateBetragSum + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
0
SummeTotal
+
+
+ Datum der Antragstellung + Date of claim + +
+
+ Pflichtangabe: Hiermit bestätige ich die Vollständig- und Richtigkeit meiner Angaben. + Mandatory declaration: Herewith I confirm the completeness and correctness of my data. + + +
+

Frequently asked questions (FAQ)

+ +
+
My claims are not in Euro. What now?
+
When claiming expenses please select in which currency you want your expense reimbursed. Use the + converter of the European Central Bank. + Convert per line (not the sum!) using the exchange rate valid at the date of expense. If you don't provide a + currency, we'll assume you want to get reimbursed using Euro.
+
+
+
Meine Ausgabe sind nicht in Euro. Was soll ich machen?
+
Wenn du Ausgaben erstattet haben willst, rechne die Ausgaben zeilenweise (nicht nur den Gesamtbetrag!) mit dem + Währungsumrechner der Europäischen Zentralbank + in die Währung um, in der du deine Kosten erstattet haben willst. Gibst du keine Währung an, nehmen wir an, dass + die Erstattung in Euro erfolgen soll.
+
+
+
+
+
+ + + + diff --git a/TCPDF/CHANGELOG.TXT b/TCPDF/CHANGELOG.TXT new file mode 100644 index 0000000..3bdae3e --- /dev/null +++ b/TCPDF/CHANGELOG.TXT @@ -0,0 +1,2961 @@ +6.2.25 + - Fix support for image URLs. + +6.2.24 + - Support remote urls when checking if file exists. + +6.2.23 + - Simplify file_exists function. + +6.2.22 + - Fix for security vulnerability: Using the phar:// wrapper it was possible to trigger the unserialization of user provided data. + +6.2.19 + - Merge various fixes for PHP 7.3 compatibility and security. + +6.2.13 (2016-06-10) + - IMPORTANT: A new version of this library is under development at https://github.com/tecnickcom/tc-lib-pdf and as a consequence this version will not receive any additional development or support. This version should be considered obsolete, new projects should use the new version as soon it will become stable. + +6.2.12 (2015-09-12) + - fix composer package name to tecnickcom/tcpdf + +6.2.11 (2015-08-02) + - Bug #1070 "PNG regression in 6.2.9 (they appear as their alpha channel)" was fixed. + - Bug #1069 "Encoded SRC URLs in tags don't work anymore" was fixed. + +6.2.10 (2015-07-28) + - Minor mod to PNG parsing. + - Make dependency on mcrypt optional. + +6.2.8 (2015-04-29) + - Removed unwanted file. + +6.2.7 (2015-04-28) + - Merged PR 17: Avoid warning when iterating a non-array variable. + - Merged PR 16: Improve MuliCell param definition. + - Improved column check (PR 15). + - Merged PR 11: Use stream_is_local instead of limit to file://. + - Merged PR 10: ImageMagick link on README.txt. + +6.2.6 (2015-01-28) + - Bug #1008 "UTC offset sing breaks PDF/A-1b compliance" was fixed. + +6.2.5 (2015-01-24) + - Bug #1019 "$this in static context" was fixed. + - Bug #1015 "Infinite loop in getIndirectObject method of parser" was fixed. + +6.2.4 (2015-01-08) + - fix warning related to empty K_PATH_URL. + - fix error when a $table_colwidths key is not set. + +6.2.3 (2014-12-18) + - New comment. + - Moved the K_PATH_IMAGES definition in tcpdf_autoconfig. + +6.2.2 (2014-12-18) + - Fixed mispelled words. + - Fixed version number. + +6.2.1 (2014-12-18) + - The constant K_TCPDF_THROW_EXCEPTION_ERROR is now set to false in the default configuration file. + - An issue with the _destroy() method was fixed. + +6.2.0 (2014-12-10) + - Bug #1005 "Security Report, LFI posting internal files externally abusing default parameter" was fixed. + - Static methods serializeTCPDFtagParameters() and unserializeTCPDFtagParameters() were moved as non static to the main TCPDF class (see changes in example n. 49). + - Deprecated methods were removed, please use the equivalents defined in other classes (i.e. TCPDF_STATIC and TCPDF_FONTS). + - The constant K_TCPDF_CALLS_IN_HTML is now set by default to FALSE. + - DLE, DLX and DLP page format was added. + - Page format are now defined as a public property in TCPDF_STATIC. + +6.1.1 (2014-12-09) + - Fixed bug with the register_shutdown_function(). + +6.1.0 (2014-12-07) + - The method TCPDF_STATIC::getRandomSeed() was improved. + - The disk caching feature was removed. + - Bug #1003 "Backslashes become duplicated in table, using WriteHTML" was fixed. + - Bug #1002 "SVG radialGradient within non-square Rect" was fixed. + +6.0.099 (2014-11-15) + - Added basic support for nested SVG images (adapted PR from SamMousa). + - A bug related to setGDImageTransparency() was fixed (thanks to Maarten Boerema). + +6.0.098 (2014-11-08) + - Bug item #996 "getCharBBox($char) returns incorrect results for TTF glyphs without outlines" was fixed. + - Bug item #991 "Text problem with SVG" was fixed (only the font style part). + +6.0.097 (2014-10-20) + - Bug item #988 "hyphenateText - charmin parameter not work" was fixed. + - New 1D barcode method to print pre-formatted IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200. + +6.0.096 (2014-10-06) + - Bug item #982 "Display style is not inherited in SVG" was fixed. + - Bug item #984 "Double quote url in CSS" was fixed. + +6.0.095 (2014-10-02) + - Bug item #979 "New Timezone option overwriting current timezone" was fixed. + +6.0.094 (2014-09-30) + - Bug item #978 "Variable Undefined: $cborder" was fixed. + +6.0.093 (2014-09-02) + - Security fix: some serialize/unserialize methods were replaced with json_encode/json_decode to avoid a potential object injection with user supplied content. Thanks to ownCloud Inc. for reporting this issue. + - K_TIMEZONE constant was added to the default configuration to suppress date-time warnings. + +6.0.092 (2014-09-01) + - Bug item #956 "Monospaced fonts are not alignd at the baseline" was fixed. + - Bug item #964 "Problem when changing font size" was fixed. + - Bug item #969 "ImageSVG with radialGradient problem" was fixed. + - sRGB.icc file was replaced with the one from the Debian package icc-profiles-free (2.0.1+dfsg-1) + +6.0.091 (2014-08-13) + - Issue #325"Division by zero when css fontsize equals 0" was fixed. + +6.0.090 (2014-08-08) + - Starting from this version TCPDF is also available in GitHub at https://github.com/tecnickcom/TCPDF + - Function getmypid() was removed for better compatibility with shared hosting environments. + - Support for pulling SVG stroke opacity value from RGBa color was mergeg [adf006]. + - Bug item #951 "HTML Table within TCPDF columns doesnt flow correctly on page break ..." was fixed. + +6.0.089 (2014-07-16) + - Bug item #948 "bottom line of rowspan cell not work correctly" was fixed. + +6.0.088 (2014-07-09) + - Bug item #946 "Case sensitive type check causes broken match for SVG" was fixed. + - Bug item #945 "Imagick load doesn't account for passed data string " was fixed. + +6.0.087 (2014-06-25) + - A bug affecting fitcell option in Multicell was fixed. + +6.0.086 (2014-06-20) + - Bug item #938 "Hyphenation-dash extends outside of cell" was fixed (collateral effect). + +6.0.085 (2014-06-19) + - Some example images were replaced. + - A race condition bug was fixed. + - Bug item #938 "Hyphenation-dash extends outside of cell" was fixed. + +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 and " 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
  • 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 function 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.: link to named destination). + +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 parameter 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 fixed. + +5.9.154 (2012-03-29) + - A debug echo was removed. + +5.9.153 (2012-03-28) + - A bug on font conversion was fixed. + - All fonts were updated. + - Method isCharDefined() was added to find if a character is defined on the selected font. + - Method replaceMissingChars() was added to automatically replace missing chars on selected font. + - SetFont() method was fixed. + +5.9.152 (2012-03-23) + - The following overprint methods were added: setOverprint(), getOverprint(). + - Signature of setAlpha() method was changed and method getAlpha() was added. + - stroke-opacity support was added on SVG. + - The following date methods were added: setDocCreationTimestamp(), setDocModificationTimestamp(), getDocCreationTimestamp(), getDocModificationTimestamp(), getFormattedDate(), getTimestamp(). + - Signature of _datestring() method was changed. + - Method getFontBBox() was added. + - Method setPageBoxTypes() was aded. + +5.9.151 (2012-03-22) + - Bug item #3509889 "Transform() distorts PDF" was fixed. + - Precision of real number were extended. + - ComboBox and ListBox methods were fixed. + - Bulgarian language file was added. + - addTOC() method was improved to include bookmark color and font style. + +5.9.150 (2012-03-16) + - A bug related to form fields in PDF/A mode was fixed. + +5.9.149 (2012-02-21) + - Bug item #3489933 "SVG Parser treats tspan like text" was fixed. + +5.9.148 (2012-02-17) + - Bug item #3488600 "Multiple radiobutton sets get first set value" was fixed. + +5.9.147 (2012-02-14) + - A problem with SVG gradients has been fixed. + +5.9.146 (2012-02-12) + - Bug item #3486880 "$filehash undefine error" was fixed. + - The default font is now the one specified at PDF_FONT_NAME_MAIN constant. + +5.9.145 (2012-01-28) + - Japanese language file was added. + - TCPDF license and README.TXT files were updated. + +5.9.144 (2012-01-12) + - HTML output on barcode classes was improved. + +5.9.143 (2012-01-08) + - Bug item #3471057 "setCreator() has no effect" was fixed. + +5.9.142 (2011-12-23) + - Source code documentation was updated. + +5.9.141 (2011-12-14) + - Some minor bugs were fixed. + +5.9.140 (2011-12-13) + - SVG now supports embedded images encoded as base64. + +5.9.139 (2011-12-11) + - Spot color methods were fixed. + +5.9.138 (2011-12-10) + - cropMark() method was improved (check source code documentation). + - Example n. 56 was updated. + - Bug item #3452390 "Check Box still not ticked when set to true" was fixed. + +5.9.137 (2011-12-01) + - Bug item #3447005 "Background color and border of Form Elements is printed" was fixed. + - Color support for Form elements was improved. + +5.9.136 (2011-11-27) + - Bug item #3443387 "SetMargins with keep option does not work for top margin" was fixed. + +5.9.135 (2011-11-04) + - Bug item #3433406 "Double keywords in description" was fixed. + +5.9.134 (2011-10-29) + - The default value for $defcol parameter on convertHTMLColorToDec() method was fixed. + - Deafult HTTP headers were changed to avoid browser caching. + - Some deprecated syntax were replaced. + +5.9.133 (2011-10-26) + - Bug item #3428446 "copyPage method not working when diskcache enabled" was fixed. + +5.9.132 (2011-10-20) + - Bug item #3426167 "bug in function convertHTMLColorToDec()" was fixed. + +5.9.131 (2011-10-13) + - An error message was added to ImagePngAlpha() method. + +5.9.130 (2011-10-12) + - Now you can set image data strings on HTML img tag by encoding the image binary data in this way: $imgsrc = '@'.base64_encode($imgdata); + +5.9.129 (2011-10-07) + - Core fonts metrics was fixed (replace all helvetica and times php files on fonts folder). + - Form fields support was improved and some problems were fixed (check the example n. 14). + - Bug item #3420249 "Issue with booklet and MultiCell" was fixed. + +5.9.128 (2011-10-06) + - Method addTTFfont() was improved (check the source code documentation). + - Method setExtraXMP() to set custom XMP data was added. + +5.9.127 (2011-10-04) + - Readonly mode option was activated for radiobuttons. + +5.9.126 (2011-10-03) + - Bug item #3417989 "Graphics State operator in form XObject fails to render" was fixed. + - Xobjects problems with transparency, gradients and spot colors were fixed. + +5.9.125 (2011-10-03) + - Support for 8-digit CMYK hexadecimal color representation was added (to be used with XHTML and SVG). + - Spot colors support was improved (check example n. 37). + - Color methods were improved. + +5.9.124 (2011-10-02) + - Core fonts were updated. + +5.9.123 (2011-10-02) + - The method addTTFfont() wad added to automatically convert TTF fonts (check the new fonts guide at http://www.tcpdf.org). + - Old font utils were removed. + - All fonts were updated and new arabic fonts were added (almohanad were removed and replaced by aefurat and aealarabiya). + - The file unicode_data.php was updated. + - The file encodings_maps.php was added. + - PDF/A files are now compressed to save space. + - XHTML input form fields now support text-alignment attribute. + +5.9.122 (2011-09-29) + - PDF/A-1b compliance was improved to pass some online testing. + +5.9.121 (2011-09-28) + - This version includes support for PDF/A-1b format (the class constructor signature was changed - see example n. 65). + - Method setSRGBmode() was added to force sRGB_IEC61966-2.1 black scaled ICC color profile for the whole document (file sRGB.icc was added). + - 14 new fonts were added to allow embedding core fonts (for PDF/A compliance). + - Font utils were fixed. + +5.9.120 (2011-09-22) + - This version includes a fix for _getTrueTypeFontSubset() method. + +5.9.119 (2011-09-19) + - This version includes a fix for extra page numbering on TOC. + +5.9.118 (2011-09-17) + - This version includes some changes that allows you to add a bookmark for a page that do not exist. + +5.9.117 (2011-09-15) + - TCPDFBarcode and TCPDF2DBarcode classes were extended to include a method for exporting barcodes as PNG images. + +5.9.116 (2011-09-14) + - Datamatrix class was improved and documentation was fixed. + +5.9.115 (2011-09-13) + - Datamatrix ECC200 barcode support was added (a new datamatrix.php file was added) - check example n. 50. + - getBarcodeHTML() method was added on TCPDFBarcode and TCPDF2DBarcode classes to return an HTML representation of the barcode. + - cURL options on Image() method were improved. + - A bug on write2DBarcode() was fixed. + +5.9.114 (2011-09-04) + - A bug related to column position was fixed. + +5.9.113 (2011-08-24) + - This release include two new experimental files for parsing an existing PDF document (the integration with TCPDF is under development). + +5.9.112 (2011-08-18) + - A newline character was added after the 'trailer' keyword for compatibility with some parsers. + - Support for layers was improved. + +5.9.111 (2011-08-17) + - Barcode CODE 39 default gap was restored at 1. + +5.9.110 (2011-08-17) + - Barcode CODE 39 was fixed. + +5.9.109 (2011-08-12) + - Method getNumLines() was fixed. + - A bug related to page break in multi-column mode was fixed. + +5.9.108 (2011-08-09) + - A bug on PHP4 version was fixed. + +5.9.107 (2011-08-08) + - This version includes a minor bugfix. + +5.9.106 (2011-08-04) + - This version includes transparency groups: check the new parameter on startTemplate() method and example 62. + +5.9.105 (2011-08-04) + - Bug item #3386153 "Check Box not ticked when set to true" was fixed. + +5.9.104 (2011-08-01) + - Bug item #3383698 "imagemagick, resize and dpi" was fixed. + +5.9.103 (2011-07-16) + - Alignment of XHTML lines was improved. + - Spell of the "length" word was fixed. + +5.9.102 (2011-07-13) + - Methods startLayer() and endLayer() were added to support arbitrary PDF layers. + - Some improvements/fixes for images were added (thanks to Brendan Abbott). + +5.9.101 (2011-07-07) + - Support for JPEG and PNG ICC Color Profiles was added. + - Method addEmptySignatureAppearance() was added to add empty signature fields (see example n. 52). + - Bug item #3354332 "Strange line spacing with reduced font-size in writeHTML" was fixed. + +5.9.100 (2011-06-29) + - An SVG bug has been fixed. + +5.9.099 (2011-06-27) + - Bug item #3335045 "Font freesans seems somehow corrupted in footer" was fixed. + +5.9.098 (2011-06-23) + - The Named Destination feature was fixed. + +5.9.097 (2011-06-23) + - The method setHtmlVSpace() now can be used also for tags: div, li, br, dt and dd. + - The Named Destination feature was added (check the example n. 15) - thanks to Christian Deligant. + +5.9.096 (2011-06-19) + - Bug item #3322234 "Surrogate pairs codes in arrUTF8ToUTF16BE" was fixed. + +5.9.095 (2011-06-18) + - Numbers alignment for Table-Of-Content methods was improved and fixed. + - Font subsetting was fixed to include all parts of composite fonts. + +5.9.094 (2011-06-17) + - Bug item #3317898 "Page Group numbering broken in 5.9.093" was fixed. + +5.9.093 (2011-06-16) + - Method setStartingPageNumber() was added to set starting page number (for automatic page numbering). + +5.9.092 (2011-06-15) + - Method _putpages() was improved. + - Bug item #3316678 "Memory overflow when use Rotate and SetAutoPageBreak" was fixed. + - Right alignment of page numbers was improved. + +5.9.090 (2011-06-14) + - Methods AliasNbPages() and AliasNumPage() were re-added as deprecated for backward compatibility. + +5.9.089 (2011-06-13) + - Example n. 8 was updated. + - Method sendOutputData() was changed to remove default compression (it was incompatible with some server settings). + - Bugs related to page group numbers were fixed. + - Method copyPage() was fixed. + - Method Image() was improved to include support for alternative and external images. + +5.9.088 (2011-06-01) + - Method getAutoPageBreak() was added (see example n. 51). + - Example n. 51 (full page background) was updated. + +5.9.087 (2011-06-01) + - Method sendOutputData() was improved to include deflate encoding. + - Barcode classes on PHP 4 version were fixed. + +5.9.086 (2011-05-31) + - Font files were updated (the ones on the previous release were broken). + - The script fonts/utils/makeallttffonts.php was updated and fixed. + - Output() method was improved to use compression when available. + +5.9.085 (2011-05-31) + - TCPDFBarcode class (barcodes.php) now includes getBarcodeSVG() and getBarcodeSVGcode() methods to get SVG image representation of the barcode. + - TCPDF2DBarcode class (2dbarcodes.php) now includes getBarcodeSVG() and getBarcodeSVGcode() methods to get SVG image representation of the barcode. + +5.9.084 (2011-05-29) + - Font files were updated. + - The file fonts/utils/makeallttffonts.php was updated. + - Bug item# 3308774 "Problems with font subsetting" was fixed. + +5.9.083 (2011-05-24) + - Bug item #3308387 "line height & SetCellHeightRatio" was fixed. + +5.9.082 (2011-05-22) + - Bug item #3305592 "Setting fill color <> text color breaks text clipping" was fixed. + +5.9.081 (2011-05-18) + - Method resetHeaderTemplate() was added to reset the xobject template used by Header() method. + - Method setHeaderTemplateAutoreset() was added to automatically reset the xobject template used by Header() method at each page. + +5.9.080 (2011-05-17) + - A problem related to file path calculation for images was fixed. + - A problem related to unsuppressed getimagesize() error was fixed. + +5.9.079 (2011-05-16) + - Footer() method was changed to use C128 barcode as default (instead of the previous C128B). + +5.9.078 (2011-05-12) + - Bug item #3300878 "wrong rendering for html bullet list in some case" was fixed. + - Bug item #3301017 "Emphasized vs. font-weight" was fixed. + - Barcode Code 128 was improved to include AUTO mode (automatically switch between A, B and C modes). + - Examples n. 27 and 49 were updated. + +5.9.077 (2011-05-07) + - Bug item #3298591 "error code93" was fixed. + - SetLineStyle() function was improved. + +5.9.076 (2011-05-06) + - Bug item #3298264 "codebar 93 error" was fixed. + +5.9.075 (2011-05-02) + - Table header alignment when using WriteHTMLCell() or MultiCell() was fixed. + +5.9.074 (2011-04-28) + - Bug item #3294306 "CSS classes not work in table section" was fixed. + +5.9.073 (2011-04-27) + - A bug related to character entities on HTML cells was fixed. + +5.9.072 (2011-04-26) + - Method resetColumns() was added to remove multiple columns and reset page margins (example n. 10 was updated). + +5.9.071 (2011-04-19) + - Bug #3288574 "
    trouble" was fixed. + +5.9.069 (2011-04-19) + - Bug #3288763 "HTML-Table: non-breaking table rows: Bug" was fixed. + +5.9.068 (2011-04-15) + - Bookmark, addTOC and addHTMLTOC methods were improved to include font style and color (Examples 15, 49 and 59 were updated). + - Default $_SERVER['DOCUMENT_ROOT'] value on tcpdf_config.php file was changed. + +5.9.067 (2011-04-10) + - Performances were drastically improved (PDF documents are now created more quickly). + +5.9.066 (2011-04-09) + - A bug related to digital signature + encryption was fixed. + - A bug related to encryption + xobject templates was fixed. + +5.9.065 (2011-04-08) + - Bug item #3280512 "Text encoding iso-8859-2 crashes" was fixed. + +5.9.064 (2011-04-05) + - A bug related to character entities on HTML cells was fixed. + +5.9.063 (2011-04-01) + - Bug item #3267235 "WriteHTML() and image that doesn't fit on the page" was fixed. + +5.9.062 (2011-03-23) + - Bug item #3232650 "Using Write if there are pageRegions active creates error" was fixed. + - Bug item #3221891 "text input borders" was fixed. + - Bug item #3228958 "Adobe Reader 9.4.2 crash" was fixed. + +5.9.061 (2011-03-15) + - Bug item #3213488 "wrong function call in function Write" was fixed. + - Bug item #3203007 "list element with black background" was fixed. + +5.9.060 (2011-03-08) + - addTOC() method was fixed for text alignment problems. + +5.9.059 (2011-02-27) + - Default Header() method was improved to reduce document size. + +5.9.058 (2011-02-25) + - Image() method was improved to cache images with transparency layers (thanks to Korneliusz Jarzębski for reporting this problem). + +5.9.057 (2011-02-24) + - A problem with image caching system was fixed (thanks to Korneliusz Jarzębski for reporting this problem). + +5.9.056 (2011-02-22) + - A bug on fixHTMLCode() method was fixed. + - Automatic line break for HTML was fixed. + +5.9.055 (2011-02-17) + - Another bug related to HTML table page break was fixed. + +5.9.054 (2011-02-16) + - A bug related to HTML table page break was fixed. + +5.9.053 (2011-02-16) + - Support for HTML attribute display="none" was added. + +5.9.052 (2011-02-15) + - A bug related to HTML automatic newlines was fixed. + +5.9.051 (2011-02-12) + - "Commas at beginning of new lines" problem was fixed. + +5.9.050 (2011-02-11) + - Bug #3177606 "SVG Bar chart error" was fixed. + +5.9.049 (2011-02-03) + - Bug #3170777 "TCPDF creates a new page after a single line in writeHTML" was fixed. + +5.9.048 (2011-02-02) + - No changes. Just released to override previous release that was not uploaded correctly. + +5.9.047 (2011-01-28) + - Bug #3167115 "PDF error in (example 48)" was fixed (was introduced in 5.8.046). + +5.9.046 (2011-01-18) + - PDF view/print layers are now automatically turned off if not used (see setVisibility() method). + +5.9.045 (2011-01-17) + - HTML list support were improved. + +5.9.044 (2011-01-15) + - Bug #3158422 "writeHTMLCell Loop" was fixed. + - Some HTML image alignment problems were fixed. + +5.9.043 (2011-01-14) + - Bug #3158178 "PHP Notice" was fixed. + - Bug #3158193 "Endless loop in writeHTML" was fixed. + - Bug #3157764 "SVG Pie chart incorrectly rendered2". + +5.9.042 (2011-01-14) + - Some problems of the PHP4 version were fixed. + +5.9.041 (2011-01-13) + - A problem with SVG elliptical arc path was fixed (ref. bug #3156574). + - A problem related to font weight on HTML table headers was fixed. + +5.9.040 (2011-01-12) + - A bug related to empty pages after table was fixed. + +5.9.039 (2011-01-12) + - Bug item #3155759 "openssl_random_pseudo_bytes() slow under Windows" was fixed. + +5.9.038 (2011-01-11) + - Minor bugs were fixed. + +5.9.037 (2011-01-09) + - An alignment problem for HTML texts was fixed. + +5.9.036 (2011-01-07) + - A bug related to HTML tables on header was fixed. + +5.9.035 (2011-01-03) + - A problem related to HTML table border alignment was fixed. + - Bug #2996366 "FastCGI and Header Problems" was fixed. + +5.9.034 (2010-12-19) + - DejaVu and GNU Free fonts were updated. + +5.9.033 (2010-12-18) + - Source code documetnation was improved. + +5.9.032 (2010-12-18) + - Default font stretching and spacing values are now inherited by HTML methods. + +5.9.031 (2010-12-16) + - Source code documentation errors were fixed. + +5.9.030 (2010-12-16) + - Several source code documentation errors were fixed. + - Source code style was changed for Doxygen. + - Source code documentation was moved online to http://www.tcpdf.org + +5.9.029 (2010-12-04) + - The $fitbox parameter on Image() method was extended to specify image alignment inside the box (check the example n. 9). + +5.9.028 (2010-12-03) + - Font utils makefont.php and makeallttffonts.php were updated. + +5.9.027 (2010-12-01) + - Spot Colors are now better integrated with HTML mode. + - Method SetDocInfoUnicode() was added to turn on/off Unicode mode for document information dictionary (meta tags) - check the example n. 19. + +5.9.026 (2010-12-01) + - A problem with mixed text directions on HTML was fixed. + +5.9.025 (2010-12-01) + - The AddSpotColor() now automatically fills the spotcolor array (defined on spotcolors.php file). + +5.9.024 (2010-11-30) + - Bug item #3123612 "SVG not use gradientTransform in percentage mode" was fixed. + +5.9.023 (2010-11-25) + - A potential bug on SVG transcoder was fixed. + +5.9.022 (2010-11-21) + - Method ImageEPS includes support for EPS/AI Spot colors. + - Method ImageEPS includes a new parameter $fixoutvals to remove values outside the bounding box. + +5.9.021 (2010-11-20) + - Support for custom bullet points images was added (check the example n.6) + - Examples n. 6 and 61 were update (check the comments inside). + +5.9.020 (2010-11-19) + - A problem related to additional page when using multicolumn mode was fixed. + +5.9.019 (2010-11-19) + - An SVG bug was fixed. + - ImageSVG() and ImageEPS() methods now accepts image data streams (put the string on the $file parameter preceded by '@' character). + - Option 'E' was added to the $dest parameter of Output() method to return the document as base64 mime multi-part email attachment (RFC 2045). + +5.9.018 (2010-11-19) + - An SVG bug was fixed. + +5.9.017 (2010-11-16) + - Tagline color was set to transparent. + - The method fixHTMLCode() was added to automatically clean up HTML code (requires HTML Tidy). + +5.9.016 (2010-11-16) + - Bug item #3109705 "list item page break hanging bullet" was fixed. + +5.9.015 (2010-11-16) + - Bug item affecting QRCode was fixed. + - Some bugs affecting HTML lists were fixed. + - ImageSVG() and fitBlock() methods were improved to handle some SVG problems. + - Some problems with PHP4 compatibility were fixed. + +5.9.014 (2010-11-15) + - Bug item #3109464 "QRCode error" was fixed. + +5.9.013 (2010-11-15) + - Bug item #3109257 "Problem with interlaced GIFs and PNGs" was fixed. + - Image function now accepts image data streams (check example n. 9). + +5.9.012 (2010-11-12) + - Method getTCPDFVersion() was added. + - PDF_PRODUCER constant was removed. + - Method convertHTMLColorToDec() was improved. + - HTML colors now support spot color names defined on the new spotcolors.php file. + - The default method Header() was improved to support SVG and EPS/AI images. + - A bug on SVG importer was fixed. + +5.9.011 (2010-11-02) + - Bug item #3101486 "Bug Fix for image loading" was fixed. + +5.9.010 (2010-10-27) + - Support for CSS properties 'border-spacing' and 'padding' for tables were added. + - Several language files were added. + +5.9.009 (2010-10-21) + - HTML text alignment was improved to include the case of RTL text on LTR direction and LTR text on RTL direction. + +5.9.008 (2010-10-21) + - Bug item #3091502 "Bookmark oddity" was fixed. + - HTML internal links now accepts page number and Y position. + - The method write1DBarcode() was improved to accept separate horizontal and vertical padding (see example n. 27). + +5.9.007 (2010-10-20) + - Method adjustCellPadding() was fixed to handle bad input. + +5.9.006 (2010-10-19) + - Support for AES 256 bit encryption was added (see example n. 16). + - Method getNumLines() was fixed for the empty string case. + +5.9.005 (2010-10-18) + - Method addPageRegion() was changed to accept regions starting exactly from the top of the page. + +5.9.004 (2010-10-18) + - A bug related to annotations was fixed. + - The file unicode_data.php was canged to encapsulate all data in a class. + - The file htmlcolors.php was changed to remove the global variable. + +5.9.003 (2010-10-15) + - Support for no-write page regions was added. Check the example n. 64 and new methods setPageRegions(), addPageRegion(), getPageRegions(), removePageRegion(). + - A bug on Right-To-Left alignment was fixed. + +5.9.002 (2010-10-08) + - Cell method was improved to preserve the font stretching and spacing values when using the $stretch parameter (see example n. 4). + +5.9.001 (2010-10-07) + - The problem of blank page for nobr table higher than a single page was fixed. + +5.9.000 (2010-10-06) + - Support for text stretching and spacing (tracking) was added, see example n. 63 and methods setFontStretching(), getFontStretching(), setFontSpacing(), getFontSpacing(). + - Support for CSS properties 'font-stretch' and 'letter-spacing' was added (see example n. 63). + - The cMargin state was replaced by cell_padding array that can be set/get using setCellPadding() and getCellPadding() methods. + - Methods getCellPaddings() and setCellPaddings() were added to fine tune cell paddings (see example n. 5). + - Methods getCellMargins() and setCellMargins() were added to fine tune cell margins (see example n. 5). + - Method write1DBarcode() was improved to permit custom labels (see example n. 27). + - Method ImagePngAlpha() now includes support for ImageMagick to improve performances. + - XObject Template support was extended to support Multicell(), writeHTML() and writeHTMLCell() methods. + - The signature of getNumLines() and getStringHeight() methods is changed. + - Example n. 57 was updated. + +// ------------------------------------------------------------------- + +5.8.034 (2010-09-27) + - A bug related to SetFont on XObject templates was fixed. + +5.8.033 (2010-09-25) + - A problem with Footer() and multiple columns was fixed. + +5.8.032 (2010-09-22) + - Bug #3073165 "Issues with changes to addHTMLVertSpace()" was fixed. + +5.8.031 (2010-09-20) + - Bug #3071961 "Spaces in HTML" was fixed. + +5.8.030 (2010-09-17) + - SVG support was improved and some bugs were fixed. + +5.8.029 (2010-09-16) + - A problem with HTML borders was fixed. + +5.8.028 (2010-09-13) + - Bug #3065224 "mcrypt_create_iv error on TCPDF 5.8.027 on PHP 5.3.2" was fixed. + +5.8.027 (2010-09-13) + - Bug #3065118 "mcrypt_decrypt error on TCPDF 5.8.026 on PHP 5.3.2" was fixed. + +5.8.026 (2010-09-13) + - A bug on addHTMLTOC() method was fixed. Note: be sure that the #TOC_PAGE_NUMBER# template has enough width to be printed correctly. + +5.8.025 (2010-09-09) + - Bug #3062692 "Textarea inside a table" was fixed. + +5.8.024 (2010-09-08) + - Bug #3062005 "Undefined variable: ann_obj_id" was fixed. + +5.8.023 (2010-08-31) + - Forms bug added on version 5.8.019 was fixed. + +5.8.022 (2010-08-31) + - Bug #3056632 "SVG rendered vertically flipped" was fixed. + +5.8.021 (2010-08-30) + - A new CID-0 'chinese' font was added for traditional Chinese. + - Bug #3054287 'Inner tags are ignored due to "align" attribute' was fixed. + +5.8.020 (2010-08-26) + - CSS "catch-all" class selector is now supported. + +5.8.019 (2010-08-26) + - XObject Templates now includes support for links and annotations. + - A problem related to link alignment on cell was fixed. + - A problem related to SVG styles was fixed. + +5.8.018 (2010-08-25) + - Method getNumberOfColumns() was added. + - A problem related to table header was fixed. + - Method getSVGTransformMatrix() was fixed to apply SVG transformations in the correct order. + - SVG support was improved and several bugs were fixed. + +5.8.017 (2010-08-25) + - This version includes support for XObject Templates (see the new example n. 62). + - Methods starttemplate(), endTemplate() and printTemplate() were added (see the new example n. 62). + +5.8.016 (2010-08-24) + - Alignment problem on write2DBarcode was fixed. + +5.8.015 (2010-08-24) + - A problem arose with the latest bugfix was fixed. + +5.8.014 (2010-08-23) + - Method _getxobjectdict() was added for better compatibility with external extensions. + - A bug related to radiobuttons was fixed. + - Bug #3051509 "new line after punctuation marks" was fixed (partially). + +5.8.013 (2010-08-23) + - SVG support for 'direction' property was added. + - A problem on default width calculation for linear barcodes was fixed. + - New option was added to write1DBarcode() method to improve alignments (see example n. 27). + - Bug #3050896 "Nested HTML tables: styles are not applied" was fixed. + - Method _putresourcedict() was improved to include external XObject templates. + +5.8.012 (2010-08-22) + - Support for SVG 'text-anchor' property was added. + +5.8.011 (2010-08-21) + - Method write1DBarcode() was improved to be backward compatible (check the new example n. 27). + - Support for CSS width and height properties on images were added. + +5.8.010 (2010-08-20) + - Documentation of unhtmlentities() was fixed. + - The 'fitwidth' option was added and border color problem was fixed on write1DBarcode() method (check the example n. 27). + +5.8.009 (2010-08-20) + - Internal object numbering was improved. + - Some errors in object encryption were fixed. + +5.8.008 (2010-08-19) + - Method write1DBarcode() was changed, check the example n. 27. + - Method Footer() was changed to account for barcode changes. + - Automatic calculation of K_PATH_URL constant was fixed on configuration file. + - Method setEqualColumns() was fixed for $width=0 case. + - Method AddTOC() was fixed for multipage and multicolumn modes. + - Better support for SVG "font-family" property. + - A problem on default Page Zoom mode was fixed. + - Several Annotation bugs were fixed. + +5.8.007 (2010-08-18) + - A bug affecting HTML tables was fixed. + - Bug #3047500 "SVG not rendering paths properly" was fixed. + +5.8.006 (2010-08-17) + - A bug affecting HTML table nesting was fixed. + +5.8.005 (2010-08-17) + - A bug affecting the HTML 'select' tag in certain conditions was fixed. + +5.8.004 (2010-08-17) + - Better support for HTML "font-family" property. + - A bug related to HTML multicolumn was fixed. + +5.8.003 (2010-08-16) + - Better support for HTML "font-family" property. + +5.8.002 (2010-08-14) + - HTML alignments were improved + - IMPORTANT: Default regular expression to find spaces has been changed to exclude the non-breaking-space (160 DEC- A0 HEX). If you are using setSpacesRE() method, please read the new documentation. + - Example n. 1 was updated. + +5.8.001 (2010-08-12) + - Bug #3043650 "subsetchars incorrectly cached" was fixed. + +5.8.000 (2010-08-11) + - A control to avoid bookmarking page 0 was added. + - addTOC() method now includes support for multicolumn mode. + - Support for tables in multicolumn mode was improved. + - Example n.10 was updated. + - All trimming functions were replaced with stringLeftTrim(), stringRightTrim() and stringTrim(). + - HTML alignments were improved. + +------------------------------------------------------------ + +5.7.003 (2010-08-08) + - Bug #3041263 "php source ending is bad" was fixed (all PHP files were updated, including fonts). + +5.7.002 (2010-08-06) + - Methods copyPage(), movePage() and deletePage() were changed to account for internal markings. + +5.7.001 (2010-08-05) + - Bug #3040105 "Broken PDF when using TOC (example 45)" was fixed. + +5.7.000 (2010-08-03) + - CSS borders are now supported for HTML tables and other block tags (see example n. 61); + - Cell borders were improved (see example n. 57); + - Minor bugs were fixed. + +------------------------------------------------------------ + +5.6.000 (2010-07-31) + - A bug with object IDs was fixes. + - Performances were improved. + +------------------------------------------------------------ + +5.5.015 (2010-07-29) + - Automatic fix for unclosed self-closing tag. + - Support for deprecated 's' and 'strike' tags was added. + - Empty list items problem was fixed. + +5.5.014 (2010-07-15) + - Support for external images was improved. + +5.5.013 (2010-07-14) + - Bug #3029338 "FI and FO output destination filename bug" was fixed (previous fix was wrong). + +5.5.012 (2010-07-14) + - Bug #3029310 "Font baseline inconsistencies with line-height and font-size" was fixed. + - Bug #3029338 "FI and FO output destination filename bug" was fixed. + +5.5.011 (2010-07-09) + - Support for multiple CSS classes was added. + - The method getColumn() was added to return the current column number. + - Some regular Expressions were fixed to be more compatible with UTF-8. + +5.5.010 (2010-07-06) + - Bug item #3025772 "Borders in all image functions are still flawed" was fixed. + +5.5.009 (2010-07-05) + - A problem related to last page footer was fixed. + - Image alignments and fit-on-page features were improved. + +5.5.008 (2010-07-02) + - A problem on table header alignment in booklet mode was fixed. + - Default graphic vars are now applied for setHeader(); + +5.5.007 (2010-07-02) + - Attribute "readonly" was added to input and textarea form fields. + - Vertical alignment feature was added on MultiCell() method only for simple text mode (see example n. 5). + - Text-Fit feature was added on MultiCell() method only for simple text mode (see example n. 5). + +5.5.006 (2010-06-29) + - getStringHeight() and getNumLines() methods were fixed. + +5.5.005 (2010-06-28) + - Bug #3022170 "getFontDescent() does not return correct descent value" was fixed. + - Some problems with multicolumn mode were fixed. + +5.5.004 (2010-06-27) + - Bug #3021803 "SVG Border" was fixed. + +5.5.003 (2010-06-26) + - On Write() method, blank lines at the beginning of a page or column are now automatically removed. + +5.5.002 (2010-06-24) + - ToUnicode Identity-H name was replaced with a full CMap (to avoid preflight syntax error). + - Bug #3020638 "str_split() not available in php4" was fixed. + - Bug #3020665 "file_get_contents() too many parameters for php4" was fixed. + +5.5.001 (2010-06-23) + - A problem on image streams was fixed. + +5.5.000 (2010-06-22) + - Several PDF syntax errors (and related bugs) were fixed. + - Bug #3019090 "/Length values are wrong if AES encryption is used" was fixed. + +------------------------------------------------------------ + +5.4.003 (2010-06-19) + - A problem related to page boxes was fixed. + - Bug #3016920 "Font subsetting issues when editing pdf" was partially fixed (Note that flattening transparency layers is currently incompatible with TrueTypeUnicode fonts). + +5.4.002 (2010-06-18) + - A problem related with setProtection() method was fixed. + +5.4.001 (2010-06-18) + - A problem related with setProtection() method was fixed. + +5.4.000 (2010-06-18) + - The method setSignatureAppearance() was added, check the example n. 52. + - Several problems related to font subsetting were fixed. + +------------------------------------------------------------ + +5.3.010 (2010-06-15) + - Previous release was corrupted. + +5.3.009 (2010-06-15) + - Bug #3015934 "Bullets don't display correctly" was fixed. + +5.3.008 (2010-06-13) + - This version fixes some problems of SVG rasterization. + +5.3.007 (2010-06-13) + - This version improves SVG support. + +5.3.006 (2010-06-10) + - This version includes a change in uniqid calls for backward compatibility with PHP4. + +5.3.005 (2010-06-09) + - The method getPageSizeFromFormat() was changed to include all standard page formats (includes 281 page formats + variation). + +5.3.004 (2010-06-08) + - Bug #3013291 "HTML table cell width" was fixed. + - Bug #3013294 "HTML table cell alignment" was fixed. + - The columns widths of HTML tables are now inherited from the first row. + +5.3.003 (2010-06-08) + - Bug #3013102 "HTML table header misaligned after page break" was fixed. + +5.3.002 (2010-06-07) + - The methods setFontSubsetting() and setFontSubsetting() were added to control the default font subsetting mode (see example n. 1). + - Bug #3012596 "Whitespace should not appeared after use Thai top characters" was fixed. + - Examples n. 1, 14, and 54 were updated. + +5.3.001 (2010-06-06) + - Barcode PDF417 was improved to support Macro Code Blocks (see example n. 50). + +5.3.000 (2010-06-05) + - License was changed to GNU-LGPLv3 (see the updated LICENSE.TXT file). + - PDF417 barcode support was added (check the example n. 50). + - The method write2DBarcode() was improved (some parameters were added and other changed - check example n. 50). + +------------------------------------------------------------ + +5.2.000 (2010-06-02) + - IMPORTANT: Support for font subsetting was added by default to reduce the size of documents using large unicode font files. + If you embed the whole font in the PDF, the person on the other end can make changes to it even if he didn't have your font. + If you subset the font, file size of the PDF will be smaller but the person who receives your PDF would need to have your same font in order to make changes to your PDF. + - The signature of the SetFont() and AddFont() methods were changed to include the font subsetting option (subsetting is applied by default). + - Examples 14 and 54 were updated. + +------------------------------------------------------------ + +5.1.002 (2010-05-27) + - Bug #3007818 "SetAutoPageBreak fails with MultiCell" was fixed. + - A bug related to MultiCell() minimun height was fixed. + +5.1.001 (2010-05-26) + - The problem of blank page after table was fixed. + +5.1.000 (2010-05-25) + - This version includes support for CSS (Cascading Style Sheets) (see example n. 61). + - The convertHTMLColorToDec() method was improved. + +------------------------------------------------------------ + +5.0.014 (2010-05-21) + - A problem on color and style of HTML links was fixed. + - A bug relative to gradients was fixed. + - The getStringHeight() method was added and getNumLines() method was improved. + - All examples were updated. + +5.0.013 (2010-05-19) + - A bug related to page-breaks and table cells was fixed. + +5.0.012 (2010-05-19) + - Page orientation bug was fixed. + - The access to method setPageFormat() was changed to 'protected' because it is not intended to be directly called. + +5.0.011 (2010-05-19) + - Page orientation bug was fixed. + - Bug #3003966 "Multiple columns and nested lists" was fixed. + +5.0.010 (2010-05-17) + - The methods setPageFormat(), setPageOrientation() and related methods were extended to include page boxes, page rotations and page transitions. + - The method setPageBoxes() was added to set page boundaries (MediaBox, CropBox, BleedBox, TrimBox, ArtBox); + - A bug relative to underline, overline and linethrough was fixed. + +5.0.009 (2010-05-16) + - Bug #3002381 "Multiple columns and nested lists" was fixed. + +5.0.008 (2010-05-15) + - Bug "Columns WriteHTML and Justification" was fixed. + +5.0.007 (2010-05-14) + - Bug #3001347 "Bug when using WriteHTML with setEqualColumns()" was fixed. + - Bug #3001505 "problem with sup and sub tags at the beginning of a line" was fixed. + +5.0.006 (2010-05-13) + - Length of hr tag was fixed. + - An error on 2d barcode method was fixed. + +5.0.005 (2010-05-12) + - WARNING: The logic of permissions on the SetProtection() method has been inverted and extended (see example 16). Now you have to specify the features you want to block. + - SetProtection() method was extended to support RSA and AES 128 encryption and public-keys (see example 16). + - Bug #2999489 "setEqualColumns() and TOC uses wrong columns" was fixed (see the example 10). + +5.0.004 (2010-05-10) + - HTML line alignment when using sub and sup tags was fixed. + +5.0.003 (2010-05-07) + - Horizontal alignment was fixed for images and barcodes. Now the X coordinate is always relative to the left margin. Use GetAbsX() instead of GetX() to get the X relative to left margin. + - Header() method was changed to account for new image alignment rules. + +5.0.002 (2010-05-06) + - Bookmark() and related methods were fixed to accept HTML code. + - A problem on HTML links was fixed. + +5.0.001 (2010-05-06) + - Protected method _putstream was re-added for backward compatibility. + - The following method were added to display HTML Table Of Content (see example n. 59): + addTOCPage(), endTOCPage(), addHTMLTOC(). + +5.0.000 (2010-05-05) + - Method ImageSVG() was added to embedd SVG images (see example n. 58). Note that not all SVG images are supported. + - Method setRasterizeVectorImages() was added to enable/disable rasterization for vector images via ImageMagick library. + - Method RoundedRectXY() was added. + - Method PieSectorXY() was added. + - Gradient() method is now public and support new features. + - Shading to transparency is now supported. + - Image alignments were fixed. + - Support for dynamic images were improved. + - PDF_IMAGE_SCALE_RATIO has been changed to 1.25 for better compatibility with SVG. + - RAW and RAW2 modes were added to 2D Barcodes (see example n. 50). + - Automatic padding feature was added on barcodes (see examples n. 27 and 50). + - Bug #2995003 "Reproduced thead bug" was fixed. + - The Output() method now accepts FI and FD destinations to save the document on server before sending it to the client. + - Ellipse() method was improved and fixed (see page 2 of example n. 12). + +------------------------------------------------------------ + +4.9.018 (2010-04-21) + - Bug item #2990356 "Current font size not respected with more than two HTML

    " was fixed. + +4.9.017 (2010-04-21) + - Bug item #2990224 "Different behaviour for equivalent HTML strings" was fixed. + - Bug item #2990314 "Dash is not appearing with SHY character" was fixed. + +4.9.016 (2010-04-20) + - An error on htmlcolors.php was fixed. + - getImageFileType() method was improved. + - GIF images with transparency are now better supported. + - Automatic page orientation was improved. + +4.9.015 (2010-04-20) + - A new method copyPage() was added to clone pages (see example n. 44). + - Support for text overline was added. + - Underline and linethrough methods were fixed. + - Bug #2989058 "SHY character causes unnecessary word-wrapping" was fixed. + +4.9.014 (2010-04-18) + - Bug item #2988845 was fixed. + +4.9.013 (2010-04-15) + - Image() and ImageEPS() methods were fixed and improved; $fitonpage parameter was added. + +4.9.012 (2010-04-12) + - The hyphenateText() method was added to automatically hyphenate text (see example n. 46). + +4.9.011 (2010-04-07) + - Vertical alignments for Cell() method were improved (see example n. 57). + +4.9.010 (2010-04-06) + - Signature of Cell() method now includes new parameters for vertical alignment (see example n. 57). + - Text() method was extended to include all Cell() parameters. + - HTML line alignment procedure was changed to fix some bugs. + +4.9.009 (2010-04-05) + - Text() method was fixed for backward compatibility. + +4.9.008 (2010-04-03) + - Additional line space after table header was removed. + - Support for HTML lists in multicolumn mode was added. + - The method setTextRenderingMode() was added to set text rendering modes (see the example n. 26). + - The following HTML attributes were added to set text rendering modes (see the example n. 26): stroke, strokecolor, fill. + +4.9.007 (2010-04-03) + - Font Descent computation was fixed (patch #2981441). + +4.9.006 (2010-04-02) + - The constant K_TCPDF_CALLS_IN_HTML was added on configuration file to enable/disable the ability to call TCPDF methods in HTML. + - The usage of tcpdf tag in HTML mode was changed to remove the possible security flaw offered by the eval() function (thanks to Matthias Hecker for spotting this security problem). See the new example n. 49 for further information. + +4.9.005 (2010-04-01) + - Bug# 2980354 "Wrong File attachment description with security" was fixed. + - Several problems with HTML line alignment were fixed. + - The constant K_THAI_TOPCHAR was added on configuration file to enable/disable the special procedure used to avoid the overlappind of symbols on Thai language. + - A problem with font name directory was fixed. + - A bug on _destroy() method was fixed. + +4.9.004 (2010-03-31) + - Patch #979681 "GetCharWidth - default character width" was applied (bugfix). + +4.9.003 (2010-03-30) + - Problem of first
    on multiple columns was fixed. + - HTML line alignment was fixed. + - A QR-code bug was fixed. + +4.9.002 (2010-03-29) + - Patch #2978349 "$ignore_min_height is ignored in function Cell()" was applied. + - Bug #2978607 "2D Barcodes are wrong" was fixed. + - A problem with HTML block tags was fixed. + - Artificial italic for CID-0 fonts was added. + - Several multicolumn bugs were fixed. + - Support for HTML tables on multicolumn was added. + +4.9.001 (2010-03-28) + - QR Code minor bug was fixed. + - Multicolumn mode was added (see the new example n. 10). + - The following methods were added: setEqualColumns(), setColumnsArray(), selectColumn(). + - Thai diacritics support were changed (note that this is incompatible with html justification). + +4.9.000 (2010-03-27) + - QR Code (2D barcode) support was added (see example n. 50). + - The following methods were added to print crop and registration marks (see example n. 56): colorRegistrationBar(), cropMark(), registrationMark(). + - Limited support for CSS line-height property was added. + - Gradient method now supports Gray, RGB and CMYK space color. + - Example n. 51 was updated. + - Vertical alignment of font inside cell was fixed. + - Support for multiple Thai diacritics was added. + - Bug item #2974929 "Duplicate case values" was fixed. + - Bug item #2976729 "File attachment not working with security" was fixed. + +------------------------------------------------------------ + +4.8.039 (2010-03-20) + - Problems related to custom locale settings were fixed. + - Problems related to HTML on Header and Footer were fixed. + +4.8.038 (2010-03-13) + - Various bugs related to page-break in HTML mode were fixed. + - Bug item #2968974 "Another

    pagebreak problem" was fixed. + - Bug item #2969276 "justification problem" was fixed. + - Bug item #2969289 "bug when using justified text and custom headers" was fixed. + - Images are now automatically resized to be contained on the page. + - Some HTML line alignments were fixed. + - Signature of AddPage() and SetMargins() methods were changed to include an option to set default page margins. + +4.8.037 (2010-03-03) + - Bug item #2962068 was fixed. + - Bug item #2967017 "Problems with and pagebreaks" was fixed. + - Bug item #2967023 "table header lost with pagebreak" was fixed. + - Bug item #2967032 "Header lost with nested tables" was fixed. + +4.8.036 (2010-02-24) + - Automatic page break for HTML images was improved. + - Example 10 was updated. + - Japanese was removed from example 8 because the freeserif font doesn't contain japanese (you can display it using arialunicid0 font). + +4.8.035 (2010-02-23) + - Automatic page break for HTML images was added. + - Support for multicolumn HTML was added (example 10 was updated). + +4.8.034 (2010-02-17) + - Language files were updated. + +4.8.033 (2010-02-12) + - A bug related to protection mode with links was fixed. + +4.8.032 (2010-02-04) + - A bug related to $maxh parameter on Write() and MultiCell() was fixed. + - Support for body tag was added. + +4.8.031 (2010-01-30) + - Bug item #2941589 "paragraph justify not working on some non-C locales" was fixed. + +4.8.030 (2010-01-27) + - Some text alignment cases were fixed. + +4.8.029 (2010-01-27) + - Bug item #2941057 "TOC Error in PDF File Output" was fixed. + - Some text alignment cases were fixed. + +4.8.028 (2010-01-26) + - Text alignment for RTL mode was fixed. + +4.8.027 (2010-01-25) + - Bug item #2938412 "Table related problems - thead, nobr, table width" was fixed. + +4.8.026 (2010-01-19) + - The misspelled word "length" was replaced with "length" in some variables and comments. + +4.8.025 (2010-01-18) + - addExtGState() method was improved to reuse existing ExtGState objects. + +4.8.024 (2010-01-15) + - Justification mode for HTML was fixed (Bug item #2932470). + +4.8.023 (2010-01-15) + - Bug item #2932470 "Some HTML entities breaks justification" was fixed. + +4.8.022 (2010-01-14) + - Source code documentation was fixed. + +4.8.021 (2010-01-03) + - A Bug relative to Table Of Content index was fixed. + +4.8.020 (2009-12-21) + - Bug item #2918545 "Display problem of the first row of a table with larger font" was fixed. + - A Bug relative to table rowspan mode was fixed. + +4.8.019 (2009-12-16) + - Bug item #2915684 "Image size" was fixed. + - Bug item #2914995 "Image jpeg quality" was fixed. + - The signature of the Image() method was changed (check the documentation for the $resize parameter). + +4.8.018 (2009-12-15) + - Bug item #2914352 "write error" was fixed. + +4.8.017 (2009-11-27) + - THEAD problem when table is used on header/footer was fixed. + - A first line alignment on HTML justification was fixed. + - Method getImageFileType() was added. + - Images with unknown extension and type are now supported via ImageMagick PHP extension. + +4.8.016 (2009-11-21) + - Document Information Dictionary was fixed. + - CSS attributes 'page-break-before', 'page-break-after' and 'page-break-inside' are now supported. + - Problem of unclosed last page was fixed. + - Problem of 'thead' unnecessarily repeated on the next page was fixed. + +4.8.015 (2009-11-20) + - A problem with some PNG transparency images was fixed. + - Bug #2900762 "Sort issues in Bookmarks" was fixed. + - Text justification was fixed for various modes: underline, strikeout and background. + +4.8.014 (2009-11-04) + - Bug item #2891316 "writeHTML, underlining replacing spaces" was fixed. + - The handling of temporary RTL text direction mode was fixed. + +4.8.013 (2009-10-26) + - Bug item #2884729 "Problem with word-wrap and hyphen" was fixed. + +4.8.012 (2009-10-23) + - Table cell alignments for RTL booklet mode were fixed. + - Images and barcode alignments for booklet mode were fixed. + +4.8.011 (2009-10-22) + - DejaVu fonts were updated to latest version. + +4.8.010 (2009-10-21) + - Bookmark for TOC page was added. + - Signature of addTOC() method is changed. + - Bookmarks are now automatically sorted by page and Y position. + - Example n. 45 was updated. + - Example n. 55 was added to display all charactes available on core fonts. + +4.8.009 (2009-09-30) + - Compatibility with PHP 5.3 was improved. + - All examples were updated. + - Index file for examples was added. + +4.8.008 (2009-09-29) + - Example 49 was updated. + - Underline and linethrough now works with cell stretching mode. + +4.8.007 (2009-09-23) + - Infinite loop problem caused by nobr attribute was fixed. + +4.8.006 (2009-09-23) + - Bug item #2864522 "No images if DOCUMENT_ROOT=='/'" was fixed. + - Support for text-indent CSS attribute was added. + - Method rollbackTransaction() was changed to support self-reassignment of previous object (check source code documentation). + - Support for the HTML "nobr" attribute was added to avoid splitting a table or a table row on two pages (i.e.: ...). + +4.8.005 (2009-09-17) + - A bug relative to multiple transformations and annotations was fixed. + +4.8.004 (2009-09-16) + - A bug on _putannotsrefs() method was fixed. + +4.8.003 (2009-09-15) + - Bug item #2858754 "Division by zero" was fixed. + - A bug relative to HTML list items was fixed. + - A bug relative to form fields on multiple pages was fixed. + - PolyLine() method was added (see example n. 12). + - Signature of Polygon() method was changed. + +4.8.002 (2009-09-12) + - A problem related to CID-0 fonts offset was fixed: if the $cw[1] entry on the CID-0 font file is not defined, then a CID keys offset is introduced. + +4.8.001 (2009-09-09) + - The appearance streams (AP) for anotations form fields was fixed (see examples n. 14 and 54). + - Radiobuttons were fixed. + +4.8.000 (2009-09-07) + - This version includes some support for Forms fields (see example n. 14) and XHTML forms (see example n. 54). + - The following methods were changed to work without JavaScript: TextField(), RadioButton(), ListBox(), ComboBox(), CheckBox(), Button(). + - Support for Widget annotations was improved. + - Alignment of annotation objects was fixed (examples 36 and 41 were updated). + - addJavascriptObject() method was added. + - Signature of Image() method was changed. + - htmlcolors.php file was updated. + +------------------------------------------------------------ + +4.7.003 (2009-09-03) + - Support for TCPDF methods on HTML was improved (see example n. 49). + +4.7.002 (2009-09-02) + - Bug item #2848892 "writeHTML + table: Gaps between rows" was fixed. + - JavaScript support was fixed (see example n. 53). + +4.7.001 (2009-08-30) + - The Polygon() and Arrow() methods were fixed and improved (see example n. 12). + +4.7.000 (2009-08-29) + - This is a major release. + - Some procedures were internally optimized. + - The problem of mixed signature and annotations was fixed (example n. 52). + +4.6.030 (2009-08-29) + - IMPORTANT: percentages on table cell widths are now relative to the full table width (as in standard HTML). + - Various minor bugs were fixed. + - Example n. 52 (digital signature) was updated. + +4.6.029 (2009-08-26) + - PHP4 version was fixed. + +4.6.028 (2009-08-25) + - Signature algorithm was finally fixed (see example n. 52). + +4.6.027 (2009-08-24) + - TCPDF now supports unembedded TrueTypeUnicode Fonts (just comment the $file entry on the fonts' php file. + +4.6.026 (2009-08-21) + - Bug #2841693 "Problem with MultiCell and ishtml and justification" was fixed. + - Signature functions were improved but not yet fixed (tcpdf.crt and example n. 52 were updated). + +4.6.025 (2009-08-17) + - Carriage returns (\r) were removed from source code. + - Problem related to set_magic_quotes_runtime() depracated was fixed. + +4.6.024 (2009-08-07) + - Bug item #2833556 "justification using other units than mm" was fixed. + - Documentation was fixed/updated. + +4.6.023 (2009-08-02) + - Bug item #2830537 "MirrorH can show mask for transparent PNGs" was fixed. + +4.6.022 (2009-07-24) + - A bug relative to single line printing when using WriteHTMLCell() was fixed. + - Signature support were improved but is still experimental. + - Fonts Free and Dejavu were updated to latest versions. + +4.6.021 (2009-07-20) + - Bug item #2824015 "XHTML Ampersand & in hyperlink bug" was fixed. + - Bug item #2824036 "Image as hyperlink in table, text displaced at page break" was fixed. + - Links alignment on justified text was fixed. + - Unicode "\u" modifier was added to re_spaces variable by default. + +4.6.020 (2009-07-16) + - Bug item #2821921 "issue in example 18" was fixed. + - Signature of SetRTL() method was changed. + +4.6.019 (2009-07-13) + - Bug item #2820703 "xref table broken" was fixed. + +4.6.018 (2009-07-10) + - Bug item #2819319 "Text over text" was fixed. + - Method Arrow() was added to print graphic arrows (example 12 was updated). + +4.6.017 (2009-07-05) + - Bug item #2816079 "Example 48 not working" was fixed. + - The signature of the checkPageBreak() was changed. The parameter $addpage was added to turn off the automatic page creation. + +4.6.016 (2009-06-16) + - Method setSpacesRE() was added to set the regular expression used for detecting withespaces or word separators. If you are using chinese, try: setSpacesRE('/[\s\p{Z}\p{Lo}]/');, otherwise you can use setSpacesRE('/[\s\p{Z}]/'); + - The method _putinfo() now automatically fills the metadata with '?' in case of empty string. + +4.6.015 (2009-06-11) + - Bug #2804667 "word wrap bug" was fixed. + +4.6.014 (2009-06-04) + - Bug #2800931 "Table thead tag bug" was fixed. + - A bug related to
     tag was fixed.
    +
    +4.6.013 (2009-05-28)
    +	- List bullets position was fixed for RTL languages.
    +
    +4.6.012 (2009-05-23)
    +	- setUserRights() method doesn't work anymore unless you call the setSignature() method with the Adobe private key!
    +
    +4.6.011 (2009-05-18)
    +	- Signature of the Image() method was changed to include the new $fitbox parameter (see source code documentation).
    +
    +4.6.010 (2009-05-17)
    +	- Image() method was improved: now is possible to specify the maximum dimensions for a constraint box defined by $w and $h parameters, and setting the $resize parameter to null.
    +	-  tag indent problem was fixed.
    +	- $y parameter was added to checkPageBreak() method.
    +	- Bug n. 2791773 "writeHTML" was fixed.
    +
    +4.6.009 (2009-05-13)
    +	- xref table for embedded files was fixed.
    +
    +4.6.008 (2009-05-07)
    +	- setSignature() method was improved (but is still experimental).
    +	- Example n. 52 was added.
    +
    +4.6.007 (2009-05-05)
    +	- Bug #2786685 "writeHtmlCell and 
    in custom footer" was fixed. + - Table header repeating bug was fixed. + - Some newlines and tabs are now automatically removed from HTML strings. + +4.6.006 (2009-04-28) + - Support for "..." was added. + - By default TCPDF requires PCRE Unicode support turned on but now works also without it (with limited ability to detect some Unicode blank spaces). + +4.6.005 (2009-04-25) + - Points (pt) conversion in getHTMLUnitToUnits() was fixed. + - Default tcpdf.pem certificate file was added. + - Experimental support for signing document was added but it is not yet completed (some help is needed - I think that the calculation of the ByteRange is OK and the problem is on the signature calculation). + +4.6.004 (2009-04-23) + - Method deletePage() was added to delete pages (see example n. 44). + +4.6.003 (2009-04-21) + - The caching mechanism of the UTF8StringToArray() method was fixed. + +4.6.002 (2009-04-20) + - Documentation of rollbackTransaction() method was fixed. + - The setImageScale() and getImageScale() methods now set and get the adjusting parameter used by pixelsToUnits() method. + - HTML images now support other units of measure than pixels (getHTMLUnitToUnits() is now used instead of pixelsToUnits()). + - WARNING: PDF_IMAGE_SCALE_RATIO has been changed by default to 1. + +4.6.001 (2009-04-17) + - Spaces between HTML block tags are now automatically removed. + - The bug related to cMargin changes between tables was fixed. + +4.6.000 (2009-04-16) + - WARNING: THIS VERSION CHANGES THE BEHAVIOUR OF $x and $y parameters for several TCPDF methods: + zero coordinates for $x and $y are now valid coordinates; + set $x and $y as empty strings to get the current value. + - Some error caused by 'empty' function were fixed. + - Default color for convertHTMLColorToDec() method was changed to white and the return value for invalid color is false. + - HTML on footer bug was fixed. + - The following examples were fixed: 5,7,10,17,19,20,21,33,42,43. + +4.5.043 (2009-04-15) + - Barcode class (barcode.php) was extended to include new linear barcode types (see example n. 27): + C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9 + C39+ : CODE 39 with checksum + C39E : CODE 39 EXTENDED + C39E+ : CODE 39 EXTENDED + CHECKSUM + C93 : CODE 93 - USS-93 + S25 : Standard 2 of 5 + S25+ : Standard 2 of 5 + CHECKSUM + I25 : Interleaved 2 of 5 + I25+ : Interleaved 2 of 5 + CHECKSUM + C128A : CODE 128 A + C128B : CODE 128 B + C128C : CODE 128 C + EAN2 : 2-Digits UPC-Based Extension + EAN5 : 5-Digits UPC-Based Extension + EAN8 : EAN 8 + EAN13 : EAN 13 + UPCA : UPC-A + UPCE : UPC-E + MSI : MSI (Variation of Plessey code) + MSI+ : MSI + CHECKSUM (modulo 11) + POSTNET : POSTNET + PLANET : PLANET + RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) + KIX : KIX (Klant index - Customer index) + IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200 (NOTE: requires BCMath PHP extension) + CODABAR : CODABAR + CODE11 : CODE 11 + PHARMA : PHARMACODE + PHARMA2T : PHARMACODE TWO-TRACKS + +4.5.042 (2009-04-15) + - Method Write() was fixed for the strings containing only zero value. + +4.5.041 (2009-04-14) + - Barcode methods were fixed. + +4.5.040 (2009-04-14) + - Method Write() was fixed to handle empty strings. + +4.5.039 (2009-04-11) + - Support for linear barcodes was extended (see example n. 27 and barcodes.php documentation). + +4.5.038 (2009-04-10) + - Write() method was improved to support separators for Japanese, Korean, Chinese Traditional and Chinese Simplified. + +4.5.037 (2009-04-09) + - General performances were improved. + - The signature of the method utf8Bidi() was changed. + - The method UniArrSubString() was added. + - Experimental support for 2D barcodes were added (see example n. 50 and 2dbarcodes.php class). + +4.5.036 (2009-04-03) + - TCPDF methods can be called inside the HTML code (see example n. 49). + - All tag attributes, such as

    must be enclosed within double quotes. + +4.5.035 (2009-03-28) + - Bug #2717436 "writeHTML rowspan problem (continued)" was fixed. + - Bug #2719090 "writeHTML fix follow up" was fixed. + - The method _putuserrights() was changed to avoid Adobe Reader 9.1 crash. This broken the 'trick' that was used to display forms in Acrobat Reader. + +4.5.034 (2009-03-27) + - Bug #2716914 "Bug writeHTML of a table in body and footer related with pb" was fixed. + - Bug #2717056 ] "writeHTML problem when setting tr style" was fixed. + - The signature of the Cell() method was changed. + +4.5.033 (2009-03-27) + - The support for rowspan/colspan on HTML tables was improved (see example n. 48). + +4.5.032 (2009-03-23) + - setPrintFooter(false) bug was fixed. + +4.5.031 (2009-03-20) + - Table header support was extended to multiple pages. + +4.5.030 (2009-03-20) + - thead tag is now supported on HTML tables (header rows are repeated after page breaks). + - The startTransaction() was improved to autocommit. + - List bullets now uses the foreground color (putHtmlListBullet()). + +4.5.029 (2009-03-19) + - The following methods were added to UNDO commands (see example 47): startTransaction(), commitTransaction(), rollbackTransaction(). + - All examples were updated. + +4.5.028 (2009-03-18) + - Bug #2690945 "List Bugs" was fixed. + - HTML text alignment on lists was fixed. + - The constant PDF_FONT_MONOSPACED was added to the configuration file to define the default monospaced font. + - The following methods were fixed: getPageWidth(), getPageHeight(), getBreakMargin(). + - All examples were updated. + +4.5.027 (2009-03-16) + - Method getPageDimensions() was added to get page dimensions. + - The signature of the following methos were changed: getPageWidth(), getPageHeight(), getBreakMargin(). + - _parsepng() method was fixed for PNG URL images (fread bug). + +4.5.026 (2009-03-11) + - Bug #2681793 affecting URL images with spaces was fixed. + +4.5.025 (2009-03-10) + - A small bug affecting hyphenation support was fixed. + - The method SetDefaultMonospacedFont() was added to define the default monospaced font. + +4.5.024 (2009-03-07) + - The bug #2666493 was fixed "Footer corrupts document". + +4.5.023 (2009-03-06) + - The bug #2666688 was fixed "Rowspan in tables". + +4.5.022 (2009-03-05) + - The bug #2659676 was fixed "refer to #2157099 test 4 < BR > problem still not fixed". + - addTOC() function bug was fixed. + +4.5.020 (2009-03-03) + - The following bug was fixed: "function removeSHY corrupts unicode". + +4.5.019 (2009-02-28) + - The problem of decimal separator using different locale was fixed. + - The text hyphenation is now supported (see example n. 46). + +4.5.018 (2009-02-26) + - The _destroy() method was added to unset all class variables and frees memory. + - Now it's possible to call Output() method multiple times. + +4.5.017 (2009-02-24) + - A minor bug that raises a PHP warning was fixed. + +4.5.016 (2009-02-24) + - Bug item #2631200 "getNumLines() counts wrong" was fixed. + - Multiple attachments bug was fixed. + - All class variables are now cleared on Output() for memory otpimization. + +4.5.015 (2009-02-18) + - Bug item #2612553 "function Write() must not break a line on   character" was fixed. + +4.5.014 (2009-02-13) + - Bug item #2595015 "POSTNET Barcode Checksum Error" was fixed (on barcode.php). + - Pagebreak bug for barcode was fixed. + +4.5.013 (2009-02-12) + - border attribute is now supported on HTML images (only accepts the same values accepted by Cell()). + +4.5.012 (2009-02-12) + - An error on image border feature was fixed. + +4.5.011 (2009-02-12) + - HTML links for images are now supported. + - height attribute is now supported on HTML cells. + - $border parameter was added to Image() and ImageEps() methods. + - The method getNumLines() was added to estimate the number of lines required for the specified text. + +4.5.010 (2009-01-29) + - Bug n. 2546108 "BarCode Y position" was fixed. + +4.5.009 (2009-01-26) + - Bug n. 2538094 "Empty pdf file created" was fixed. + +4.5.008 (2009-01-26) + - setPage() method was fixed to correctly restore graphic states. + - Source code was cleaned up for performances. + +4.5.007 (2009-01-24) + - checkPageBreak() and write1DBarcode() methods were fixed. + - Source code was cleaned up for performances. + - barcodes.php was updated. + +4.5.006 (2009-01-23) + - getHTMLUnitToPoints() method was replaced by getHTMLUnitToUnits() to fix HTML units bugs. + +4.5.005 (2009-01-23) + - Page closing bug was fixed. + +4.5.004 (2009-01-21) + - The access of convertHTMLColorToDec() method was changed to public + - Fixed bug on UL tag. + +4.5.003 (2009-01-19) + - Fonts on different folders are now supported. + +4.5.002 (2009-01-07) + - addTOC() function was improved (see example n. 45). + +4.5.001 (2009-01-04) + - The signature of startPageGroup() function was changed. + - Method Footer() was improved to automatically print page or page-group number (see example n. 23). + - Protected method formatTOCPageNumber() was added to customize the format of page numbers on the Table Of Content. + - The signature of addTOC() was changed to include the font used for page numbers. + +4.5.000 (2009-01-03) + - A new $diskcache parameter was added to class constructor to enable disk caching and reduce RAM memory usage (see example n. 43). + - The method movePageTo() was added to move pages to previous positions (see example n. 44). + - The methods getAliasNumPage() and getPageNumGroupAlias() were added to get the alias for page number (needed when using movepageTo()). + - The methods addTOC() was added to print a Table Of Content (see example n. 45). + - Imagick class constant was removed for better compatibility with PHP4. + - All existing examples were updated and new examples were added. + +4.4.009 (2008-12-29) + - Examples 1 and 35 were fixed. + +4.4.008 (2008-12-28) + - Bug #2472169 "Unordered bullet size not adjusted for unit type" was fixed. + +4.4.007 (2008-12-23) + - Bug #2459935 "no unit conversion for header line" was fixed. + - Example n. 42 for image alpha channel was added. + - All examples were updated. + +4.4.006 (2008-12-11) + - Method setLIsymbol() was changed to reflect latest changes in HTML list handling. + +4.4.005 (2008-12-10) + - Bug item #2413870 "ordered list override value" was fixed. + +4.4.004 (2008-12-10) + - The protected method getHTMLUnitToPoints() was added to accept various HTML units of measure (em, ex, px, in, cm, mm, pt, pc, %). + - The method intToRoman() was added to convert integer number to Roman representation. + - Support fot HTML lists was improved: the CSS property list-style-type is now supported. + +4.4.003 (2008-12-09) + - Bug item #2412147 "Warning on line 3367" was fixed. + - Method setHtmlLinksStyle() was added to set default HTML link colors and font style. + - Method addHtmlLink() was changed to use color and style defined on the inline CSS. + +4.4.002 (2008-12-09) + - Borders on Multicell() were fixed. + - Problem of Multicell() on Header function (Bug item #2407579) was fixed. + - Problem on graphics tranformations applied to Multicell() was fixed. + - Support for ImageMagick was added. + - Width calculation for nested tables was fixed. + +4.4.001 (2008-12-08) + - Some missing core fonts were added on fonts directory. + - CID0 fonts rendering was fixed. + - HTML support was improved (

     and  tags are now supported).
    +	- Bug item #2406022 "Left padding bug in MultiCell with maxh" was fixed.
    +
    +4.4.000 (2008-12-07)
    +	- File attachments are now supported (see example n. 41).
    +	- Font functions were optimized to reduce document size.
    +	- makefont.php was updated.
    +	- Linux binaries were added on /fonts/utils
    +	- All fonts were updated.
    +	- $autopadding parameter was added to Multicell() to disable automatic padding features.
    +	- $maxh parameter was added to Multicell() and Write() to set a maximum height.
    +
    +4.3.009 (2008-12-05)
    +	- Bug item #2392989 (Custom header + setlinewidth + cell border bug) was fixed.
    +
    +4.3.008 (2008-12-05)
    +	- Bug item #2390566 "rect bug" was fixed.
    +	- File path was fixed for font embedded files.
    +	- SetFont() method signature was changed to include the font filename.
    +	- Some font-related methods were improved.
    +	- Methods getFontFamily() and getFontStyle() were added.
    +
    +4.3.007 (2008-12-03)
    +	- PNG alpha channel is now supported (GD library is required).
    +	- AddFont() function now support custom font file path on $file parameter.
    +	- The default width variable ($dw) is now always defined for any font.
    +	- The 'Style' attribute on CID-0 fonts was removed because of protection bug.
    +
    +4.3.006 (2008-12-01)
    +	- A regular expression on getHtmlDomArray() to find HTML tags was fixed.
    +
    +4.3.005 (2008-11-25)
    +	- makefont.php was fixed.
    +	- Bug item #2339877 was fixed (false loop condition detected on WriteHTML()).
    +	- Bug item #2336733 was fixed (lasth value update on Multicell() when border and fill are disabled).
    +	- Bug item #2342303 was fixed (automatic page-break on Image() and ImageEPS()).
    +
    +4.3.004 (2008-11-19)
    +	- Function _textstring() was fixed (bug 2309051).
    +	- All examples were updated.
    +
    +4.3.003 (2008-11-18)
    +	- CID-0 font bug was fixed.
    +	- Some functions were optimized.
    +	- Function getGroupPageNoFormatted() was added.
    +	- Example n. 23 was updated.
    +
    +4.3.002 (2008-11-17)
    +	- Bug item #2305518 "CID-0 font don't work with encryption" was fixed.
    +
    +4.3.001 (2008-11-17)
    +	- Bug item #2300007 "download mimetype pdf" was fixed.
    +	- Double quotes were replaced by single quotes to improve PHP performances.
    +	- A bug relative to HTML cell borders was fixed.
    +
    +4.3.000 (2008-11-14)
    +	- The function setOpenCell() was added to set the top/bottom cell sides to be open or closed when the cell cross the page.
    +	- A bug relative to list items indentation was fixed.
    +	- A bug relative to borders on HTML tables and Multicell was fixed.
    +	- A bug relative to rowspanned cells was fixed.
    +	- A bug relative to html images across pages was fixed.
    +
    +4.2.009 (2008-11-13)
    +	- Spaces between li tags are now automatically removed.
    +
    +4.2.008 (2008-11-12)
    +	- A bug relative to fill color on next page was fixed.
    +
    +4.2.007 (2008-11-12)
    +	- The function setListIndentWidth() was added to set custom indentation widht for HTML lists.
    +
    +4.2.006 (2008-11-06)
    +	- A bug relative to HTML justification was fixed.
    +
    +4.2.005 (2008-11-06)
    +	- A bug relative to HTML justification was fixed.
    +	- The methods formatPageNumber() and PageNoFormatted() were added to format page numbers.
    +	- Default Footer() method was changed to use PageNoFormatted() instead of PageNo().
    +	- Example 6 was updated.
    +
    +4.2.004 (2008-11-04)
    +	- Bug item n. 2217039 "filename handling improvement" was fixed.
    +
    +4.2.003 (2008-10-31)
    +	- Font style bug was fixed.
    +
    +4.2.002 (2008-10-31)
    +	- Bug item #2210922 (htm element br not work) was fixed.
    +	- Write() function was improved to support margin changes.
    +
    +4.2.001 (2008-10-30)
    +	- setHtmlVSpace($tagvs) function was added to set custom vertical spaces for HTML tags.
    +	- writeHTML() function now support margin changes during execution.
    +	- Signature of addHTMLVertSpace() function is changed.
    +
    +4.2.000 (2008-10-29)
    +	- htmlcolors.php was changed to support class-loaders.
    +	- ImageEps() function was improved in performances.
    +	- Signature of Link() And Annotation() functions were changed.
    +	- (Bug item #2198926) Links and Annotations alignment were fixed (support for geometric tranformations was added).
    +	- rowspan mode for HTML table cells was improved and fixed.
    +	- Booklet mode for double-sided pages was added; see SetBooklet() function and example n. 40.
    +	- lastPage() signature is changed.
    +	- Signature of Write() function is changed.
    +	- Some HTML justification problems were fixed.
    +	- Some functions were fixed to better support RTL mode.
    +	- Example n. 10 was changed to support RTL mode.
    +	- All examples were updated.
    +
    +4.1.004 (2008-10-23)
    +	- unicode_data.php was changed to support class-loaders.
    +	- Bug item #2186040/2 (writeHTML margin problem) was fixed.
    +
    +4.1.003 (2008-10-22)
    +	- Bug item #2185399 was fixed (rowspan and page break).
    +	- Bugs item #2186040 was fixed (writeHTML margin problem).
    +	- Newline after table was removed.
    +
    +4.1.002 (2008-10-21)
    +	- Bug item #2184525 was fixed (rowspan on HTML cell).
    +
    +4.1.001 (2008-10-21)
    +	- Support for "start" attribute was added to HTML ordered list.
    +	- unicode_data.php file was changed to include UTF-8 to ASCII table.
    +	- Some functions were modified to better support UTF-8 extensions to core fonts.
    +	- Support for images on HTML lists was improved.
    +	- Examples n. 1 and 6 were updated.
    +
    +4.1.000 (2008-10-18)
    +	- Page-break bug using HTML content was fixed.
    +	- The "false" parameter was reintroduced to class_exists function on PHP5 version to avoid autoload.
    +	- addHtmlLink() function was improved to support internal links (i.e.: link to page 23).
    +	- Justification alignment is now supported on HTML (see example n. 39).
    +	- example_006.php was updated.
    +
    +4.0.033 (2008-10-13)
    +	- Bug n. 2157099 was fixed.
    +	- SetX() and SetY() functions were improved.
    +	- SetY() includes a new parameter to avoid the X reset.
    +
    +4.0.032 (2008-10-10)
    +	- Bug n. 2156926 was fixed (bold, italic, underlined, linethrough).
    +	- setStyle() method was removed.
    +	- Configuration file was changed to use helvetica (non-unicode) font by default.
    +	- The use of mixed font types was improved.
    +	- All examples were updated.
    +
    +4.0.031 (2008-10-09)
    +	- _putannots() and _putbookmarks() links alignments were fixed.
    +
    +4.0.030 (2008-10-07)
    +	- _putbookmarks() function was fixed.
    +	- _putannots() was fixed to include internal links.
    +
    +4.0.029 (2008-09-27)
    +	- Infinite loop bug was fixed [Bug item #130309].
    +	- Multicell() problem on Header() was fixed.
    +
    +4.0.028 (2008-09-26)
    +	- setLIsymbol() was added to set the LI symbol used on UL lists.
    +	- Missing $padding and $encryption_key variables declarations were added [Bug item #2129058].
    +
    +4.0.027 (2008-09-19)
    +	- Bug #2118588 "Undefined offset in tcpdf.php on line 9581" was fixed.
    +	- arailunicid0.php font was updated.
    +	- The problem of javascript form fields duplication after saving was fixed.
    +
    +4.0.026 (2008-09-17)
    +	- convertHTMLColorToDec() function was improved to support rgb(RR,GG,BB) notation.
    +	- The following inline CSS attributes are now supported: text-decoration, color, background-color and font-size names: xx-small, x-small, small, medium, large, x-large, xx-large
    +	- Example n. 6 was updated.
    +
    +4.0.025 (2008-09-15)
    +	- _putcidfont0 function was improved to include CJK fonts (Chinese, Japanese, Korean, CJK, Asian fonts) without embedding.
    +	- arialunicid0 font was added (see the new example n. 38).
    +	- The following Unicode to CID-0 tables were added on fonts folder: uni2cid_ak12.php, uni2cid_aj16.php, uni2cid_ag15.php, uni2cid_ac15.php.
    +
    +4.0.024 (2008-09-12)
    +	- "stripos" function was replaced with "strpos + strtolower" for backward compatibility with PHP4.
    +	- support for Spot Colors were added. Check the new example n. 37 and the following new functions:
    +		AddSpotColor()
    +		SetDrawSpotColor()
    +		SetFillSpotColor()
    +		SetTextSpotColor()
    +		_putspotcolors()
    +	- Bookmark() function was improved to fix wrong levels.
    +	- $lasth changes after header/footer calls were fixed.
    +
    +4.0.023 (2008-09-05)
    +	- Some HTML related problems were fixed.
    +	- Image alignment on HTML was changed, now it always defaults to the normal mode (see example_006.php).
    +
    +4.0.022 (2008-08-28)
    +	- Line height on HTML was fixed.
    +	- Image inside an HTML cell problem was fixed.
    +	- A new "zarbold" persian font was added.
    +
    +4.0.021 (2008-08-24)
    +	- HTTP headers were fixed on Output function().
    +	- getAliasNbPages() and getPageGroupAlias() functions were changed to support non-unicode fonts on unicode documents.
    +	- Function Write() was fixed.
    +	- The problem of additional vertical spaces on HTML was fixed.
    +	- The problem of frame around HTML links was fixed.
    +
    +4.0.020 (2008-08-15)
    +	- "[2052259] WriteHTML  & " bug was fixed.
    +
    +4.0.019 (2008-08-13)
    +	- "Rowspan on first cell" bug was fixed.
    +
    +4.0.018 (2008-08-08)
    +	- Default cellpadding for HTML tables was fixed.
    +	- Annotation() function was added to support some PDF annotations (see example_036.php and section 8.4 of PDF reference 1.7).
    +	- HTML links are now correclty shifted during line alignments.
    +	- function getAliasNbPages() was added and Footer() was updated.
    +	- RowSpan mode for HTML tables was fixed.
    +	- Bugs item #2043610 "Multiple sizes vertical align wrong" was fixed.
    +	- ImageEPS() function was improved and RTL alignment was fixed (see example_032.php).
    +
    +4.0.017 (2008-08-05)
    +	- Missing CNZ and CEO style modes were added to Rect() function.
    +	- Fonts utils were updated to include support for OpenType fonts.
    +	- getLastH() function was added.
    +
    +4.0.016 (2008-07-30)
    +	- setPageMark() function was added. This function must be called after calling Image() function for a background image.
    +
    +4.0.015 (2008-07-29)
    +	- Some functions were changed to support different page formats (see example_028.php).
    +	- The signature of setPage() function is changed.
    +
    +4.0.014 (2008-07-29)
    +	- K_PATH_MAIN calculation on tcpdf_config.php was fixed.
    +	- HTML support for EPS/AI images was added (see example_006.php).
    +	- Bugs item #2030807 "Truncated text on multipage html fields" was fixed.
    +	- PDF header bug was fixed.
    +	- helvetica was added as default font family.
    +	- Stroke mode was fixed on Text function.
    +	- several minor bugs were fixed.
    +
    +4.0.013 (2008-07-27)
    +	- Bugs item #2027799 " Big spaces between lines after page break" was fixed.
    +	- K_PATH_MAIN calculation on tcpdf_config.php was changed.
    +	- Function setVisibility() was fixed to avoid the "Incorrect PDEObject type" error message.
    +
    +4.0.012 (2008-07-24)
    +	- Addpage(), Header() and Footer() functions were changed to simplify the implementation of external header/footer functions.
    +	- The following functions were added:
    +			setHeader()
    +			setFooter()
    +			getImageRBX()
    +			getImageRBY()
    +			getCellHeightRatio()
    +			getHeaderFont()
    +			getFooterFont()
    +			getRTL()
    +			getBarcode()
    +			getHeaderData()
    +			getHeaderMargin()
    +			getFooterMargin()
    +
    +4.0.011 (2008-07-23)
    +	- Font support was improved.
    +	- The folder /fonts/utils contains new utilities and instructions for embedd font files.
    +	- Documentation was updated.
    +
    +4.0.010 (2008-07-22)
    +	- HTML tables were fixed to work across pages.
    +	- Header() and Footer() functions were updated to preserve previous settings.
    +	- example_035.php was added.
    +
    +4.0.009 (2008-07-21)
    +	- UTF8StringToArray() function was fixed for non-unicode mode.
    +
    +4.0.008 (2008-07-21)
    +	- Barcodes alignment was fixed (see example_027.php).
    +	- unicode_data.php was updated.
    +	- Arabic shaping for "Zero-Width Non-Joiner" character (U+200C) was fixed.
    +
    +4.0.007 (2008-07-18)
    +	- str_split was replaced by preg_split for compatibility with PHP4 version.
    +	- Clipping mode was added to all graphic functions by using parameter $style = "CNZ" or "CEO" (see example_034.php).
    +
    +4.0.006 (2008-07-16)
    +	- HTML rowspan bug was fixed.
    +	- Line style for MultiCell() was fixed.
    +	- WriteHTML() function was improved.
    +	- CODE128C barcode was fixed (barcodes.php).
    +
    +4.0.005 (2008-07-11)
    +	- Bug [2015715] "PHP Error/Warning" was fixed.
    +
    +4.0.004 (2008-07-09)
    +	- HTML cell internal padding was fixed.
    +
    +4.0.003 (2008-07-08)
    +	- Removed URL encoding when F option is selected on Output() function.
    +	- fixed some minor bugs in html tables.
    +
    +4.0.002 (2008-07-07)
    +	- Bug [2000861] was still unfixed and has been fixed.
    +
    +4.0.001 (2008-07-05)
    +	- Bug [2000861] was fixed.
    +
    +4.0.000 (2008-07-03)
    +	- THIS IS A MAIN RELEASE THAT INCLUDES SEVERAL NEW FEATURES AND BUGFIXES
    +	- Signature fo SetTextColor() and SetFillColor() functions was changed (parameter $storeprev was removed).
    +	- HTML support was completely rewritten and improved (see example 6).
    +	- Alignments parameters were fixed.
    +	- Functions GetArrStringWidth() and GetStringWidth() now include font parameters.
    +	- Fonts support was improved.
    +	- All core fonts were replaced and moved to fonts/ directory.
    +	- The following functions were added: getMargins(), getFontSize(), getFontSizePt().
    +	- File config/tcpdf_config_old.php was renamed tcpdf_config_alt.php and updated.
    +	- Multicell and WriteHTMLCell fill function was fixed.
    +	- Several minor bugs were fixed.
    +	- barcodes.php was updated.
    +	- All examples were updated.
    +
    +------------------------------------------------------------
    +
    +3.1.001 (2008-06-13)
    +	- Bug [1992515] "K_PATH_FONTS default value wrong" was fixed.
    +	- Vera font was removed, DejaVu font and Free fonts were updated.
    +	- Image handling was improved.
    +	- All examples were updated.
    +
    +3.1.000 (2008-06-11)
    +	- setPDFVersion() was added to change the default PDF version (currently 1.7).
    +	- setViewerPreferences() was added to control the way the document is to be presented on the screen or printed (see example 29).
    +	- SetDisplayMode() signature was changed (new options were added).
    +	- LinearGradient(), RadialGradient(), CoonsPatchMesh() functions were added to print various color gradients (see example 30).
    +	- PieSector() function was added to render render pie charts (see example 31).
    +	- ImageEps() was added to display EPS and AI images with limited support (see example 32).
    +	- writeBarcode() function is now depracated, a new write1DBarcode() function was added. The barcode directory was removed and a new barcodes.php file was added.
    +	- The new write1DBarcode() function support more barcodes and do not need the GD library (see example 027). All barcodes are directly written to PDF using graphic functions.
    +	- HTML lists were improved and could be nested (you may now represent trees).
    +	- AddFont() bug was fixed.
    +	- _putfonts() bug was fixed.
    +	- graphics functions were fixed.
    +	- unicode_data.php file was updated (fixed).
    +	- almohanad font was updated.
    +	- example 18 was updated (Farsi and Arabic languages).
    +	- source code cleanup.
    +	- All examples were updated and new examples were added.
    +
    +3.0.015 (2008-06-06)
    +	- AddPage() function signature is changed to include page format.
    +	- example 28 was added to show page format changes.
    +	- setPageUnit() function was added to change the page units of measure.
    +	- setPageFormat() function was added to change the page format and orientation between pages.
    +	- setPageOrientation() function was added to change the page orientation.
    +	- Arabic font shaping was fixed for laa letter and square boxes (see the example 18).
    +
    +3.0.014 (2008-06-04)
    +	- Arabic font shaping was fixed.
    +	- setDefaultTableColumns() function was added.
    +	- $cell_height_ratio variable was added.
    +	- setCellHeightRatio() function was added to define the default height of cell repect font height.
    +
    +3.0.013 (2008-06-03)
    +	- Multicell height parameter was fixed.
    +	- Arabic font shaping was improved.
    +	- unicode_data.php was updated.
    +
    +3.0.012 (2008-05-30)
    +	- K_PATH_MAIN and K_PATH_URL constants are now automatically set on config file.
    +	- DOCUMENT_ROOT constant was fixed for IIS Webserver (config file was updated).
    +	- Arabic font shaping was improved.
    +	- TranslateY() function was fixed (bug [1977962]).
    +	- setVisibility() function was fixed.
    +	- writeBarcode() function was fixed to scale using $xref parameter.
    +	- All examples were updated.
    +
    +3.0.011 (2008-05-23)
    +	- CMYK color support was added to all graphic functions.
    +	- HTML table support was improved:
    +	  -- now it's possible to include additional html tags inside a cell;
    +	  -- colspan attribute was added.
    +	- example 006 was updated.
    +
    +3.0.010 (2008-05-21)
    +	- fixed $laa_array inclusion on utf8Bidi() function.
    +
    +3.0.009 (2008-05-20)
    +	- unicode_data.php was updated.
    +	- Arabic laa letter problem was fixed.
    +
    +3.0.008 (2008-05-12)
    +	- Arabic support was fixed and improved (unicode_data.php was updated).
    +	- Polycurve() function was added to draw a poly-Bezier curve.
    +	- list items alignment was fixed.
    +	- example 6 was updated.
    +
    +3.0.007 (2008-05-06)
    +	- Arabic support was fixed and improved.
    +	- AlMohanad (arabic) font was added.
    +	- C128 barcode bugs were fixed.
    +
    +3.0.006 (2008-04-21)
    +	- Condition to check negative width values was added.
    +
    +3.0.005 (2008-04-18)
    +	- back-Slash character escape was fixed on writeHTML() function.
    +	- Exampe 6 was updated.
    +
    +3.0.004 (2008-04-11)
    +	- Bug [1939304] (Right to Left Issue) was fixed.
    +
    +3.0.003 (2008-04-07)
    +	- Bug [1934523](Words between HTML tags in cell not kept on one line) was fixed.
    +	- "face" attribute of "font" tag is now fully supported.
    +
    +3.0.002 (2008-04-01)
    +	- Write() functions now return the number of cells and not the number of lines.
    +	- TCPDF is released under LGPL 2.1, or any later version.
    +
    +3.0.001 (2008-05-28)
    +	- _legacyparsejpeg() and _legacyparsepng() were renamed _parsejpeg() and _parsepng().
    +	- function writeBarcode() was fixed.
    +	- all examples were updated.
    +	- example 27 was added to show various barcodes.
    +
    +3.0.000 (2008-03-27)
    +	- private function pixelsToMillimeters() was changed to public function pixelsToUnits() to fix html image size bug.
    +	- Image-related functions were rewritten.
    +	- resize parameter was added to Image() signature to reduce the image size and fit width and height (see example 9).
    +	- TCPDF now supports all images supported by GD library: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM.
    +	- CMYK support was added to SetDrawColor(), SetFillColor(), SetTextColor() (see example 22).
    +	- Page Groups were added (see example 23).
    +	- setVisibility() function was added to restrict the rendering of some elements to screen or printout (see example 24).
    +	- All private variables and functions were changed to protected.
    +	- setAlpha() function was added to give transparency support for all objects (see example 25).
    +	- Clipping and stroke modes were added to Text() function (see example 26).
    +	- All examples were moved to "examples" directory.
    +	- function setJPEGQuality() was added to set the JPEG image comrpession (see example 9).
    +
    +2.9.000 (2008-03-26)
    +	- htmlcolors.php file was added to include html colors.
    +	- Support for HTML color names and three-digit hexadecimal color codes was added.
    +	- private function convertColorHexToDec() was renamed convertHTMLColorToDec().
    +	- color and bgcolor attributes are now supported on all HTML tags (color nesting is also supported).
    +	- Write() function were fixed.
    +	- example_006.php was updated.
    +	- private function setUserRights() was added to release user rights on Acrobat Reader (this allows to display forms, see example 14)
    +
    +2.8.000 (2008-03-20)
    +	- Private variables were changed to protected.
    +	- Function Write() was fixed and improved.
    +	- Support for dl, dt, dd, del HTML tags was introduced.
    +	- Line-trought mode was added for HTML and text.
    +	- Text vertical alignment on cells were fixed.
    +	- Examples were updated to reflect changes.
    +
    +2.7.002 (2008-03-13)
    +	- Bug "[1912142] Encrypted PDF created/modified date" was fixed.
    +
    +2.7.001 (2008-03-10)
    +	- Cell justification was fixed for non-unicode mode.
    +
    +2.7.000 (2008-03-09)
    +	- Cell() stretching mode 4 (forced character spacing) was fixed.
    +	- writeHTMLCell() now uses Multicell() to write.
    +	- Multicell() has a new parameter $ishtml to act as writeHTMLCell().
    +	- Write() speed was improved for non-arabic strings.
    +	- Example n. 20 was changed.
    +
    +2.6.000 (2008-03-07)
    +	- various alignments bugs were fixed.
    +
    +2.5.000 (2008-03-07)
    +	- Several bugs were fixed.
    +	- example_019.php was added to test non-unicode mode using old fonts.
    +
    +2.4.000 (2008-03-06)
    +	- RTL support was deeply improved.
    +	- GetStringWidth() was fixed to support RTL languages.
    +	- Text() RTL alignment was fixed.
    +	- Some functions were added: GetArrStringWidth(), GetCharWidth(), uniord(), utf8Bidi().
    +	- example_018.php was added and test_unicode.php was removed.
    +
    +2.3.000 (2008-03-05)
    +	- MultiCell() signature is changed. Now support multiple columns across pages (see example_017).
    +	- Write() signature is changed. Now support the cell mode to be used with MultiCell.
    +	- Header() and Footer() were changed.
    +	- The following functions were added: UTF8ArrSubString() and unichr().
    +	- Examples were updated to reflect last changes.
    +
    +2.2.004 (2008-03-04)
    +	- Several examples were added.
    +	- AddPage() Header() and Footer() were fixed.
    +	- Documentation is now available on http://www.tcpdf.org
    +
    +2.2.003 (2008-03-03)
    +	- [1894853] Performance of MultiCell() was improved.
    +	- RadioButton and ListBox functions were added.
    +	- javascript form functions were rewritten and properties names are changed. The properties function supported by form fields are listed on Possible values are listed on http://www.adobe.com/devnet/acrobat/pdfs/js_developer_guide.pdf.
    +
    +2.2.002 (2008-02-28)
    +	- [1900495] html images path was fixed.
    +	- Legacy image functions were reintroduced to allow PNG and JPEG support without GD library.
    +
    +2.2.001 (2008-02-16)
    +	- The bug "[1894700] bug with replace relative path" was fixed
    +	- Justification was fixed
    +
    +2.2.000 (2008-02-12)
    +	- fixed javascript bug introduced with latest release
    +
    +2.1.002 (2008-02-12)
    +	- Justify function was fixed on PHP4 version.
    +	- Bookmank function was added ([1578250] Table of contents).
    +	- Javascript and Form fields support was added ([1796359] Form fields).
    +
    +2.1.001 (2008-02-10)
    +	- The bug "[1885776] Race Condition in function justitfy" was fixed.
    +	- The bug "[1890217] xpdf complains that pdf is incorrect" was fixed.
    +
    +2.1.000 (2008-01-07)
    +	- FPDF_FONTPATH constant was changed to K_PATH_FONTS on config file
    +	- Bidirectional Algorithm to correctly reverse bidirectional languages was added.
    +	- SetLeftMargin, SetTopMargin, SetRightMargin functions were fixed.
    +	- SetCellPadding function was added.
    +	- writeHTML was updated with new parameters.
    +	- Text function was fixed.
    +	- MultiCell function was fixed, now works also across multiple pages.
    +	- Line width was fixed on Header and Footer functions and 
    tag. + - "GetImageSize" was renamed "getimagesize". + - Document version was changed from 1.3 to 1.5. + - _begindoc() function was fixed. + - ChangeDate was fixed and ModDate was added. + - The following functions were added: + setPage() : Move pointer to the specified document page. + getPage() : Get current document page number. + lastpage() : Reset pointer to the last document page. + getNumPages() : Get the total number of inserted pages. + GetNumChars() : count the number of (UTF-8) characters in a string. + - $stretch parameter was added to Cell() function to fit text on cell: + 0 = disabled + 1 = horizontal scaling only if necessary + 2 = forced horizontal scaling + 3 = character spacing only if necessary + 4 = forced character spacing + - Line function was fixed for RTL. + - Graphic transformation functions were added [1811158]: + StartTransform() + StopTransform() + ScaleX() + ScaleY() + ScaleXY() + Scale() + MirrorH() + MirrorV() + MirrorP() + MirrorL() + TranslateX() + TranslateY() + Translate() + Rotate() + SkewX() + SkewY() + Skew() + - Graphic function were added/updated [1688549]: + SetLineStyle() + _outPoint() + _outLine() + _outRect() + _outCurve() + Line() + Rect() + Curve + Ellipse + Circle + Polygon + RegularPolygon + +2.0.000 (2008-01-04) + - RTL (Right-To-Left) languages support was added. Language direction is set using the $l['a_meta_dir'] setting on /configure/language/xxx.php language files. + - setRTL($enable) method was added to manually enable/disable the RTL text direction. + - The attribute "dir" was added to support custom text direction on HTML tags. Possible values are: ltr - for Left-To-Right and RTL for Right-To-Left. + - RC4 40bit encryption was added. Check the SetProtection method. + - [1815213] Improved image support for GIF, JPEG, PNG formats. + - [1800094] Attribute "value" was added to ordered list items
  • . + - Image function now has a new "align" parameter that indicates the alignment of the pointer next to image insertion and relative to image height. The value can be: + T: top-right for LTR or top-left for RTL + M: middle-right for LTR or middle-left for RTL + B: bottom-right for LTR or bottom-left for RTL + N: next line + - Attribute "align" was added to html tag to set the above image "align" parameter. Possible values are: + top: top-right for LTR or top-left for RTL + middle: middle-right for LTR or middle-left for RTL + bottom: bottom-right for LTR or bottom-left for RTL + - [1798103] newline was added after , and

    tages. + - [1816393] Documentation was updated. + - 'ln' parameter was fixed on writeHTMLCell. Now it's possible to print two or more columns across several pages; + - The method lastPage() was added to move the pointer on the last page; + +------------------------------------------------------------ + +1.53.0.TC034 (2007-07-30) + - fixed htmlentities conversion. + - MultiCell() function returns the number of cells. + +1.53.0.TC033 (2007-07-30) + - fixed bug 1762550: case sensitive for font files + - NOTE: all fonts files names must be in lowercase! + +1.53.0.TC032 (2007-07-27) + - setLastH method was added to resolve bug 1689071. + - all fonts names were converted in lowercase (bug 1713005). + - bug 1740954 was fixed. + - justification was added as Cell option. + +1.53.0.TC031 (2007-03-20) + - ToUnicode CMap were added on _puttruetypeunicode function. Now you may search and copy unicode text. + +1.53.0.TC030 (2007-03-06) + - fixed bug on PHP4 version. + +1.53.0.TC029 (2007-03-06) + - DejaVu Fonts were added. + +1.53.0.TC028 (2007-03-03) + - MultiCell function signature were changed: the $ln parameter were added. Check documentation for further information. + - Greek language were added on example sentences. + - setPrintHeader() and setPrintFooter() functions were added to enable or disable page header and footer. + +1.53.0.TC027 (2006-12-14) + - $attr['face'] bug were fixed. + - K_TCPDF_EXTERNAL_CONFIG control where introduced on /config/tcpdf_config.php to use external configuration files. + +1.53.0.TC026 (2006-10-28) + - writeHTML function call were fixed on examples. + +1.53.0.TC025 (2006-10-27) + - Bugs item #1421290 were fixed (0D - 0A substitution in some characters) + - Bugs item #1573174 were fixed (MultiCell documentation) + +1.53.0.TC024 (2006-09-26) + - getPageHeight() function were fixed (bug 1543476). + - fixed missing breaks on closedHTMLTagHandler function (bug 1535263). + - fixed extra spaces on Write function (bug 1535262). + +1.53.0.TC023 (2006-08-04) + - paths to barcode directory were fixed. + - documentation were updated. + +1.53.0.TC022 (2006-07-16) + - fixed bug: [ 1516858 ] Probs with PHP autoloader and class_exists() + +1.53.0.TC021 (2006-07-01) + - HTML attributes with whitespaces are now supported (thanks to Nelson Benitez for his support) + +1.53.0.TC020 (2006-06-23) + - code cleanup + +1.53.0.TC019 (2006-05-21) + - fixed and closing tags + +1.53.0.TC018 (2006-05-18) + - fixed font names bug + +1.53.0.TC017 (2006-05-18) + - the TTF2UFM utility to convert True Type fonts for TCPDF were included on fonts folder. + - new free unicode fonts were included on /fonts/freefont. + - test_unicode.php example were exended. + - parameter $fill were added on Write, writeHTML and writeHTMLCell functions. + - documentation were updated. + +1.53.0.TC016 (2006-03-09) + - fixed closing tag on html parser. + +1.53.0.TC016 (2005-08-28) + - fpdf.php and tcpdf.php files were joined in one single class (you can still extend TCPDF with your own class). + - fixed problem when mb_internal_encoding is set. + +1.53.0.TC014 (2005-05-29) + - fixed WriteHTMLCell new page issue. + +1.53.0.TC013 (2005-05-29) + - fixed WriteHTMLCell across pages. + +1.53.0.TC012 (2005-05-29) + - font color attribute bug were fixed. + +1.53.0.TC011 (2005-03-31) + - SetFont function were fixed (thank Sjaak Lauwers for bug notice). + +1.53.0.TC010 (2005-03-22) + - the html functions were improved (thanks to Manfred Vervuert for bug reporting). + +1.53.0.TC009 (2005-03-19) + - a wrong reference to convertColorHexToDec were fixed. + +1.53.0.TC008 (2005-02-07) + - removed some extra bytes from PHP files. + +1.53.0.TC007 (2005-01-08) + - fill attribute were removed from writeHTMLCell method. + +1.53.0.TC006 (2005-01-08) + - the documentation were updated. + +1.53.0.TC005 (2005-01-05) + - Steven Wittens's unicode methods were removed. + - All unicode methods were rewritten from scratch. + - TCPDF is now licensed as LGPL. + +1.53.0.TC004 (2005-01-04) + - this changelog were added. + - removed commercial fonts for licensing issue. + - Bitstream Vera Fonts were added (http://www.bitstream.com/font_rendering/products/dev_fonts/vera.html). + - Now the AddFont and SetFont functions returns the basic font if the styled version do not exist. + +EOF -------------------------------------------------------- diff --git a/TCPDF/LICENSE.TXT b/TCPDF/LICENSE.TXT new file mode 100644 index 0000000..49147d0 --- /dev/null +++ b/TCPDF/LICENSE.TXT @@ -0,0 +1,860 @@ +********************************************************************** +* TCPDF LICENSE +********************************************************************** + + TCPDF is free software: you can redistribute it and/or modify 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. + + 2002-2019 Nicola Asuni - Tecnick.com LTD + +********************************************************************** +********************************************************************** + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + 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. + +********************************************************************** +********************************************************************** + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU 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 +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + 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 + 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. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + +********************************************************************** +********************************************************************** diff --git a/TCPDF/README.md b/TCPDF/README.md new file mode 100644 index 0000000..db0149f --- /dev/null +++ b/TCPDF/README.md @@ -0,0 +1,84 @@ +# TCPDF +*PHP PDF Library* + +[![Donate via PayPal](https://img.shields.io/badge/donate-paypal-87ceeb.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations¤cy_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20TCPDF%20project) +*Please consider supporting this project by making a donation via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations¤cy_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20TCPDF%20project)* + +* **category** Library +* **author** Nicola Asuni +* **copyright** 2002-2020 Nicola Asuni - Tecnick.com LTD +* **license** http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT) +* **link** http://www.tcpdf.org +* **source** https://github.com/tecnickcom/TCPDF + + +## IMPORTANT +A new version of this library is under development at https://github.com/tecnickcom/tc-lib-pdf and as a consequence this version will not receive any additional development or support. +This version should be considered obsolete, new projects should use the new version as soon it will become stable. + + + +## Description + +PHP library for generating PDF documents on-the-fly. + +### Main Features: +* no external libraries are required for the basic functions; +* all standard page formats, custom page formats, custom margins and units of measure; +* UTF-8 Unicode and Right-To-Left languages; +* TrueTypeUnicode, OpenTypeUnicode v1, TrueType, OpenType v1, Type1 and CID-0 fonts; +* font subsetting; +* methods to publish some XHTML + CSS code, Javascript and Forms; +* images, graphic (geometric figures) and transformation methods; +* supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http://www.imagemagick.org/script/formats.php) +* 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extension, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417; +* JPEG and PNG ICC profiles, Grayscale, RGB, CMYK, Spot Colors and Transparencies; +* automatic page header and footer management; +* document encryption up to 256 bit and digital signature certifications; +* transactions to UNDO commands; +* PDF annotations, including links, text and file attachments; +* text rendering modes (fill, stroke and clipping); +* multiple columns mode; +* no-write page regions; +* bookmarks, named destinations and table of content; +* text hyphenation; +* text stretching and spacing (tracking); +* automatic page break, line break and text alignments including justification; +* automatic page numbering and page groups; +* move and delete pages; +* page compression (requires php-zlib extension); +* XOBject Templates; +* Layers and object visibility. +* PDF/A-1b support. + +### Third party fonts: + +This library may include third party font files released with different licenses. + +All the PHP files on the fonts directory are subject to the general TCPDF license (GNU-LGPLv3), +they do not contain any binary data but just a description of the general properties of a particular font. +These files can be also generated on the fly using the font utilities and TCPDF methods. + +All the original binary TTF font files have been renamed for compatibility with TCPDF and compressed using the gzcompress PHP function that uses the ZLIB data format (.z files). + +The binary files (.z) that begins with the prefix "free" have been extracted from the GNU FreeFont collection (GNU-GPLv3). +The binary files (.z) that begins with the prefix "pdfa" have been derived from the GNU FreeFont, so they are subject to the same license. +For the details of Copyright, License and other information, please check the files inside the directory fonts/freefont-20120503 +Link : http://www.gnu.org/software/freefont/ + +The binary files (.z) that begins with the prefix "dejavu" have been extracted from the DejaVu fonts 2.33 (Bitstream) collection. +For the details of Copyright, License and other information, please check the files inside the directory fonts/dejavu-fonts-ttf-2.33 +Link : http://dejavu-fonts.org + +The binary files (.z) that begins with the prefix "ae" have been extracted from the Arabeyes.org collection (GNU-GPLv2). +Link : http://projects.arabeyes.org/ + +### ICC profile: + +TCPDF includes the sRGB.icc profile from the icc-profiles-free Debian package: +https://packages.debian.org/source/stable/icc-profiles-free + + +## Developer(s) Contact + +* Nicola Asuni diff --git a/TCPDF/VERSION b/TCPDF/VERSION new file mode 100644 index 0000000..b98d1d3 --- /dev/null +++ b/TCPDF/VERSION @@ -0,0 +1 @@ +6.3.5 diff --git a/TCPDF/composer.json b/TCPDF/composer.json new file mode 100644 index 0000000..9f1cc67 --- /dev/null +++ b/TCPDF/composer.json @@ -0,0 +1,47 @@ +{ + "name": "tecnickcom/tcpdf", + "version": "6.3.5", + "homepage": "http://www.tcpdf.org/", + "type": "library", + "description": "TCPDF is a PHP class for generating PDF documents and barcodes.", + "keywords": [ + "PDF", + "tcpdf", + "PDFD32000-2008", + "qrcode", + "datamatrix", + "pdf417", + "barcodes" + ], + "license": "LGPL-3.0-only", + "authors": [ + { + "name": "Nicola Asuni", + "email": "info@tecnick.com", + "role": "lead" + } + ], + "require": { + "php": ">=5.3.0" + }, + "autoload": { + "classmap": [ + "config", + "include", + "tcpdf.php", + "tcpdf_parser.php", + "tcpdf_import.php", + "tcpdf_barcodes_1d.php", + "tcpdf_barcodes_2d.php", + "include/tcpdf_colors.php", + "include/tcpdf_filters.php", + "include/tcpdf_font_data.php", + "include/tcpdf_fonts.php", + "include/tcpdf_images.php", + "include/tcpdf_static.php", + "include/barcodes/datamatrix.php", + "include/barcodes/pdf417.php", + "include/barcodes/qrcode.php" + ] + } +} diff --git a/TCPDF/composer.lock b/TCPDF/composer.lock new file mode 100644 index 0000000..18a131b --- /dev/null +++ b/TCPDF/composer.lock @@ -0,0 +1,19 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "5726aa312f77aee905146d13d6be7179", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.3.0" + }, + "platform-dev": [] +} diff --git a/TCPDF/config/tcpdf_config.php b/TCPDF/config/tcpdf_config.php new file mode 100644 index 0000000..92317b1 --- /dev/null +++ b/TCPDF/config/tcpdf_config.php @@ -0,0 +1,227 @@ +. +// +// See LICENSE.TXT file for more information. +//============================================================+ + +/** + * Configuration file for TCPDF. + * @author Nicola Asuni + * @package com.tecnick.tcpdf + * @version 4.9.005 + * @since 2004-10-27 + */ + +// IMPORTANT: +// If you define the constant K_TCPDF_EXTERNAL_CONFIG, all the following settings will be ignored. +// If you use the tcpdf_autoconfig.php, then you can overwrite some values here. + + +/** + * Installation path (/var/www/tcpdf/). + * By default it is automatically calculated but you can also set it as a fixed string to improve performances. + */ +//define ('K_PATH_MAIN', ''); + +/** + * URL path to tcpdf installation folder (http://localhost/tcpdf/). + * By default it is automatically set but you can also set it as a fixed string to improve performances. + */ +//define ('K_PATH_URL', ''); + +/** + * Path for PDF fonts. + * By default it is automatically set but you can also set it as a fixed string to improve performances. + */ +//define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); + +/** + * Default images directory. + * By default it is automatically set but you can also set it as a fixed string to improve performances. + */ +//define ('K_PATH_IMAGES', ''); + +/** + * Deafult image logo used be the default Header() method. + * Please set here your own logo or an empty string to disable it. + */ +//define ('PDF_HEADER_LOGO', ''); + +/** + * Header logo image width in user units. + */ +//define ('PDF_HEADER_LOGO_WIDTH', 0); + +/** + * Cache directory for temporary files (full path). + */ +//define ('K_PATH_CACHE', '/tmp/'); + +/** + * Generic name for a blank image. + */ +define ('K_BLANK_IMAGE', '_blank.png'); + +/** + * Page format. + */ +define ('PDF_PAGE_FORMAT', 'A4'); + +/** + * Page orientation (P=portrait, L=landscape). + */ +define ('PDF_PAGE_ORIENTATION', 'P'); + +/** + * Document creator. + */ +define ('PDF_CREATOR', 'TCPDF'); + +/** + * Document author. + */ +define ('PDF_AUTHOR', 'TCPDF'); + +/** + * Header title. + */ +define ('PDF_HEADER_TITLE', 'TCPDF Example'); + +/** + * Header description string. + */ +define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); + +/** + * Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]. + */ +define ('PDF_UNIT', 'mm'); + +/** + * Header margin. + */ +define ('PDF_MARGIN_HEADER', 5); + +/** + * Footer margin. + */ +define ('PDF_MARGIN_FOOTER', 10); + +/** + * Top margin. + */ +define ('PDF_MARGIN_TOP', 27); + +/** + * Bottom margin. + */ +define ('PDF_MARGIN_BOTTOM', 25); + +/** + * Left margin. + */ +define ('PDF_MARGIN_LEFT', 15); + +/** + * Right margin. + */ +define ('PDF_MARGIN_RIGHT', 15); + +/** + * Default main font name. + */ +define ('PDF_FONT_NAME_MAIN', 'helvetica'); + +/** + * Default main font size. + */ +define ('PDF_FONT_SIZE_MAIN', 10); + +/** + * Default data font name. + */ +define ('PDF_FONT_NAME_DATA', 'helvetica'); + +/** + * Default data font size. + */ +define ('PDF_FONT_SIZE_DATA', 8); + +/** + * Default monospaced font name. + */ +define ('PDF_FONT_MONOSPACED', 'courier'); + +/** + * Ratio used to adjust the conversion of pixels to user units. + */ +define ('PDF_IMAGE_SCALE_RATIO', 1.25); + +/** + * Magnification factor for titles. + */ +define('HEAD_MAGNIFICATION', 1.1); + +/** + * Height of cell respect font height. + */ +define('K_CELL_HEIGHT_RATIO', 1.25); + +/** + * Title magnification respect main font size. + */ +define('K_TITLE_MAGNIFICATION', 1.3); + +/** + * Reduction factor for small font. + */ +define('K_SMALL_RATIO', 2/3); + +/** + * Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language. + */ +define('K_THAI_TOPCHARS', true); + +/** + * If true allows to call TCPDF methods using HTML syntax + * IMPORTANT: For security reason, disable this feature if you are printing user HTML content. + */ +define('K_TCPDF_CALLS_IN_HTML', false); + +/** + * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. + */ +define('K_TCPDF_THROW_EXCEPTION_ERROR', false); + +/** + * Default timezone for datetime functions + */ +define('K_TIMEZONE', 'UTC'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_1d_html.php b/TCPDF/examples/barcodes/example_1d_html.php new file mode 100644 index 0000000..67d22e7 --- /dev/null +++ b/TCPDF/examples/barcodes/example_1d_html.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.000 + */ + +// include 1D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); + +// output the barcode as HTML object +echo $barcodeobj->getBarcodeHTML(2, 30, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_1d_png.php b/TCPDF/examples/barcodes/example_1d_png.php new file mode 100644 index 0000000..9e44909 --- /dev/null +++ b/TCPDF/examples/barcodes/example_1d_png.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.000 + */ + +// include 1D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); + +// output the barcode as PNG image +$barcodeobj->getBarcodePNG(2, 30, array(0,0,0)); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_1d_svg.php b/TCPDF/examples/barcodes/example_1d_svg.php new file mode 100644 index 0000000..f7b585a --- /dev/null +++ b/TCPDF/examples/barcodes/example_1d_svg.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.000 + */ + +// include 1D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); + +// output the barcode as SVG image +$barcodeobj->getBarcodeSVG(2, 30, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_1d_svgi.php b/TCPDF/examples/barcodes/example_1d_svgi.php new file mode 100644 index 0000000..a74a304 --- /dev/null +++ b/TCPDF/examples/barcodes/example_1d_svgi.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.000 + */ + +// include 1D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); + +// output the barcode as SVG inline code +echo $barcodeobj->getBarcodeSVGcode(2, 40, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_datamatrix_html.php b/TCPDF/examples/barcodes/example_2d_datamatrix_html.php new file mode 100644 index 0000000..dc7bab3 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_datamatrix_html.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); + +// output the barcode as HTML object +echo $barcodeobj->getBarcodeHTML(6, 6, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_datamatrix_png.php b/TCPDF/examples/barcodes/example_2d_datamatrix_png.php new file mode 100644 index 0000000..87b7a33 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_datamatrix_png.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); + +// output the barcode as PNG image +$barcodeobj->getBarcodePNG(6, 6, array(0,0,0)); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_datamatrix_svg.php b/TCPDF/examples/barcodes/example_2d_datamatrix_svg.php new file mode 100644 index 0000000..523ebfa --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_datamatrix_svg.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); + +// output the barcode as SVG image +$barcodeobj->getBarcodeSVG(6, 6, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_datamatrix_svgi.php b/TCPDF/examples/barcodes/example_2d_datamatrix_svgi.php new file mode 100644 index 0000000..4470981 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_datamatrix_svgi.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); + +// output the barcode as SVG inline code +echo $barcodeobj->getBarcodeSVGcode(6, 6, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_pdf417_html.php b/TCPDF/examples/barcodes/example_2d_pdf417_html.php new file mode 100644 index 0000000..4c4e9ee --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_pdf417_html.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); + +// output the barcode as HTML object +echo $barcodeobj->getBarcodeHTML(4, 4, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_pdf417_png.php b/TCPDF/examples/barcodes/example_2d_pdf417_png.php new file mode 100644 index 0000000..df939bb --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_pdf417_png.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); + +// output the barcode as PNG image +$barcodeobj->getBarcodePNG(4, 4, array(0,0,0)); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_pdf417_svg.php b/TCPDF/examples/barcodes/example_2d_pdf417_svg.php new file mode 100644 index 0000000..fb29ea2 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_pdf417_svg.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); + +// output the barcode as SVG image +$barcodeobj->getBarcodeSVG(4, 4, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_pdf417_svgi.php b/TCPDF/examples/barcodes/example_2d_pdf417_svgi.php new file mode 100644 index 0000000..94e1c71 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_pdf417_svgi.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); + +// output the barcode as SVG inline code +echo $barcodeobj->getBarcodeSVGcode(4, 4, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_qrcode_html.php b/TCPDF/examples/barcodes/example_2d_qrcode_html.php new file mode 100644 index 0000000..ac828f7 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_qrcode_html.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); + +// output the barcode as HTML object +echo $barcodeobj->getBarcodeHTML(6, 6, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_qrcode_png.php b/TCPDF/examples/barcodes/example_2d_qrcode_png.php new file mode 100644 index 0000000..71f8710 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_qrcode_png.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); + +// output the barcode as PNG image +$barcodeobj->getBarcodePNG(6, 6, array(0,0,0)); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_qrcode_svg.php b/TCPDF/examples/barcodes/example_2d_qrcode_svg.php new file mode 100644 index 0000000..1baa43d --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_qrcode_svg.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); + +// output the barcode as SVG image +$barcodeobj->getBarcodeSVG(6, 6, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/example_2d_qrcode_svgi.php b/TCPDF/examples/barcodes/example_2d_qrcode_svgi.php new file mode 100644 index 0000000..99d6590 --- /dev/null +++ b/TCPDF/examples/barcodes/example_2d_qrcode_svgi.php @@ -0,0 +1,53 @@ +. +// +// See LICENSE.TXT file for more information. +// ------------------------------------------------------------------- +// +// Description : Example for tcpdf_barcodes_2d.php class +// +//============================================================+ + +/** + * @file + * Example for tcpdf_barcodes_2d.php class + * @package com.tecnick.tcpdf + * @author Nicola Asuni + * @version 1.0.009 + */ + +// include 2D barcode class (search for installation path) +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); + +// set the barcode content and type +$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); + +// output the barcode as SVG inline code +echo $barcodeobj->getBarcodeSVGcode(6, 6, 'black'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/barcodes/tcpdf_barcodes_1d_include.php b/TCPDF/examples/barcodes/tcpdf_barcodes_1d_include.php new file mode 100644 index 0000000..a0bde57 --- /dev/null +++ b/TCPDF/examples/barcodes/tcpdf_barcodes_1d_include.php @@ -0,0 +1,37 @@ +. +// +// See LICENSE.TXT file for more information. +//============================================================+ + +/** + * Example of alternative configuration file for TCPDF. + * @author Nicola Asuni + * @package com.tecnick.tcpdf + * @version 4.9.005 + * @since 2004-10-27 + */ + +/** + * Define the following constant to ignore the default configuration file. + */ +define ('K_TCPDF_EXTERNAL_CONFIG', true); + +/** + * Installation path (/var/www/tcpdf/). + * By default it is automatically calculated but you can also set it as a fixed string to improve performances. + */ +//define ('K_PATH_MAIN', ''); + +/** + * URL path to tcpdf installation folder (http://localhost/tcpdf/). + * By default it is automatically set but you can also set it as a fixed string to improve performances. + */ +//define ('K_PATH_URL', ''); + +/** + * Path for PDF fonts. + * By default it is automatically set but you can also set it as a fixed string to improve performances. + */ +//define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); + +/** + * Default images directory. + * By default it is automatically set but you can also set it as a fixed string to improve performances. + */ +define ('K_PATH_IMAGES', dirname(__FILE__).'/../images/'); + +/** + * Deafult image logo used be the default Header() method. + * Please set here your own logo or an empty string to disable it. + */ +define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); + +/** + * Header logo image width in user units. + */ +define ('PDF_HEADER_LOGO_WIDTH', 30); + +/** + * Cache directory for temporary files (full path). + */ +define ('K_PATH_CACHE', sys_get_temp_dir().'/'); + +/** + * Generic name for a blank image. + */ +define ('K_BLANK_IMAGE', '_blank.png'); + +/** + * Page format. + */ +define ('PDF_PAGE_FORMAT', 'A4'); + +/** + * Page orientation (P=portrait, L=landscape). + */ +define ('PDF_PAGE_ORIENTATION', 'P'); + +/** + * Document creator. + */ +define ('PDF_CREATOR', 'TCPDF'); + +/** + * Document author. + */ +define ('PDF_AUTHOR', 'TCPDF'); + +/** + * Header title. + */ +define ('PDF_HEADER_TITLE', 'TCPDF Example'); + +/** + * Header description string. + */ +define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); + +/** + * Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]. + */ +define ('PDF_UNIT', 'mm'); + +/** + * Header margin. + */ +define ('PDF_MARGIN_HEADER', 5); + +/** + * Footer margin. + */ +define ('PDF_MARGIN_FOOTER', 10); + +/** + * Top margin. + */ +define ('PDF_MARGIN_TOP', 27); + +/** + * Bottom margin. + */ +define ('PDF_MARGIN_BOTTOM', 25); + +/** + * Left margin. + */ +define ('PDF_MARGIN_LEFT', 15); + +/** + * Right margin. + */ +define ('PDF_MARGIN_RIGHT', 15); + +/** + * Default main font name. + */ +define ('PDF_FONT_NAME_MAIN', 'helvetica'); + +/** + * Default main font size. + */ +define ('PDF_FONT_SIZE_MAIN', 10); + +/** + * Default data font name. + */ +define ('PDF_FONT_NAME_DATA', 'helvetica'); + +/** + * Default data font size. + */ +define ('PDF_FONT_SIZE_DATA', 8); + +/** + * Default monospaced font name. + */ +define ('PDF_FONT_MONOSPACED', 'courier'); + +/** + * Ratio used to adjust the conversion of pixels to user units. + */ +define ('PDF_IMAGE_SCALE_RATIO', 1.25); + +/** + * Magnification factor for titles. + */ +define('HEAD_MAGNIFICATION', 1.1); + +/** + * Height of cell respect font height. + */ +define('K_CELL_HEIGHT_RATIO', 1.25); + +/** + * Title magnification respect main font size. + */ +define('K_TITLE_MAGNIFICATION', 1.3); + +/** + * Reduction factor for small font. + */ +define('K_SMALL_RATIO', 2/3); + +/** + * Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language. + */ +define('K_THAI_TOPCHARS', true); + +/** + * If true allows to call TCPDF methods using HTML syntax + * IMPORTANT: For security reason, disable this feature if you are printing user HTML content. + */ +define('K_TCPDF_CALLS_IN_HTML', true); + +/** + * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. + */ +define('K_TCPDF_THROW_EXCEPTION_ERROR', false); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/data/cert/tcpdf.crt b/TCPDF/examples/data/cert/tcpdf.crt new file mode 100644 index 0000000..f049139 --- /dev/null +++ b/TCPDF/examples/data/cert/tcpdf.crt @@ -0,0 +1,40 @@ +Bag Attributes + localKeyID: 7B AB 1B 7A BE 4C 85 C0 1A A6 DC 59 3F 79 48 C3 93 38 68 9C +subject=/CN=TCPDF DEMO/O=TCPDF/OU=DEMO/emailAddress=you@example.com/C=IT +issuer=/CN=TCPDF DEMO/O=TCPDF/OU=DEMO/emailAddress=you@example.com/C=IT +-----BEGIN CERTIFICATE----- +MIIC1TCCAj6gAwIBAgIKkehOL/XGkB5cjjANBgkqhkiG9w0BAQUFADBhMRMwEQYD +VQQDEwpUQ1BERiBERU1PMQ4wDAYDVQQKEwVUQ1BERjENMAsGA1UECxMEREVNTzEe +MBwGCSqGSIb3DQEJARYPeW91QGV4YW1wbGUuY29tMQswCQYDVQQGEwJJVDAeFw0w +OTA4MjExMjU0NDhaFw0xNDA4MjExMjU0NDhaMGExEzARBgNVBAMTClRDUERGIERF +TU8xDjAMBgNVBAoTBVRDUERGMQ0wCwYDVQQLEwRERU1PMR4wHAYJKoZIhvcNAQkB +Fg95b3VAZXhhbXBsZS5jb20xCzAJBgNVBAYTAklUMIGfMA0GCSqGSIb3DQEBAQUA +A4GNADCBiQKBgQDAqIL0uGKmTR98Lxx2vEEE1OGKkMXFo0JViitALe7Onhxxqx0H +XMUDKF5mvEVu1rcvh7/oAnAfrCuEpL/up3u1mQCgBE7WXBnFFE/AE3jCksh9OkS0 +Z0Xj9woN5bzxRDsGoPiOu/4xzk5qSEXt8jf2Ep90QuNkqLIRT4swAzpDbwIDAQAB +o4GTMIGQMDcGA1UdEgQwMC6gEQYDVQQDDApUQ1BERiBERU1PoAwGA1UECgwFVENQ +REagCwYDVQQLDARERU1PMDcGA1UdEQQwMC6gEQYDVQQDDApUQ1BERiBERU1PoAwG +A1UECgwFVENQREagCwYDVQQLDARERU1PMA8GCSqGSIb3LwEBCgQCBQAwCwYDVR0P +BAQDAgSQMA0GCSqGSIb3DQEBBQUAA4GBAEhTQfqX3ZNdHmpTLDbIj22RHXii2roE +OavCbu9WsHoWpva0qSd+yIoD594VHvYAd29sfzDfiN+7W0aiZfDhq5jpaSQMVlN8 +RGYMupbHY/+a9Gz1wqxnR84mlTtIkZVRYAhsfPwy6M1BEjdMqfdh9h40JIdkdjtb +8faTCfXPePWQ +-----END CERTIFICATE----- +Bag Attributes + localKeyID: 7B AB 1B 7A BE 4C 85 C0 1A A6 DC 59 3F 79 48 C3 93 38 68 9C +Key Attributes: +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQDAqIL0uGKmTR98Lxx2vEEE1OGKkMXFo0JViitALe7Onhxxqx0H +XMUDKF5mvEVu1rcvh7/oAnAfrCuEpL/up3u1mQCgBE7WXBnFFE/AE3jCksh9OkS0 +Z0Xj9woN5bzxRDsGoPiOu/4xzk5qSEXt8jf2Ep90QuNkqLIRT4swAzpDbwIDAQAB +AoGAXc+wNMmz/5Z+RlIKYia44klmqbplEx+0JULqXI4BQsrqvs67i+I4bJkznoL+ +rEIRYSuQ3sCRKFsFtckjTGpxadnxkB+uwGKc6pZChv99BFX6HFR4hgBlT/BBRAQA +hMDlM2JIRr4S4SMVXR7MHwGMUf9mUeanGLR3ZWtU3aXJrIECQQD7OaYUVYNEEnM9 +uXyjm22CuHyqyEf5gb13sK0uQty67547yJTMUQZd/sQc9KGwhzBbhrob2LO2jAhh +S+f+NSRnAkEAxFHm3fMI5RgXmswxlGm4QW07a/Ueo7ZJG6xjTkFXluJhd+XHswRD +dQIO3zG9nGjNUoeMrPhXhPvKqFc2F9RDuQJAQBEGin74N77gxqfr4ik79y8nE8J5 +oGZ2s/RJZdfFRKLg3mwbjjNHhWb4Ck5UgZkoOt8TzRApXG8/n9hktE5HFwJBALur +M5AueO1Pl5kB489lNJ9OxUQRYUXMxpxuscuoCQwSwmv0O2+0/qtG2WKhUQnI4aYo +L+FV0YwtivBb1jj3T/kCQQDIWOxq8eRowdaMzvJpRUHFgMcf1AVZExKyrugwYOWd +KNsDxC4KaQOsPt8iT/Ulo4g/MJC0HolCOhWibKmR9Ayl +-----END RSA PRIVATE KEY----- diff --git a/TCPDF/examples/data/cert/tcpdf.fdf b/TCPDF/examples/data/cert/tcpdf.fdf new file mode 100644 index 0000000..a8f7c35 Binary files /dev/null and b/TCPDF/examples/data/cert/tcpdf.fdf differ diff --git a/TCPDF/examples/data/cert/tcpdf.p12 b/TCPDF/examples/data/cert/tcpdf.p12 new file mode 100644 index 0000000..611f0df Binary files /dev/null and b/TCPDF/examples/data/cert/tcpdf.p12 differ diff --git a/TCPDF/examples/data/chapter_demo_1.txt b/TCPDF/examples/data/chapter_demo_1.txt new file mode 100644 index 0000000..4025de9 --- /dev/null +++ b/TCPDF/examples/data/chapter_demo_1.txt @@ -0,0 +1,19 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. + +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa. + +Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu. + +Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra. + +Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat. + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. + +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa. + +Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu. + +Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra. + +Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat. diff --git a/TCPDF/examples/data/chapter_demo_2.txt b/TCPDF/examples/data/chapter_demo_2.txt new file mode 100644 index 0000000..a0210ff --- /dev/null +++ b/TCPDF/examples/data/chapter_demo_2.txt @@ -0,0 +1,23 @@ +

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.

    + + + +

    Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.

    + +

    Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.

    + +

    Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.

    + +

    Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.

    + +

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.

    + + + +

    Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.

    + +

    Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu.

    + +

    Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra.

    + +

    Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.

    diff --git a/TCPDF/examples/data/table_data_demo.txt b/TCPDF/examples/data/table_data_demo.txt new file mode 100644 index 0000000..5a48a42 --- /dev/null +++ b/TCPDF/examples/data/table_data_demo.txt @@ -0,0 +1,15 @@ +Austria;Vienna;83859;8075 +Belgium;Brussels;30518;10192 +Denmark;Copenhagen;43094;5295 +Finland;Helsinki;304529;5147 +France;Paris;543965;58728 +Germany;Berlin;357022;82057 +Greece;Athens;131625;10511 +Ireland;Dublin;70723;3694 +Italy;Roma;301316;57563 +Luxembourg;Luxembourg;2586;424 +Netherlands;Amsterdam;41526;15654 +Portugal;Lisbon;91906;9957 +Spain;Madrid;504790;39348 +Sweden;Stockholm;410934;8839 +United Kingdom;London;243820;58862 diff --git a/TCPDF/examples/data/utf8test.txt b/TCPDF/examples/data/utf8test.txt new file mode 100644 index 0000000..291d4e7 --- /dev/null +++ b/TCPDF/examples/data/utf8test.txt @@ -0,0 +1,128 @@ +Sentences that contain all letters commonly used in a language +-------------------------------------------------------------- + +This file is UTF-8 encoded. + +Czech (cz) +--------- + + Příšerně žluťoučký kůň úpěl ďábelské ódy. + Hleď, toť přízračný kůň v mátožné póze šíleně úpí. + Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů. + Loď čeří kýlem tůň obzvlášť v Grónské úžině. + Ó, náhlý déšť již zvířil prach a čilá laň teď běží s houfcem gazel k úkrytům. + +Danish (da) +--------- + + Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen + Wolther spillede på xylofon. + (= Quiz contestants were eating strawbery with cream while Wolther + the circus clown played on xylophone.) + +German (de) +----------- + + Falsches Üben von Xylophonmusik quält jeden größeren Zwerg + (= Wrongful practicing of xylophone music tortures every larger dwarf) + + Zwölf Boxkämpfer jagten Eva quer über den Sylter Deich + (= Twelve boxing fighters hunted Eva across the dike of Sylt) + + Heizölrückstoßabdämpfung + (= fuel oil recoil absorber) + (jqvwxy missing, but all non-ASCII letters in one word) + +English (en) +------------ + + The quick brown fox jumps over the lazy dog + +Spanish (es) +------------ + + El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y + frío, añoraba a su querido cachorro. + (Contains every letter and every accent, but not every combination + of vowel + acute.) + +French (fr) +----------- + + Portez ce vieux whisky au juge blond qui fume sur son île intérieure, à + côté de l'alcôve ovoïde, où les bûches se consument dans l'âtre, ce + qui lui permet de penser à la cænogenèse de l'être dont il est question + dans la cause ambiguë entendue à Moÿ, dans un capharnaüm qui, + pense-t-il, diminue çà et là la qualité de son œuvre. + + l'île exiguë + Où l'obèse jury mûr + Fête l'haï volapük, + Âne ex aéquo au whist, + Ôtez ce vœu déçu. + + Le cœur déçu mais l'âme plutôt naïve, Louÿs rêva de crapaüter en + canoë au delà des îles, près du mälström où brûlent les novæ. + +Irish Gaelic (ga) +----------------- + + D'fhuascail Íosa, Úrmhac na hÓighe Beannaithe, pór Éava agus Ádhaimh + +Hungarian (hu) +-------------- + + Árvíztűrő tükörfúrógép + (= flood-proof mirror-drilling machine, only all non-ASCII letters) + +Icelandic (is) +-------------- + + Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa + + Sævör grét áðan því úlpan var ónýt + (some ASCII letters missing) + +Greek (el) +------------- + + Γαζέες καὶ μυρτιὲς δὲν θὰ βρῶ πιὰ στὸ χρυσαφὶ ξέφωτο + (= No more shall I see acacias or myrtles in the golden clearing) + + Ξεσκεπάζω τὴν ψυχοφθόρα βδελυγμία + (= I uncover the soul-destroying abhorrence) + +Hebrew (iw) +----------- + + ? דג סקרן שט בים מאוכזב ולפתע מצא לו חברה איך הקליטה + +Polish (pl) +----------- + + Pchnąć w tę łódź jeża lub osiem skrzyń fig + (= To push a hedgehog or eight bins of figs in this boat) + + Zażółć gęślą jaźń + +Russian (ru) +------------ + + В чащах юга жил бы цитрус? Да, но фальшивый экземпляр! + (= Would a citrus live in the bushes of south? Yes, but only a fake one!) + +Thai (th) +--------- + + [--------------------------|------------------------] + ๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า กว่าบรรดาฝูงสัตว์เดรัจฉาน + จงฝ่าฟันพัฒนาวิชาการ อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร + ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า หัดอภัยเหมือนกีฬาอัชฌาสัย + ปฏิบัติประพฤติกฎกำหนดใจ พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ + + [The copyright for the Thai example is owned by The Computer + Association of Thailand under the Royal Patronage of His Majesty the + King.] + +Please let me know if you find others! Special thanks to the people +from all over the world who contributed these sentences. diff --git a/TCPDF/examples/example_001.php b/TCPDF/examples/example_001.php new file mode 100644 index 0000000..055c66a --- /dev/null +++ b/TCPDF/examples/example_001.php @@ -0,0 +1,106 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 001'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128)); +$pdf->setFooterData(array(0,64,0), array(0,64,128)); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set default font subsetting mode +$pdf->setFontSubsetting(true); + +// Set font +// dejavusans is a UTF-8 Unicode font, if you only need to +// print standard ASCII chars, you can use core fonts like +// helvetica or times to reduce file size. +$pdf->SetFont('dejavusans', '', 14, '', true); + +// Add a page +// This method has several options, check the source code documentation for more information. +$pdf->AddPage(); + +// set text shadow effect +$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal')); + +// Set some content to print +$html = <<Welcome to  TCPDF ! +This is the first example of TCPDF library. +

    This text is printed using the writeHTMLCell() method but you can also use: Multicell(), writeHTML(), Write(), Cell() and Text().

    +

    Please check the source code documentation and other examples for further information.

    +

    TO IMPROVE AND EXPAND TCPDF I NEED YOUR SUPPORT, PLEASE MAKE A DONATION!

    +EOD; + +// Print text using writeHTMLCell() +$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true); + +// --------------------------------------------------------- + +// Close and output PDF document +// This method has several options, check the source code documentation for more information. +$pdf->Output('example_001.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_002.php b/TCPDF/examples/example_002.php new file mode 100644 index 0000000..020dd29 --- /dev/null +++ b/TCPDF/examples/example_002.php @@ -0,0 +1,87 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 002'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// remove default header/footer +$pdf->setPrintHeader(false); +$pdf->setPrintFooter(false); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', 'BI', 20); + +// add a page +$pdf->AddPage(); + +// set some text to print +$txt = <<Write(0, $txt, '', 0, 'C', true, 0, false, false, 0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_002.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_003.php b/TCPDF/examples/example_003.php new file mode 100644 index 0000000..73a0e8c --- /dev/null +++ b/TCPDF/examples/example_003.php @@ -0,0 +1,118 @@ +Image($image_file, 10, 10, 15, '', 'JPG', '', 'T', false, 300, '', false, false, 0, false, false, false); + // Set font + $this->SetFont('helvetica', 'B', 20); + // Title + $this->Cell(0, 15, '<< TCPDF Example 003 >>', 0, false, 'C', 0, '', 0, false, 'M', 'M'); + } + + // Page footer + public function Footer() { + // Position at 15 mm from bottom + $this->SetY(-15); + // Set font + $this->SetFont('helvetica', 'I', 8); + // Page number + $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); + } +} + +// create new PDF document +$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 003'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', 'BI', 12); + +// add a page +$pdf->AddPage(); + +// set some text to print +$txt = <<Write(0, $txt, '', 0, 'C', true, 0, false, false, 0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_003.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_004.php b/TCPDF/examples/example_004.php new file mode 100644 index 0000000..88e08c1 --- /dev/null +++ b/TCPDF/examples/example_004.php @@ -0,0 +1,121 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 004'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 004', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 11); + +// add a page +$pdf->AddPage(); + +//Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M') + +// test Cell stretching +$pdf->Cell(0, 0, 'TEST CELL STRETCH: no stretch', 1, 1, 'C', 0, '', 0); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3); +$pdf->Cell(0, 0, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4); + +$pdf->Ln(5); + +$pdf->Cell(45, 0, 'TEST CELL STRETCH: scaling', 1, 1, 'C', 0, '', 1); +$pdf->Cell(45, 0, 'TEST CELL STRETCH: force scaling', 1, 1, 'C', 0, '', 2); +$pdf->Cell(45, 0, 'TEST CELL STRETCH: spacing', 1, 1, 'C', 0, '', 3); +$pdf->Cell(45, 0, 'TEST CELL STRETCH: force spacing', 1, 1, 'C', 0, '', 4); + +$pdf->AddPage(); + +// example using general stretching and spacing + +for ($stretching = 90; $stretching <= 110; $stretching += 10) { + for ($spacing = -0.254; $spacing <= 0.254; $spacing += 0.254) { + + // set general stretching (scaling) value + $pdf->setFontStretching($stretching); + + // set general spacing value + $pdf->setFontSpacing($spacing); + + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, no stretch', 1, 1, 'C', 0, '', 0); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, scaling', 1, 1, 'C', 0, '', 1); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, force scaling', 1, 1, 'C', 0, '', 2); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, spacing', 1, 1, 'C', 0, '', 3); + $pdf->Cell(0, 0, 'Stretching '.$stretching.'%, Spacing '.sprintf('%+.3F', $spacing).'mm, force spacing', 1, 1, 'C', 0, '', 4); + + $pdf->Ln(2); + } +} + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_004.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_005.php b/TCPDF/examples/example_005.php new file mode 100644 index 0000000..5a592d1 --- /dev/null +++ b/TCPDF/examples/example_005.php @@ -0,0 +1,158 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 005'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 005', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 10); + +// add a page +$pdf->AddPage(); + +// set cell padding +$pdf->setCellPaddings(1, 1, 1, 1); + +// set cell margins +$pdf->setCellMargins(1, 1, 1, 1); + +// set color for background +$pdf->SetFillColor(255, 255, 127); + +// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0) + +// set some text for example +$txt = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'; + +// Multicell test +$pdf->MultiCell(55, 5, '[LEFT] '.$txt, 1, 'L', 1, 0, '', '', true); +$pdf->MultiCell(55, 5, '[RIGHT] '.$txt, 1, 'R', 0, 1, '', '', true); +$pdf->MultiCell(55, 5, '[CENTER] '.$txt, 1, 'C', 0, 0, '', '', true); +$pdf->MultiCell(55, 5, '[JUSTIFY] '.$txt."\n", 1, 'J', 1, 2, '' ,'', true); +$pdf->MultiCell(55, 5, '[DEFAULT] '.$txt, 1, '', 0, 1, '', '', true); + +$pdf->Ln(4); + +// set color for background +$pdf->SetFillColor(220, 255, 220); + +// Vertical alignment +$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - TOP] '.$txt, 1, 'J', 1, 0, '', '', true, 0, false, true, 40, 'T'); +$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - MIDDLE] '.$txt, 1, 'J', 1, 0, '', '', true, 0, false, true, 40, 'M'); +$pdf->MultiCell(55, 40, '[VERTICAL ALIGNMENT - BOTTOM] '.$txt, 1, 'J', 1, 1, '', '', true, 0, false, true, 40, 'B'); + +$pdf->Ln(4); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// set color for background +$pdf->SetFillColor(215, 235, 255); + +// set some text for example +$txt = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. + +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.'; + +// print a blox of text using multicell() +$pdf->MultiCell(80, 5, $txt."\n", 1, 'J', 1, 1, '' ,'', true); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// AUTO-FITTING + +// set color for background +$pdf->SetFillColor(255, 235, 235); + +// Fit text on cell by reducing font size +$pdf->MultiCell(55, 60, '[FIT CELL] '.$txt."\n", 1, 'J', 1, 1, 125, 145, true, 0, false, true, 60, 'M', true); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// CUSTOM PADDING + +// set color for background +$pdf->SetFillColor(255, 255, 215); + +// set font +$pdf->SetFont('helvetica', '', 8); + +// set cell padding +$pdf->setCellPaddings(2, 4, 6, 8); + +$txt = "CUSTOM PADDING:\nLeft=2, Top=4, Right=6, Bottom=8\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue.\n"; + +$pdf->MultiCell(55, 5, $txt, 1, 'J', 1, 2, 125, 210, true); + +// move pointer to last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_005.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_006.php b/TCPDF/examples/example_006.php new file mode 100644 index 0000000..481f70e --- /dev/null +++ b/TCPDF/examples/example_006.php @@ -0,0 +1,330 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 006'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 006', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('dejavusans', '', 10); + +// add a page +$pdf->AddPage(); + +// writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='') +// writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true) + +// create some HTML content +$html = '

    HTML Example

    +Some special characters: < € € € & è è © > \\slash \\\\double-slash \\\\\\triple-slash +

    List

    +List example: +
      +
    1. test alt attribute test image
    2. +
    3. bold text
    4. +
    5. italic text
    6. +
    7. underlined text
    8. +
    9. bbibiubib
    10. +
    11. link to http://www.tecnick.com
    12. +
    13. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
      Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
    14. +
    15. SUBLIST +
        +
      1. row one +
          +
        • sublist
        • +
        +
      2. +
      3. row two
      4. +
      +
    16. +
    17. TEST line through
    18. +
    19. font + 3
    20. +
    21. small text normal small text normal subscript normal superscript normal
    22. +
    +
    +
    Coffee
    +
    Black hot drink
    +
    Milk
    +
    White cold drink
    +
    +
    IMAGES
    +test alt attributetest alt attributetest alt attribute +
    '; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + + +// output some RTL HTML content +$html = '
    The words “מזל [mazel] טוב [tov]” mean “Congratulations!”
    '; +$pdf->writeHTML($html, true, false, true, false, ''); + +// test some inline CSS +$html = '

    This is just an example of html code to demonstrate some supported CSS inline styles. +bold text +line-trough +underline and line-trough +color +background color +bold +xx-small +x-small +small +medium +large +x-large +xx-large +

    '; + +$pdf->writeHTML($html, true, false, true, false, ''); + +// reset pointer to the last page +$pdf->lastPage(); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// Print a table + +// add a page +$pdf->AddPage(); + +// create some HTML content +$subtable = '
  • ab
    cd
    '; + +$html = '

    HTML TABLE:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #RIGHT alignLEFT align4A
    1A1 example link column span. One two tree four five six seven eight nine ten.
    line after br
    small text normal subscript normal superscript normal bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
    1. first
      1. sublist
      2. sublist
    2. second
    small small small small small small small small small small small small small small small small small small small small
    4B
    '.$subtable.'A2 € € € & è è
    A2 € € € & è è
    Red Yellow BG4C
    1A2AA
    2AB
    2AC
    4D
    1B4E
    1C2C3C4F
    '; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// Print some HTML Cells + +$html = 'red green blue
    red green blue'; + +$pdf->SetFillColor(255,255,0); + +$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 0, true, 'L', true); +$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 1, true, 'C', true); +$pdf->writeHTMLCell(0, 0, '', '', $html, 'LRTB', 1, 0, true, 'R', true); + +// reset pointer to the last page +$pdf->lastPage(); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// Print a table + +// add a page +$pdf->AddPage(); + +// create some HTML content +$html = '

    Image alignments on HTML table

    + + + + + + + + +
    '; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// reset pointer to the last page +$pdf->lastPage(); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// Print all HTML colors + +// add a page +$pdf->AddPage(); + +$textcolors = '

    HTML Text Colors

    '; +$bgcolors = '

    HTML Background Colors

    '; + +foreach(TCPDF_COLORS::$webcolor as $k => $v) { + $textcolors .= ''.$v.' '; + $bgcolors .= ''.$v.' '; +} + +// output the HTML content +$pdf->writeHTML($textcolors, true, false, true, false, ''); +$pdf->writeHTML($bgcolors, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// Test word-wrap + +// create some HTML content +$html = '
    +

    Various tests

    +link to page 2
    +thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword thisisanotherverylongword thisisaverylongword'; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// Test fonts nesting +$html1 = 'Default Courier Helvetica Times dejavusans Times Helvetica Courier Default'; +$html2 = 'small text normal small text normal subscript normal superscript normal'; +$html3 = 'The quick brown fox jumps over the lazy dog.'; + +$html = $html1.'
    '.$html2.'
    '.$html3.'
    '.$html3.'
    '.$html2; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// test pre tag + +// add a page +$pdf->AddPage(); + +$html = << +Hello World!
    +Hello + +
    +int main() {
    +    printf("HelloWorld");
    +    return 0;
    +}
    +
    +Monospace font, normal font, monospace font, normal font. +
    +
    DIV LEVEL 1
    DIV LEVEL 2
    DIV LEVEL 1
    +
    +SPAN LEVEL 1 SPAN LEVEL 2 SPAN LEVEL 1 +EOF; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// test custom bullet points for list + +// add a page +$pdf->AddPage(); + +$html = <<Test custom bullet image for list items +
      +
    • test custom bullet image
    • +
    • test custom bullet image
    • +
    • test custom bullet image
    • +
    • test custom bullet image
    • +
        +EOF; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_006.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_007.php b/TCPDF/examples/example_007.php new file mode 100644 index 0000000..97ebecb --- /dev/null +++ b/TCPDF/examples/example_007.php @@ -0,0 +1,113 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 007'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 007', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 12); + +// add a page +$pdf->AddPage(); + +// create columns content +$left_column = 'LEFT COLUMN left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column'; + +$right_column = 'RIGHT COLUMN right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column'; + +// writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true) + +// get current vertical position +$y = $pdf->getY(); + +// set color for background +$pdf->SetFillColor(255, 255, 200); + +// set color for text +$pdf->SetTextColor(0, 63, 127); + +// write the first column +$pdf->writeHTMLCell(80, '', '', $y, $left_column, 1, 0, 1, true, 'J', true); + +// set color for background +$pdf->SetFillColor(215, 235, 255); + +// set color for text +$pdf->SetTextColor(127, 31, 0); + +// write the second column +$pdf->writeHTMLCell(80, '', '', '', $right_column, 1, 1, 1, true, 'J', true); + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_007.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_008.php b/TCPDF/examples/example_008.php new file mode 100644 index 0000000..4349c38 --- /dev/null +++ b/TCPDF/examples/example_008.php @@ -0,0 +1,97 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 008'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 008', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set default font subsetting mode +$pdf->setFontSubsetting(true); + +// set font +$pdf->SetFont('freeserif', '', 12); + +// add a page +$pdf->AddPage(); + +// get esternal file content +$utf8text = file_get_contents('data/utf8test.txt', false); + +// set color for text +$pdf->SetTextColor(0, 63, 127); + +//Write($h, $txt, $link='', $fill=0, $align='', $ln=false, $stretch=0, $firstline=false, $firstblock=false, $maxh=0) + +// write the text +$pdf->Write(5, $utf8text, '', 0, '', false, 0, false, false, 0); + + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_008.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_009.php b/TCPDF/examples/example_009.php new file mode 100644 index 0000000..235dd72 --- /dev/null +++ b/TCPDF/examples/example_009.php @@ -0,0 +1,146 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 009'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 009', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// ------------------------------------------------------------------- + +// add a page +$pdf->AddPage(); + +// set JPEG quality +$pdf->setJPEGQuality(75); + +// Image method signature: +// Image($file, $x='', $y='', $w=0, $h=0, $type='', $link='', $align='', $resize=false, $dpi=300, $palign='', $ismask=false, $imgmask=false, $border=0, $fitbox=false, $hidden=false, $fitonpage=false) + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// Example of Image from data stream ('PHP rules') +$imgdata = base64_decode('iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABlBMVEUAAAD///+l2Z/dAAAASUlEQVR4XqWQUQoAIAxC2/0vXZDrEX4IJTRkb7lobNUStXsB0jIXIAMSsQnWlsV+wULF4Avk9fLq2r8a5HSE35Q3eO2XP1A1wQkZSgETvDtKdQAAAABJRU5ErkJggg=='); + +// The '@' character is used to indicate that follows an image data stream and not an image file name +$pdf->Image('@'.$imgdata); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// Image example with resizing +$pdf->Image('images/image_demo.jpg', 15, 140, 75, 113, 'JPG', 'http://www.tcpdf.org', '', true, 150, '', false, false, 1, false, false, false); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// test fitbox with all alignment combinations + +$horizontal_alignments = array('L', 'C', 'R'); +$vertical_alignments = array('T', 'M', 'B'); + +$x = 15; +$y = 35; +$w = 30; +$h = 30; +// test all combinations of alignments +for ($i = 0; $i < 3; ++$i) { + $fitbox = $horizontal_alignments[$i].' '; + $x = 15; + for ($j = 0; $j < 3; ++$j) { + $fitbox[1] = $vertical_alignments[$j]; + $pdf->Rect($x, $y, $w, $h, 'F', array(), array(128,255,128)); + $pdf->Image('images/image_demo.jpg', $x, $y, $w, $h, 'JPG', '', '', false, 300, '', false, false, 0, $fitbox, false, false); + $x += 32; // new column + } + $y += 32; // new row +} + +$x = 115; +$y = 35; +$w = 25; +$h = 50; +for ($i = 0; $i < 3; ++$i) { + $fitbox = $horizontal_alignments[$i].' '; + $x = 115; + for ($j = 0; $j < 3; ++$j) { + $fitbox[1] = $vertical_alignments[$j]; + $pdf->Rect($x, $y, $w, $h, 'F', array(), array(128,255,255)); + $pdf->Image('images/image_demo.jpg', $x, $y, $w, $h, 'JPG', '', '', false, 300, '', false, false, 0, $fitbox, false, false); + $x += 27; // new column + } + $y += 52; // new row +} + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// Stretching, position and alignment example + +$pdf->SetXY(110, 200); +$pdf->Image('images/image_demo.jpg', '', '', 40, 40, '', '', 'T', false, 300, '', false, false, 1, false, false, false); +$pdf->Image('images/image_demo.jpg', '', '', 40, 40, '', '', '', false, 300, '', false, false, 1, false, false, false); + +// ------------------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_009.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_010.php b/TCPDF/examples/example_010.php new file mode 100644 index 0000000..5b980b0 --- /dev/null +++ b/TCPDF/examples/example_010.php @@ -0,0 +1,150 @@ +AddPage(); + // disable existing columns + $this->resetColumns(); + // print chapter title + $this->ChapterTitle($num, $title); + // set columns + $this->setEqualColumns(3, 57); + // print chapter body + $this->ChapterBody($file, $mode); + } + + /** + * Set chapter title + * @param $num (int) chapter number + * @param $title (string) chapter title + * @public + */ + public function ChapterTitle($num, $title) { + $this->SetFont('helvetica', '', 14); + $this->SetFillColor(200, 220, 255); + $this->Cell(180, 6, 'Chapter '.$num.' : '.$title, 0, 1, '', 1); + $this->Ln(4); + } + + /** + * Print chapter body + * @param $file (string) name of the file containing the chapter body + * @param $mode (boolean) if true the chapter body is in HTML, otherwise in simple text. + * @public + */ + public function ChapterBody($file, $mode=false) { + $this->selectColumn(); + // get esternal file content + $content = file_get_contents($file, false); + // set font + $this->SetFont('times', '', 9); + $this->SetTextColor(50, 50, 50); + // print content + if ($mode) { + // ------ HTML MODE ------ + $this->writeHTML($content, true, false, true, false, 'J'); + } else { + // ------ TEXT MODE ------ + $this->Write(0, $content, '', 0, 'J', true, 0, false, true, 0); + } + $this->Ln(); + } +} // end of extended class + +// --------------------------------------------------------- +// EXAMPLE +// --------------------------------------------------------- +// create new PDF document +$pdf = new MC_TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 010'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 010', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// print TEXT +$pdf->PrintChapter(1, 'LOREM IPSUM [TEXT]', 'data/chapter_demo_1.txt', false); + +// print HTML +$pdf->PrintChapter(2, 'LOREM IPSUM [HTML]', 'data/chapter_demo_2.txt', true); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_010.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_011.php b/TCPDF/examples/example_011.php new file mode 100644 index 0000000..623ba3b --- /dev/null +++ b/TCPDF/examples/example_011.php @@ -0,0 +1,138 @@ +SetFillColor(255, 0, 0); + $this->SetTextColor(255); + $this->SetDrawColor(128, 0, 0); + $this->SetLineWidth(0.3); + $this->SetFont('', 'B'); + // Header + $w = array(40, 35, 40, 45); + $num_headers = count($header); + for($i = 0; $i < $num_headers; ++$i) { + $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', 1); + } + $this->Ln(); + // Color and font restoration + $this->SetFillColor(224, 235, 255); + $this->SetTextColor(0); + $this->SetFont(''); + // Data + $fill = 0; + foreach($data as $row) { + $this->Cell($w[0], 6, $row[0], 'LR', 0, 'L', $fill); + $this->Cell($w[1], 6, $row[1], 'LR', 0, 'L', $fill); + $this->Cell($w[2], 6, number_format($row[2]), 'LR', 0, 'R', $fill); + $this->Cell($w[3], 6, number_format($row[3]), 'LR', 0, 'R', $fill); + $this->Ln(); + $fill=!$fill; + } + $this->Cell(array_sum($w), 0, '', 'T'); + } +} + +// create new PDF document +$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 011'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 011', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 12); + +// add a page +$pdf->AddPage(); + +// column titles +$header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)'); + +// data loading +$data = $pdf->LoadData('data/table_data_demo.txt'); + +// print colored table +$pdf->ColoredTable($header, $data); + +// --------------------------------------------------------- + +// close and output PDF document +$pdf->Output('example_011.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_012.pdf b/TCPDF/examples/example_012.pdf new file mode 100644 index 0000000..eec8ee0 Binary files /dev/null and b/TCPDF/examples/example_012.pdf differ diff --git a/TCPDF/examples/example_012.php b/TCPDF/examples/example_012.php new file mode 100644 index 0000000..aaa196b --- /dev/null +++ b/TCPDF/examples/example_012.php @@ -0,0 +1,205 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 012'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// disable header and footer +$pdf->setPrintHeader(false); +$pdf->setPrintFooter(false); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 10); + +// add a page +$pdf->AddPage(); + +$style = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => '10,20,5,10', 'phase' => 10, 'color' => array(255, 0, 0)); +$style2 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0)); +$style3 = array('width' => 1, 'cap' => 'round', 'join' => 'round', 'dash' => '2,10', 'color' => array(255, 0, 0)); +$style4 = array('L' => 0, + 'T' => array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => '20,10', 'phase' => 10, 'color' => array(100, 100, 255)), + 'R' => array('width' => 0.50, 'cap' => 'round', 'join' => 'miter', 'dash' => 0, 'color' => array(50, 50, 127)), + 'B' => array('width' => 0.75, 'cap' => 'square', 'join' => 'miter', 'dash' => '30,10,5,10')); +$style5 = array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 64, 128)); +$style6 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => '10,10', 'color' => array(0, 128, 0)); +$style7 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 128, 0)); + +// Line +$pdf->Text(5, 4, 'Line examples'); +$pdf->Line(5, 10, 80, 30, $style); +$pdf->Line(5, 10, 5, 30, $style2); +$pdf->Line(5, 10, 80, 10, $style3); + +// Rect +$pdf->Text(100, 4, 'Rectangle examples'); +$pdf->Rect(100, 10, 40, 20, 'DF', $style4, array(220, 220, 200)); +$pdf->Rect(145, 10, 40, 20, 'D', array('all' => $style3)); + +// Curve +$pdf->Text(5, 34, 'Curve examples'); +$pdf->Curve(5, 40, 30, 55, 70, 45, 60, 75, null, $style6); +$pdf->Curve(80, 40, 70, 75, 150, 45, 100, 75, 'F', $style6); +$pdf->Curve(140, 40, 150, 55, 180, 45, 200, 75, 'DF', $style6, array(200, 220, 200)); + +// Circle and ellipse +$pdf->Text(5, 79, 'Circle and ellipse examples'); +$pdf->SetLineStyle($style5); +$pdf->Circle(25,105,20); +$pdf->Circle(25,105,10, 90, 180, null, $style6); +$pdf->Circle(25,105,10, 270, 360, 'F'); +$pdf->Circle(25,105,10, 270, 360, 'C', $style6); + +$pdf->SetLineStyle($style5); +$pdf->Ellipse(100,103,40,20); +$pdf->Ellipse(100,105,20,10, 0, 90, 180, null, $style6); +$pdf->Ellipse(100,105,20,10, 0, 270, 360, 'DF', $style6); + +$pdf->SetLineStyle($style5); +$pdf->Ellipse(175,103,30,15,45); +$pdf->Ellipse(175,105,15,7.50, 45, 90, 180, null, $style6); +$pdf->Ellipse(175,105,15,7.50, 45, 270, 360, 'F', $style6, array(220, 200, 200)); + +// Polygon +$pdf->Text(5, 129, 'Polygon examples'); +$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); +$pdf->Polygon(array(5,135,45,135,15,165)); +$pdf->Polygon(array(60,135,80,135,80,155,70,165,50,155), 'DF', array($style6, $style7, $style7, 0, $style6), array(220, 200, 200)); +$pdf->Polygon(array(120,135,140,135,150,155,110,155), 'D', array($style6, 0, $style7, $style6)); +$pdf->Polygon(array(160,135,190,155,170,155,200,160,160,165), 'DF', array('all' => $style6), array(220, 220, 220)); + +// Polygonal Line +$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 164))); +$pdf->PolyLine(array(80,165,90,160,100,165,110,160,120,165,130,160,140,165), 'D', array(), array()); + +// Regular polygon +$pdf->Text(5, 169, 'Regular polygon examples'); +$pdf->SetLineStyle($style5); +$pdf->RegularPolygon(20, 190, 15, 6, 0, 1, 'F'); +$pdf->RegularPolygon(55, 190, 15, 6); +$pdf->RegularPolygon(55, 190, 10, 6, 45, 0, 'DF', array($style6, 0, $style7, 0, $style7, $style7)); +$pdf->RegularPolygon(90, 190, 15, 3, 0, 1, 'DF', array('all' => $style5), array(200, 220, 200), 'F', array(255, 200, 200)); +$pdf->RegularPolygon(125, 190, 15, 4, 30, 1, null, array('all' => $style5), null, null, $style6); +$pdf->RegularPolygon(160, 190, 15, 10); + +// Star polygon +$pdf->Text(5, 209, 'Star polygon examples'); +$pdf->SetLineStyle($style5); +$pdf->StarPolygon(20, 230, 15, 20, 3, 0, 1, 'F'); +$pdf->StarPolygon(55, 230, 15, 12, 5); +$pdf->StarPolygon(55, 230, 7, 12, 5, 45, 0, 'DF', array('all' => $style7), array(220, 220, 200), 'F', array(255, 200, 200)); +$pdf->StarPolygon(90, 230, 15, 20, 6, 0, 1, 'DF', array('all' => $style5), array(220, 220, 200), 'F', array(255, 200, 200)); +$pdf->StarPolygon(125, 230, 15, 5, 2, 30, 1, null, array('all' => $style5), null, null, $style6); +$pdf->StarPolygon(160, 230, 15, 10, 3); +$pdf->StarPolygon(160, 230, 7, 50, 26); + +// Rounded rectangle +$pdf->Text(5, 249, 'Rounded rectangle examples'); +$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); +$pdf->RoundedRect(5, 255, 40, 30, 3.50, '1111', 'DF'); +$pdf->RoundedRect(50, 255, 40, 30, 6.50, '1000'); +$pdf->RoundedRect(95, 255, 40, 30, 10.0, '1111', null, $style6); +$pdf->RoundedRect(140, 255, 40, 30, 8.0, '0101', 'DF', $style6, array(200, 200, 200)); + +// Arrows +$pdf->Text(185, 249, 'Arrows'); +$pdf->SetLineStyle($style5); +$pdf->SetFillColor(255, 0, 0); +$pdf->Arrow(200, 280, 185, 266, 0, 5, 15); +$pdf->Arrow(200, 280, 190, 263, 1, 5, 15); +$pdf->Arrow(200, 280, 195, 261, 2, 5, 15); +$pdf->Arrow(200, 280, 200, 260, 3, 5, 15); + +// - . - . - . - . - . - . - . - . - . - . - . - . - . - . - + +// ellipse + +// add a page +$pdf->AddPage(); + +$pdf->Cell(0, 0, 'Arc of Ellipse'); + +// center of ellipse +$xc=100; +$yc=100; + +// X Y axis +$pdf->SetDrawColor(200, 200, 200); +$pdf->Line($xc-50, $yc, $xc+50, $yc); +$pdf->Line($xc, $yc-50, $xc, $yc+50); + +// ellipse axis +$pdf->SetDrawColor(200, 220, 255); +$pdf->Line($xc-50, $yc-50, $xc+50, $yc+50); +$pdf->Line($xc-50, $yc+50, $xc+50, $yc-50); + +// ellipse +$pdf->SetDrawColor(200, 255, 200); +$pdf->Ellipse($xc, $yc, 30, 15, 45, 0, 360, 'D', array(), array(), 2); + +// ellipse arc +$pdf->SetDrawColor(255, 0, 0); +$pdf->Ellipse($xc, $yc, 30, 15, 45, 45, 90, 'D', array(), array(), 2); + + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_012.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_013.php b/TCPDF/examples/example_013.php new file mode 100644 index 0000000..a472760 --- /dev/null +++ b/TCPDF/examples/example_013.php @@ -0,0 +1,229 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 013'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 013', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Graphic Transformations', '', 0, 'C', 1, 0, false, false, 0); + +// set font +$pdf->SetFont('helvetica', '', 10); + +// --- Scaling --------------------------------------------- +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(50, 70, 40, 10, 'D'); +$pdf->Text(50, 66, 'Scale'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +// Start Transformation +$pdf->StartTransform(); +// Scale by 150% centered by (50,80) which is the lower left corner of the rectangle +$pdf->ScaleXY(150, 50, 80); +$pdf->Rect(50, 70, 40, 10, 'D'); +$pdf->Text(50, 66, 'Scale'); +// Stop Transformation +$pdf->StopTransform(); + +// --- Translation ----------------------------------------- +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(125, 70, 40, 10, 'D'); +$pdf->Text(125, 66, 'Translate'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +// Start Transformation +$pdf->StartTransform(); +// Translate 7 to the right, 5 to the bottom +$pdf->Translate(7, 5); +$pdf->Rect(125, 70, 40, 10, 'D'); +$pdf->Text(125, 66, 'Translate'); +// Stop Transformation +$pdf->StopTransform(); + +// --- Rotation -------------------------------------------- +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(70, 100, 40, 10, 'D'); +$pdf->Text(70, 96, 'Rotate'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +// Start Transformation +$pdf->StartTransform(); +// Rotate 20 degrees counter-clockwise centered by (70,110) which is the lower left corner of the rectangle +$pdf->Rotate(20, 70, 110); +$pdf->Rect(70, 100, 40, 10, 'D'); +$pdf->Text(70, 96, 'Rotate'); +// Stop Transformation +$pdf->StopTransform(); + +// --- Skewing --------------------------------------------- +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(125, 100, 40, 10, 'D'); +$pdf->Text(125, 96, 'Skew'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +// Start Transformation +$pdf->StartTransform(); +// skew 30 degrees along the x-axis centered by (125,110) which is the lower left corner of the rectangle +$pdf->SkewX(30, 125, 110); +$pdf->Rect(125, 100, 40, 10, 'D'); +$pdf->Text(125, 96, 'Skew'); +// Stop Transformation +$pdf->StopTransform(); + +// --- Mirroring horizontally ------------------------------ +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(70, 130, 40, 10, 'D'); +$pdf->Text(70, 126, 'MirrorH'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +// Start Transformation +$pdf->StartTransform(); +// mirror horizontally with axis of reflection at x-position 70 (left side of the rectangle) +$pdf->MirrorH(70); +$pdf->Rect(70, 130, 40, 10, 'D'); +$pdf->Text(70, 126, 'MirrorH'); +// Stop Transformation +$pdf->StopTransform(); + +// --- Mirroring vertically -------------------------------- +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(125, 130, 40, 10, 'D'); +$pdf->Text(125, 126, 'MirrorV'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +// Start Transformation +$pdf->StartTransform(); +// mirror vertically with axis of reflection at y-position 140 (bottom side of the rectangle) +$pdf->MirrorV(140); +$pdf->Rect(125, 130, 40, 10, 'D'); +$pdf->Text(125, 126, 'MirrorV'); +// Stop Transformation +$pdf->StopTransform(); + +// --- Point reflection ------------------------------------ +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(70, 160, 40, 10, 'D'); +$pdf->Text(70, 156, 'MirrorP'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +// Start Transformation +$pdf->StartTransform(); +// point reflection at the lower left point of rectangle +$pdf->MirrorP(70,170); +$pdf->Rect(70, 160, 40, 10, 'D'); +$pdf->Text(70, 156, 'MirrorP'); +// Stop Transformation +$pdf->StopTransform(); + +// --- Mirroring against a straigth line described by a point (120, 120) and an angle -20° +$angle=-20; +$px=120; +$py=170; + +// just for visualisation: the straight line to mirror against + +$pdf->SetDrawColor(200); +$pdf->Line($px-1,$py-1,$px+1,$py+1); +$pdf->Line($px-1,$py+1,$px+1,$py-1); +$pdf->StartTransform(); +$pdf->Rotate($angle, $px, $py); +$pdf->Line($px-5, $py, $px+60, $py); +$pdf->StopTransform(); + +$pdf->SetDrawColor(200); +$pdf->SetTextColor(200); +$pdf->Rect(125, 160, 40, 10, 'D'); +$pdf->Text(125, 156, 'MirrorL'); +$pdf->SetDrawColor(0); +$pdf->SetTextColor(0); +//Start Transformation +$pdf->StartTransform(); +//mirror against the straight line +$pdf->MirrorL($angle, $px, $py); +$pdf->Rect(125, 160, 40, 10, 'D'); +$pdf->Text(125, 156, 'MirrorL'); +//Stop Transformation +$pdf->StopTransform(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_013.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_014.php b/TCPDF/examples/example_014.php new file mode 100644 index 0000000..27e4efc --- /dev/null +++ b/TCPDF/examples/example_014.php @@ -0,0 +1,194 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 014'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 014', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// IMPORTANT: disable font subsetting to allow users editing the document +$pdf->setFontSubsetting(false); + +// set font +$pdf->SetFont('helvetica', '', 10, '', false); + +// add a page +$pdf->AddPage(); + +/* +It is possible to create text fields, combo boxes, check boxes and buttons. +Fields are created at the current position and are given a name. +This name allows to manipulate them via JavaScript in order to perform some validation for instance. +*/ + +// set default form properties +$pdf->setFormDefaultProp(array('lineWidth'=>1, 'borderStyle'=>'solid', 'fillColor'=>array(255, 255, 200), 'strokeColor'=>array(255, 128, 128))); + +$pdf->SetFont('helvetica', 'BI', 18); +$pdf->Cell(0, 5, 'Example of Form', 0, 1, 'C'); +$pdf->Ln(10); + +$pdf->SetFont('helvetica', '', 12); + +// First name +$pdf->Cell(35, 5, 'First name:'); +$pdf->TextField('firstname', 50, 5); +$pdf->Ln(6); + +// Last name +$pdf->Cell(35, 5, 'Last name:'); +$pdf->TextField('lastname', 50, 5); +$pdf->Ln(6); + +// Gender +$pdf->Cell(35, 5, 'Gender:'); +$pdf->ComboBox('gender', 30, 5, array(array('', '-'), array('M', 'Male'), array('F', 'Female'))); +$pdf->Ln(6); + +// Drink +$pdf->Cell(35, 5, 'Drink:'); +//$pdf->RadioButton('drink', 5, array('readonly' => 'true'), array(), 'Water'); +$pdf->RadioButton('drink', 5, array(), array(), 'Water'); +$pdf->Cell(35, 5, 'Water'); +$pdf->Ln(6); +$pdf->Cell(35, 5, ''); +$pdf->RadioButton('drink', 5, array(), array(), 'Beer', true); +$pdf->Cell(35, 5, 'Beer'); +$pdf->Ln(6); +$pdf->Cell(35, 5, ''); +$pdf->RadioButton('drink', 5, array(), array(), 'Wine'); +$pdf->Cell(35, 5, 'Wine'); +$pdf->Ln(6); +$pdf->Cell(35, 5, ''); +$pdf->RadioButton('drink', 5, array(), array(), 'Milk'); +$pdf->Cell(35, 5, 'Milk'); +$pdf->Ln(10); + +// Newsletter +$pdf->Cell(35, 5, 'Newsletter:'); +$pdf->CheckBox('newsletter', 5, true, array(), array(), 'OK'); + +$pdf->Ln(10); +// Address +$pdf->Cell(35, 5, 'Address:'); +$pdf->TextField('address', 60, 18, array('multiline'=>true, 'lineWidth'=>0, 'borderStyle'=>'none'), array('v'=>'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'dv'=>'Lorem ipsum dolor sit amet, consectetur adipiscing elit.')); +$pdf->Ln(19); + +// Listbox +$pdf->Cell(35, 5, 'List:'); +$pdf->ListBox('listbox', 60, 15, array('', 'item1', 'item2', 'item3', 'item4', 'item5', 'item6', 'item7'), array('multipleSelection'=>'true')); +$pdf->Ln(20); + +// E-mail +$pdf->Cell(35, 5, 'E-mail:'); +$pdf->TextField('email', 50, 5); +$pdf->Ln(6); + +// Date of the day +$pdf->Cell(35, 5, 'Date:'); +$pdf->TextField('date', 30, 5, array(), array('v'=>date('Y-m-d'), 'dv'=>date('Y-m-d'))); +$pdf->Ln(10); + +$pdf->SetX(50); + +// Button to validate and print +$pdf->Button('print', 30, 10, 'Print', 'Print()', array('lineWidth'=>2, 'borderStyle'=>'beveled', 'fillColor'=>array(128, 196, 255), 'strokeColor'=>array(64, 64, 64))); + +// Reset Button +$pdf->Button('reset', 30, 10, 'Reset', array('S'=>'ResetForm'), array('lineWidth'=>2, 'borderStyle'=>'beveled', 'fillColor'=>array(128, 196, 255), 'strokeColor'=>array(64, 64, 64))); + +// Submit Button +$pdf->Button('submit', 30, 10, 'Submit', array('S'=>'SubmitForm', 'F'=>'http://localhost/printvars.php', 'Flags'=>array('ExportFormat')), array('lineWidth'=>2, 'borderStyle'=>'beveled', 'fillColor'=>array(128, 196, 255), 'strokeColor'=>array(64, 64, 64))); + +// Form validation functions +$js = <<IncludeJS($js); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_014.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_015.php b/TCPDF/examples/example_015.php new file mode 100644 index 0000000..4cc03ca --- /dev/null +++ b/TCPDF/examples/example_015.php @@ -0,0 +1,161 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 015'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 015', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// Bookmark($txt, $level=0, $y=-1, $page='', $style='', $color=array(0,0,0)) + +// set font +$pdf->SetFont('times', 'B', 20); + +// add a page +$pdf->AddPage(); + +// set a bookmark for the current position +$pdf->Bookmark('Chapter 1', 0, 0, '', 'B', array(0,64,128)); + +// print a line using Cell() +$pdf->Cell(0, 10, 'Chapter 1', 0, 1, 'L'); + +$pdf->SetFont('times', 'I', 14); +$pdf->Write(0, 'You can set PDF Bookmarks using the Bookmark() method. +You can set PDF Named Destinations using the setDestination() method.'); + +$pdf->SetFont('times', 'B', 20); + +// add other pages and bookmarks + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.1', 1, 0, '', '', array(0,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.1', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.2', 1, 0, '', '', array(0,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.2', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Sub-Paragraph 1.2.1', 2, 0, '', 'I', array(0,0,0)); +$pdf->Cell(0, 10, 'Sub-Paragraph 1.2.1', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.3', 1, 0, '', '', array(0,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.3', 0, 1, 'L'); + +$pdf->AddPage(); +// add a named destination so you can open this document at this page using the link: "example_015.pdf#chapter2" +$pdf->setDestination('chapter2', 0, ''); +// add a bookmark that points to a named destination +$pdf->Bookmark('Chapter 2', 0, 0, '', 'BI', array(128,0,0), -1, '#chapter2'); +$pdf->Cell(0, 10, 'Chapter 2', 0, 1, 'L'); +$pdf->SetFont('times', 'I', 14); +$pdf->Write(0, 'Once saved, you can open this document at this page using the link: "example_015.pdf#chapter2".'); + +$pdf->AddPage(); +$pdf->setDestination('chapter3', 0, ''); +$pdf->SetFont('times', 'B', 20); +$pdf->Bookmark('Chapter 3', 0, 0, '', 'B', array(0,64,128)); +$pdf->Cell(0, 10, 'Chapter 3', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->setDestination('chapter4', 0, ''); +$pdf->SetFont('times', 'B', 20); +$pdf->Bookmark('Chapter 4', 0, 0, '', 'B', array(0,64,128)); +$pdf->Cell(0, 10, 'Chapter 4', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Chapter 5', 0, 0, '', 'B', array(0,128,0)); +$pdf->Cell(0, 10, 'Chapter 5', 0, 1, 'L'); +$txt = 'Example of File Attachment. +Double click on the icon to open the attached file.'; +$pdf->SetFont('helvetica', '', 10); +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// attach an external file TXT file +$pdf->Annotation(20, 50, 5, 5, 'TXT file', array('Subtype'=>'FileAttachment', 'Name' => 'PushPin', 'FS' => 'data/utf8test.txt')); + +// attach an external file +$pdf->Annotation(50, 50, 5, 5, 'PDF file', array('Subtype'=>'FileAttachment', 'Name' => 'PushPin', 'FS' => 'example_012.pdf')); + +// add a bookmark that points to an embedded file +// NOTE: prefix the file name with the * character for generic file and with % character for PDF file +$pdf->Bookmark('TXT file', 0, 0, '', 'B', array(128,0,255), -1, '*utf8test.txt'); + +// add a bookmark that points to an embedded file +// NOTE: prefix the file name with the * character for generic file and with % character for PDF file +$pdf->Bookmark('PDF file', 0, 0, '', 'B', array(128,0,255), -1, '%example_012.pdf'); + +// add a bookmark that points to an external URL +$pdf->Bookmark('External URL', 0, 0, '', 'B', array(0,0,255), -1, 'http://www.tcpdf.org'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_015.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_016.php b/TCPDF/examples/example_016.php new file mode 100644 index 0000000..34284f2 --- /dev/null +++ b/TCPDF/examples/example_016.php @@ -0,0 +1,134 @@ +SetProtection(array('print', 'copy'), '', null, 0, null); + +// Example with public-key +// To open the document you need to install the private key (tcpdf.p12) on the Acrobat Reader. The password is: 1234 +//$pdf->SetProtection($permissions=array('print', 'copy'), $user_pass='', $owner_pass=null, $mode=1, $pubkeys=array(array('c' => 'file://../config/cert/tcpdf.crt', 'p' => array('print')))); + +// ********************************************************* + + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 016'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 016', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array('helvetica', '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array('helvetica', '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 16); + +// add a page +$pdf->AddPage(); + +// set some text to print +$txt = <<Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_016.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_017.php b/TCPDF/examples/example_017.php new file mode 100644 index 0000000..1324091 --- /dev/null +++ b/TCPDF/examples/example_017.php @@ -0,0 +1,117 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 017'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 017', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of independent Multicell() columns', '', 0, 'L', true, 0, false, false, 0); + +$pdf->Ln(5); + +$pdf->SetFont('times', '', 12); + +// create columns content +// create columns content +$left_column = '[LEFT COLUMN] left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column left column'."\n"; + +$right_column = '[RIGHT COLUMN] right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column right column'."\n"; + +// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0) + +// set color for background +$pdf->SetFillColor(255, 255, 200); + +// set color for text +$pdf->SetTextColor(0, 63, 127); + +// write the first column +$pdf->MultiCell(80, 0, $left_column, 1, 'J', 1, 0, '', '', true, 0, false, true, 0); + +// set color for background +$pdf->SetFillColor(215, 235, 255); + +// set color for text +$pdf->SetTextColor(127, 31, 0); + +// write the second column +$pdf->MultiCell(80, 0, $right_column, 1, 'J', 1, 1, '', '', true, 0, false, true, 0); + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_017.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_018.php b/TCPDF/examples/example_018.php new file mode 100644 index 0000000..a97a44a --- /dev/null +++ b/TCPDF/examples/example_018.php @@ -0,0 +1,128 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 018'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 018', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language dependent data: +$lg = Array(); +$lg['a_meta_charset'] = 'UTF-8'; +$lg['a_meta_dir'] = 'rtl'; +$lg['a_meta_language'] = 'fa'; +$lg['w_page'] = 'page'; + +// set some language-dependent strings (optional) +$pdf->setLanguageArray($lg); + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('dejavusans', '', 12); + +// add a page +$pdf->AddPage(); + +// Persian and English content +$htmlpersian = 'Persian example:
        سلام بالاخره مشکل PDF فارسی به طور کامل حل شد. اینم یک نمونش.
        مشکل حرف \"ژ\" در بعضی کلمات مانند کلمه ویژه نیز بر طرف شد.
        نگارش حروف لام و الف پشت سر هم نیز تصحیح شد.
        با تشکر از "Asuni Nicola" و محمد علی گل کار برای پشتیبانی زبان فارسی.'; +$pdf->WriteHTML($htmlpersian, true, 0, true, 0); + +// set LTR direction for english translation +$pdf->setRTL(false); + +$pdf->SetFontSize(10); + +// print newline +$pdf->Ln(); + +// Persian and English content +$htmlpersiantranslation = 'Hi, At last Problem of Persian PDF Solved completely. This is a example for it.
        Problem of "jeh" letter in some word like "ویژه" (=special) fix too.
        The joining of laa and alf letter fix now.
        Special thanks to "Nicola Asuni" and "Mohamad Ali Golkar" for Persian support.
        '; +$pdf->WriteHTML($htmlpersiantranslation, true, 0, true, 0); + +// Restore RTL direction +$pdf->setRTL(true); + +// set font +$pdf->SetFont('aefurat', '', 18); + +// print newline +$pdf->Ln(); + +// Arabic and English content +$pdf->Cell(0, 12, 'بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ',0,1,'C'); +$htmlcontent = 'تمَّ بِحمد الله حلّ مشكلة الكتابة باللغة العربية في ملفات الـPDF مع دعم الكتابة من اليمين إلى اليسار والحركَات .
        تم الحل بواسطة صالح المطرفي و Asuni Nicola . '; +$pdf->WriteHTML($htmlcontent, true, 0, true, 0); + +// set LTR direction for english translation +$pdf->setRTL(false); + +// print newline +$pdf->Ln(); + +$pdf->SetFont('aealarabiya', '', 18); + +// Arabic and English content +$htmlcontent2 = 'This is Arabic "العربية" Example With TCPDF.'; +$pdf->WriteHTML($htmlcontent2, true, 0, true, 0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_018.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_019.php b/TCPDF/examples/example_019.php new file mode 100644 index 0000000..a1d5f08 --- /dev/null +++ b/TCPDF/examples/example_019.php @@ -0,0 +1,98 @@ +SetDocInfoUnicode(true); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni [€]'); +$pdf->SetTitle('TCPDF Example 019'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 019', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language dependent data: +$lg = Array(); +$lg['a_meta_charset'] = 'ISO-8859-1'; +$lg['a_meta_dir'] = 'ltr'; +$lg['a_meta_language'] = 'en'; +$lg['w_page'] = 'page'; + +// set some language-dependent strings (optional) +$pdf->setLanguageArray($lg); + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 12); + +// add a page +$pdf->AddPage(); + +// set color for background +$pdf->SetFillColor(200, 255, 200); + +$txt = 'An alternative configuration file is used on this example. +Check the definition of the K_TCPDF_EXTERNAL_CONFIG constant on the source code.'; + +// print some text +$pdf->MultiCell(0, 0, $txt."\n", 1, 'J', 1, 1, '', '', true, 0, false, true, 0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_019.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_020.php b/TCPDF/examples/example_020.php new file mode 100644 index 0000000..6204f74 --- /dev/null +++ b/TCPDF/examples/example_020.php @@ -0,0 +1,146 @@ +getPage(); + $y_start = $this->GetY(); + + // write the left cell + $this->MultiCell(40, 0, $left, 1, 'R', 1, 2, '', '', true, 0); + + $page_end_1 = $this->getPage(); + $y_end_1 = $this->GetY(); + + $this->setPage($page_start); + + // write the right cell + $this->MultiCell(0, 0, $right, 1, 'J', 0, 1, $this->GetX() ,$y_start, true, 0); + + $page_end_2 = $this->getPage(); + $y_end_2 = $this->GetY(); + + // set the new row position by case + if (max($page_end_1,$page_end_2) == $page_start) { + $ynew = max($y_end_1, $y_end_2); + } elseif ($page_end_1 == $page_end_2) { + $ynew = max($y_end_1, $y_end_2); + } elseif ($page_end_1 > $page_end_2) { + $ynew = $y_end_1; + } else { + $ynew = $y_end_2; + } + + $this->setPage(max($page_end_1,$page_end_2)); + $this->SetXY($this->GetX(),$ynew); + } + +} + +// create new PDF document +$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 020'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 020', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 20); +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of text layout using Multicell()', '', 0, 'L', true, 0, false, false, 0); + +$pdf->Ln(5); + +$pdf->SetFont('times', '', 9); + +//$pdf->SetCellPadding(0); +//$pdf->SetLineWidth(2); + +// set color for background +$pdf->SetFillColor(255, 255, 200); + +$text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. + +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.'; + +// print some rows just as example +for ($i = 0; $i < 10; ++$i) { + $pdf->MultiRow('Row '.($i+1), $text."\n"); +} + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_020.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_021.php b/TCPDF/examples/example_021.php new file mode 100644 index 0000000..65e39fb --- /dev/null +++ b/TCPDF/examples/example_021.php @@ -0,0 +1,91 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 021'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 021', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 9); + +// add a page +$pdf->AddPage(); + +// create some HTML content +$html = '

        Example of HTML text flow

        Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

        A + B = C    ->    C - B = A    ->    C - A = B ->    A + B = C    ->    C - B = A    ->    C - A = B ->    A + B = C    ->    C - B = A    ->    C - A = B ->    A + B = C    ->    C - B = A    ->    C - A = B    ->    A + B = C    ->    C - B = A    ->    C - A = B ->    A + B = C    ->    C - B = A    ->    C - A = B ->    A + B = C    ->    C - B = A    ->    C - A = B ->    A + B = C    ->    C - B = A    ->    C - A = B

        BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined BoldItalicUnderlined'; + +// output the HTML content +$pdf->writeHTML($html, true, 0, true, 0); + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_021.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_022.php b/TCPDF/examples/example_022.php new file mode 100644 index 0000000..ca35d68 --- /dev/null +++ b/TCPDF/examples/example_022.php @@ -0,0 +1,146 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 022'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 022', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// check also the following methods: +// SetDrawColorArray() +// SetFillColorArray() +// SetTextColorArray() + +// set font +$pdf->SetFont('helvetica', 'B', 18); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of CMYK, RGB and Grayscale colours', '', 0, 'L', true, 0, false, false, 0); + +// define style for border +$border_style = array('all' => array('width' => 2, 'cap' => 'square', 'join' => 'miter', 'dash' => 0, 'phase' => 0)); + +// --- CMYK ------------------------------------------------ + +$pdf->SetDrawColor(50, 0, 0, 0); +$pdf->SetFillColor(100, 0, 0, 0); +$pdf->SetTextColor(100, 0, 0, 0); +$pdf->Rect(30, 60, 30, 30, 'DF', $border_style); +$pdf->Text(30, 92, 'Cyan'); + +$pdf->SetDrawColor(0, 50, 0, 0); +$pdf->SetFillColor(0, 100, 0, 0); +$pdf->SetTextColor(0, 100, 0, 0); +$pdf->Rect(70, 60, 30, 30, 'DF', $border_style); +$pdf->Text(70, 92, 'Magenta'); + +$pdf->SetDrawColor(0, 0, 50, 0); +$pdf->SetFillColor(0, 0, 100, 0); +$pdf->SetTextColor(0, 0, 100, 0); +$pdf->Rect(110, 60, 30, 30, 'DF', $border_style); +$pdf->Text(110, 92, 'Yellow'); + +$pdf->SetDrawColor(0, 0, 0, 50); +$pdf->SetFillColor(0, 0, 0, 100); +$pdf->SetTextColor(0, 0, 0, 100); +$pdf->Rect(150, 60, 30, 30, 'DF', $border_style); +$pdf->Text(150, 92, 'Black'); + +// --- RGB ------------------------------------------------- + +$pdf->SetDrawColor(255, 127, 127); +$pdf->SetFillColor(255, 0, 0); +$pdf->SetTextColor(255, 0, 0); +$pdf->Rect(30, 110, 30, 30, 'DF', $border_style); +$pdf->Text(30, 142, 'Red'); + +$pdf->SetDrawColor(127, 255, 127); +$pdf->SetFillColor(0, 255, 0); +$pdf->SetTextColor(0, 255, 0); +$pdf->Rect(70, 110, 30, 30, 'DF', $border_style); +$pdf->Text(70, 142, 'Green'); + +$pdf->SetDrawColor(127, 127, 255); +$pdf->SetFillColor(0, 0, 255); +$pdf->SetTextColor(0, 0, 255); +$pdf->Rect(110, 110, 30, 30, 'DF', $border_style); +$pdf->Text(110, 142, 'Blue'); + +// --- GRAY ------------------------------------------------ + +$pdf->SetDrawColor(191); +$pdf->SetFillColor(127); +$pdf->SetTextColor(127); +$pdf->Rect(30, 160, 30, 30, 'DF', $border_style); +$pdf->Text(30, 192, 'Gray'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_022.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_023.php b/TCPDF/examples/example_023.php new file mode 100644 index 0000000..dbb8b98 --- /dev/null +++ b/TCPDF/examples/example_023.php @@ -0,0 +1,113 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 023'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 023', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', 'BI', 14); + +// Start First Page Group +$pdf->startPageGroup(); + +// add a page +$pdf->AddPage(); + +// set some text to print +$txt = <<Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// add second page +$pdf->AddPage(); +$pdf->Cell(0, 10, 'This is the second page of group 1', 0, 1, 'L'); + +// Start Second Page Group +$pdf->startPageGroup(); + +// add some pages +$pdf->AddPage(); +$pdf->Cell(0, 10, 'This is the first page of group 2', 0, 1, 'L'); +$pdf->AddPage(); +$pdf->Cell(0, 10, 'This is the second page of group 2', 0, 1, 'L'); +$pdf->AddPage(); +$pdf->Cell(0, 10, 'This is the third page of group 2', 0, 1, 'L'); +$pdf->AddPage(); +$pdf->Cell(0, 10, 'This is the fourth page of group 2', 0, 1, 'L'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_023.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_024.php b/TCPDF/examples/example_024.php new file mode 100644 index 0000000..b60d12d --- /dev/null +++ b/TCPDF/examples/example_024.php @@ -0,0 +1,140 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 024'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 024', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 18); + +// add a page +$pdf->AddPage(); + +/* + * setVisibility() allows to restrict the rendering of some + * elements to screen or printout. This can be useful, for + * instance, to put a background image or color that will + * show on screen but won't print. + */ + +$txt = 'You can limit the visibility of PDF objects to screen or printer by using the setVisibility() method. +Check the print preview of this document to display the alternative text.'; + +$pdf->Write(0, $txt, '', 0, '', true, 0, false, false, 0); + +// change font size +$pdf->SetFontSize(40); + +// change text color +$pdf->SetTextColor(0,63,127); + +// set visibility only for screen +$pdf->setVisibility('screen'); + +// write something only for screen +$pdf->Write(0, '[This line is for display]', '', 0, 'C', true, 0, false, false, 0); + +// set visibility only for print +$pdf->setVisibility('print'); + +// change text color +$pdf->SetTextColor(127,0,0); + +// write something only for print +$pdf->Write(0, '[This line is for printout]', '', 0, 'C', true, 0, false, false, 0); + +// restore visibility +$pdf->setVisibility('all'); + +// --------------------------------------------------------- + +// LAYERS + +// start a new layer +$pdf->startLayer('layer1', true, true); + +// change font size +$pdf->SetFontSize(18); + +// change text color +$pdf->SetTextColor(0,127,0); + +$txt = 'Using the startLayer() method you can group PDF objects into layers. +This text is on "layer1".'; + +// write something +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// close the current layer +$pdf->endLayer(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_024.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_025.php b/TCPDF/examples/example_025.php new file mode 100644 index 0000000..1260d62 --- /dev/null +++ b/TCPDF/examples/example_025.php @@ -0,0 +1,118 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 025'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 025', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 12); + +// add a page +$pdf->AddPage(); + +$txt = 'You can set the transparency of PDF objects using the setAlpha() method.'; +$pdf->Write(0, $txt, '', 0, '', true, 0, false, false, 0); + +/* + * setAlpha() gives transparency support. You can set the + * alpha channel from 0 (fully transparent) to 1 (fully + * opaque). It applies to all elements (text, drawings, + * images). + */ + +$pdf->SetLineWidth(2); + +// draw opaque red square +$pdf->SetFillColor(255, 0, 0); +$pdf->SetDrawColor(127, 0, 0); +$pdf->Rect(30, 40, 60, 60, 'DF'); + +// set alpha to semi-transparency +$pdf->SetAlpha(0.5); + +// draw green square +$pdf->SetFillColor(0, 255, 0); +$pdf->SetDrawColor(0, 127, 0); +$pdf->Rect(50, 60, 60, 60, 'DF'); + +// draw blue square +$pdf->SetFillColor(0, 0, 255); +$pdf->SetDrawColor(0, 0, 127); +$pdf->Rect(70, 80, 60, 60, 'DF'); + +// draw jpeg image +$pdf->Image('images/image_demo.jpg', 90, 100, 60, 60, '', 'http://www.tcpdf.org', '', true, 72); + +// restore full opacity +$pdf->SetAlpha(1); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_025.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_026.php b/TCPDF/examples/example_026.php new file mode 100644 index 0000000..5646e91 --- /dev/null +++ b/TCPDF/examples/example_026.php @@ -0,0 +1,145 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 026'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 026', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 22); + +// add a page +$pdf->AddPage(); + +// set color for text stroke +$pdf->SetDrawColor(255,0,0); + + +$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=false); +$pdf->Write(0, 'Fill text', '', 0, '', true, 0, false, false, 0); + +$pdf->setTextRenderingMode($stroke=0.2, $fill=false, $clip=false); +$pdf->Write(0, 'Stroke text', '', 0, '', true, 0, false, false, 0); + +$pdf->setTextRenderingMode($stroke=0.2, $fill=true, $clip=false); +$pdf->Write(0, 'Fill, then stroke text', '', 0, '', true, 0, false, false, 0); + +$pdf->setTextRenderingMode($stroke=0, $fill=false, $clip=false); +$pdf->Write(0, 'Neither fill nor stroke text (invisible)', '', 0, '', true, 0, false, false, 0); + + +// * * * CLIPPING MODES * * * * * * * * * * * * * * * * * * + +$pdf->StartTransform(); +$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=true); +$pdf->Write(0, 'Fill text and add to path for clipping', '', 0, '', true, 0, false, false, 0); +$pdf->Image('images/image_demo.jpg', 15, 65, 170, 10, '', '', '', true, 72); +$pdf->StopTransform(); + +$pdf->StartTransform(); +$pdf->setTextRenderingMode($stroke=0.3, $fill=false, $clip=true); +$pdf->Write(0, 'Stroke text and add to path for clipping', '', 0, '', true, 0, false, false, 0); +$pdf->Image('images/image_demo.jpg', 15, 75, 170, 10, '', '', '', true, 72); +$pdf->StopTransform(); + +$pdf->StartTransform(); +$pdf->setTextRenderingMode($stroke=0.3, $fill=true, $clip=true); +$pdf->Write(0, 'Fill, then stroke text and add to path for clipping', '', 0, '', true, 0, false, false, 0); +$pdf->Image('images/image_demo.jpg', 15, 85, 170, 10, '', '', '', true, 72); +$pdf->StopTransform(); + +$pdf->StartTransform(); +$pdf->setTextRenderingMode($stroke=0, $fill=false, $clip=true); +$pdf->Write(0, 'Add text to path for clipping', '', 0, '', true, 0, false, false, 0); +$pdf->Image('images/image_demo.jpg', 15, 95, 170, 10, '', '', '', true, 72); +$pdf->StopTransform(); + +// reset text rendering mode +$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=false); + +// * * * HTML MODE * * * * * * * * * * * * * * * * * * * * * + +// The following attributes were added to HTML: +// stroke : stroke width +// strokecolor : stroke color +// fill : true (default) to fill the font, false otherwise + + +// create some HTML content with text rendering modes +$html = 'HTML Fill text
        '; +$html .= 'HTML Stroke text
        '; +$html .= 'HTML Fill, then stroke text
        '; +$html .= 'HTML Neither fill nor stroke text (invisible)
        '; + +// output the HTML content +$pdf->writeHTML($html, true, 0, true, 0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_026.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_027.php b/TCPDF/examples/example_027.php new file mode 100644 index 0000000..a237074 --- /dev/null +++ b/TCPDF/examples/example_027.php @@ -0,0 +1,418 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 027'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 027', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set a barcode on the page footer +$pdf->setBarcode(date('Y-m-d H:i:s')); + +// set font +$pdf->SetFont('helvetica', '', 11); + +// add a page +$pdf->AddPage(); + +// print a message +$txt = "You can also export 1D barcodes in other formats (PNG, SVG, HTML). Check the examples inside the barcodes directory.\n"; +$pdf->MultiCell(70, 50, $txt, 0, 'J', false, 1, 125, 30, true, 0, false, true, 0, 'T', false); +$pdf->SetY(30); + +// ----------------------------------------------------------------------------- + +$pdf->SetFont('helvetica', '', 10); + +// define barcode style +$style = array( + 'position' => '', + 'align' => 'C', + 'stretch' => false, + 'fitwidth' => true, + 'cellfitalign' => '', + 'border' => true, + 'hpadding' => 'auto', + 'vpadding' => 'auto', + 'fgcolor' => array(0,0,0), + 'bgcolor' => false, //array(255,255,255), + 'text' => true, + 'font' => 'helvetica', + 'fontsize' => 8, + 'stretchtext' => 4 +); + +// PRINT VARIOUS 1D BARCODES + +// CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. +$pdf->Cell(0, 0, 'CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9', 0, 1); +$pdf->write1DBarcode('CODE 39', 'C39', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 39 + CHECKSUM +$pdf->Cell(0, 0, 'CODE 39 + CHECKSUM', 0, 1); +$pdf->write1DBarcode('CODE 39 +', 'C39+', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 39 EXTENDED +$pdf->Cell(0, 0, 'CODE 39 EXTENDED', 0, 1); +$pdf->write1DBarcode('CODE 39 E', 'C39E', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 39 EXTENDED + CHECKSUM +$pdf->Cell(0, 0, 'CODE 39 EXTENDED + CHECKSUM', 0, 1); +$pdf->write1DBarcode('CODE 39 E+', 'C39E+', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 93 - USS-93 +$pdf->Cell(0, 0, 'CODE 93 - USS-93', 0, 1); +$pdf->write1DBarcode('TEST93', 'C93', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// Standard 2 of 5 +$pdf->Cell(0, 0, 'Standard 2 of 5', 0, 1); +$pdf->write1DBarcode('1234567', 'S25', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// Standard 2 of 5 + CHECKSUM +$pdf->Cell(0, 0, 'Standard 2 of 5 + CHECKSUM', 0, 1); +$pdf->write1DBarcode('1234567', 'S25+', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// Interleaved 2 of 5 +$pdf->Cell(0, 0, 'Interleaved 2 of 5', 0, 1); +$pdf->write1DBarcode('1234567', 'I25', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// Interleaved 2 of 5 + CHECKSUM +$pdf->Cell(0, 0, 'Interleaved 2 of 5 + CHECKSUM', 0, 1); +$pdf->write1DBarcode('1234567', 'I25+', '', '', '', 18, 0.4, $style, 'N'); + + +// add a page ---------- +$pdf->AddPage(); + +// CODE 128 AUTO +$pdf->Cell(0, 0, 'CODE 128 AUTO', 0, 1); +$pdf->write1DBarcode('CODE 128 AUTO', 'C128', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 128 A +$pdf->Cell(0, 0, 'CODE 128 A', 0, 1); +$pdf->write1DBarcode('CODE 128 A', 'C128A', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 128 B +$pdf->Cell(0, 0, 'CODE 128 B', 0, 1); +$pdf->write1DBarcode('CODE 128 B', 'C128B', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 128 C +$pdf->Cell(0, 0, 'CODE 128 C', 0, 1); +$pdf->write1DBarcode('0123456789', 'C128C', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// EAN 8 +$pdf->Cell(0, 0, 'EAN 8', 0, 1); +$pdf->write1DBarcode('1234567', 'EAN8', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// EAN 13 +$pdf->Cell(0, 0, 'EAN 13', 0, 1); +$pdf->write1DBarcode('1234567890128', 'EAN13', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// UPC-A +$pdf->Cell(0, 0, 'UPC-A', 0, 1); +$pdf->write1DBarcode('12345678901', 'UPCA', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// UPC-E +$pdf->Cell(0, 0, 'UPC-E', 0, 1); +$pdf->write1DBarcode('04210000526', 'UPCE', '', '', '', 18, 0.4, $style, 'N'); + +// add a page ---------- +$pdf->AddPage(); + +// 5-Digits UPC-Based Extension +$pdf->Cell(0, 0, '5-Digits UPC-Based Extension', 0, 1); +$pdf->write1DBarcode('51234', 'EAN5', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// 2-Digits UPC-Based Extension +$pdf->Cell(0, 0, '2-Digits UPC-Based Extension', 0, 1); +$pdf->write1DBarcode('34', 'EAN2', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// MSI +$pdf->Cell(0, 0, 'MSI', 0, 1); +$pdf->write1DBarcode('80523', 'MSI', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// MSI + CHECKSUM (module 11) +$pdf->Cell(0, 0, 'MSI + CHECKSUM (module 11)', 0, 1); +$pdf->write1DBarcode('80523', 'MSI+', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODABAR +$pdf->Cell(0, 0, 'CODABAR', 0, 1); +$pdf->write1DBarcode('123456789', 'CODABAR', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// CODE 11 +$pdf->Cell(0, 0, 'CODE 11', 0, 1); +$pdf->write1DBarcode('123-456-789', 'CODE11', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// PHARMACODE +$pdf->Cell(0, 0, 'PHARMACODE', 0, 1); +$pdf->write1DBarcode('789', 'PHARMA', '', '', '', 18, 0.4, $style, 'N'); + +$pdf->Ln(); + +// PHARMACODE TWO-TRACKS +$pdf->Cell(0, 0, 'PHARMACODE TWO-TRACKS', 0, 1); +$pdf->write1DBarcode('105', 'PHARMA2T', '', '', '', 18, 2, $style, 'N'); + +// add a page ---------- +$pdf->AddPage(); + +// IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200 +$pdf->Cell(0, 0, 'IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200', 0, 1); +$pdf->write1DBarcode('01234567094987654321-01234567891', 'IMB', '', '', '', 15, 0.6, $style, 'N'); + +$pdf->Ln(); + +// POSTNET +$pdf->Cell(0, 0, 'POSTNET', 0, 1); +$pdf->write1DBarcode('98000', 'POSTNET', '', '', '', 15, 0.6, $style, 'N'); + +$pdf->Ln(); + +// PLANET +$pdf->Cell(0, 0, 'PLANET', 0, 1); +$pdf->write1DBarcode('98000', 'PLANET', '', '', '', 15, 0.6, $style, 'N'); + +$pdf->Ln(); + +// RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) +$pdf->Cell(0, 0, 'RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)', 0, 1); +$pdf->write1DBarcode('SN34RD1A', 'RMS4CC', '', '', '', 15, 0.6, $style, 'N'); + +$pdf->Ln(); + +// KIX (Klant index - Customer index) +$pdf->Cell(0, 0, 'KIX (Klant index - Customer index)', 0, 1); +$pdf->write1DBarcode('SN34RDX1A', 'KIX', '', '', '', 15, 0.6, $style, 'N'); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// TEST BARCODE ALIGNMENTS + +// add a page +$pdf->AddPage(); + +// set a background color +$style['bgcolor'] = array(255,255,240); +$style['fgcolor'] = array(127,0,0); + +// Left position +$style['position'] = 'L'; +$pdf->write1DBarcode('LEFT', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Center position +$style['position'] = 'C'; +$pdf->write1DBarcode('CENTER', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Right position +$style['position'] = 'R'; +$pdf->write1DBarcode('RIGHT', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); +// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + +$style['fgcolor'] = array(0,127,0); +$style['position'] = ''; +$style['stretch'] = false; // disable stretch +$style['fitwidth'] = false; // disable fitwidth + +// Left alignment +$style['align'] = 'L'; +$pdf->write1DBarcode('LEFT', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Center alignment +$style['align'] = 'C'; +$pdf->write1DBarcode('CENTER', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Right alignment +$style['align'] = 'R'; +$pdf->write1DBarcode('RIGHT', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); +// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + +$style['fgcolor'] = array(0,64,127); +$style['position'] = ''; +$style['stretch'] = false; // disable stretch +$style['fitwidth'] = true; // disable fitwidth + +// Left alignment +$style['cellfitalign'] = 'L'; +$pdf->write1DBarcode('LEFT', 'C128A', 105, '', 90, 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Center alignment +$style['cellfitalign'] = 'C'; +$pdf->write1DBarcode('CENTER', 'C128A', 105, '', 90, 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Right alignment +$style['cellfitalign'] = 'R'; +$pdf->write1DBarcode('RIGHT', 'C128A', 105, '', 90, 15, 0.4, $style, 'N'); + +$pdf->Ln(2); +// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + +$style['fgcolor'] = array(127,0,127); + +// Left alignment +$style['position'] = 'L'; +$pdf->write1DBarcode('LEFT', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Center alignment +$style['position'] = 'C'; +$pdf->write1DBarcode('CENTER', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +$pdf->Ln(2); + +// Right alignment +$style['position'] = 'R'; +$pdf->write1DBarcode('RIGHT', 'C128A', '', '', '', 15, 0.4, $style, 'N'); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// TEST BARCODE STYLE + +// define barcode style +$style = array( + 'position' => '', + 'align' => '', + 'stretch' => true, + 'fitwidth' => false, + 'cellfitalign' => '', + 'border' => true, + 'hpadding' => 'auto', + 'vpadding' => 'auto', + 'fgcolor' => array(0,0,128), + 'bgcolor' => array(255,255,128), + 'text' => true, + 'label' => 'CUSTOM LABEL', + 'font' => 'helvetica', + 'fontsize' => 8, + 'stretchtext' => 4 +); + +// CODE 39 EXTENDED + CHECKSUM +$pdf->Cell(0, 0, 'CODE 39 EXTENDED + CHECKSUM', 0, 1); +$pdf->SetLineStyle(array('width' => 1, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0))); +$pdf->write1DBarcode('CODE 39 E+', 'C39E+', '', '', 120, 25, 0.4, $style, 'N'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_027.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_028.php b/TCPDF/examples/example_028.php new file mode 100644 index 0000000..f250ac5 --- /dev/null +++ b/TCPDF/examples/example_028.php @@ -0,0 +1,138 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 028'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// remove default header/footer +$pdf->setPrintHeader(false); +$pdf->setPrintFooter(false); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(10, PDF_MARGIN_TOP, 10); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +$pdf->SetDisplayMode('fullpage', 'SinglePage', 'UseNone'); + +// set font +$pdf->SetFont('times', 'B', 20); + +$pdf->AddPage('P', 'A4'); +$pdf->Cell(0, 0, 'A4 PORTRAIT', 1, 1, 'C'); + +$pdf->AddPage('L', 'A4'); +$pdf->Cell(0, 0, 'A4 LANDSCAPE', 1, 1, 'C'); + +$pdf->AddPage('P', 'A5'); +$pdf->Cell(0, 0, 'A5 PORTRAIT', 1, 1, 'C'); + +$pdf->AddPage('L', 'A5'); +$pdf->Cell(0, 0, 'A5 LANDSCAPE', 1, 1, 'C'); + +$pdf->AddPage('P', 'A6'); +$pdf->Cell(0, 0, 'A6 PORTRAIT', 1, 1, 'C'); + +$pdf->AddPage('L', 'A6'); +$pdf->Cell(0, 0, 'A6 LANDSCAPE', 1, 1, 'C'); + +$pdf->AddPage('P', 'A7'); +$pdf->Cell(0, 0, 'A7 PORTRAIT', 1, 1, 'C'); + +$pdf->AddPage('L', 'A7'); +$pdf->Cell(0, 0, 'A7 LANDSCAPE', 1, 1, 'C'); + + +// --- test backward editing --- + + +$pdf->setPage(1, true); +$pdf->SetY(50); +$pdf->Cell(0, 0, 'A4 test', 1, 1, 'C'); + +$pdf->setPage(2, true); +$pdf->SetY(50); +$pdf->Cell(0, 0, 'A4 test', 1, 1, 'C'); + +$pdf->setPage(3, true); +$pdf->SetY(50); +$pdf->Cell(0, 0, 'A5 test', 1, 1, 'C'); + +$pdf->setPage(4, true); +$pdf->SetY(50); +$pdf->Cell(0, 0, 'A5 test', 1, 1, 'C'); + +$pdf->setPage(5, true); +$pdf->SetY(50); +$pdf->Cell(0, 0, 'A6 test', 1, 1, 'C'); + +$pdf->setPage(6, true); +$pdf->SetY(50); +$pdf->Cell(0, 0, 'A6 test', 1, 1, 'C'); + +$pdf->setPage(7, true); +$pdf->SetY(40); +$pdf->Cell(0, 0, 'A7 test', 1, 1, 'C'); + +$pdf->setPage(8, true); +$pdf->SetY(40); +$pdf->Cell(0, 0, 'A7 test', 1, 1, 'C'); + +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_028.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_029.php b/TCPDF/examples/example_029.php new file mode 100644 index 0000000..33be97e --- /dev/null +++ b/TCPDF/examples/example_029.php @@ -0,0 +1,124 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 029'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 029', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set array for viewer preferences +$preferences = array( + 'HideToolbar' => true, + 'HideMenubar' => true, + 'HideWindowUI' => true, + 'FitWindow' => true, + 'CenterWindow' => true, + 'DisplayDocTitle' => true, + 'NonFullScreenPageMode' => 'UseNone', // UseNone, UseOutlines, UseThumbs, UseOC + 'ViewArea' => 'CropBox', // CropBox, BleedBox, TrimBox, ArtBox + 'ViewClip' => 'CropBox', // CropBox, BleedBox, TrimBox, ArtBox + 'PrintArea' => 'CropBox', // CropBox, BleedBox, TrimBox, ArtBox + 'PrintClip' => 'CropBox', // CropBox, BleedBox, TrimBox, ArtBox + 'PrintScaling' => 'AppDefault', // None, AppDefault + 'Duplex' => 'DuplexFlipLongEdge', // Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge + 'PickTrayByPDFSize' => true, + 'PrintPageRange' => array(1,1,2,3), + 'NumCopies' => 2 +); + +// Check the example n. 60 for advanced page settings + +// set pdf viewer preferences +$pdf->setViewerPreferences($preferences); + +// set font +$pdf->SetFont('times', '', 14); + +// add a page +$pdf->AddPage(); + +// print a line +$pdf->Cell(0, 12, 'DISPLAY PREFERENCES - PAGE 1', 1, 1, 'C'); + +$pdf->Ln(5); + +$pdf->Write(0, 'You can use the setViewerPreferences() method to change viewer preferences.', '', 0, 'L', true, 0, false, false, 0); + +// add a page +$pdf->AddPage(); +// print a line +$pdf->Cell(0, 12, 'DISPLAY PREFERENCES - PAGE 2', 0, 0, 'C'); + +// add a page +$pdf->AddPage(); +// print a line +$pdf->Cell(0, 12, 'DISPLAY PREFERENCES - PAGE 3', 0, 0, 'C'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_029.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_030.php b/TCPDF/examples/example_030.php new file mode 100644 index 0000000..ed4e799 --- /dev/null +++ b/TCPDF/examples/example_030.php @@ -0,0 +1,188 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 030'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 030', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// --- first page ------------------------------------------ + +// add a page +$pdf->AddPage(); + +$pdf->Cell(0, 0, 'TCPDF Gradients', 0, 1, 'C', 0, '', 0, false, 'T', 'M'); + +// set colors for gradients (r,g,b) or (grey 0-255) +$red = array(255, 0, 0); +$blue = array(0, 0, 200); +$yellow = array(255, 255, 0); +$green = array(0, 255, 0); +$white = array(255); +$black = array(0); + +// set the coordinates x1,y1,x2,y2 of the gradient (see linear_gradient_coords.jpg) +$coords = array(0, 0, 1, 0); + +// paint a linear gradient +$pdf->LinearGradient(20, 45, 80, 80, $red, $blue, $coords); + +// write label +$pdf->Text(20, 130, 'LinearGradient()'); + +// set the coordinates fx,fy,cx,cy,r of the gradient (see radial_gradient_coords.jpg) +$coords = array(0.5, 0.5, 1, 1, 1.2); + +// paint a radial gradient +$pdf->RadialGradient(110, 45, 80, 80, $white, $black, $coords); + +// write label +$pdf->Text(110, 130, 'RadialGradient()'); + +// paint a coons patch mesh with default coordinates +$pdf->CoonsPatchMesh(20, 155, 80, 80, $yellow, $blue, $green, $red); + +// write label +$pdf->Text(20, 240, 'CoonsPatchMesh()'); + +// set the coordinates for the cubic Bézier points x1,y1 ... x12, y12 of the patch (see coons_patch_mesh_coords.jpg) +$coords = array( + 0.00,0.00, 0.33,0.20, //lower left + 0.67,0.00, 1.00,0.00, 0.80,0.33, //lower right + 0.80,0.67, 1.00,1.00, 0.67,0.80, //upper right + 0.33,1.00, 0.00,1.00, 0.20,0.67, //upper left + 0.00,0.33); //lower left +$coords_min = 0; //minimum value of the coordinates +$coords_max = 1; //maximum value of the coordinates + +// paint a coons patch gradient with the above coordinates +$pdf->CoonsPatchMesh(110, 155, 80, 80, $yellow, $blue, $green, $red, $coords, $coords_min, $coords_max); + +// write label +$pdf->Text(110, 240, 'CoonsPatchMesh()'); + +// --- second page ----------------------------------------- +$pdf->AddPage(); + +// first patch: f = 0 +$patch_array[0]['f'] = 0; +$patch_array[0]['points'] = array( + 0.00,0.00, 0.33,0.00, + 0.67,0.00, 1.00,0.00, 1.00,0.33, + 0.8,0.67, 1.00,1.00, 0.67,0.8, + 0.33,1.80, 0.00,1.00, 0.00,0.67, + 0.00,0.33); +$patch_array[0]['colors'][0] = array('r' => 255, 'g' => 255, 'b' => 0); +$patch_array[0]['colors'][1] = array('r' => 0, 'g' => 0, 'b' => 255); +$patch_array[0]['colors'][2] = array('r' => 0, 'g' => 255,'b' => 0); +$patch_array[0]['colors'][3] = array('r' => 255, 'g' => 0,'b' => 0); + +// second patch - above the other: f = 2 +$patch_array[1]['f'] = 2; +$patch_array[1]['points'] = array( + 0.00,1.33, + 0.00,1.67, 0.00,2.00, 0.33,2.00, + 0.67,2.00, 1.00,2.00, 1.00,1.67, + 1.5,1.33); +$patch_array[1]['colors'][0]=array('r' => 0, 'g' => 0, 'b' => 0); +$patch_array[1]['colors'][1]=array('r' => 255, 'g' => 0, 'b' => 255); + +// third patch - right of the above: f = 3 +$patch_array[2]['f'] = 3; +$patch_array[2]['points'] = array( + 1.33,0.80, + 1.67,1.50, 2.00,1.00, 2.00,1.33, + 2.00,1.67, 2.00,2.00, 1.67,2.00, + 1.33,2.00); +$patch_array[2]['colors'][0] = array('r' => 0, 'g' => 255, 'b' => 255); +$patch_array[2]['colors'][1] = array('r' => 0, 'g' => 0, 'b' => 0); + +// fourth patch - below the above, which means left(?) of the above: f = 1 +$patch_array[3]['f'] = 1; +$patch_array[3]['points'] = array( + 2.00,0.67, + 2.00,0.33, 2.00,0.00, 1.67,0.00, + 1.33,0.00, 1.00,0.00, 1.00,0.33, + 0.8,0.67); +$patch_array[3]['colors'][0] = array('r' => 0, 'g' => 0, 'b' => 0); +$patch_array[3]['colors'][1] = array('r' => 0, 'g' => 0, 'b' => 255); + +$coords_min = 0; +$coords_max = 2; + +$pdf->CoonsPatchMesh(10, 45, 190, 200, '', '', '', '', $patch_array, $coords_min, $coords_max); + +// write label +$pdf->Text(10, 250, 'CoonsPatchMesh()'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_030.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_031.php b/TCPDF/examples/example_031.php new file mode 100644 index 0000000..160d162 --- /dev/null +++ b/TCPDF/examples/example_031.php @@ -0,0 +1,103 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 031'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 031', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of PieSector() method.'); + +$xc = 105; +$yc = 100; +$r = 50; + +$pdf->SetFillColor(0, 0, 255); +$pdf->PieSector($xc, $yc, $r, 20, 120, 'FD', false, 0, 2); + +$pdf->SetFillColor(0, 255, 0); +$pdf->PieSector($xc, $yc, $r, 120, 250, 'FD', false, 0, 2); + +$pdf->SetFillColor(255, 0, 0); +$pdf->PieSector($xc, $yc, $r, 250, 20, 'FD', false, 0, 2); + +// write labels +$pdf->SetTextColor(255,255,255); +$pdf->Text(105, 65, 'BLUE'); +$pdf->Text(60, 95, 'GREEN'); +$pdf->Text(120, 115, 'RED'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_031.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_032.php b/TCPDF/examples/example_032.php new file mode 100644 index 0000000..b38f5ae --- /dev/null +++ b/TCPDF/examples/example_032.php @@ -0,0 +1,91 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 032'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 032', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 12); + +$pdf->AddPage(); + +$html = << +NOTE: Please use SVG format for a better vector support. +EOD; + +// Print text using writeHTMLCell() +$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true); + +$pdf->ImageEps('images/tcpdf_box.ai', 10, 40, 150, '', 'http://www.tcpdf.org', true, '', '', 0, false); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_032.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_033.php b/TCPDF/examples/example_033.php new file mode 100644 index 0000000..4f95e40 --- /dev/null +++ b/TCPDF/examples/example_033.php @@ -0,0 +1,105 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 033'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 033', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// add a page +$pdf->AddPage(); + +// set default font subsetting mode +$pdf->setFontSubsetting(false); + +$pdf->SetFont('helvetica', 'B', 20); + +$pdf->Write(0, 'Font Types', '', 0, 'C', 1, 0, false, false, 0); + +$pdf->Ln(10); + +$pdf->SetFont('times', '', 10); + +$pdf->MultiCell(80, 0, "[Core font] : Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.\n", 1, 'J', 0, 1, '', '', true, 0); + +$pdf->Ln(2); + +$pdf->SetFont('dejavusans', '', 10); + +$pdf->MultiCell(80, 0, "[True Type Unicode font] : Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.\n", 1, 'J', 0, 1, '', '', true, 0); + +$pdf->Ln(2); + +$pdf->SetFont('cid0jp', '', 9); + +$pdf->MultiCell(80, 0, "[CID-0 font] : Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis.\n", 1, 'J', 0, 1, '', '', true, 0); + + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_033.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_034.php b/TCPDF/examples/example_034.php new file mode 100644 index 0000000..bb15902 --- /dev/null +++ b/TCPDF/examples/example_034.php @@ -0,0 +1,96 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 034'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 034', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Image Clipping using geometric functions', '', 0, 'C', 1, 0, false, false, 0); + +//Start Graphic Transformation +$pdf->StartTransform(); + +// set clipping mask +$pdf->StarPolygon(105, 100, 30, 10, 3, 0, 1, 'CNZ'); + +// draw jpeg image to be clipped +$pdf->Image('images/image_demo.jpg', 75, 70, 60, 60, '', 'http://www.tcpdf.org', '', true, 72); + +//Stop Graphic Transformation +$pdf->StopTransform(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_034.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_035.php b/TCPDF/examples/example_035.php new file mode 100644 index 0000000..0e5280c --- /dev/null +++ b/TCPDF/examples/example_035.php @@ -0,0 +1,111 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 035'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 035', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', 'BI', 16); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of SetLineStyle() method', '', 0, 'L', true, 0, false, false, 0); + +$pdf->Ln(); + +$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 4, 'color' => array(255, 0, 0))); +$pdf->SetFillColor(255,255,128); +$pdf->SetTextColor(0,0,128); + +$text="DUMMY"; + +$pdf->Cell(0, 0, $text, 1, 1, 'L', 1, 0); + +$pdf->Ln(); + +$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 255))); +$pdf->SetFillColor(255,255,0); +$pdf->SetTextColor(0,0,255); +$pdf->MultiCell(60, 4, $text, 1, 'C', 1, 0); + +$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 255, 0))); +$pdf->SetFillColor(0,0,255); +$pdf->SetTextColor(255,255,0); +$pdf->MultiCell(60, 4, $text, 'TB', 'C', 1, 0); + +$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 255))); +$pdf->SetFillColor(0,255,0); +$pdf->SetTextColor(255,0,255); +$pdf->MultiCell(60, 4, $text, 1, 'C', 1, 1); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_035.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_036.php b/TCPDF/examples/example_036.php new file mode 100644 index 0000000..2625497 --- /dev/null +++ b/TCPDF/examples/example_036.php @@ -0,0 +1,89 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 036'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 036', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 16); + +// add a page +$pdf->AddPage(); + +$txt = 'Example of Text Annotation. +Move your mouse over the yellow box or double click on it to display the annotation text.'; +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// text annotation +$pdf->Annotation(83, 27, 10, 10, "Text annotation example\naccented letters test: àèéìòù", array('Subtype'=>'Text', 'Name' => 'Comment', 'T' => 'title example', 'Subj' => 'example', 'C' => array(255, 255, 0))); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_036.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_037.php b/TCPDF/examples/example_037.php new file mode 100644 index 0000000..deb7d92 --- /dev/null +++ b/TCPDF/examples/example_037.php @@ -0,0 +1,147 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 037'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 037', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 11); + +// add a page +$pdf->AddPage(); + +$html = '

        Example of Spot Colors

        Spot colors are single ink colors, rather than colors produced by four (CMYK), six (CMYKOG) or more inks in the printing process (process colors). They can be obtained by special vendors, but often the printers have found their own way of mixing inks to match defined colors.

        As long as no open standard for spot colours exists, TCPDF users will have to buy a colour book by one of the colour manufacturers and insert the values and names of spot colours directly into the $spotcolor array in include/tcpdf_colors.php file, or define them using the AddSpotColor() method.

        Common industry standard spot colors are:
        ANPA-COLOR, DIC, FOCOLTONE, GCMI, HKS, PANTONE, TOYO, TRUMATCH.'; + +// Print text using writeHTMLCell() +$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, 'J', true); + + +$pdf->SetFont('helvetica', '', 10); + +// Define some new spot colors +// $c, $m, $y and $k (2nd, 3rd, 4th and 5th parameter) are the CMYK color components. +// AddSpotColor($name, $c, $m, $y, $k) + +$pdf->AddSpotColor('My TCPDF Dark Green', 100, 50, 80, 45); +$pdf->AddSpotColor('My TCPDF Light Yellow', 0, 0, 55, 0); +$pdf->AddSpotColor('My TCPDF Black', 0, 0, 0, 100); +$pdf->AddSpotColor('My TCPDF Red', 30, 100, 90, 10); +$pdf->AddSpotColor('My TCPDF Green', 100, 30, 100, 0); +$pdf->AddSpotColor('My TCPDF Blue', 100, 60, 10, 5); +$pdf->AddSpotColor('My TCPDF Yellow', 0, 20, 100, 0); + +// Select the spot color +// $tint (the second parameter) is the intensity of the color (0-100). +// SetTextSpotColor($name, $tint=100) +// SetDrawSpotColor($name, $tint=100) +// SetFillSpotColor($name, $tint=100) + +$pdf->SetTextSpotColor('My TCPDF Black', 100); +$pdf->SetDrawSpotColor('My TCPDF Black', 100); + +$starty = 100; + +// print some spot colors + +$pdf->SetFillSpotColor('My TCPDF Dark Green', 100); +$pdf->Rect(30, $starty, 40, 20, 'DF'); +$pdf->Text(73, $starty + 8, 'My TCPDF Dark Green'); + +$starty += 24; +$pdf->SetFillSpotColor('My TCPDF Light Yellow', 100); +$pdf->Rect(30, $starty, 40, 20, 'DF'); +$pdf->Text(73, $starty + 8, 'My TCPDF Light Yellow'); + + +// --- default values defined on spotcolors.php --- + +$starty += 24; +$pdf->SetFillSpotColor('My TCPDF Red', 100); +$pdf->Rect(30, $starty, 40, 20, 'DF'); +$pdf->Text(73, $starty + 8, 'My TCPDF Red'); + +$starty += 24; +$pdf->SetFillSpotColor('My TCPDF Green', 100); +$pdf->Rect(30, $starty, 40, 20, 'DF'); +$pdf->Text(73, $starty + 8, 'My TCPDF Green'); + +$starty += 24; +$pdf->SetFillSpotColor('My TCPDF Blue', 100); +$pdf->Rect(30, $starty, 40, 20, 'DF'); +$pdf->Text(73, $starty + 8, 'My TCPDF Blue'); + +$starty += 24; +$pdf->SetFillSpotColor('My TCPDF Yellow', 100); +$pdf->Rect(30, $starty, 40, 20, 'DF'); +$pdf->Text(73, $starty + 8, 'My TCPDF Yellow'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_037.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_038.php b/TCPDF/examples/example_038.php new file mode 100644 index 0000000..a1e57e2 --- /dev/null +++ b/TCPDF/examples/example_038.php @@ -0,0 +1,92 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 038'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 038', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 20); + +// add a page +$pdf->AddPage(); + +$txt = 'Example of CID-0 CJK unembedded font. +To display extended text you must have CJK fonts installed for your PDF reader:'; +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// set font +$pdf->SetFont('cid0jp', '', 40); + +$txt = 'こんにちは世界'; +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_038.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_039.php b/TCPDF/examples/example_039.php new file mode 100644 index 0000000..4a8775c --- /dev/null +++ b/TCPDF/examples/example_039.php @@ -0,0 +1,104 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 039'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 039', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// add a page +$pdf->AddPage(); + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +$pdf->Write(0, 'Example of HTML Justification', '', 0, 'L', true, 0, false, false, 0); + +// create some HTML content +$html = 'a abc abcdefghijkl (abcdef) abcdefg abcdefghi a ((abc)) abcd test alt attribute abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc \(abcd\) abcdef abcdefg abcdefghi a abc \\\(abcd\\\) abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg start a abc before yellow color after a abc abcd abcdef abcdefg abcdefghi a abc abcd end abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi a abc abcd abcdef abcdefg abcdefghi
        abcd abcdef abcdefg abcdefghi
        abcd abcde abcdef
        '; + +// set core font +$pdf->SetFont('helvetica', '', 10); + +// output the HTML content +$pdf->writeHTML($html, true, 0, true, true); + +$pdf->Ln(); + +// set UTF-8 Unicode font +$pdf->SetFont('dejavusans', '', 10); + +// output the HTML content +$pdf->writeHTML($html, true, 0, true, true); + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_039.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_040.php b/TCPDF/examples/example_040.php new file mode 100644 index 0000000..c1d9091 --- /dev/null +++ b/TCPDF/examples/example_040.php @@ -0,0 +1,116 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 040'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 040', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set display mode +$pdf->SetDisplayMode($zoom='fullpage', $layout='TwoColumnRight', $mode='UseNone'); + +// set pdf viewer preferences +$pdf->setViewerPreferences(array('Duplex' => 'DuplexFlipLongEdge')); + +// set booklet mode +$pdf->SetBooklet(true, 10, 30); + +// set core font +$pdf->SetFont('helvetica', '', 18); + +// add a page (left page) +$pdf->AddPage(); + +$pdf->Write(0, 'Example of booklet mode', '', 0, 'L', true, 0, false, false, 0); + +// print a line using Cell() +$pdf->Cell(0, 0, 'PAGE 1', 1, 1, 'C'); + + +// add a page (right page) +$pdf->AddPage(); + +// print a line using Cell() +$pdf->Cell(0, 0, 'PAGE 2', 1, 1, 'C'); + + +// add a page (left page) +$pdf->AddPage(); + +// print a line using Cell() +$pdf->Cell(0, 0, 'PAGE 3', 1, 1, 'C'); + +// add a page (right page) +$pdf->AddPage(); + +// print a line using Cell() +$pdf->Cell(0, 0, 'PAGE 4', 1, 1, 'C'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_040.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_041.php b/TCPDF/examples/example_041.php new file mode 100644 index 0000000..973bdf9 --- /dev/null +++ b/TCPDF/examples/example_041.php @@ -0,0 +1,90 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 041'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 041', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 16); + +// add a page +$pdf->AddPage(); + + +$txt = 'Example of File Attachment. +Double click on the icon to open the attached file.'; +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// attach an external file +$pdf->Annotation(85, 27, 5, 5, 'text file', array('Subtype'=>'FileAttachment', 'Name' => 'PushPin', 'FS' => 'data/utf8test.txt')); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_041.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_042.php b/TCPDF/examples/example_042.php new file mode 100644 index 0000000..14c9fd0 --- /dev/null +++ b/TCPDF/examples/example_042.php @@ -0,0 +1,102 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 042'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 042', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set JPEG quality +//$pdf->setJPEGQuality(75); + +$pdf->SetFont('helvetica', '', 18); + +// add a page +$pdf->AddPage(); + +// create background text +$background_text = str_repeat('TCPDF test PNG Alpha Channel ', 50); +$pdf->MultiCell(0, 5, $background_text, 0, 'J', 0, 2, '', '', true, 0, false); + +// --- Method (A) ------------------------------------------ +// the Image() method recognizes the alpha channel embedded on the image: + +$pdf->Image('images/image_with_alpha.png', 50, 50, 100, '', '', 'http://www.tcpdf.org', '', false, 300); + +// --- Method (B) ------------------------------------------ +// provide image + separate 8-bit mask + +// first embed mask image (w, h, x and y will be ignored, the image will be scaled to the target image's size) +$mask = $pdf->Image('images/alpha.png', 50, 140, 100, '', '', '', '', false, 300, '', true); + +// embed image, masked with previously embedded mask +$pdf->Image('images/img.png', 50, 140, 100, '', '', 'http://www.tcpdf.org', '', false, 300, '', false, $mask); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_042.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_043.php b/TCPDF/examples/example_043.php new file mode 100644 index 0000000..116827e --- /dev/null +++ b/TCPDF/examples/example_043.php @@ -0,0 +1,85 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 043'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 043', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 16); + +// add a page +$pdf->AddPage(); + +// Multicell test +$pdf->MultiCell(0, 0, 'DISK CACHING TEST: check the parameters of the class constructor.', 1, 'L', 0, 0, '', '', true); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_043.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_044.php b/TCPDF/examples/example_044.php new file mode 100644 index 0000000..949270c --- /dev/null +++ b/TCPDF/examples/example_044.php @@ -0,0 +1,128 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 044'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 044', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 40); + +// print a line using Cell() +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: A', 0, 1, 'L'); + +// add some vertical space +$pdf->Ln(10); + +// print some text +$pdf->SetFont('times', 'I', 16); +$txt = 'TCPDF allows you to Copy, Move and Delete pages.'; +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +$pdf->SetFont('helvetica', 'B', 40); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: B', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: D', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: E', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: E-2', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: F', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: C', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: G', 0, 1, 'L'); + +// Move page 7 to page 3 +$pdf->movePage(7, 3); + +// Delete page 6 +$pdf->deletePage(6); + +$pdf->AddPage(); +$pdf->Cell(0, 10, 'PAGE: H', 0, 1, 'L'); + +// copy the second page +$pdf->copyPage(2); + +// NOTE: to insert a page to a previous position, you can add a new page to the end of document and then move it using movePage(). + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_044.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_045.php b/TCPDF/examples/example_045.php new file mode 100644 index 0000000..0f49abc --- /dev/null +++ b/TCPDF/examples/example_045.php @@ -0,0 +1,140 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 045'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 045', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', 'B', 20); + +// add a page +$pdf->AddPage(); + +// set a bookmark for the current position +$pdf->Bookmark('Chapter 1', 0, 0, '', 'B', array(0,64,128)); + +// print a line using Cell() +$pdf->Cell(0, 10, 'Chapter 1', 0, 1, 'L'); + +// Create a fixed link to the first page using the * character +$index_link = $pdf->AddLink(); +$pdf->SetLink($index_link, 0, '*1'); +$pdf->Cell(0, 10, 'Link to INDEX', 0, 1, 'R', false, $index_link); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.1', 1, 0, '', '', array(128,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.1', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.2', 1, 0, '', '', array(128,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.2', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Sub-Paragraph 1.2.1', 2, 0, '', 'I', array(0,128,0)); +$pdf->Cell(0, 10, 'Sub-Paragraph 1.2.1', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.3', 1, 0, '', '', array(128,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.3', 0, 1, 'L'); + +// fixed link to the first page using the * character +$html = 'link to INDEX (page 1)'; +$pdf->writeHTML($html, true, false, true, false, ''); + + +// add some pages and bookmarks +for ($i = 2; $i < 12; $i++) { + $pdf->AddPage(); + $pdf->Bookmark('Chapter '.$i, 0, 0, '', 'B', array(0,64,128)); + $pdf->Cell(0, 10, 'Chapter '.$i, 0, 1, 'L'); +} + +// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + +// add a new page for TOC +$pdf->addTOCPage(); + +// write the TOC title +$pdf->SetFont('times', 'B', 16); +$pdf->MultiCell(0, 0, 'Table Of Content', 0, 'C', 0, 1, '', '', true, 0); +$pdf->Ln(); + +$pdf->SetFont('dejavusans', '', 12); + +// add a simple Table Of Content at first page +// (check the example n. 59 for the HTML version) +$pdf->addTOC(1, 'courier', '.', 'INDEX', 'B', array(128,0,0)); + +// end of TOC page +$pdf->endTOCPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_045.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_046.php b/TCPDF/examples/example_046.php new file mode 100644 index 0000000..70d11d3 --- /dev/null +++ b/TCPDF/examples/example_046.php @@ -0,0 +1,123 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 046'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 046', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of Text Hyphenation', '', 0, 'L', true, 0, false, false, 0); + +$pdf->Ln(10); + +/* +Unicode Data for SHY: + Name : SOFT HYPHEN, commonly abbreviated as SHY + HTML Entity (decimal): ­ + HTML Entity (hex): ­ + HTML Entity (named): ­ + How to type in Microsoft Windows: [Alt +00AD] or [Alt 0173] + UTF-8 (hex): 0xC2 0xAD (c2ad) +*/ + +/* +// You can automatically add SOFT HYPHENS to your text using +// the hyphenateText() method, but this requires either an +// hyphenation pattern array of a hyphenation pattern TEX file. +// You can download hyphenation TEX patterns from: +// http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/ + +// EXAMPLE: + +$html = 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.'; + +$hyphen_patterns = $pdf->getHyphenPatternsFromTEX('hyphens/hyph-en-gb.tex'); + +$html = $pdf->hyphenateText($html, $hyphen_patterns, array(), 1, 2, 1, 8); +*/ + + +// HTML text with soft hyphens (­) +$html = 'On the other hand, we de­nounce with righ­teous in­dig­na­tion and dis­like men who are so be­guiled and de­mo­r­al­ized by the charms of plea­sure of the mo­ment, so blind­ed by de­sire, that they can­not fore­see the pain and trou­ble that are bound to en­sue; and equal blame be­longs to those who fail in their du­ty through weak­ness of will, which is the same as say­ing through shrink­ing from toil and pain. Th­ese cas­es are per­fect­ly sim­ple and easy to distin­guish. In a free hour, when our pow­er of choice is un­tram­melled and when noth­ing pre­vents our be­ing able to do what we like best, ev­ery plea­sure is to be wel­comed and ev­ery pain avoid­ed. But in cer­tain cir­cum­s­tances and ow­ing to the claims of du­ty or the obli­ga­tions of busi­ness it will fre­quent­ly oc­cur that plea­sures have to be re­pu­di­at­ed and an­noy­ances ac­cept­ed. The wise man there­fore al­ways holds in th­ese mat­ters to this prin­ci­ple of se­lec­tion: he re­jects plea­sures to se­cure other greater plea­sures, or else he en­dures pains to avoid worse pains.'; + +$pdf->SetFont('times', '', 10); +$pdf->SetDrawColor(255,0,0); +$pdf->SetTextColor(0,63,127); + +// print a cell +$pdf->writeHTMLCell(50, 0, '', '', $html, 1, 1, 0, true, 'J'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_046.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_047.php b/TCPDF/examples/example_047.php new file mode 100644 index 0000000..a26ae5d --- /dev/null +++ b/TCPDF/examples/example_047.php @@ -0,0 +1,117 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 047'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 047', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 16); + +// add a page +$pdf->AddPage(); + +$txt = 'Example of Transactions. +TCPDF allows you to undo some operations using the Transactions. +Check the source code for further information.'; +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +$pdf->Ln(5); + +$pdf->SetFont('times', '', 12); + +// start transaction +$pdf->startTransaction(); + +$pdf->Write(0, "LINE 1\n"); +$pdf->Write(0, "LINE 2\n"); + +// restarts transaction +$pdf->startTransaction(); + +$pdf->Write(0, "LINE 3\n"); +$pdf->Write(0, "LINE 4\n"); + +// rolls back to the last (re)start +$pdf = $pdf->rollbackTransaction(); + +$pdf->Write(0, "LINE 5\n"); +$pdf->Write(0, "LINE 6\n"); + +// start transaction +$pdf->startTransaction(); + +$pdf->Write(0, "LINE 7\n"); + +// commit transaction (actually just frees memory) +$pdf->commitTransaction(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_047.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_048.php b/TCPDF/examples/example_048.php new file mode 100644 index 0000000..ca88a14 --- /dev/null +++ b/TCPDF/examples/example_048.php @@ -0,0 +1,313 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 048'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 048', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of HTML tables', '', 0, 'L', true, 0, false, false, 0); + +$pdf->SetFont('helvetica', '', 8); + +// ----------------------------------------------------------------------------- + +$tbl = << + + COL 1 - ROW 1
        COLSPAN 3 + COL 2 - ROW 1 + COL 3 - ROW 1 + + + COL 2 - ROW 2 - COLSPAN 2
        text line
        text line
        text line
        text line + COL 3 - ROW 2 + + + COL 3 - ROW 3 + + + +EOD; + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +// ----------------------------------------------------------------------------- + +$tbl = << + + COL 1 - ROW 1
        COLSPAN 3
        text line
        text line
        text line
        text line
        text line
        text line + COL 2 - ROW 1 + COL 3 - ROW 1 + + + COL 2 - ROW 2 - COLSPAN 2
        text line
        text line
        text line
        text line + COL 3 - ROW 2 + + + COL 3 - ROW 3 + + + +EOD; + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +// ----------------------------------------------------------------------------- + +$tbl = << + + COL 1 - ROW 1
        COLSPAN 3
        text line
        text line
        text line
        text line
        text line
        text line + COL 2 - ROW 1 + COL 3 - ROW 1 + + + COL 2 - ROW 2 - COLSPAN 2
        text line
        text line
        text line
        text line + COL 3 - ROW 2
        text line
        text line + + + COL 3 - ROW 3 + + + +EOD; + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +// ----------------------------------------------------------------------------- + +$tbl = << + +Left column +Heading Column Span 5 +Heading Column Span 9 + + +Rowspan 2
        This is some text that fills the table cell. +span 2 +span 2 +2 rows +Colspan 8 + + +1a +2a +1b +2b +1 +2 +3 +4 +5 +6 +7 +8 + + +EOD; + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +// ----------------------------------------------------------------------------- + +// Table with rowspans and THEAD +$tbl = << + + + A + XXXX + XXXX + XXXX + XXXX + XXXX + + + B + XXXX + XXXX + XXXX + XXXX + XXXX + + + + 1. + XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX + XXXX
        XXXX + XXXX
        XXXX + XXXX + XXXX
        XXXX + + + 2. + XXXX
        XXXX + XXXX
        XXXX + XXXX
        XXXX + XXXX
        XXXX + + + XXXX
        XXXX
        XXXX
        XXXX + XXXX
        XXXX + XXXX
        XXXX + + + RRRRRR
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX + XXXX
        XXXX + XXXX
        XXXX + + + 3. + XXXX1
        XXXX + XXXX
        XXXX + XXXX
        XXXX + + + 4. + XXXX
        XXXX + XXXX
        XXXX + XXXX
        XXXX + XXXX
        XXXX + + +EOD; + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +// ----------------------------------------------------------------------------- + +// NON-BREAKING TABLE (nobr="true") + +$tbl = << + + NON-BREAKING TABLE + + + 1-1 + 1-2 + 1-3 + + + 2-1 + 3-2 + 3-3 + + + 3-1 + 3-2 + 3-3 + + +EOD; + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +// ----------------------------------------------------------------------------- + +// NON-BREAKING ROWS (nobr="true") + +$tbl = << + + NON-BREAKING ROWS + + + ROW 1
        COLUMN 1 + ROW 1
        COLUMN 2 + ROW 1
        COLUMN 3 + + + ROW 2
        COLUMN 1 + ROW 2
        COLUMN 2 + ROW 2
        COLUMN 3 + + + ROW 3
        COLUMN 1 + ROW 3
        COLUMN 2 + ROW 3
        COLUMN 3 + + +EOD; + +$pdf->writeHTML($tbl, true, false, false, false, ''); + +// ----------------------------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_048.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_049.php b/TCPDF/examples/example_049.php new file mode 100644 index 0000000..7a764fb --- /dev/null +++ b/TCPDF/examples/example_049.php @@ -0,0 +1,126 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 049'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 049', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 10); + +// add a page +$pdf->AddPage(); + + +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + +IMPORTANT: +If you are printing user-generated content, tcpdf tag can be unsafe. +You can disable this tag by setting to false the K_TCPDF_CALLS_IN_HTML +constant on TCPDF configuration file. + +For security reasons, the parameters for the 'params' attribute of TCPDF +tag must be prepared as an array and encoded with the +serializeTCPDFtagParameters() method (see the example below). + + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + + +$html = '

        Test TCPDF Methods in HTML

        +

        IMPORTANT:

        +If you are using user-generated content, the tcpdf tag can be unsafe.
        +You can disable this tag by setting to false the K_TCPDF_CALLS_IN_HTML constant on TCPDF configuration file.
        +

        write1DBarcode method in HTML

        '; + +$params = $pdf->serializeTCPDFtagParameters(array('CODE 39', 'C39', '', '', 80, 30, 0.4, array('position'=>'S', 'border'=>true, 'padding'=>4, 'fgcolor'=>array(0,0,0), 'bgcolor'=>array(255,255,255), 'text'=>true, 'font'=>'helvetica', 'fontsize'=>8, 'stretchtext'=>4), 'N')); +$html .= ''; + +$params = $pdf->serializeTCPDFtagParameters(array('CODE 128', 'C128', '', '', 80, 30, 0.4, array('position'=>'S', 'border'=>true, 'padding'=>4, 'fgcolor'=>array(0,0,0), 'bgcolor'=>array(255,255,255), 'text'=>true, 'font'=>'helvetica', 'fontsize'=>8, 'stretchtext'=>4), 'N')); +$html .= ''; + +$html .= '

        Graphic Functions

        '; + +$params = $pdf->serializeTCPDFtagParameters(array(0)); +$html .= ''; + +$params = $pdf->serializeTCPDFtagParameters(array(50, 50, 40, 10, 'DF', array(), array(0,128,255))); +$html .= ''; + + +// output the HTML content +$pdf->writeHTML($html, true, 0, true, 0); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_049.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_050.php b/TCPDF/examples/example_050.php new file mode 100644 index 0000000..5ccae31 --- /dev/null +++ b/TCPDF/examples/example_050.php @@ -0,0 +1,210 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 050'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 050', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// NOTE: 2D barcode algorithms must be implemented on 2dbarcode.php class file. + +// set font +$pdf->SetFont('helvetica', '', 11); + +// add a page +$pdf->AddPage(); + +// print a message +$txt = "You can also export 2D barcodes in other formats (PNG, SVG, HTML). Check the examples inside the barcode directory.\n"; +$pdf->MultiCell(70, 50, $txt, 0, 'J', false, 1, 125, 30, true, 0, false, true, 0, 'T', false); + + +$pdf->SetFont('helvetica', '', 10); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// set style for barcode +$style = array( + 'border' => true, + 'vpadding' => 'auto', + 'hpadding' => 'auto', + 'fgcolor' => array(0,0,0), + 'bgcolor' => false, //array(255,255,255) + 'module_width' => 1, // width of a single module in points + 'module_height' => 1 // height of a single module in points +); + +// write RAW 2D Barcode + +$code = '111011101110111,010010001000010,010011001110010,010010000010010,010011101110010'; +$pdf->write2DBarcode($code, 'RAW', 80, 30, 30, 20, $style, 'N'); + +// write RAW2 2D Barcode +$code = '[111011101110111][010010001000010][010011001110010][010010000010010][010011101110010]'; +$pdf->write2DBarcode($code, 'RAW2', 80, 60, 30, 20, $style, 'N'); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// set style for barcode +$style = array( + 'border' => 2, + 'vpadding' => 'auto', + 'hpadding' => 'auto', + 'fgcolor' => array(0,0,0), + 'bgcolor' => false, //array(255,255,255) + 'module_width' => 1, // width of a single module in points + 'module_height' => 1 // height of a single module in points +); + +// QRCODE,L : QR-CODE Low error correction +$pdf->write2DBarcode('www.tcpdf.org', 'QRCODE,L', 20, 30, 50, 50, $style, 'N'); +$pdf->Text(20, 25, 'QRCODE L'); + +// QRCODE,M : QR-CODE Medium error correction +$pdf->write2DBarcode('www.tcpdf.org', 'QRCODE,M', 20, 90, 50, 50, $style, 'N'); +$pdf->Text(20, 85, 'QRCODE M'); + +// QRCODE,Q : QR-CODE Better error correction +$pdf->write2DBarcode('www.tcpdf.org', 'QRCODE,Q', 20, 150, 50, 50, $style, 'N'); +$pdf->Text(20, 145, 'QRCODE Q'); + +// QRCODE,H : QR-CODE Best error correction +$pdf->write2DBarcode('www.tcpdf.org', 'QRCODE,H', 20, 210, 50, 50, $style, 'N'); +$pdf->Text(20, 205, 'QRCODE H'); + +// ------------------------------------------------------------------- +// PDF417 (ISO/IEC 15438:2006) + +/* + + The $type parameter can be simple 'PDF417' or 'PDF417' followed by a + number of comma-separated options: + + 'PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6' + + Possible options are: + + a = aspect ratio (width/height); + e = error correction level (0-8); + + Macro Control Block options: + + t = total number of macro segments; + s = macro segment index (0-99998); + f = file ID; + o0 = File Name (text); + o1 = Segment Count (numeric); + o2 = Time Stamp (numeric); + o3 = Sender (text); + o4 = Addressee (text); + o5 = File Size (numeric); + o6 = Checksum (numeric). + + Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. + To use a comma character ',' on text options, replace it with the character 255: "\xff". + +*/ + +$pdf->write2DBarcode('www.tcpdf.org', 'PDF417', 80, 90, 0, 30, $style, 'N'); +$pdf->Text(80, 85, 'PDF417 (ISO/IEC 15438:2006)'); + +// ------------------------------------------------------------------- +// DATAMATRIX (ISO/IEC 16022:2006) + +$pdf->write2DBarcode('http://www.tcpdf.org', 'DATAMATRIX', 80, 150, 50, 50, $style, 'N'); +$pdf->Text(80, 145, 'DATAMATRIX (ISO/IEC 16022:2006)'); + +// ------------------------------------------------------------------- + +// new style +$style = array( + 'border' => 2, + 'padding' => 'auto', + 'fgcolor' => array(0,0,255), + 'bgcolor' => array(255,255,64) +); + +// QRCODE,H : QR-CODE Best error correction +$pdf->write2DBarcode('www.tcpdf.org', 'QRCODE,H', 80, 210, 50, 50, $style, 'N'); +$pdf->Text(80, 205, 'QRCODE H - COLORED'); + +// new style +$style = array( + 'border' => false, + 'padding' => 0, + 'fgcolor' => array(128,0,0), + 'bgcolor' => false +); + +// QRCODE,H : QR-CODE Best error correction +$pdf->write2DBarcode('www.tcpdf.org', 'QRCODE,H', 140, 210, 50, 50, $style, 'N'); +$pdf->Text(140, 205, 'QRCODE H - NO PADDING'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_050.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_051.php b/TCPDF/examples/example_051.php new file mode 100644 index 0000000..dc2d94e --- /dev/null +++ b/TCPDF/examples/example_051.php @@ -0,0 +1,145 @@ +getBreakMargin(); + // get current auto-page-break mode + $auto_page_break = $this->AutoPageBreak; + // disable auto-page-break + $this->SetAutoPageBreak(false, 0); + // set bacground image + $img_file = K_PATH_IMAGES.'image_demo.jpg'; + $this->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0); + // restore auto-page-break status + $this->SetAutoPageBreak($auto_page_break, $bMargin); + // set the starting point for the page content + $this->setPageMark(); + } +} + +// create new PDF document +$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 051'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(0); +$pdf->SetFooterMargin(0); + +// remove default footer +$pdf->setPrintFooter(false); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 48); + +// add a page +$pdf->AddPage(); + +// Print a text +$html = ' PAGE 1  +

        You can set a full page background.

        '; +$pdf->writeHTML($html, true, false, true, false, ''); + + +// add a page +$pdf->AddPage(); + +// Print a text +$html = ' PAGE 2 '; +$pdf->writeHTML($html, true, false, true, false, ''); + +// --- example with background set on page --- + +// remove default header +$pdf->setPrintHeader(false); + +// add a page +$pdf->AddPage(); + + +// -- set new background --- + +// get the current page break margin +$bMargin = $pdf->getBreakMargin(); +// get current auto-page-break mode +$auto_page_break = $pdf->getAutoPageBreak(); +// disable auto-page-break +$pdf->SetAutoPageBreak(false, 0); +// set bacground image +$img_file = K_PATH_IMAGES.'image_demo.jpg'; +$pdf->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0); +// restore auto-page-break status +$pdf->SetAutoPageBreak($auto_page_break, $bMargin); +// set the starting point for the page content +$pdf->setPageMark(); + + +// Print a text +$html = 'PAGE 3'; +$pdf->writeHTML($html, true, false, true, false, ''); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_051.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_052.php b/TCPDF/examples/example_052.php new file mode 100644 index 0000000..2af27f0 --- /dev/null +++ b/TCPDF/examples/example_052.php @@ -0,0 +1,121 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 052'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 052', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +/* +NOTES: + - To create self-signed signature: openssl req -x509 -nodes -days 365000 -newkey rsa:1024 -keyout tcpdf.crt -out tcpdf.crt + - To export crt to p12: openssl pkcs12 -export -in tcpdf.crt -out tcpdf.p12 + - To convert pfx certificate to pem: openssl pkcs12 -in tcpdf.pfx -out tcpdf.crt -nodes +*/ + +// set certificate file +$certificate = 'file://data/cert/tcpdf.crt'; + +// set additional information +$info = array( + 'Name' => 'TCPDF', + 'Location' => 'Office', + 'Reason' => 'Testing TCPDF', + 'ContactInfo' => 'http://www.tcpdf.org', + ); + +// set document signature +$pdf->setSignature($certificate, $certificate, 'tcpdfdemo', '', 2, $info); + +// set font +$pdf->SetFont('helvetica', '', 12); + +// add a page +$pdf->AddPage(); + +// print a line of text +$text = 'This is a digitally signed document using the default (example) tcpdf.crt certificate.
        To validate this signature you have to load the tcpdf.fdf on the Arobat Reader to add the certificate to List of Trusted Identities.

        For more information check the source code of this example and the source code documentation for the setSignature() method.

        www.tcpdf.org'; +$pdf->writeHTML($text, true, 0, true, 0); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// *** set signature appearance *** + +// create content for signature (image and/or text) +$pdf->Image('images/tcpdf_signature.png', 180, 60, 15, 15, 'PNG'); + +// define active area for signature appearance +$pdf->setSignatureAppearance(180, 60, 15, 15); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// *** set an empty signature appearance *** +$pdf->addEmptySignatureAppearance(180, 80, 15, 15); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_052.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_053.php b/TCPDF/examples/example_053.php new file mode 100644 index 0000000..8c784d5 --- /dev/null +++ b/TCPDF/examples/example_053.php @@ -0,0 +1,108 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 053'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 053', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('times', '', 14); + +// add a page +$pdf->AddPage(); + +// print a some of text +$text = 'This is an example of JavaScript usage on PDF documents.

        For more information check the source code of this example, the source code documentation for the IncludeJS() method and the JavaScript for Acrobat API Reference guide.

        www.tcpdf.org'; +$pdf->writeHTML($text, true, 0, true, 0); + +// write some JavaScript code +$js = <<IncludeJS($js); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_053.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_054.php b/TCPDF/examples/example_054.php new file mode 100644 index 0000000..af4545d --- /dev/null +++ b/TCPDF/examples/example_054.php @@ -0,0 +1,128 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 054'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 054', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// IMPORTANT: disable font subsetting to allow users editing the document +$pdf->setFontSubsetting(false); + +// set font +$pdf->SetFont('helvetica', '', 10, '', false); + +// add a page +$pdf->AddPage(); + +// create some HTML content +$html = <<XHTML Form Example +
        +
        +

        +

        +

        +
        +
        +

        + +

        + +


        +
        +
        +


        + + + + +
        +
        +EOD; + +// output the HTML content +$pdf->writeHTML($html, true, 0, true, 0); + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_054.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_055.php b/TCPDF/examples/example_055.php new file mode 100644 index 0000000..a825966 --- /dev/null +++ b/TCPDF/examples/example_055.php @@ -0,0 +1,115 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 055'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 055', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 14); + +// array of font names +$core_fonts = array('courier', 'courierB', 'courierI', 'courierBI', 'helvetica', 'helveticaB', 'helveticaI', 'helveticaBI', 'times', 'timesB', 'timesI', 'timesBI', 'symbol', 'zapfdingbats'); + +// set fill color +$pdf->SetFillColor(221,238,255); + +// create one HTML table for each core font +foreach($core_fonts as $font) { + // add a page + $pdf->AddPage(); + + // Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M') + + // set font for title + $pdf->SetFont('helvetica', 'B', 16); + + // print font name + $pdf->Cell(0, 10, 'FONT: '.$font, 1, 1, 'C', true, '', 0, false, 'T', 'M'); + + // set font for chars + $pdf->SetFont($font, '', 16); + + // print each character + for ($i = 0; $i < 256; ++$i) { + if (($i > 0) AND (($i % 16) == 0)) { + $pdf->Ln(); + } + $pdf->Cell(11.25, 11.25, TCPDF_FONTS::unichr($i), 1, 0, 'C', false, '', 0, false, 'T', 'M'); + } + + $pdf->Ln(20); + + // print a pangram + $pdf->Cell(0, 0, 'The quick brown fox jumps over the lazy dog', 0, 1, 'C', false, '', 0, false, 'T', 'M'); +} + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_055.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_056.php b/TCPDF/examples/example_056.php new file mode 100644 index 0000000..c3dfe25 --- /dev/null +++ b/TCPDF/examples/example_056.php @@ -0,0 +1,133 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 056'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 056', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 18); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of Registration Marks, Crop Marks and Color Bars', '', 0, 'L', true, 0, false, false, 0); + +$pdf->Ln(5); + +// color registration bars + +// A,W,R,G,B,C,M,Y,K,RGB,CMYK,ALL,ALLSPOT, +$pdf->colorRegistrationBar(50, 70, 40, 40, true, false, 'A,R,G,B,C,M,Y,K'); +$pdf->colorRegistrationBar(90, 70, 40, 40, true, true, 'A,R,G,B,C,M,Y,K'); +$pdf->colorRegistrationBar(50, 115, 80, 5, false, true, 'A,W,R,G,B,C,M,Y,K,ALL'); +$pdf->colorRegistrationBar(135, 70, 5, 50, false, false, 'A,W,R,G,B,C,M,Y,K,ALL'); + +// corner crop marks + +$pdf->cropMark(50, 70, 10, 10, 'TL'); +$pdf->cropMark(140, 70, 10, 10, 'TR'); +$pdf->cropMark(50, 120, 10, 10, 'BL'); +$pdf->cropMark(140, 120, 10, 10, 'BR'); + +// various crop marks + +$pdf->cropMark(95, 65, 5, 5, 'LEFT,TOP,RIGHT', array(255,0,0)); +$pdf->cropMark(95, 125, 5, 5, 'LEFT,BOTTOM,RIGHT', array(255,0,0)); + +$pdf->cropMark(45, 95, 5, 5, 'TL,BL', array(0,255,0)); +$pdf->cropMark(145, 95, 5, 5, 'TR,BR', array(0,255,0)); + +$pdf->cropMark(95, 140, 5, 5, 'A,D', array(0,0,255)); + +// registration marks + +$pdf->registrationMark(40, 60, 5, false); +$pdf->registrationMark(150, 60, 5, true, array(0,0,0), array(255,255,0)); +$pdf->registrationMark(40, 130, 5, true, array(0,0,0), array(255,255,0)); +$pdf->registrationMark(150, 130, 5, false, array(100,100,100,100,'All'), array(0,0,0,0,'None')); + +// test registration bar with spot colors + +$pdf->AddSpotColor('My TCPDF Dark Green', 100, 50, 80, 45); +$pdf->AddSpotColor('My TCPDF Light Yellow', 0, 0, 55, 0); +$pdf->AddSpotColor('My TCPDF Black', 0, 0, 0, 100); +$pdf->AddSpotColor('My TCPDF Red', 30, 100, 90, 10); +$pdf->AddSpotColor('My TCPDF Green', 100, 30, 100, 0); +$pdf->AddSpotColor('My TCPDF Blue', 100, 60, 10, 5); +$pdf->AddSpotColor('My TCPDF Yellow', 0, 20, 100, 0); + +$pdf->colorRegistrationBar(50, 150, 80, 10, false, true, 'ALLSPOT'); + +// CMYK registration mark +$pdf->registrationMarkCMYK(150, 155, 8); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_056.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_057.php b/TCPDF/examples/example_057.php new file mode 100644 index 0000000..9714b40 --- /dev/null +++ b/TCPDF/examples/example_057.php @@ -0,0 +1,268 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 057'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 057', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of alignment options for Cell()', '', 0, 'L', true, 0, false, false, 0); + +$pdf->SetFont('helvetica', '', 11); + +// set border width +$pdf->SetLineWidth(0.7); + +// set color for cell border +$pdf->SetDrawColor(0,128,255); + +$pdf->setCellHeightRatio(3); + +$pdf->SetXY(15, 60); + +// text on center +$pdf->Cell(30, 0, 'Top-Center', 1, $ln=0, 'C', 0, '', 0, false, 'T', 'C'); +$pdf->Cell(30, 0, 'Center-Center', 1, $ln=0, 'C', 0, '', 0, false, 'C', 'C'); +$pdf->Cell(30, 0, 'Bottom-Center', 1, $ln=0, 'C', 0, '', 0, false, 'B', 'C'); +$pdf->Cell(30, 0, 'Ascent-Center', 1, $ln=0, 'C', 0, '', 0, false, 'A', 'C'); +$pdf->Cell(30, 0, 'Baseline-Center', 1, $ln=0, 'C', 0, '', 0, false, 'L', 'C'); +$pdf->Cell(30, 0, 'Descent-Center', 1, $ln=0, 'C', 0, '', 0, false, 'D', 'C'); + + +$pdf->SetXY(15, 90); + +// text on top +$pdf->Cell(30, 0, 'Top-Top', 1, $ln=0, 'C', 0, '', 0, false, 'T', 'T'); +$pdf->Cell(30, 0, 'Center-Top', 1, $ln=0, 'C', 0, '', 0, false, 'C', 'T'); +$pdf->Cell(30, 0, 'Bottom-Top', 1, $ln=0, 'C', 0, '', 0, false, 'B', 'T'); +$pdf->Cell(30, 0, 'Ascent-Top', 1, $ln=0, 'C', 0, '', 0, false, 'A', 'T'); +$pdf->Cell(30, 0, 'Baseline-Top', 1, $ln=0, 'C', 0, '', 0, false, 'L', 'T'); +$pdf->Cell(30, 0, 'Descent-Top', 1, $ln=0, 'C', 0, '', 0, false, 'D', 'T'); + + +$pdf->SetXY(15, 120); + +// text on bottom +$pdf->Cell(30, 0, 'Top-Bottom', 1, $ln=0, 'C', 0, '', 0, false, 'T', 'B'); +$pdf->Cell(30, 0, 'Center-Bottom', 1, $ln=0, 'C', 0, '', 0, false, 'C', 'B'); +$pdf->Cell(30, 0, 'Bottom-Bottom', 1, $ln=0, 'C', 0, '', 0, false, 'B', 'B'); +$pdf->Cell(30, 0, 'Ascent-Bottom', 1, $ln=0, 'C', 0, '', 0, false, 'A', 'B'); +$pdf->Cell(30, 0, 'Baseline-Bottom', 1, $ln=0, 'C', 0, '', 0, false, 'L', 'B'); +$pdf->Cell(30, 0, 'Descent-Bottom', 1, $ln=0, 'C', 0, '', 0, false, 'D', 'B'); + + +// draw some reference lines +$linestyle = array('width' => 0.1, 'cap' => 'butt', 'join' => 'miter', 'dash' => '', 'phase' => 0, 'color' => array(255, 0, 0)); +$pdf->Line(15, 60, 195, 60, $linestyle); +$pdf->Line(15, 90, 195, 90, $linestyle); +$pdf->Line(15, 120, 195, 120, $linestyle); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// Print an image to explain cell measures + +$pdf->Image('images/tcpdf_cell.png', 15, 160, 100, 100, 'PNG', '', '', false, 300, '', false, false, 0, false, false, false); +$legend = 'LEGEND: + +X: cell x top-left origin (top-right for RTL) +Y: cell y top-left origin (top-right for RTL) +CW: cell width +CH: cell height +LW: line width +NRL: normal line position +EXT: external line position +INT: internal line position +ML: margin left +MR: margin right +MT: margin top +MB: margin bottom +PL: padding left +PR: padding right +PT: padding top +PB: padding bottom +TW: text width +FA: font ascent +FB: font baseline +FD: font descent'; +$pdf->SetFont('helvetica', '', 10); +$pdf->setCellHeightRatio(1.25); +$pdf->MultiCell(0, 0, $legend, 0, 'L', false, 1, 125, 160, true, 0, false, true, 0, 'T', false); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// CELL BORDERS + +// add a page +$pdf->AddPage(); + +$pdf->SetFont('helvetica', 'B', 20); + +$pdf->Write(0, 'Example of borders for Cell()', '', 0, 'L', true, 0, false, false, 0); + +$pdf->SetFont('helvetica', '', 11); + +// set border width +$pdf->SetLineWidth(0.508); + +// set color for cell border +$pdf->SetDrawColor(0,128,255); + +// set filling color +$pdf->SetFillColor(255,255,128); + +// set cell height ratio +$pdf->setCellHeightRatio(3); + +$pdf->Cell(30, 0, '1', 1, 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'LTRB', 'LTRB', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'LTR', 'LTR', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'TRB', 'TRB', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'LRB', 'LRB', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'LTB', 'LTB', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'LT', 'LT', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'TR', 'TR', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'RB', 'RB', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'LB', 'LB', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'LR', 'LR', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'TB', 'TB', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'L', 'L', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'T', 'T', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'R', 'R', 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(2); +$pdf->Cell(30, 0, 'B', 'B', 1, 'C', 1, '', 0, false, 'T', 'C'); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// ADVANCED SETTINGS FOR CELL BORDERS + +// add a page +$pdf->AddPage(); + +$pdf->SetFont('helvetica', 'B', 20); + +$pdf->Write(0, 'Example of advanced border settings for Cell()', '', 0, 'L', true, 0, false, false, 0); + +$pdf->SetFont('helvetica', '', 11); + +// set border width +$pdf->SetLineWidth(1); + +// set color for cell border +$pdf->SetDrawColor(0,128,255); + +// set filling color +$pdf->SetFillColor(255,255,128); + +$border = array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0))); +$pdf->Cell(30, 0, 'LTRB', $border, 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(5); + +$border = array( +'L' => array('width' => 2, 'cap' => 'square', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0)), +'R' => array('width' => 2, 'cap' => 'square', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 255)), +'T' => array('width' => 2, 'cap' => 'square', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 255, 0)), +'B' => array('width' => 2, 'cap' => 'square', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 255))); +$pdf->Cell(30, 0, 'LTRB', $border, 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(5); + +$border = array('mode' => 'ext', 'LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0))); +$pdf->Cell(30, 0, 'LTRB EXT', $border, 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(5); + +$border = array('mode' => 'int', 'LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0))); +$pdf->Cell(30, 0, 'LTRB INT', $border, 1, 'C', 1, '', 0, false, 'T', 'C'); +$pdf->Ln(5); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_057.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_058.php b/TCPDF/examples/example_058.php new file mode 100644 index 0000000..1e472fb --- /dev/null +++ b/TCPDF/examples/example_058.php @@ -0,0 +1,94 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 058'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 058', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 10); + +// add a page +$pdf->AddPage(); + +// NOTE: Uncomment the following line to rasterize SVG image using the ImageMagick library. +//$pdf->setRasterizeVectorImages(true); + +$pdf->ImageSVG($file='images/testsvg.svg', $x=15, $y=30, $w='', $h='', $link='http://www.tcpdf.org', $align='', $palign='', $border=1, $fitonpage=false); + +$pdf->ImageSVG($file='images/tux.svg', $x=30, $y=100, $w='', $h=100, $link='', $align='', $palign='', $border=0, $fitonpage=false); + +$pdf->SetFont('helvetica', '', 8); +$pdf->SetY(195); +$txt = '© The copyright holder of the above Tux image is Larry Ewing, allows anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other use is permitted.'; +$pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_058.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_059.php b/TCPDF/examples/example_059.php new file mode 100644 index 0000000..9396784 --- /dev/null +++ b/TCPDF/examples/example_059.php @@ -0,0 +1,190 @@ +tocpage) { + // *** replace the following parent::Header() with your code for TOC page + parent::Header(); + } else { + // *** replace the following parent::Header() with your code for normal pages + parent::Header(); + } + } + + /** + * Overwrite Footer() method. + * @public + */ + public function Footer() { + if ($this->tocpage) { + // *** replace the following parent::Footer() with your code for TOC page + parent::Footer(); + } else { + // *** replace the following parent::Footer() with your code for normal pages + parent::Footer(); + } + } + +} // end of class + +// create new PDF document +$pdf = new TOC_TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); + +// set document information +$pdf->SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 059'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 059', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// set font +$pdf->SetFont('helvetica', '', 10); + +// --------------------------------------------------------- + +// create some content ... + +// add a page +$pdf->AddPage(); + +// set a bookmark for the current position +$pdf->Bookmark('Chapter 1', 0, 0, '', 'B', array(0,64,128)); + +// print a line using Cell() +$pdf->Cell(0, 10, 'Chapter 1', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.1', 1, 0, '', '', array(128,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.1', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.2', 1, 0, '', '', array(128,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.2', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Sub-Paragraph 1.2.1', 2, 0, '', 'I', array(0,128,0)); +$pdf->Cell(0, 10, 'Sub-Paragraph 1.2.1', 0, 1, 'L'); + +$pdf->AddPage(); +$pdf->Bookmark('Paragraph 1.3', 1, 0, '', '', array(128,0,0)); +$pdf->Cell(0, 10, 'Paragraph 1.3', 0, 1, 'L'); + +// add some pages and bookmarks +for ($i = 2; $i < 12; $i++) { + $pdf->AddPage(); + $pdf->Bookmark('Chapter '.$i, 0, 0, '', 'B', array(0,64,128)); + $pdf->Cell(0, 10, 'Chapter '.$i, 0, 1, 'L'); +} + + +// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + +// add a new page for TOC +$pdf->addTOCPage(); + +// write the TOC title and/or other elements on the TOC page +$pdf->SetFont('times', 'B', 16); +$pdf->MultiCell(0, 0, 'Table Of Content', 0, 'C', 0, 1, '', '', true, 0); +$pdf->Ln(); +$pdf->SetFont('helvetica', '', 10); + +// define styles for various bookmark levels +$bookmark_templates = array(); + +/* + * The key of the $bookmark_templates array represent the bookmark level (from 0 to n). + * The following templates will be replaced with proper content: + * #TOC_DESCRIPTION# this will be replaced with the bookmark description; + * #TOC_PAGE_NUMBER# this will be replaced with page number. + * + * NOTES: + * If you want to align the page number on the right you have to use a monospaced font like courier, otherwise you can left align using any font type. + * The following is just an example, you can get various styles by combining various HTML elements. + */ + +// A monospaced font for the page number is mandatory to get the right alignment +$bookmark_templates[0] = '
        #TOC_DESCRIPTION##TOC_PAGE_NUMBER#
        '; +$bookmark_templates[1] = '
         #TOC_DESCRIPTION##TOC_PAGE_NUMBER#
        '; +$bookmark_templates[2] = '
         #TOC_DESCRIPTION##TOC_PAGE_NUMBER#
        '; +// add other bookmark level templates here ... + +// add table of content at page 1 +// (check the example n. 45 for a text-only TOC +$pdf->addHTMLTOC(1, 'INDEX', $bookmark_templates, true, 'B', array(128,0,0)); + +// end of TOC page +$pdf->endTOCPage(); + +// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_059.pdf', 'D'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_060.php b/TCPDF/examples/example_060.php new file mode 100644 index 0000000..03bad28 --- /dev/null +++ b/TCPDF/examples/example_060.php @@ -0,0 +1,108 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 060'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 060', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// set font +$pdf->SetFont('helvetica', '', 20); + +// --------------------------------------------------------- + +// set page format (read source code documentation for further information) +$page_format = array( + 'MediaBox' => array ('llx' => 0, 'lly' => 0, 'urx' => 210, 'ury' => 297), + 'CropBox' => array ('llx' => 0, 'lly' => 0, 'urx' => 210, 'ury' => 297), + 'BleedBox' => array ('llx' => 5, 'lly' => 5, 'urx' => 205, 'ury' => 292), + 'TrimBox' => array ('llx' => 10, 'lly' => 10, 'urx' => 200, 'ury' => 287), + 'ArtBox' => array ('llx' => 15, 'lly' => 15, 'urx' => 195, 'ury' => 282), + 'Dur' => 3, + 'trans' => array( + 'D' => 1.5, + 'S' => 'Split', + 'Dm' => 'V', + 'M' => 'O' + ), + 'Rotate' => 90, + 'PZ' => 1, +); + +// Check the example n. 29 for viewer preferences + +// add first page --- +$pdf->AddPage('P', $page_format, false, false); +$pdf->Cell(0, 12, 'First Page', 1, 1, 'C'); + +// add second page --- +$page_format['Rotate'] = 270; +$pdf->AddPage('P', $page_format, false, false); +$pdf->Cell(0, 12, 'Second Page', 1, 1, 'C'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_060.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_061.php b/TCPDF/examples/example_061.php new file mode 100644 index 0000000..13e18c2 --- /dev/null +++ b/TCPDF/examples/example_061.php @@ -0,0 +1,264 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 061'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 061', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 10); + +// add a page +$pdf->AddPage(); + +/* NOTE: + * ********************************************************* + * You can load external XHTML using : + * + * $html = file_get_contents('/path/to/your/file.html'); + * + * External CSS files will be automatically loaded. + * Sometimes you need to fix the path of the external CSS. + * ********************************************************* + */ + +// define some HTML content with style +$html = << + + +

        Example of XHTML + CSS

        + +

        Example of paragraph with class selector. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc.

        + +

        Example of paragraph with ID selector. Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa.

        + +
        example of DIV with border and fill. +
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
        text-transform LOWERCASE Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
        text-transform uppercase Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
        text-transform cAPITALIZE Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        No.XXXXXXXX XXXXXXXXXXXX
        1.XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXXXXXX
        XXXX
        2.XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        3.XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        4.XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        XXXX
        +EOF; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// add a page +$pdf->AddPage(); + +$html = ' +

        HTML TIPS & TRICKS

        + +

        REMOVE CELL PADDING

        +
        $pdf->SetCellPadding(0);
        +This is used to remove any additional vertical space inside a single cell of text. + +

        REMOVE TAG TOP AND BOTTOM MARGINS

        +
        $tagvs = array(\'p\' => array(0 => array(\'h\' => 0, \'n\' => 0), 1 => array(\'h\' => 0, \'n\' => 0)));
        +$pdf->setHtmlVSpace($tagvs);
        +Since the CSS margin command is not yet implemented on TCPDF, you need to set the spacing of block tags using the following method. + +

        SET LINE HEIGHT

        +
        $pdf->setCellHeightRatio(1.25);
        +You can use the following method to fine tune the line height (the number is a percentage relative to font height). + +

        CHANGE THE PIXEL CONVERSION RATIO

        +
        $pdf->setImageScale(0.47);
        +This is used to adjust the conversion ratio between pixels and document units. Increase the value to get smaller objects.
        +Since you are using pixel unit, this method is important to set theright zoom factor.

        +Suppose that you want to print a web page larger 1024 pixels to fill all the available page width.
        +An A4 page is larger 210mm equivalent to 8.268 inches, if you subtract 13mm (0.512") of margins for each side, the remaining space is 184mm (7.244 inches).
        +The default resolution for a PDF document is 300 DPI (dots per inch), so you have 7.244 * 300 = 2173.2 dots (this is the maximum number of points you can print at 300 DPI for the given width).
        +The conversion ratio is approximatively 1024 / 2173.2 = 0.47 px/dots
        +If the web page is larger 1280 pixels, on the same A4 page the conversion ratio to use is 1280 / 2173.2 = 0.59 pixels/dots'; + +// output the HTML content +$pdf->writeHTML($html, true, false, true, false, ''); + +// reset pointer to the last page +$pdf->lastPage(); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_061.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_062.php b/TCPDF/examples/example_062.php new file mode 100644 index 0000000..45fc25d --- /dev/null +++ b/TCPDF/examples/example_062.php @@ -0,0 +1,140 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 062'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 062', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 20); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'XObject Templates', '', 0, 'C', 1, 0, false, false, 0); + +/* + * An XObject Template is a PDF block that is a self-contained + * description of any sequence of graphics objects (including path + * objects, text objects, and sampled images). + * An XObject Template may be painted multiple times, either on + * several pages or at several locations on the same page and produces + * the same results each time, subject only to the graphics state at + * the time it is invoked. + */ + + +// start a new XObject Template and set transparency group option +$template_id = $pdf->startTemplate(60, 60, true); + +// create Template content +// ................................................................... +//Start Graphic Transformation +$pdf->StartTransform(); + +// set clipping mask +$pdf->StarPolygon(30, 30, 29, 10, 3, 0, 1, 'CNZ'); + +// draw jpeg image to be clipped +$pdf->Image('images/image_demo.jpg', 0, 0, 60, 60, '', '', '', true, 72, '', false, false, 0, false, false, false); + +//Stop Graphic Transformation +$pdf->StopTransform(); + +$pdf->SetXY(0, 0); + +$pdf->SetFont('times', '', 40); + +$pdf->SetTextColor(255, 0, 0); + +// print a text +$pdf->Cell(60, 60, 'Template', 0, 0, 'C', false, '', 0, false, 'T', 'M'); +// ................................................................... + +// end the current Template +$pdf->endTemplate(); + + +// print the selected Template various times using various transparencies + +$pdf->SetAlpha(0.4); +$pdf->printTemplate($template_id, 15, 50, 20, 20, '', '', false); + +$pdf->SetAlpha(0.6); +$pdf->printTemplate($template_id, 27, 62, 40, 40, '', '', false); + +$pdf->SetAlpha(0.8); +$pdf->printTemplate($template_id, 55, 85, 60, 60, '', '', false); + +$pdf->SetAlpha(1); +$pdf->printTemplate($template_id, 95, 125, 80, 80, '', '', false); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_062.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_063.php b/TCPDF/examples/example_063.php new file mode 100644 index 0000000..de13515 --- /dev/null +++ b/TCPDF/examples/example_063.php @@ -0,0 +1,131 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 063'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 063', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', 'B', 16); + +// add a page +$pdf->AddPage(); + +$pdf->Write(0, 'Example of Text Stretching and Spacing (tracking)', '', 0, 'L', true, 0, false, false, 0); +$pdf->Ln(5); + +// create several cells to display all cases of stretching and spacing combinations. + +$fonts = array('times', 'dejavuserif'); +$alignments = array('L' => 'LEFT', 'C' => 'CENTER', 'R' => 'RIGHT', 'J' => 'JUSTIFY'); + + +// Test all cases using direct stretching/spacing methods +foreach ($fonts as $fkey => $font) { + $pdf->SetFont($font, '', 14); + foreach ($alignments as $align_mode => $align_name) { + for ($stretching = 90; $stretching <= 110; $stretching += 10) { + for ($spacing = -0.254; $spacing <= 0.254; $spacing += 0.254) { + $pdf->setFontStretching($stretching); + $pdf->setFontSpacing($spacing); + $txt = $align_name.' | Stretching = '.$stretching.'% | Spacing = '.sprintf('%+.3F', $spacing).'mm'; + $pdf->Cell(0, 0, $txt, 1, 1, $align_mode); + } + } + } + $pdf->AddPage(); +} + + +// Test all cases using CSS stretching/spacing properties +foreach ($fonts as $fkey => $font) { + $pdf->SetFont($font, '', 11); + foreach ($alignments as $align_mode => $align_name) { + for ($stretching = 90; $stretching <= 110; $stretching += 10) { + for ($spacing = -0.254; $spacing <= 0.254; $spacing += 0.254) { + $html = ''.$align_name.' | Stretching = '.$stretching.'% | Spacing = '.sprintf('%+.3F', $spacing).'mm
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
        '; + $pdf->writeHTMLCell(0, 0, '', '', $html, 1, 1, false, true, $align_mode, false); + } + } + if (!(($fkey == 1) AND ($align_mode == 'J'))) { + $pdf->AddPage(); + } + } +} + + +// reset font stretching +$pdf->setFontStretching(100); + +// reset font spacing +$pdf->setFontSpacing(0); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_063.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_064.php b/TCPDF/examples/example_064.php new file mode 100644 index 0000000..39da071 --- /dev/null +++ b/TCPDF/examples/example_064.php @@ -0,0 +1,176 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 064'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 064', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set font +$pdf->SetFont('helvetica', '', 8); + + +// define some html content for testing +$txt = '

        TEST PAGE REGIONS: A no-write region is a portion of the page with a rectangular or trapezium shape that will not be covered when writing text or html code. A region is always aligned on the left or right side of the page ad is defined using a vertical segment. You can set multiple regions for the same page. You can combine several adjacent regions to approximate curved shapes. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. +Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa. +Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu. +Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra. +Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.

        '; + + +// add a page +$pdf->AddPage(); + +// print some graphic content +$pdf->Image('images/image_demo.jpg', 155, 30, 40, 40, 'JPG', '', '', true); +$pdf->Image('images/image_demo.jpg', 15, 230, 40, 40, 'JPG', '', '', true); + +// define some graphic styles +$styleA = array('width' => 0.254, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 0, 0)); +$styleB = array('width' => 0.254, 'cap' => 'butt', 'join' => 'miter', 'dash' => 3, 'color' => array(127, 127, 127)); +$pdf->SetFillColor(220, 255, 220); + +// write a trapezoid with some information about no-write page regions +$pdf->Polygon(array(15,90, 57,90, 67,140, 15,140), 'DF', array($styleB, $styleA, $styleB, $styleB)); +$pdf->SetXY(15, 90); +$pdf->Cell(42, 0, 'xt,yt', 0, 0, 'R', false, '', 0, false, 'T', 'T'); +$pdf->SetXY(15, 140); +$pdf->Cell(52, 0, 'xb,yb', 0, 0, 'R', false, '', 0, false, 'B', 'B'); +$pdf->SetXY(15, 115); +$pdf->Cell(40, 0, 'side', 0, 0, 'R', false, '', 0, false, 'B', 'B'); +$pdf->SetLineStyle(array('width' => 0.254, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); +$pdf->Arrow(60, 115, 35, 115, 2, 5, 15); + +// write a trapezoid with some information about no-write page regions +$pdf->Polygon(array(145,130, 195,130, 195,180, 155,180), 'DF', array($styleB, $styleB, $styleB, $styleA)); +$pdf->SetXY(145, 130); +$pdf->Cell(42, 0, 'xt,yt', 0, 0, 'L', false, '', 0, false, 'T', 'T'); +$pdf->SetXY(155, 180); +$pdf->Cell(52, 0, 'xb,yb', 0, 0, 'L', false, '', 0, false, 'B', 'B'); +$pdf->SetXY(160, 155); +$pdf->Cell(30, 0, 'side', 0, 0, 'L', false, '', 0, false, 'B', 'B'); +$pdf->SetLineStyle(array('width' => 0.254, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))); +$pdf->Arrow(155, 155, 180, 155, 2, 5, 15); + +// reset x,y position +$pdf->SetXY(15, 30); + + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +// define no-write page regions to avoid text overlapping images +/* + 'page' => page number or empy for current page + 'xt' => X top + 'yt' => Y top + 'yb' => Y bottom + 'side' => page side ('L' = left or 'R' = right) +*/ +$regions = array( +array('page' => '', 'xt' => 153, 'yt' => 30, 'xb' => 153, 'yb' => 70, 'side' => 'R'), +array('page' => '', 'xt' => 60, 'yt' => 90, 'xb' => 70, 'yb' => 140, 'side' => 'L'), +array('page' => '', 'xt' => 143, 'yt' => 130, 'xb' => 153, 'yb' => 180, 'side' => 'R'), +array('page' => '', 'xt' => 58, 'yt' => 230, 'xb' => 58, 'yb' => 270, 'side' => 'L') +); + +// set page regions, check also getPageRegions(), addPageRegion() and removePageRegion() +$pdf->setPageRegions($regions); + +// write html text +$pdf->writeHTML($txt, true, false, true, false, ''); + + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +// set a circular no-write region on the second page +$regions = array( +array('page' => 2, 'xt' => 195, 'yt' => 110, 'xb' => 179.693, 'yb' => 113.045, 'side' => 'R'), +array('page' => 2, 'xt' => 179.693, 'yt' => 113.045, 'xb' => 166.716, 'yb' => 121.716, 'side' => 'R'), +array('page' => 2, 'xt' => 166.716, 'yt' => 121.716, 'xb' => 158.045, 'yb' => 134.693, 'side' => 'R'), +array('page' => 2, 'xt' => 158.045, 'yt' => 134.693, 'xb' => 155, 'yb' => 150, 'side' => 'R'), +array('page' => 2, 'xt' => 155, 'yt' => 150, 'xb' => 158.045, 'yb' => 165.307, 'side' => 'R'), +array('page' => 2, 'xt' => 158.045, 'yt' => 165.307, 'xb' => 166.716, 'yb' => 178.284, 'side' => 'R'), +array('page' => 2, 'xt' => 166.716, 'yt' => 178.284, 'xb' => 179.693, 'yb' => 186.955, 'side' => 'R'), +array('page' => 2, 'xt' => 179.693, 'yt' => 186.955, 'xb' => 195, 'yb' => 190, 'side' => 'R') +); +$pdf->setPageRegions($regions); + +$pdf->Polygon(array(195,110, 179.693,113.045, 166.716,121.716, 158.045,134.693, 155,150, 158.045,165.307, 166.716,178.284, 179.693,186.955, 195,190), 'DF'); + +$pdf->Ln(15); + +// define some html content for testing +$txt = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sed imperdiet lectus. Phasellus quis velit velit, non condimentum quam. Sed neque urna, ultrices ac volutpat vel, laoreet vitae augue. Sed vel velit erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras eget velit nulla, eu sagittis elit. Nunc ac arcu est, in lobortis tellus. Praesent condimentum rhoncus sodales. In hac habitasse platea dictumst. Proin porta eros pharetra enim tincidunt dignissim nec vel dolor. Cras sapien elit, ornare ac dignissim eu, ultricies ac eros. Maecenas augue magna, ultrices a congue in, mollis eu nulla. Nunc venenatis massa at est eleifend faucibus. Vivamus sed risus lectus, nec interdum nunc. Fusce et felis vitae diam lobortis sollicitudin. Aenean tincidunt accumsan nisi, id vehicula quam laoreet elementum. Phasellus egestas interdum erat, et viverra ipsum ultricies ac. Praesent sagittis augue at augue volutpat eleifend. Cras nec orci neque. Mauris bibendum posuere blandit. Donec feugiat mollis dui sit amet pellentesque. Sed a enim justo. Donec tincidunt, nisl eget elementum aliquam, odio ipsum ultrices quam, eu porttitor ligula urna at lorem. Donec varius, eros et convallis laoreet, ligula tellus consequat felis, ut ornare metus tellus sodales velit. Duis sed diam ante. Ut rutrum malesuada massa, vitae consectetur ipsum rhoncus sed. Suspendisse potenti. Pellentesque a congue massa. Integer non sem eget neque mattis accumsan. Maecenas eu nisl mauris, sit amet interdum ipsum. In pharetra erat vel lectus venenatis elementum. Nulla non elit ligula, sit amet mollis urna. Morbi ut gravida est. Mauris tincidunt sem et turpis molestie malesuada. Curabitur vel nulla risus, sed mollis erat. Suspendisse vehicula accumsan purus nec varius. Donec fermentum lorem id felis sodales dictum. Quisque et dolor ipsum. Nam luctus consectetur dui vitae fermentum. Curabitur sodales consequat augue, id ultricies augue tempor ac. Aliquam ac magna id ipsum vehicula bibendum. Sed elementum congue tristique. Phasellus vel lorem eu lectus porta sodales. Etiam neque tortor, sagittis id pharetra quis, laoreet vel arcu. Cras quam mi, ornare laoreet laoreet vel, vehicula at lacus. Maecenas a lacus accumsan augue convallis sagittis sed quis odio. Morbi sit amet turpis diam, dictum convallis urna. Cras eget interdum augue. Cras eu nisi sit amet dolor faucibus porttitor. Suspendisse potenti. Nunc vitae dolor risus, at cursus libero. Suspendisse bibendum tellus non nibh hendrerit tristique. Mauris eget orci elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porta libero non ante laoreet semper. Proin volutpat sodales mi, ac fermentum erat sagittis in. Vivamus at viverra felis. Ut pretium facilisis ante et pharetra. Nulla facilisi. Cras varius quam eget libero aliquam vitae tincidunt leo rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque a nisl massa, quis pretium urna. Proin vel porttitor tortor. Cras rhoncus congue velit in bibendum. Donec pharetra semper augue id lacinia. Quisque magna quam, hendrerit eu aliquam et, pellentesque ut tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas nulla quam, rutrum eu feugiat at, elementum eu libero. Maecenas ullamcorper leo et turpis rutrum ac laoreet eros faucibus. Phasellus condimentum lorem quis neque imperdiet quis molestie enim iaculis. Phasellus risus est, vestibulum ut convallis ultrices, dignissim nec erat. Etiam congue lobortis laoreet. Nulla ut neque sed velit dapibus semper. Quisque nec dolor id nibh eleifend iaculis. Vivamus vitae fermentum odio. Etiam malesuada quam in nulla aliquam sed convallis dui feugiat.'."\n"; + +// write text +$pdf->MultiCell(0, 0, $txt, 0, 'J', false, 1, '', '', true, 0, false, true, 0, 'T', false); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_064.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/example_065.php b/TCPDF/examples/example_065.php new file mode 100644 index 0000000..f1bbcbe --- /dev/null +++ b/TCPDF/examples/example_065.php @@ -0,0 +1,98 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 065'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 065', PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +// set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +// set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +// set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +// set some language-dependent strings (optional) +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { + require_once(dirname(__FILE__).'/lang/eng.php'); + $pdf->setLanguageArray($l); +} + +// --------------------------------------------------------- + +// set default font subsetting mode +$pdf->setFontSubsetting(true); + +// Set font +$pdf->SetFont('helvetica', '', 14, '', true); + +// Add a page +// This method has several options, check the source code documentation for more information. +$pdf->AddPage(); + +// Set some content to print +$html = <<Example of  TCPDF  document in PDF/A-1b mode. +This document conforms to the standard PDF/A-1b (ISO 19005-1:2005). +

        Please check the source code documentation and other examples for further information (http://www.tcpdf.org).

        +

        TO IMPROVE AND EXPAND TCPDF I NEED YOUR SUPPORT, PLEASE MAKE A DONATION!

        +EOD; + +// Print text using writeHTMLCell() +$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true); + +// --------------------------------------------------------- + +// Close and output PDF document +// This method has several options, check the source code documentation for more information. +$pdf->Output('example_065.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ diff --git a/TCPDF/examples/images/_blank.png b/TCPDF/examples/images/_blank.png new file mode 100644 index 0000000..38f7b2f Binary files /dev/null and b/TCPDF/examples/images/_blank.png differ diff --git a/TCPDF/examples/images/alpha.png b/TCPDF/examples/images/alpha.png new file mode 100644 index 0000000..5447918 Binary files /dev/null and b/TCPDF/examples/images/alpha.png differ diff --git a/TCPDF/examples/images/image_demo.jpg b/TCPDF/examples/images/image_demo.jpg new file mode 100644 index 0000000..262bce2 Binary files /dev/null and b/TCPDF/examples/images/image_demo.jpg differ diff --git a/TCPDF/examples/images/image_with_alpha.png b/TCPDF/examples/images/image_with_alpha.png new file mode 100644 index 0000000..3011618 Binary files /dev/null and b/TCPDF/examples/images/image_with_alpha.png differ diff --git a/TCPDF/examples/images/img.png b/TCPDF/examples/images/img.png new file mode 100644 index 0000000..9c1a075 Binary files /dev/null and b/TCPDF/examples/images/img.png differ diff --git a/TCPDF/examples/images/logo_example.gif b/TCPDF/examples/images/logo_example.gif new file mode 100644 index 0000000..010b487 Binary files /dev/null and b/TCPDF/examples/images/logo_example.gif differ diff --git a/TCPDF/examples/images/logo_example.jpg b/TCPDF/examples/images/logo_example.jpg new file mode 100644 index 0000000..6d9b8fd Binary files /dev/null and b/TCPDF/examples/images/logo_example.jpg differ diff --git a/TCPDF/examples/images/logo_example.png b/TCPDF/examples/images/logo_example.png new file mode 100644 index 0000000..1379945 Binary files /dev/null and b/TCPDF/examples/images/logo_example.png differ diff --git a/TCPDF/examples/images/tcpdf_box.ai b/TCPDF/examples/images/tcpdf_box.ai new file mode 100644 index 0000000..0c14846 --- /dev/null +++ b/TCPDF/examples/images/tcpdf_box.ai @@ -0,0 +1,214 @@ +%!PS-Adobe-3.0 EPSF +%%Creator: Adobe Illustrator +%%BoundingBox: -7 0 487 327 +%%HiResBoundingBox: -6.66162 2.44007e-05 486.662 326.648 +%AI5_FileFormat 3 +%%EndComments +%%BeginProlog +%%EndProlog +%%BeginSetup +%%EndSetup +1 XR +%AI5_BeginLayer +1 1 1 1 0 0 -1 49 80 161 Lb +(New Layer) Ln +0.620000 0.580000 0.435000 0.996000 K +[] 0 d +1.402287 w +0 j +0 J +0.263000 0.290000 0.898000 0.263000 k +72.7885 255.643 m +277.08 286.778 L +425.478 260.993 L +408.269 190.301 L +113.504 181.247 L +113.504 181.247 72.9813 241.769 72.7885 255.643 C +b +0.620000 0.580000 0.435000 0.996000 K +1 j +0.094000 0.102000 0.369000 0.016000 k +423.247 259.914 m +240.217 207.097 L +240.635 0.701168 L +397.776 116.053 L +423.247 259.914 L +b +0.620000 0.580000 0.435000 0.996000 K +0.133000 0.141000 0.541000 0.035000 k +72.1745 254.207 m +240.217 207.097 L +240.561 0.783816 L +101.054 87.946 L +72.1745 254.207 L +b +0.047000 0.059000 0.184000 0.004000 k +423.247 259.914 m +308.187 51.1553 L +396.862 116.972 L +423.247 259.914 L +f +0.620000 0.580000 0.435000 0.996000 K +0 j +0.047000 0.059000 0.184000 0.004000 k +479.312 250.415 m +423.613 260.243 L +240.385 206.966 L +314.061 186.394 L +479.312 250.415 L +b +0.620000 0.580000 0.435000 0.996000 K +0.047000 0.059000 0.184000 0.004000 k +69.9121 254.273 m +237.965 207.131 L +163.618 164.537 L +0.687544 234.686 L +69.9121 254.273 L +b +0.620000 0.580000 0.435000 0.996000 K +0.047000 0.059000 0.184000 0.004000 k +242.971 319.299 m +275.613 286.233 L +72.5703 254.295 L +16.555 296.161 L +242.971 319.299 L +b +0.620000 0.580000 0.435000 0.996000 K +0.133000 0.141000 0.541000 0.035000 k +423.496 260.684 m +275.426 286.441 L +307.326 316.69 L +462.053 292.606 L +423.496 260.684 L +b +0.196000 0.227000 0.871000 0.106000 k +75.26 254.037 m +274.806 285.371 L +227.928 211.257 L +163.396 228.836 130.937 238.701 75.26 254.037 C +f +0.620000 0.580000 0.435000 0.996000 K +1 j +0.169000 0.314000 0.424000 0.094000 k +275.528 286.329 m +274.75 216.78 L +275.528 286.329 L +b +0.031000 0.949000 0.745000 0.729000 k +285.929 160.982 m +285.929 160.982 285.078 139.734 285.078 139.734 C +285.078 139.734 275.378 135.096 275.378 135.096 C +275.378 135.096 273.058 57.6061 273.058 57.6061 C +273.058 57.6061 257.133 47.3536 257.133 47.3536 C +257.133 47.3536 258.059 126.816 258.059 126.816 C +258.059 126.816 247.186 121.618 247.186 121.618 C +247.186 121.618 247.186 144.26 247.186 144.26 C +247.186 144.26 285.929 160.982 285.929 160.982 C +F +0.031000 0.949000 0.745000 0.729000 k +320.884 135.342 m +320.884 135.342 307.279 128.129 307.279 128.129 C +307.279 128.129 308.36 144.944 308.36 144.944 C +308.681 149.948 308.724 153.011 308.483 154.097 C +308.268 155.24 307.632 155.567 306.572 155.073 C +305.368 154.512 304.553 153.381 304.135 151.687 C +303.718 149.995 303.36 146.608 303.063 141.565 C +303.063 141.565 300.477 97.6864 300.477 97.6864 C +300.22 93.3298 300.208 90.6032 300.439 89.4791 C +300.668 88.3599 301.318 88.1316 302.385 88.7881 C +303.403 89.4149 304.103 90.4684 304.487 91.9528 C +304.894 93.4524 305.253 96.6211 305.567 101.497 C +305.567 101.497 306.297 112.86 306.297 112.86 C +306.297 112.86 319.718 120.438 319.718 120.438 C +319.718 120.438 319.446 116.964 319.446 116.964 C +318.734 107.862 317.873 101.293 316.856 97.1389 C +315.864 93.0164 314.026 88.8059 311.329 84.474 C +308.636 80.1307 305.421 76.743 301.646 74.2975 C +297.651 71.7096 294.365 70.7251 291.812 71.3887 C +289.213 72.064 287.545 74.2699 286.838 78.0362 C +286.121 81.8925 285.954 88.3297 286.349 97.4441 C +286.349 97.4441 287.575 125.751 287.575 125.751 C +287.89 133.007 288.277 138.586 288.737 142.421 C +289.202 146.323 290.251 150.369 291.883 154.544 C +293.54 158.732 295.716 162.4 298.394 165.529 C +301.078 168.689 304.052 170.959 307.296 172.342 C +311.621 174.188 315.02 174.154 317.521 172.296 C +319.974 170.473 321.427 167.541 321.911 163.514 C +322.39 159.578 322.275 153.119 321.579 144.225 C +321.579 144.225 320.884 135.342 320.884 135.342 C +F +0.031000 0.949000 0.745000 0.729000 k +*u +329.084 179.607 m +329.084 179.607 342.074 185.214 342.074 185.214 C +345.446 186.669 347.94 187.235 349.586 186.932 C +351.233 186.642 352.374 185.695 353.019 184.1 C +353.677 182.527 353.999 180.418 353.991 177.777 C +354.005 175.2 353.703 171.072 353.088 165.429 C +353.088 165.429 352.244 157.683 352.244 157.683 C +351.634 152.084 350.908 147.89 350.063 145.056 C +349.22 142.228 347.957 139.718 346.265 137.514 C +344.583 135.308 342.474 133.487 339.919 132.046 C +339.919 132.046 336.736 130.25 336.736 130.25 C +336.736 130.25 333.512 96.527 333.512 96.527 C +333.512 96.527 321.545 88.8222 321.545 88.8222 C +321.545 88.8222 329.084 179.607 329.084 179.607 C +F +340.42 168.795 m +340.42 168.795 338.184 145.407 338.184 145.407 C +338.526 145.552 338.82 145.69 339.068 145.822 C +340.172 146.404 340.98 147.319 341.498 148.568 C +342.038 149.863 342.473 152.174 342.805 155.518 C +342.805 155.518 343.55 163.014 343.55 163.014 C +343.863 166.167 343.82 168.111 343.416 168.832 C +343.011 169.557 342.015 169.547 340.42 168.795 C +F +*U +0.031000 0.949000 0.745000 0.729000 k +*u +359.204 192.607 m +359.204 192.607 367.556 196.212 367.556 196.212 C +372.753 198.454 376.114 199.414 377.734 199.14 C +379.351 198.877 380.446 197.777 381.03 195.854 C +381.608 193.948 381.815 191.642 381.655 188.934 C +381.502 186.28 380.88 180.934 379.804 172.981 C +379.804 172.981 375.968 144.653 375.968 144.653 C +375.021 137.654 374.236 132.926 373.604 130.399 C +372.993 127.921 372.216 125.786 371.268 123.986 C +370.323 122.215 369.243 120.698 368.023 119.43 C +366.801 118.187 365.012 116.807 362.638 115.279 C +362.638 115.279 349.593 106.88 349.593 106.88 C +349.593 106.88 359.204 192.607 359.204 192.607 C +F +368.395 181.985 m +368.395 181.985 361.644 126.918 361.644 126.918 C +363.113 127.815 364.084 128.947 364.566 130.32 C +365.053 131.727 365.629 135.077 366.301 140.416 C +366.301 140.416 370.368 172.752 370.368 172.752 C +370.86 176.666 371.12 179.163 371.145 180.223 C +371.168 181.285 371.006 181.972 370.654 182.282 C +370.306 182.629 369.555 182.531 368.395 181.985 C +F +*U +0.031000 0.949000 0.745000 0.729000 k +387.58 204.854 m +387.58 204.854 403.348 211.659 403.348 211.659 C +403.348 211.659 400.803 195.062 400.803 195.062 C +400.803 195.062 394.579 192.087 394.579 192.087 C +394.579 192.087 392.296 176.619 392.296 176.619 C +392.296 176.619 397.801 179.482 397.801 179.482 C +397.801 179.482 395.533 164.634 395.533 164.634 C +395.533 164.634 390.075 161.574 390.075 161.574 C +390.075 161.574 385.406 129.937 385.406 129.937 C +385.406 129.937 376.374 124.122 376.374 124.122 C +376.374 124.122 387.58 204.854 387.58 204.854 C +F +LB +%AI5_EndLayer-- +%AI5_BeginLayer +1 1 1 1 0 0 -1 49 80 161 Lb +(MasterLayer 1) Ln +LB +%AI5_EndLayer-- +%%Trailer +%%EOF diff --git a/TCPDF/examples/images/tcpdf_box.svg b/TCPDF/examples/images/tcpdf_box.svg new file mode 100644 index 0000000..8c29e64 --- /dev/null +++ b/TCPDF/examples/images/tcpdf_box.svg @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + diff --git a/TCPDF/examples/images/tcpdf_cell.png b/TCPDF/examples/images/tcpdf_cell.png new file mode 100644 index 0000000..98a1553 Binary files /dev/null and b/TCPDF/examples/images/tcpdf_cell.png differ diff --git a/TCPDF/examples/images/tcpdf_logo.jpg b/TCPDF/examples/images/tcpdf_logo.jpg new file mode 100644 index 0000000..257f8fb Binary files /dev/null and b/TCPDF/examples/images/tcpdf_logo.jpg differ diff --git a/TCPDF/examples/images/tcpdf_signature.png b/TCPDF/examples/images/tcpdf_signature.png new file mode 100644 index 0000000..a4f0637 Binary files /dev/null and b/TCPDF/examples/images/tcpdf_signature.png differ diff --git a/TCPDF/examples/images/testsvg.svg b/TCPDF/examples/images/testsvg.svg new file mode 100644 index 0000000..fd8314e --- /dev/null +++ b/TCPDF/examples/images/testsvg.svg @@ -0,0 +1,328 @@ + + + + + TCPDF SVG EXAMPLE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + www.tcpdf.org + + + + + + + + SVG + diff --git a/TCPDF/examples/images/tux.svg b/TCPDF/examples/images/tux.svg new file mode 100644 index 0000000..de8c869 --- /dev/null +++ b/TCPDF/examples/images/tux.svg @@ -0,0 +1,1487 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TCPDF/examples/index.php b/TCPDF/examples/index.php new file mode 100644 index 0000000..7512523 --- /dev/null +++ b/TCPDF/examples/index.php @@ -0,0 +1,115 @@ +'; +?> + + + + + +TCPDF Examples + + + + + + + + +

        TCPDF Examples

        + +

        PDF

        + +
          +
        1. Simple PDF with default Header and Footer: [PDF]
        2. +
        3. Simple PDF without Header and Footer: [PDF]
        4. +
        5. Custom Header and Footer: [PDF]
        6. +
        7. Cell stretching: [PDF]
        8. +
        9. Multicell: [PDF]
        10. +
        11. WriteHTML and RTL support: [PDF]
        12. +
        13. Independent columns with WriteHTMLCell: [PDF]
        14. +
        15. External UTF-8 text file: [PDF]
        16. +
        17. Image: [PDF]
        18. +
        19. Multiple columns: [PDF]
        20. +
        21. Colored Tables: [PDF]
        22. +
        23. Graphic Functions: [PDF]
        24. +
        25. Graphic Transformations: [PDF]
        26. +
        27. Javascript and Forms: [PDF]
        28. +
        29. Bookmarks (Table of Content): [PDF]
        30. +
        31. Document Encryption: [PDF]
        32. +
        33. Independent columns with MultiCell: [PDF]
        34. +
        35. Persian and Arabic language on RTL document: [PDF]
        36. +
        37. Non unicode / Alternative config file: [PDF]
        38. +
        39. Multicell complex alignment: [PDF]
        40. +
        41. writeHTML alignment: [PDF]
        42. +
        43. CMYK colors: [PDF]
        44. +
        45. Page Groups: [PDF]
        46. +
        47. Object Visibility and Layers: [PDF]
        48. +
        49. Object Transparency: [PDF]
        50. +
        51. Text Rendering Modes and Text Clipping: [PDF]
        52. +
        53. 1D Barcodes: [PDF]
        54. +
        55. Multiple page formats: [PDF]
        56. +
        57. Set PDF viewer display preferences: [PDF]
        58. +
        59. Colour gradients: [PDF]
        60. +
        61. Pie Chart Graphic: [PDF]
        62. +
        63. EPS/AI vectorial image: [PDF]
        64. +
        65. Mixed font types (TrueType Unicode, core, CID-0): [PDF]
        66. +
        67. Clipping masks: [PDF]
        68. +
        69. Line styles with cells and multicells: [PDF]
        70. +
        71. Text Annotations: [PDF]
        72. +
        73. Spot Colors: [PDF]
        74. +
        75. NON-embedded CID-0 CJK font: [PDF]
        76. +
        77. HTML Justification: [PDF]
        78. +
        79. Booklet (double-sided pages): [PDF]
        80. +
        81. File attachment: [PDF]
        82. +
        83. Image with Alpha Channel Transparency: [PDF]
        84. +
        85. Disk caching: [PDF]
        86. +
        87. Move, Copy and Delete page: [PDF]
        88. +
        89. Table Of Content with Bookmarks: [PDF]
        90. +
        91. Text hyphenation: [PDF]
        92. +
        93. Transactions and UNDO: [PDF]
        94. +
        95. Table header and rowspan: [PDF]
        96. +
        97. TCPDF methods in HTML: [PDF]
        98. +
        99. 2D Barcode (QR-Code, Datamatrix ECC200 and PDF417): [PDF]
        100. +
        101. Full page background: [PDF]
        102. +
        103. Digital Signature Certification: [PDF]
        104. +
        105. Javascript functions: [PDF]
        106. +
        107. XHTML Form: [PDF]
        108. +
        109. Font Dump: [PDF]
        110. +
        111. Crop Marks and Registration Marks: [PDF]
        112. +
        113. Cell vertical alignments and borders: [PDF]
        114. +
        115. SVG Image: [PDF]
        116. +
        117. Table Of Content with HTML templates: [PDF]
        118. +
        119. Advanced page settings: [PDF]
        120. +
        121. XHTML + CSS: [PDF]
        122. +
        123. XObject Templates: [PDF]
        124. +
        125. Text stretching and spacing (tracking/kerning): [PDF]
        126. +
        127. No-write page regions: [PDF]
        128. +
        129. PDF/A-1b (ISO 19005-1:2005) document: [PDF]
        130. +
        + +

        Barcodes

        + +
          +
        1. 1D barcode HTML format [HTML]
        2. +
        3. 1D barcode PNG format [PNG]
        4. +
        5. 1D barcode SVG format [SVG]
        6. +
        7. 1D barcode SVG INLINE format [SVG INLINE]
        8. + +
        9. 2D datamatrix barcode HTML format [HTML]
        10. +
        11. 2D datamatrix barcode PNG format [PNG]
        12. +
        13. 2D datamatrix barcode SVG format [SVG]
        14. +
        15. 2D datamatrix barcode SVG INLINE format [SVG INLINE]
        16. + +
        17. 2D pdf417 barcode HTML format [HTML]
        18. +
        19. 2D pdf417 barcode PNG format [PNG]
        20. +
        21. 2D pdf417 barcode SVG format [SVG]
        22. +
        23. 2D pdf417 barcode SVG INLINE format [SVG INLINE]
        24. + +
        25. 2D qrcode barcode HTML format [HTML]
        26. +
        27. 2D qrcode barcode PNG format [PNG]
        28. +
        29. 2D qrcode barcode SVG format [SVG]
        30. +
        31. 2D qrcode barcode SVG INLINE format [SVG INLINE]
        32. +
        + + + diff --git a/TCPDF/examples/lang/afr.php b/TCPDF/examples/lang/afr.php new file mode 100644 index 0000000..367b7e8 --- /dev/null +++ b/TCPDF/examples/lang/afr.php @@ -0,0 +1,44 @@ + + Copyright (C) + + 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 + the Free Software Foundation; either version 2 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. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. + diff --git a/TCPDF/fonts/ae_fonts_2.0/ChangeLog b/TCPDF/fonts/ae_fonts_2.0/ChangeLog new file mode 100644 index 0000000..3e2a906 --- /dev/null +++ b/TCPDF/fonts/ae_fonts_2.0/ChangeLog @@ -0,0 +1,863 @@ +2007-08-20 00:48 Youssef Chahibi + + * sfd/ae_AlArabiya.sfd: Diagonal marks + +2007-08-20 00:25 Khaled Hosny + + * README: Added Release notes, preparing for 2.0 release. + +2007-08-19 23:19 Youssef Chahibi + + * sfd/ae_AlArabiya.sfd: Stack diacritics definition + +2007-08-19 22:56 Khaled Hosny + + * sfd/ae_Tholoth.sfd: + * Added 'rlg' lookup table and subtable and registered stacked + diacritic ligatures. + * kasrah and kasratan were too close to the base glyph, fixed. + +2007-08-19 22:28 Khaled Hosny + + * sfd/: ae_AlHor.sfd, ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, + ae_AlYarmook.sfd, ae_Arab.sfd, ae_Cortoba.sfd, ae_Furat.sfd, + ae_Graph.sfd, ae_Kayrawan.sfd, ae_Khalid.sfd, ae_Mashq-Bold.sfd, + ae_Mashq.sfd, ae_Metal.sfd, ae_Nada.sfd, ae_Nagham.sfd, + ae_Ostorah.sfd, ae_Ouhod-Bold.sfd, ae_Petra.sfd, + ae_Rasheeq-Bold.sfd, ae_Rehan.sfd, ae_Salem.sfd, ae_Shado.sfd, + ae_Sharjah.sfd, ae_Sindbad.sfd, ae_Tarablus.sfd: Scaled up + diacritic glyphs, this makes them more readable. + +2007-08-19 22:03 Youssef Chahibi + + * sfd/ae_AlArabiya.sfd: New sukun, removed wrong anchors from + kasrah + +2007-08-19 20:26 Khaled Hosny + + * sfd/ae_AlMothnna-Bold.sfd: Added 'rlg' lookup table and subtable + and registered stacked diacritic ligatures. + +2007-08-19 18:28 Youssef Chahibi + + * sfd/ae_AlMothnna-Bold.sfd: Fixed shaddas + +2007-08-19 18:01 Youssef Chahibi + + * sfd/ae_AlMothnna-Bold.sfd: Stacked diacrititcs + +2007-08-19 14:49 Khaled Hosny + + * sfd/ae_AlArabiya.sfd: Removed mark2mark anchors, now we use + ligature substitution for stacked diacritics instead of anchors. + Added 'rlg' lookup table and subtable and registered stacked + diacritic ligatures. + +2007-08-19 02:30 Youssef Chahibi + + * sfd/ae_AlArabiya.sfd: Stacked diacritics added + +2007-08-19 01:53 Khaled Hosny + + * sfd/ArabicReesha.sfd: + * Added to new ligatures; and + . + * Small fixes to Jeem isolated width. + +2007-08-18 21:30 Youssef Chahibi + + * sfd/ae_AlMothnna-Bold.sfd: Diacritics fixed except allahisolated + ligature + +2007-08-18 20:13 Khaled Hosny + + * sfd/ae_AlMothnna-Bold.sfd: Removed old, buggy, anchors and auto + added new ones, needs manual editing. + +2007-08-18 19:11 Youssef Chahibi + + * sfd/ae_AlMothnna-Bold.sfd: New shadda, modified sukun to meet the + other marks + +2007-08-18 17:20 Youssef Chahibi + + * sfd/ae_AlArabiya.sfd: New diacritics for ae_AlArabiya.sfd + +2007-08-17 23:19 Afief Halumi + + * sfd/ae_Tholoth.sfd: ae_Tholoth.sfd: Added glyphs U+FC5E - U+FC62. + +2007-08-16 14:56 Khaled Hosny + + * sfd/ae_AlMohanad.sfd: AlMohanad: Fixed U+FEDA (kaf final) to take + the shape of ordinary final kaf rather than the long variant. + +2007-08-15 14:25 Khaled Hosny + + * sfd/ArabicReesha.sfd: ArabicReesha.sfd: Fixed a bug that caused + some isolated glyphs to have more space to the right. + +2007-08-15 12:02 Khaled Hosny + + * sfd/: ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, ae_AlYarmook.sfd, + ae_Electron.sfd, ae_Hani.sfd, ae_Haramain.sfd, ae_Khalid.sfd, + ae_Rasheeq-Bold.sfd, ae_Rehan.sfd, ae_Sharjah.sfd, + ae_Tarablus.sfd, ae_Tholoth.sfd: Add new 'liga' table without + "Ignore Combining Marks" flag, allahisolated ligature belong to that + table now, so when allahisolated has a tashkil on it, the ligature + will be ignored and will use normal glyphs instead. + +2007-08-15 11:05 Khaled Hosny + + * sfd/: ae_Granada.sfd, ae_Graph.sfd, ae_Haramain.sfd, + ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, ae_Sindbad.sfd, + ae_Tarablus.sfd: Added "Ignore Combining Marks flag" to 'liga' + table. + +2007-08-15 10:35 Khaled Hosny + + * sfd/ArabicReesha.sfd: ArabicReesha: New font based on SIL's + Scheherazade, first version. + +2007-08-15 00:23 Khaled Hosny + + * sfd/ae_AlArabiya.sfd: Shadda was missing mark2mark below anchor. + +2007-08-14 23:28 Mohammed Adnene Trojette + + * Makefile: GPL has been removed + +2007-08-14 23:21 Mohammed Adnene Trojette + + * COPYING, README: Copyright informations + +2007-08-14 23:05 Khaled Hosny + + * COPYING: Updated to refer to FreeFonts project. + +2007-08-14 22:56 Khaled Hosny + + * sfd/ae_Salem.sfd: Updated the copyright statement, to mention GPL + font exception and FreeFonts project, again + +2007-08-14 22:43 Afief Halumi + + * sfd/ae_Salem.sfd: Revert to 1.7 and added Allah anchors(again). + +2007-08-14 21:35 Afief Halumi + + * sfd/ae_Tholoth.sfd: Minor positioning fix + +2007-08-14 21:12 Khaled Hosny + + * sfd/ae_Tholoth.sfd: Added missed U+0647. + +2007-08-14 18:37 Khaled Hosny + + * sfd/: ae_AlArabiya.sfd, ae_AlBattar.sfd, ae_AlHor.sfd, + ae_AlManzomah.sfd, ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, + ae_AlMothnna-Bold.sfd, ae_AlYarmook.sfd, ae_Arab.sfd, + ae_Cortoba.sfd, ae_Dimnah.sfd, ae_Electron.sfd, ae_Furat.sfd, + ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd, ae_Haramain.sfd, + ae_Hor.sfd, ae_Japan.sfd, ae_Jet.sfd, ae_Kayrawan.sfd, + ae_Khalid.sfd, ae_Mashq-Bold.sfd, ae_Mashq.sfd, ae_Metal.sfd, + ae_Nada.sfd, ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, + ae_Ouhod-Bold.sfd, ae_Petra.sfd, ae_Rasheeq-Bold.sfd, + ae_Rehan.sfd, ae_Salem.sfd, ae_Shado.sfd, ae_Sharjah.sfd, + ae_Sindbad.sfd, ae_Tarablus.sfd, ae_Tholoth.sfd: Updated the + copyright statement, to mention GPL font exception and FreeFonts + project. + +2007-08-13 22:18 Khaled Hosny + + * sfd/: ae_AlArabiya.sfd, ae_AlBattar.sfd, ae_AlManzomah.sfd, + ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, ae_AlMothnna-Bold.sfd, + ae_Arab.sfd, ae_Cortoba.sfd, ae_Electron.sfd, ae_Furat.sfd, + ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd, ae_Haramain.sfd, + ae_Hor.sfd, ae_Jet.sfd, ae_Kayrawan.sfd, ae_Mashq-Bold.sfd, + ae_Mashq.sfd, ae_Nada.sfd, ae_Nagham.sfd, ae_Nice.sfd, + ae_Ostorah.sfd, ae_Ouhod-Bold.sfd, ae_Petra.sfd, + ae_Rasheeq-Bold.sfd, ae_Rehan.sfd, ae_Salem.sfd, ae_Shado.sfd, + ae_Sharjah.sfd, ae_Sindbad.sfd, ae_Tarablus.sfd, ae_Tholoth.sfd: + * Add missed mark2mark anchors in the affected files, though we + aren't going to use this on the long run, but I'll leave that task + for 2.1 . + * Reencoded all files to unicode glyph map. + +2007-08-13 14:47 Khaled Hosny + + * sfd/: ae_Petra.sfd, ae_Shado.sfd: ae_Petra.sfd, ae_Shado.sfd: + Full support for diacritics positioning by Osama Khalid. + +2007-08-13 10:38 Khaled Hosny + + * sfd/: ae_Hor.sfd, ae_Sharjah.sfd: + * ae_Hor: Full support for diacritics positioning by Fahd. + * ae_Sharjah: Full support for diacritics positioning by Fahd. + +2007-08-13 05:34 Youssef Chahibi + + * sfd/: ae_Nice.sfd, ae_Tarablus.sfd: Full diacritics supports, + needs a check + +2007-08-13 05:24 Youssef Chahibi + + * sfd/ae_Nagham.sfd: Full diacritics supports, needs a check + +2007-08-13 05:08 Youssef Chahibi + + * sfd/ae_Haramain.sfd: Full diacritics supports, needs a check + +2007-08-13 04:42 Youssef Chahibi + + * sfd/ae_Graph.sfd: Full diacritics supports, needs a check + +2007-08-13 04:38 Youssef Chahibi + + * sfd/ae_Granada.sfd: Full diacritics supports, needs a check + +2007-08-13 03:28 Afief Halumi + + * sfd/ae_Ostorah.sfd: ae_Ostorah.sfd: Full support for diacritic + positioning. + +2007-08-13 02:13 Youssef Chahibi + + * sfd/ae_Haramain.sfd: Done: replaced ugly marks, repositioned + below marks + +2007-08-13 01:31 Youssef Chahibi + + * sfd/ae_Graph.sfd: Done, needs to be checked + +2007-08-13 01:16 Youssef Chahibi + + * sfd/ae_Granada.sfd: Done, needs to be checked + +2007-08-12 23:05 Youssef Chahibi + + * sfd/: ae_Tarablus.sfd: First steps + +2007-08-12 18:24 Afief Halumi + + * sfd/ae_Electron.sfd: ae_Electron.sfd: Full support for diacritic + positioning. + +2007-08-12 16:06 Khaled Hosny + + * sfd/ae_Hani.sfd: ae_Hani.sfd: Full support for diacritic + positioning by Osama Khaled + +2007-08-11 23:33 Afief Halumi + + * sfd/ae_Ouhod-Bold.sfd: ae_Ouhod-Bold.sfd: Full support for + diacritic positioning. + +2007-08-11 21:28 Afief Halumi + + * sfd/ae_Rasheeq-Bold.sfd: ae_Rasheeq-Bold.sfd: Full diacritic + support. + +2007-08-11 15:09 Khaled Hosny + + * sfd/ae_Hor.sfd: some fixes + +2007-08-11 14:55 Khaled Hosny + + * sfd/: ae_Electron.sfd, ae_Granada.sfd, ae_Graph.sfd, + ae_Haramain.sfd, ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, + ae_Ouhod-Bold.sfd, ae_Rasheeq-Bold.sfd, ae_Shado.sfd, + ae_Sharjah.sfd, ae_Tarablus.sfd: More tweaking, it is ready for + manual editing now (I hope so). + +2007-08-11 11:08 Khaled Hosny + + * sfd/ae_Hor.sfd: Fahd: I updated the anchor points, please use + this instead of the old version. + +2007-08-11 10:45 Khaled Hosny + + * sfd/: ae_Electron.sfd, ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd, + ae_Haramain.sfd, ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, + ae_Ouhod-Bold.sfd, ae_Petra.sfd, ae_Rasheeq-Bold.sfd, + ae_Shado.sfd, ae_Sharjah.sfd, ae_Tarablus.sfd: Replaced old + anchor points with new ones and better automatic positioning using + the improved addanchors.pe script. Please update your local copy + before doing any further work, this will make our life easier. + +2007-08-11 10:25 Khaled Hosny + + * tools/addanchors.pe: Now X and Y values are computed to produce a + far better result, the needed manual tweaking is very little now. + +2007-08-10 01:27 Khaled Hosny + + * sfd/ae_Nada.sfd: ae_Nada.sfd: Full support for diacritic + positioning by Fahd AlSaidi. + +2007-08-07 23:47 Khaled Hosny + + * sfd/ae_AlYarmook.sfd: + * ae_AlYarmook.sfd: Changed font name and other related feilds from + AlYermook to AlYarmook + * ae_AlYarmook.sfd: Full support for diacritic positioning. + +2007-08-07 00:22 Khaled Hosny + + * sfd/ae_Mashq-Bold.sfd: sfd/ae_Mashq-Bold.sfd: Full support for + diacritic positioning. + +2007-08-06 02:58 Khaled Hosny + + * sfd/ae_Rehan.sfd: Mark to mark ligatures were too close, fixed. + +2007-08-04 20:14 Afief Halumi + + * sfd/ae_Rehan.sfd: ae_Rehan.sfd: Full support for diacritic + positioning. + +2007-08-04 01:22 Khaled Hosny + + * sfd/ae_Mashq.sfd: ae_Mashq.sfd: Full support for diacritic + positioning. + +2007-08-04 01:19 Khaled Hosny + + * sfd/ae_Khalid.sfd: Reencoded the file to Unicode. + +2007-08-04 01:16 Khaled Hosny + + * sfd/ae_Kayrawan.sfd: Fixed ArabicMark2MarkBelow anchor point. + Reencoded the file to Unicode. + +2007-08-03 06:12 Youssef Chahibi + + * sfd/ae_Kayrawan.sfd: Fixed two letters ligatures diacritics + +2007-08-03 05:55 Youssef Chahibi + + * sfd/ae_Kayrawan.sfd: Added لله ligature diacritics + +2007-08-03 05:01 Youssef Chahibi + + * sfd/ae_Kayrawan.sfd: Ignore combining marks set + +2007-08-03 04:51 Youssef Chahibi + + * sfd/ae_Kayrawan.sfd: Full diacritics support - + ArabicMark2MarkBelow need to be checked + +2007-08-03 02:40 Afief Halumi + + * sfd/ae_Salem.sfd: Added and positioned anchors for Allah glyph. + +2007-08-03 02:32 Khaled Hosny + + * sfd/ae_Dimnah.sfd: ae_Dimnah.sfd: Full support for diacritic + positioning. + +2007-08-03 01:26 Youssef Chahibi + + * sfd/ae_Kayrawan.sfd: First steps in font editing + +2007-08-03 00:10 Afief Halumi + + * sfd/ae_Salem.sfd: ae_Salem.sfd: Full diacritic support. + +2007-08-02 04:50 Khaled Hosny + + * sfd/ae_Arab.sfd: Fixed ligatures anchor points. + +2007-08-02 02:15 Khaled Hosny + + * sfd/ae_Arab.sfd: Support for diacritic positioning by Osama + Khalid. + +2007-08-01 23:09 Khaled Hosny + + * sfd/ae_AlManzomah.sfd: ae_AlManzomah.sfd: Full support for + diacritic positioning. + +2007-08-01 01:56 Khaled Hosny + + * sfd/ae_Khalid.sfd: ae_Khalid.sfd: Full support for diacritic + positioning. + +2007-07-28 11:43 Khaled Hosny + + * sfd/ae_AlMateen-Bold.sfd: ae_AlMateen-Bold.sfd: Full support for + diacritic positioning. + +2007-07-27 22:16 Afief Halumi + + * Makefile: New make targets as requested by KhaledHosney. + +2007-07-27 21:04 Khaled Hosny + + * sfd/ae_AlHor.sfd: ae_AlHor.sfd: Full diacritic support + +2007-07-26 10:14 Afief Halumi + + * sfd/ae_Jet.sfd: ./sfd/ae_Jet.sfd: Full diacritic support. + +2007-07-26 01:38 Khaled Hosny + + * sfd/ae_Japan.sfd: Aeif, you forgot the ligatures and letter beh + isolated, fixed + +2007-07-25 14:41 Khaled Hosny + + * sfd/ae_Metal.sfd: Add anchor points for لله ligature + +2007-07-25 12:52 Afief Halumi + + * sfd/ae_Metal.sfd: ae_Metal: Full diacritic support. + +2007-07-25 01:36 Afief Halumi + + * sfd/ae_Japan.sfd: ae_Japan: Full diacritic support. + +2007-07-25 01:28 Khaled Hosny + + * sfd/ae_Cortoba.sfd: minor fix + +2007-07-25 00:24 Khaled Hosny + + * sfd/ae_Cortoba.sfd: + + ----------------------------------------------------------------------ae_Cortoba.sfd: Full support for diacritic positioning. + +2007-07-24 18:34 Khaled Hosny + + * tools/generate.sh: not needed any more, use 'make' instead + +2007-07-24 18:31 Khaled Hosny + + * sfd/ae_Sindbad.sfd: Add anchor points for لله ligature + +2007-07-24 18:04 Khaled Hosny + + * sfd/ae_AlArabiya.sfd: Fixed ligatures anchor points + +2007-07-24 17:55 Khaled Hosny + + * sfd/ae_Furat.sfd: Add anchor points for لله ligature + +2007-07-23 23:16 Khaled Hosny + + * README, README.cvs: + - new readme file to explain how to build ttf onts from our cvs + tree. + +2007-07-23 23:01 Khaled Hosny + + * sfd/ae_AlBattar.sfd: few fixes in the diacritic positions + +2007-07-23 13:56 Khaled Hosny + + * sfd/ae_AlBattar.sfd: ae_AlBattar.sfd, full support for diacritic + positioning. + +2007-07-23 05:28 Afief Halumi + + * Makefile: Now doesn't rebuild untouched fonts, should save some + server cycles. + +2007-07-23 04:00 Khaled Hosny + + * sfd/ae_Sindbad.sfd: Unchecked 'compact' option + +2007-07-23 00:16 Khaled Hosny + + * sfd/ae_Sindbad.sfd: + - Add the missed "Ignore Combining Marks" feature to Arabic liga + lookuptable, Afief please remember this. + - Few changes in ArabicBelow anchor points placement. + +2007-07-22 14:42 Khaled Hosny + + * sfd/ae_AlBattar.sfd: Diacritic support, for isolated glyphs only. + +2007-07-22 00:43 Afief Halumi + + * sfd/ae_Sindbad.sfd: Full support for diacritic positioning. + +2007-07-21 21:38 Khaled Hosny + + * Makefile: fixed "clean" to remove the bzipped archive. + +2007-07-21 21:34 Khaled Hosny + + * Makefile: + - All files are under ae_fonts dir now. + - The archive is bzipped. + +2007-07-21 20:05 Afief Halumi + + * Makefile: Committed the Makefile. Hope you like it. + +2007-07-21 19:11 Khaled Hosny + + * tools/generate.pe: Add a usage note. + +2007-07-21 19:09 Khaled Hosny + + * tools/generate.pe: Now accepts a 2nd argument for the .ttf file + name. + +2007-07-21 18:52 Afief Halumi + + * sfd/ae_Tholoth.sfd: A few fixes in positioning. + +2007-07-21 16:48 Afief Halumi + + * sfd/ae_Tholoth.sfd: Finished work on ae_Tholoth.sfd; Added a few + better glyphs and full support for diacritic positioning. + +2007-07-21 00:04 Khaled Hosny + + * sfd/ae_Tholoth.sfd: + + Diacritics work by afief + +2007-07-19 23:49 Khaled Hosny + + * tools/addanchors.pe: Add support for mark2glyph anchor points, + thanks George Williams for fixing fontforge's bug. + +2007-07-19 23:16 Khaled Hosny + + * sfd/: ae_AlBattar.sfd, ae_AlHor.sfd, ae_AlManzomah.sfd, + ae_AlMateen-Bold.sfd, ae_AlYarmook.sfd, ae_Arab.sfd, + ae_Cortoba.sfd, ae_Dimnah.sfd, ae_Electron.sfd, ae_Granada.sfd, + ae_Graph.sfd, ae_Hani.sfd, ae_Haramain.sfd, ae_Hor.sfd, + ae_Japan.sfd, ae_Jet.sfd, ae_Kayrawan.sfd, ae_Khalid.sfd, + ae_Mashq-Bold.sfd, ae_Mashq.sfd, ae_Metal.sfd, ae_Nada.sfd, + ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, ae_Ouhod-Bold.sfd, + ae_Petra.sfd, ae_Rasheeq-Bold.sfd, ae_Rehan.sfd, ae_Salem.sfd, + ae_Shado.sfd, ae_Sharjah.sfd, ae_Sindbad.sfd, ae_Tarablus.sfd, + ae_Tholoth.sfd: + + - Removed Cyrillic and Greek glyphs, this makes the font more + lighter. + - Add all needed anchor points, still needs to be manually adjusted. + +2007-07-19 23:15 Khaled Hosny + + * sfd/: ae_AlMohanad.sfd, ae_AlMothnna-Bold.sfd, ae_Furat.sfd: + Removed Cyrillic and Greek glyphs, this makes the font more lighter. + +2007-07-19 23:12 Khaled Hosny + + * sfd/ae_AlArabiya.sfd: full support for diacritic positioning + +2007-07-18 14:57 Khaled Hosny + + * sfd/ae_AlArabiya.sfd: + + Full mark2base and mark2mark anchor points + +2007-07-16 20:53 Khaled Hosny + + * sfd/ae_Nada.sfd: + + Removed obsolete reference to Btstream copyright, we don't include + any Bitstream copyrighted glyphs anymore. + +2007-07-16 20:03 Khaled Hosny + + * tools/: addanchors.pe, addlookups.pe, cp.pe, generate.pe: + + use "#!/usr/bin/env fontforge" instead of "#!/usr/bin/fontforge" + +2007-07-16 13:47 Khaled Hosny + + * sfd/ae_AlMohanad.sfd: + + Full support for proper diacritics positioning + +2007-07-16 00:16 Khaled Hosny + + * tools/: addanchors.pe, addlookups.pe, cp.pe, generate.pe: Now the + scripts require Fotforge 20070501 or newer, older versions use older + SFD formate which we don't suport. + +2007-07-16 00:09 Khaled Hosny + + * sfd/ae_AlArabiya.sfd: Add support for proper diacritic + positioning by Afief Halumi, still in progress + +2007-07-15 23:48 Khaled Hosny + + * sfd/ae_Furat.sfd: full support for diacritic positioning + +2007-07-15 20:08 Khaled Hosny + + * sfd/: ae_AlBattar.sfd, ae_AlHor.sfd, ae_AlManzomah.sfd, + ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, ae_AlYarmook.sfd, + ae_Arab.sfd, ae_Cortoba.sfd, ae_Dimnah.sfd, ae_Electron.sfd, + ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd, ae_Haramain.sfd, + ae_Hor.sfd, ae_Japan.sfd, ae_Jet.sfd, ae_Kayrawan.sfd, + ae_Khalid.sfd, ae_Mashq-Bold.sfd, ae_Mashq.sfd, ae_Metal.sfd, + ae_Nada.sfd, ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, + ae_Ouhod-Bold.sfd, ae_Petra.sfd, ae_Rasheeq-Bold.sfd, + ae_Rehan.sfd, ae_Salem.sfd, ae_Shado.sfd, ae_Sharjah.sfd, + ae_Sindbad.sfd, ae_Tarablus.sfd, ae_Tholoth.sfd: removed traces + of ae_ prefix + +2007-07-15 19:44 Khaled Hosny + + * sfd/ae_AlArabiya.sfd: removed traces of ae_ prefix + +2007-07-13 20:14 Khaled Hosny + + * sfd/ae_AlMothnna-Bold.sfd: + - Removed traces of ae_ prefix. + - Full support for proper Arabic diacritics positioning. + +2007-07-13 19:38 Khaled Hosny + + * sfd/ae_Furat.sfd: + - Removed traces of ae_ prefix. + - add anchor points for Arabic diacritics, needs manual tuning. + +2007-07-13 19:09 Khaled Hosny + + * tools/: addanchors.pe, addlookups.pe: scripts to assist adding + lookup tables and anchor points needed for proper diacritics + (harakat) support. + +2007-07-01 03:31 Khaled Hosny + + * sfd/: ae_AlArabiya.sfd, ae_AlBattar.sfd, ae_AlHor.sfd, + ae_AlManzomah.sfd, ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, + ae_AlMothnna-Bold.sfd, ae_AlYarmook.sfd, ae_Arab.sfd, + ae_Cortoba.sfd, ae_Dimnah.sfd, ae_Electron.sfd, ae_Furat.sfd, + ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd, ae_Haramain.sfd, + ae_Hor.sfd, ae_Japan.sfd, ae_Jet.sfd, ae_Kayrawan.sfd, + ae_Khalid.sfd, ae_Mashq-Bold.sfd, ae_Mashq.sfd, ae_Metal.sfd, + ae_Nada.sfd, ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, + ae_Ouhod-Bold.sfd, ae_Petra.sfd, ae_Rasheeq-Bold.sfd, + ae_Rehan.sfd, ae_Salem.sfd, ae_Shado.sfd, ae_Sharjah.sfd, + ae_Sindbad.sfd, ae_Tarablus.sfd, ae_Tholoth.sfd: Removed ae_ + prefix from all fonts, see + http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=361965 + +2007-06-30 22:02 Khaled Hosny + + * README: Initial README file + +2007-06-30 20:20 Khaled Hosny + + * tools/: generate.pe, generate.sh: Scripts to generate TTF files + from SFD ones. + +2007-06-30 19:58 Khaled Hosny + + * sfd/ae_Tarablus.sfd: add the missed U+F6BE that caused bug in 'j' + glyph, CVS_SILENT + +2007-06-30 19:48 Khaled Hosny + + * sfd/ae_Sindbad.sfd: + add the missed U+F6BE that caused bug in 'j' glyph, CVS_SILENT + +2007-06-23 22:29 Khaled Hosny + + * sfd/: ae_Shado.sfd, ae_Sharjah.sfd: add the missed U+F6BE that + caused bug in 'j' glyph + +2007-06-23 22:26 Khaled Hosny + + * sfd/: ae_Rasheeq-Bold.sfd, ae_Rehan.sfd, ae_Salem.sfd: add the + missed U+F6BE that caused bug in 'j' glyph + +2007-06-23 22:22 Khaled Hosny + + * sfd/: ae_Nice.sfd, ae_Ostorah.sfd, ae_Ouhod-Bold.sfd, + ae_Petra.sfd: add the missed U+F6BE that caused bug in 'j' glyph + +2007-06-23 22:19 Khaled Hosny + + * sfd/: ae_Metal.sfd, ae_Nada.sfd, ae_Nagham.sfd: add the missed + U+F6BE that caused bug in 'j' glyph + +2007-06-23 22:16 Khaled Hosny + + * sfd/: ae_Kayrawan.sfd, ae_Khalid.sfd, ae_Mashq-Bold.sfd, + ae_Mashq.sfd: add the missed U+F6BE that caused bug in 'j' glyph + +2007-06-23 22:12 Khaled Hosny + + * sfd/: ae_Haramain.sfd, ae_Hor.sfd, ae_Japan.sfd, ae_Jet.sfd: add + the missed U+F6BE that caused bug in 'j' glyph + +2007-06-23 22:09 Khaled Hosny + + * sfd/: ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd: add the missed + U+F6BE that caused bug in 'j' glyph + +2007-06-23 22:05 Khaled Hosny + + * sfd/: ae_Electron.sfd, ae_Furat.sfd: add the missed U+F6BE that + caused bug in 'j' glyph + +2007-06-23 22:02 Khaled Hosny + + * sfd/: ae_Cortoba.sfd, ae_Dimnah.sfd: add the missed U+F6BE that + caused bug in 'j' glyph + +2007-06-23 21:59 Khaled Hosny + + * sfd/: ae_AlYarmook.sfd, ae_Arab.sfd: add the missed U+F6BE that + caused bug in 'j' glyph + +2007-06-23 21:19 Khaled Hosny + + * sfd/: ae_AlArabiya.sfd, ae_AlBattar.sfd, ae_AlHor.sfd, + ae_AlManzomah.sfd, ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, + ae_AlMothnna-Bold.sfd: Added the missed U+U+F6BE glyphs which + caused a bug in "j" glyph + +2007-06-23 18:30 Khaled Hosny + + * COPYING: -Moved GPL to a separate file. -Added GPL font + exception to COPYING. + +2007-06-23 18:12 Khaled Hosny + + * sfd/ae_Tholoth.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 18:07 Khaled Hosny + + * sfd/: ae_Shado.sfd, ae_Sharjah.sfd, ae_Sindbad.sfd, + ae_Tarablus.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 18:04 Khaled Hosny + + * sfd/: ae_Petra.sfd, ae_Rasheeq-Bold.sfd, ae_Rehan.sfd, + ae_Salem.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 18:01 Khaled Hosny + + * sfd/: ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, + ae_Ouhod-Bold.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 17:57 Khaled Hosny + + * sfd/: ae_Metal.sfd, ae_Nada.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 17:54 Khaled Hosny + + * sfd/: ae_Kayrawan.sfd, ae_Khalid.sfd, ae_Mashq-Bold.sfd, + ae_Mashq.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 17:51 Khaled Hosny + + * sfd/: ae_Haramain.sfd, ae_Hor.sfd, ae_Japan.sfd, ae_Jet.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 17:47 Khaled Hosny + + * sfd/: ae_Furat.sfd, ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 17:43 Khaled Hosny + + * sfd/: ae_Arab.sfd, ae_Cortoba.sfd, ae_Dimnah.sfd, + ae_Electron.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 17:40 Khaled Hosny + + * sfd/: ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, + ae_AlMothnna-Bold.sfd, ae_AlYarmook.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-23 17:37 Khaled Hosny + + * sfd/: ae_AlArabiya.sfd, ae_AlBattar.sfd, ae_AlHor.sfd, + ae_AlManzomah.sfd: + - New glyphs (covering every thing outside Arabic block) based on + the GPL'd FreeFont project [http://www.nongnu.org/freefont/]. + - Arabic diacritic marks (harakat) are set to have zero advance + width and OT class as 'mark' nstead of 'base glyph' + +2007-06-21 05:57 Khaled Hosny + + * tools/cp.pe: Simple ff script to copy a specific range of glyphs + from on font to another. + +2007-06-16 01:54 Khaled Hosny + + * sfd/ae_AlMothnna-Bold.sfd: + - Identical glyphs (or parts of glyphs) are referenced to one common + glyph instead of copying the same shape each time. + - Add few missed Arabic glyphs, DOTLESS QAF, DOTLESS BEH, HAMZA + ABOVE, HAMZA BELOW and EXTENDED ARABIC-INDIC DIGIT ZERO, ONE, TWO, + THREE, SEVEN, EIGHT, NINE. + +2007-06-15 07:10 Khaled Hosny + + * sfd/: ae_AlArabiya.sfd, ae_AlBattar.sfd, ae_AlHor.sfd, + ae_AlManzomah.sfd, ae_AlMateen-Bold.sfd, ae_AlMohanad.sfd, + ae_AlMothnna-Bold.sfd, ae_AlYarmook.sfd, ae_Arab.sfd, + ae_Cortoba.sfd, ae_Dimnah.sfd, ae_Electron.sfd, ae_Furat.sfd, + ae_Granada.sfd, ae_Graph.sfd, ae_Hani.sfd, ae_Haramain.sfd, + ae_Hor.sfd, ae_Japan.sfd, ae_Jet.sfd, ae_Kayrawan.sfd, + ae_Khalid.sfd, ae_Mashq-Bold.sfd, ae_Mashq.sfd, ae_Metal.sfd, + ae_Nada.sfd, ae_Nagham.sfd, ae_Nice.sfd, ae_Ostorah.sfd, + ae_Ouhod-Bold.sfd, ae_Petra.sfd, ae_Rasheeq-Bold.sfd, + ae_Rehan.sfd, ae_Salem.sfd, ae_Shado.sfd, ae_Sharjah.sfd, + ae_Sindbad.sfd, ae_Tarablus.sfd, ae_Tholoth.sfd: Preparing to + work + +2007-06-02 21:25 Khaled Hosny + + * sfd/ae_AlMothnna-Bold.sfd: + - A modified version of "AlMothnna", partially fixes the vowel marks + issues. + - This is fontforg's sfd file. + +2004-07-10 09:48 nadim + + * COPYING: + Minor mods to the GPL license mention (their address + changed) + Added disclaimer + Renamed file from license.txt for + consistency + diff --git a/TCPDF/fonts/ae_fonts_2.0/README b/TCPDF/fonts/ae_fonts_2.0/README new file mode 100644 index 0000000..b517cc8 --- /dev/null +++ b/TCPDF/fonts/ae_fonts_2.0/README @@ -0,0 +1,58 @@ +This project aims at increasing the number of available Arabic free and +open source fonts. The goals of this project are, + + * Create and/or salvage high quality free and open TTF Arabic fonts. + + * Create a central repository of all free and open source Arabic fonts +(TTF and otherwise) in order to get them included into the various +distributions. + + * To better couple and artistically match Arabic fonts to their latin +counterparts. + +You can visit our web page +http://www.arabeyes.org/project.php?proj=Khotot + +This software package/product and attached documentations are provided +"as is", with no warranty. + + -* www.arabeyes.org *- + +If you'd like to help the Arabeyes Project, then consider: + + http://www.arabeyes.org/donate.php + +Typeface and data © 2003-2007, Arabeyes.org. + +Latin glyphs (U+0021-U+007E, U+00A1-U+0237, U+1E00-U+1EF9 and +U+FB00-U+FB06 Unicode ranges) are based on "Free UCS Outline Fonts", +www.nongnu.org/freefont (Copyleft 2002, 2003, 2005 Free Software +Foundation). + +These fonts are subject to the GNU GENERAL PUBLIC (GPL) LICENSE (Version 2). +See COPYING for details or http://www.gnu.org/copyleft/gpl.html + +As a special exception, if you create a document which uses this +font, and embed this font or unaltered portions of this font into the +document, this font does not by itself cause the resulting document to +be covered by the GNU General Public License. This exception does not +however invalidate any other reasons why the document might be covered +by the GNU General Public License. If you modify this font, you may +extend this exception to your version of the font, but you are not +obligated to do so. If you do not wish to do so, delete this exception +statement from your version. + +Release Notes +------------- +2.0 +This the second major release of Arabeyes fonts, this release features: + * Completely new Latin Glyphs, based on font distributed by FreeFonts project + (See the legal notes above) + * Proper support for Arabic diacritics; all fonts now have anchor points + adjusted manually to fit nicely with each glyph. + * Diacritics for AlMothnna, AlArabiya and Tholoth fonts have been redisigned + too look better and fit with the style of the font. + * We dropped ae_ prefix from all fonts, so please fix your configuration + files. + * Various other small fixes, see ChangeLog file for details. + diff --git a/TCPDF/fonts/aealarabiya.ctg.z b/TCPDF/fonts/aealarabiya.ctg.z new file mode 100644 index 0000000..51315d6 Binary files /dev/null and b/TCPDF/fonts/aealarabiya.ctg.z differ diff --git a/TCPDF/fonts/aealarabiya.php b/TCPDF/fonts/aealarabiya.php new file mode 100644 index 0000000..828f1ec --- /dev/null +++ b/TCPDF/fonts/aealarabiya.php @@ -0,0 +1,16 @@ +32,'FontBBox'=>'[-123 -488 1305 1230]','ItalicAngle'=>0,'Ascent'=>1230,'Descent'=>-503,'Leading'=>200,'CapHeight'=>729,'XHeight'=>524,'StemV'=>39,'StemH'=>17,'AvgWidth'=>441,'MaxWidth'=>1332,'MissingWidth'=>367); +$cbbox=array(33=>array(124,0,208,729),34=>array(52,464,306,709),35=>array(14,-20,542,697),36=>array(33,-126,518,770),37=>array(29,-20,859,709),38=>array(52,-23,637,709),39=>array(48,464,142,709),40=>array(73,-212,291,729),41=>array(38,-212,256,729),42=>array(40,441,343,729),43=>array(50,-10,534,474),44=>array(87,-147,192,104),45=>array(46,240,284,312),46=>array(87,0,191,104),47=>array(-8,-20,284,729),48=>array(43,-23,507,709),49=>array(102,0,347,709),50=>array(34,0,511,709),51=>array(32,-23,506,709),52=>array(28,0,520,709),53=>array(34,-23,513,709),54=>array(43,-23,513,709),55=>array(46,0,520,709),56=>array(37,-23,513,709),57=>array(38,-23,509,709),58=>array(110,0,214,524),59=>array(110,-147,214,524),60=>array(46,-9,534,474),61=>array(50,111,534,353),62=>array(50,-9,539,474),63=>array(77,0,509,741),64=>array(34,-142,951,741),65=>array(17,0,653,729),66=>array(79,0,623,729),67=>array(48,-23,677,741),68=>array(89,0,667,729),69=>array(90,0,613,729),70=>array(90,0,579,729),71=>array(44,-23,709,741),72=>array(83,0,644,729),73=>array(100,0,194,729),74=>array(17,-23,426,729),75=>array(79,0,658,729),76=>array(80,0,533,729),77=>array(74,0,761,729),78=>array(76,0,646,729),79=>array(38,-23,742,741),80=>array(91,0,617,729),81=>array(38,-59,742,741),82=>array(93,0,679,729),83=>array(48,-23,621,741),84=>array(21,0,593,729),85=>array(86,-23,646,729),86=>array(30,0,646,729),87=>array(22,0,929,729),88=>array(22,0,649,729),89=>array(13,0,661,729),90=>array(28,0,583,729),91=>array(64,-212,250,729),92=>array(-8,-20,284,729),93=>array(23,-212,209,729),94=>array(44,329,426,709),95=>array(-22,-176,578,-126),96=>array(22,592,231,740),97=>array(42,-23,534,539),98=>array(54,-23,523,729),99=>array(31,-23,477,539),100=>array(26,-23,494,729),101=>array(40,-23,513,539),102=>array(18,0,258,732),103=>array(29,-218,489,539),104=>array(70,0,486,729),105=>array(66,0,151,729),106=>array(-18,-218,153,729),107=>array(58,0,502,729),108=>array(68,0,152,729),109=>array(70,0,762,539),110=>array(70,0,487,539),111=>array(36,-23,510,539),112=>array(54,-218,523,539),113=>array(26,-218,494,539),114=>array(69,0,321,539),115=>array(34,-23,459,539),116=>array(14,-23,254,668),117=>array(66,-23,482,524),118=>array(10,0,486,524),119=>array(6,0,708,524),120=>array(17,0,473,524),121=>array(20,-218,478,524),122=>array(31,0,457,524),123=>array(43,-212,276,729),124=>array(100,-212,160,729),125=>array(29,-212,262,729),126=>array(74,268,508,438),160=>array(0,0,0,0),161=>array(122,-206,206,524),162=>array(52,-120,510,628),163=>array(26,-23,534,729),164=>array(67,133,489,551),165=>array(11,0,546,709),166=>array(100,-212,160,729),167=>array(43,-213,506,729),168=>array(30,612,296,714),169=>array(-13,-22,751,742),170=>array(37,303,333,742),171=>array(98,106,454,438),172=>array(40,86,544,374),173=>array(46,240,284,312),174=>array(-13,-22,751,742),175=>array(28,631,302,701),176=>array(151,383,454,686),177=>array(50,-11,534,623),178=>array(19,284,326,709),179=>array(16,270,322,709),180=>array(92,592,301,740),181=>array(78,-200,498,518),182=>array(48,-177,522,729),183=>array(87,302,211,427),184=>array(39,-214,287,0),185=>array(61,284,222,709),186=>array(40,303,324,742),187=>array(98,106,451,438),188=>array(61,-20,849,709),189=>array(61,-20,844,709),190=>array(16,-20,849,709),191=>array(96,-217,528,524),192=>array(17,0,653,939),193=>array(17,0,653,939),194=>array(17,0,653,940),195=>array(17,0,653,905),196=>array(17,0,653,904),197=>array(17,0,653,953),198=>array(11,0,950,729),199=>array(48,-214,677,741),200=>array(90,0,613,939),201=>array(90,0,613,939),202=>array(90,0,613,939),203=>array(90,0,613,904),204=>array(0,0,208,939),205=>array(71,0,280,939),206=>array(-1,0,286,940),207=>array(14,0,280,904),208=>array(20,0,667,729),209=>array(76,0,646,905),210=>array(38,-23,742,939),211=>array(38,-23,742,939),212=>array(38,-23,742,940),213=>array(38,-23,742,905),214=>array(38,-23,742,904),215=>array(94,34,488,427),216=>array(30,-23,744,754),217=>array(86,-23,646,939),218=>array(86,-23,646,939),219=>array(86,-23,646,939),220=>array(86,-23,646,904),221=>array(13,0,661,939),222=>array(91,0,616,729),223=>array(67,-14,571,728),224=>array(42,-23,534,740),225=>array(42,-23,534,739),226=>array(42,-23,534,741),227=>array(42,-23,534,703),228=>array(42,-23,534,701),229=>array(42,-23,534,754),230=>array(34,-23,846,539),231=>array(31,-214,477,539),232=>array(40,-23,513,740),233=>array(40,-23,513,739),234=>array(40,-23,513,742),235=>array(40,-23,513,701),236=>array(-4,0,204,738),237=>array(66,0,274,739),238=>array(-7,0,280,741),239=>array(3,0,269,701),240=>array(36,-23,510,743),241=>array(70,0,487,703),242=>array(36,-23,510,741),243=>array(36,-23,510,740),244=>array(36,-23,510,742),245=>array(36,-23,510,703),246=>array(36,-23,510,701),247=>array(50,0,534,472),248=>array(18,-30,529,539),249=>array(66,-23,482,739),250=>array(66,-23,482,740),251=>array(66,-23,482,742),252=>array(66,-23,482,701),253=>array(20,-218,478,739),254=>array(54,-218,522,714),255=>array(20,-218,478,701),256=>array(17,0,653,871),257=>array(42,-23,534,669),258=>array(17,0,653,932),259=>array(42,-23,534,734),260=>array(17,-206,692,729),261=>array(43,-206,596,539),262=>array(48,-23,677,940),263=>array(31,-23,477,740),264=>array(48,-23,677,940),265=>array(31,-23,477,714),266=>array(48,-23,677,873),267=>array(31,-23,477,668),268=>array(48,-23,677,940),269=>array(31,-23,477,742),270=>array(89,0,667,940),271=>array(26,-23,690,729),272=>array(20,0,667,729),273=>array(26,-23,557,729),274=>array(90,0,613,871),275=>array(40,-23,513,669),276=>array(90,0,613,904),277=>array(40,-23,513,699),278=>array(90,0,613,906),279=>array(40,-23,513,703),280=>array(90,-206,652,729),281=>array(40,-204,513,539),282=>array(90,0,613,940),283=>array(40,-23,513,741),284=>array(44,-23,709,920),285=>array(29,-218,489,741),286=>array(44,-23,709,932),287=>array(29,-218,489,734),288=>array(44,-23,709,873),289=>array(29,-218,489,668),290=>array(44,-333,709,741),291=>array(29,-218,489,740),292=>array(83,0,644,919),293=>array(-32,0,486,919),294=>array(39,0,688,729),295=>array(7,0,486,729),296=>array(-9,0,304,873),297=>array(-21,0,293,668),298=>array(10,0,284,871),299=>array(-2,0,273,669),300=>array(-3,0,298,904),301=>array(-16,0,286,699),302=>array(27,-206,235,729),303=>array(-17,-206,191,729),304=>array(94,0,199,906),305=>array(94,0,177,524),306=>array(100,-23,626,729),307=>array(66,-218,306,729),308=>array(17,-23,523,919),309=>array(-32,-218,254,741),310=>array(79,-311,658,729),311=>array(58,-311,502,729),312=>array(58,0,502,524),313=>array(70,0,533,939),314=>array(64,0,273,939),315=>array(80,-311,533,729),316=>array(57,-311,162,729),317=>array(80,0,533,741),318=>array(68,0,306,729),319=>array(80,0,533,729),320=>array(68,0,433,729),321=>array(0,0,552,729),322=>array(0,0,212,729),323=>array(76,0,646,939),324=>array(70,0,487,739),325=>array(76,-311,646,729),326=>array(70,-311,487,539),327=>array(76,0,646,940),328=>array(70,0,487,740),329=>array(48,0,627,709),330=>array(76,-218,646,729),331=>array(70,-218,487,539),332=>array(38,-23,742,871),333=>array(36,-23,510,669),334=>array(38,-23,742,904),335=>array(36,-23,510,699),336=>array(38,-23,742,940),337=>array(36,-23,526,740),338=>array(43,-20,959,741),339=>array(40,-23,899,539),340=>array(93,0,679,939),341=>array(69,0,331,739),342=>array(93,-311,679,729),343=>array(59,-311,321,539),344=>array(93,0,679,940),345=>array(49,0,336,741),346=>array(48,-23,621,941),347=>array(34,-23,459,740),348=>array(48,-23,621,941),349=>array(34,-23,459,714),350=>array(48,-214,621,741),351=>array(34,-214,459,539),352=>array(48,-23,621,940),353=>array(34,-23,459,741),354=>array(21,-214,593,729),355=>array(14,-237,293,668),356=>array(21,0,593,940),357=>array(14,-23,402,668),358=>array(21,0,593,729),359=>array(9,-23,254,668),360=>array(86,-23,646,873),361=>array(66,-23,482,668),362=>array(86,-23,646,871),363=>array(66,-23,482,669),364=>array(86,-23,646,904),365=>array(66,-23,482,699),366=>array(86,-23,646,954),367=>array(66,-23,482,754),368=>array(86,-23,646,940),369=>array(66,-23,530,740),370=>array(86,-206,646,729),371=>array(66,-204,521,524),372=>array(22,0,929,919),373=>array(6,0,708,741),374=>array(13,0,661,919),375=>array(20,-218,478,741),376=>array(13,0,661,904),377=>array(28,0,583,939),378=>array(31,0,457,739),379=>array(28,0,583,906),380=>array(31,0,457,703),381=>array(28,0,583,940),382=>array(31,0,457,740),383=>array(18,0,258,732),384=>array(26,-23,557,729),385=>array(48,0,810,729),386=>array(79,0,623,729),387=>array(54,-23,523,729),388=>array(-49,0,623,729),389=>array(-39,-23,523,729),390=>array(48,-23,678,741),391=>array(48,-23,749,741),392=>array(31,-23,558,556),393=>array(20,0,667,729),394=>array(48,0,844,729),395=>array(79,0,623,729),396=>array(54,-23,523,729),397=>array(37,-197,529,548),398=>array(90,0,613,729),399=>array(47,-23,677,741),400=>array(48,-23,621,741),401=>array(2,-218,579,729),402=>array(0,-218,258,732),403=>array(44,-23,786,741),404=>array(13,-27,661,729),405=>array(70,-23,833,729),406=>array(66,-23,234,729),407=>array(0,0,333,729),408=>array(79,0,672,729),409=>array(58,0,502,732),410=>array(0,0,333,729),411=>array(30,-10,556,738),412=>array(64,-14,768,729),413=>array(-12,-218,646,729),414=>array(70,-200,487,539),415=>array(38,-23,742,741),416=>array(38,-23,788,796),417=>array(36,-23,566,631),418=>array(38,-23,924,746),419=>array(36,-200,672,539),420=>array(48,0,792,729),421=>array(54,-218,523,732),422=>array(91,-126,646,729),423=>array(48,-23,621,741),424=>array(34,-23,459,539),425=>array(28,0,583,729),426=>array(-18,-218,317,732),427=>array(14,-218,254,668),428=>array(0,0,593,729),429=>array(14,-23,254,732),430=>array(21,-218,593,729),431=>array(86,-23,776,856),432=>array(66,-23,623,651),433=>array(17,-4,694,729),434=>array(86,-23,660,729),435=>array(-12,0,686,729),436=>array(20,-218,548,546),437=>array(28,0,583,729),438=>array(31,0,457,524),439=>array(32,-23,581,729),440=>array(32,-23,581,729),441=>array(12,-143,486,524),442=>array(34,-202,483,524),443=>array(34,0,511,709),446=>array(64,-21,496,668),447=>array(54,-218,526,540),448=>array(100,-212,160,729),449=>array(100,-212,270,729),450=>array(50,-212,534,729),451=>array(124,0,208,729),452=>array(89,0,1283,940),453=>array(89,0,1165,740),454=>array(26,-23,1013,740),455=>array(80,-23,982,729),456=>array(80,-218,709,729),457=>array(68,-218,376,729),458=>array(76,-23,1134,729),459=>array(76,-218,876,729),460=>array(70,-218,709,729),461=>array(17,0,653,931),462=>array(42,-23,534,729),463=>array(3,0,290,931),464=>array(-7,0,280,729),465=>array(38,-23,742,931),466=>array(36,-23,510,729),467=>array(86,-23,646,931),468=>array(66,-23,482,729),469=>array(86,-23,646,1024),470=>array(66,-23,482,825),471=>array(86,-23,646,1102),472=>array(66,-23,482,903),473=>array(86,-23,646,1104),474=>array(66,-23,482,905),475=>array(86,-23,646,1102),476=>array(66,-23,482,903),477=>array(40,-23,513,539),478=>array(17,0,653,1024),479=>array(42,-23,534,825),480=>array(17,0,653,995),481=>array(42,-23,534,793),482=>array(11,0,950,900),483=>array(34,-23,846,701),484=>array(44,-23,762,741),485=>array(29,-218,514,539),486=>array(44,-23,709,931),487=>array(29,-218,489,729),488=>array(79,0,658,931),489=>array(-44,0,502,919),490=>array(38,-222,742,741),491=>array(36,-222,510,539),492=>array(38,-222,742,851),493=>array(36,-222,510,649),494=>array(32,-23,581,951),495=>array(12,-143,486,738),496=>array(-33,-218,254,714),497=>array(89,0,1305,729),498=>array(89,0,1179,729),499=>array(26,-23,1013,729),500=>array(44,-23,709,929),501=>array(29,-218,489,727),504=>array(76,0,646,929),505=>array(70,0,487,727),506=>array(17,0,653,1141),507=>array(42,-23,534,942),508=>array(11,0,950,929),509=>array(34,-23,846,727),510=>array(30,-23,744,943),511=>array(18,-30,529,727),512=>array(17,0,653,931),513=>array(42,-23,534,729),514=>array(17,0,653,729),515=>array(42,-23,534,539),516=>array(90,0,613,931),517=>array(40,-23,513,729),518=>array(90,0,613,729),519=>array(40,-23,513,539),520=>array(-80,0,302,931),521=>array(-92,0,291,729),522=>array(100,0,194,729),523=>array(94,0,177,524),524=>array(38,-23,742,931),525=>array(36,-23,510,729),526=>array(38,-23,742,741),527=>array(36,-23,510,539),528=>array(93,0,679,931),529=>array(-22,0,360,729),530=>array(93,0,679,729),531=>array(69,0,321,539),532=>array(86,-23,646,931),533=>array(66,-23,482,729),534=>array(86,-23,646,729),535=>array(66,-23,482,524),536=>array(48,-284,621,741),537=>array(34,-284,459,539),538=>array(21,-284,593,729),539=>array(14,-284,254,668),542=>array(83,0,644,931),543=>array(-27,0,486,919),548=>array(28,-216,583,729),549=>array(31,-216,457,524),550=>array(17,0,653,886),551=>array(42,-23,534,683),552=>array(90,-207,613,729),553=>array(40,-230,513,539),554=>array(38,-23,742,1024),555=>array(36,-23,510,825),556=>array(38,-23,742,1027),557=>array(36,-23,510,827),558=>array(38,-23,742,886),559=>array(36,-23,510,683),560=>array(38,-23,742,995),561=>array(36,-23,510,793),562=>array(13,0,661,851),563=>array(20,-218,478,649),1548=>array(56,63,155,244),1563=>array(56,63,155,377),1567=>array(54,-69,348,542),1569=>array(24,0,368,366),1570=>array(24,0,139,764),1571=>array(24,0,139,757),1572=>array(31,-147,341,586),1573=>array(24,-144,139,586),1574=>array(25,-147,462,444),1575=>array(24,0,139,586),1576=>array(24,-155,777,391),1577=>array(29,0,425,567),1578=>array(24,0,777,567),1579=>array(24,0,777,714),1580=>array(37,-149,427,386),1581=>array(37,-147,415,386),1582=>array(36,-147,413,567),1583=>array(21,0,396,402),1584=>array(19,0,395,567),1585=>array(0,-147,190,391),1586=>array(0,-147,190,567),1587=>array(32,-147,987,391),1588=>array(32,-147,987,688),1589=>array(32,-147,917,391),1590=>array(32,-147,917,567),1591=>array(19,0,599,586),1592=>array(19,0,599,586),1593=>array(34,-147,409,391),1594=>array(37,-147,413,567),1600=>array(-5,0,158,93),1601=>array(27,0,736,567),1602=>array(25,-147,530,567),1603=>array(24,0,777,586),1604=>array(32,-147,537,586),1605=>array(9,-294,381,391),1606=>array(32,-147,502,567),1607=>array(29,0,425,393),1608=>array(36,-147,338,391),1609=>array(25,-147,462,391),1610=>array(25,-298,462,391),1611=>array(47,640,314,930),1612=>array(80,686,340,954),1613=>array(19,-488,286,-198),1614=>array(39,681,305,845),1615=>array(80,697,231,965),1616=>array(44,-441,311,-277),1617=>array(2,678,305,876),1618=>array(-10,704,167,897),1632=>array(183,174,283,273),1633=>array(177,4,256,498),1634=>array(78,4,372,498),1635=>array(20,-1,410,508),1636=>array(89,0,341,498),1637=>array(79,0,355,509),1638=>array(53,4,348,498),1639=>array(49,0,371,498),1640=>array(49,0,371,498),1641=>array(78,4,341,498),1642=>array(56,0,462,612),1645=>array(17,388,317,688),7680=>array(17,-235,653,729),7681=>array(42,-258,534,539),7682=>array(79,0,623,906),7683=>array(54,-23,523,893),7684=>array(79,-164,623,729),7685=>array(54,-187,523,729),7686=>array(79,-131,623,729),7687=>array(54,-153,523,729),7688=>array(48,-214,677,949),7689=>array(31,-214,477,747),7690=>array(89,0,667,906),7691=>array(26,-23,494,893),7692=>array(89,-164,667,729),7693=>array(26,-187,494,729),7694=>array(89,-131,667,729),7695=>array(26,-153,494,729),7696=>array(85,-207,667,729),7697=>array(26,-230,494,729),7698=>array(86,-211,667,729),7699=>array(26,-233,494,729),7700=>array(90,0,613,1108),7701=>array(40,-23,513,909),7702=>array(90,0,613,1108),7703=>array(40,-23,513,909),7704=>array(90,-211,613,729),7705=>array(40,-233,513,539),7706=>array(90,-164,613,729),7707=>array(40,-187,513,539),7708=>array(90,-207,613,936),7709=>array(40,-230,513,734),7710=>array(90,0,579,906),7711=>array(18,0,263,896),7712=>array(44,-23,709,871),7713=>array(29,-218,489,669),7714=>array(83,0,644,906),7715=>array(58,0,486,893),7716=>array(83,-164,644,729),7717=>array(70,-164,486,729),7718=>array(83,0,644,904),7719=>array(44,0,486,892),7720=>array(-15,-207,644,729),7721=>array(-33,-207,486,729),7722=>array(83,-195,644,729),7723=>array(70,-195,486,729),7724=>array(-9,-164,304,729),7725=>array(-48,-164,265,729),7726=>array(14,0,321,1114),7727=>array(3,0,315,916),7728=>array(79,0,658,949),7729=>array(58,0,502,937),7730=>array(79,-164,658,729),7731=>array(58,-164,502,729),7732=>array(79,-131,658,729),7733=>array(58,-131,502,729),7734=>array(80,-164,533,729),7735=>array(57,-164,162,729),7736=>array(-11,-164,533,871),7737=>array(-27,-164,248,859),7738=>array(80,-131,533,729),7739=>array(-27,-131,248,729),7740=>array(80,-211,533,729),7741=>array(-34,-211,253,729),7742=>array(74,0,761,949),7743=>array(70,0,762,747),7744=>array(74,0,761,906),7745=>array(70,0,762,703),7746=>array(74,-164,761,729),7747=>array(70,-164,762,539),7748=>array(76,0,646,906),7749=>array(70,0,487,703),7750=>array(76,-164,646,729),7751=>array(70,-164,487,539),7752=>array(76,-131,646,729),7753=>array(70,-131,487,539),7754=>array(76,-211,646,729),7755=>array(70,-211,487,539),7756=>array(38,-23,742,1124),7757=>array(36,-23,510,926),7758=>array(38,-23,742,1078),7759=>array(36,-23,510,880),7760=>array(38,-23,742,1108),7761=>array(36,-23,510,909),7762=>array(38,-23,742,1108),7763=>array(36,-23,510,909),7764=>array(91,0,617,949),7765=>array(54,-218,523,747),7766=>array(91,0,617,906),7767=>array(54,-218,523,703),7768=>array(93,0,679,906),7769=>array(69,0,321,703),7770=>array(93,-164,679,729),7771=>array(58,-164,321,539),7772=>array(93,-164,679,871),7773=>array(58,-164,336,669),7774=>array(93,-131,679,729),7775=>array(-26,-131,321,539),7776=>array(48,-23,621,906),7777=>array(34,-23,459,703),7778=>array(48,-187,621,741),7779=>array(34,-187,459,539),7780=>array(48,-23,621,1103),7781=>array(34,-23,459,904),7782=>array(48,-23,621,1104),7783=>array(34,-23,459,906),7784=>array(48,-187,621,906),7785=>array(34,-187,459,703),7786=>array(21,0,593,906),7787=>array(14,-23,254,832),7788=>array(21,-164,593,729),7789=>array(14,-187,254,668),7790=>array(21,-131,593,729),7791=>array(14,-153,323,668),7792=>array(21,-211,593,729),7793=>array(14,-233,329,668),7794=>array(86,-186,646,729),7795=>array(66,-186,482,524),7796=>array(86,-187,646,729),7797=>array(66,-187,482,524),7798=>array(86,-233,646,729),7799=>array(66,-233,482,524),7800=>array(86,-23,646,1081),7801=>array(66,-23,496,876),7802=>array(86,-23,646,1062),7803=>array(66,-23,482,864),7804=>array(30,0,646,905),7805=>array(10,0,486,703),7806=>array(30,-164,646,729),7807=>array(10,-164,486,524),7808=>array(22,0,929,949),7809=>array(6,0,708,747),7810=>array(22,0,929,949),7811=>array(6,0,708,747),7812=>array(22,0,929,904),7813=>array(6,0,708,701),7814=>array(22,0,929,906),7815=>array(6,0,708,703),7816=>array(22,-164,929,729),7817=>array(6,-164,708,524),7818=>array(22,0,649,906),7819=>array(17,0,473,703),7820=>array(22,0,649,904),7821=>array(17,0,473,701),7822=>array(13,0,661,906),7823=>array(20,-218,478,703),7824=>array(28,0,583,951),7825=>array(31,0,457,749),7826=>array(28,-164,583,729),7827=>array(31,-164,457,524),7828=>array(28,-131,583,729),7829=>array(31,-131,457,524),7830=>array(70,-131,486,729),7831=>array(-7,-23,259,831),7832=>array(6,0,708,774),7833=>array(20,-218,478,774),7835=>array(18,0,263,896),7840=>array(17,-164,653,729),7841=>array(42,-187,534,539),7842=>array(17,0,653,1031),7843=>array(42,-23,534,829),7844=>array(17,0,653,1148),7845=>array(42,-23,534,949),7846=>array(17,0,653,1148),7847=>array(42,-23,534,949),7848=>array(17,0,653,1230),7849=>array(42,-23,534,1031),7850=>array(17,0,653,1104),7851=>array(42,-23,534,905),7852=>array(17,-164,653,951),7853=>array(42,-187,534,749),7854=>array(17,0,653,1139),7855=>array(42,-23,534,940),7856=>array(17,0,653,1139),7857=>array(42,-23,534,940),7858=>array(17,0,653,1221),7859=>array(42,-23,534,1022),7860=>array(17,0,653,1095),7861=>array(42,-23,534,896),7862=>array(17,-164,653,936),7863=>array(42,-187,534,734),7864=>array(90,-164,613,729),7865=>array(40,-187,513,539),7866=>array(90,0,613,1031),7867=>array(40,-23,513,829),7868=>array(90,0,613,905),7869=>array(40,-23,513,703),7870=>array(90,0,613,1148),7871=>array(40,-23,513,949),7872=>array(78,0,613,980),7873=>array(40,-23,513,949),7874=>array(90,0,613,1230),7875=>array(40,-23,513,1031),7876=>array(90,0,613,1104),7877=>array(40,-23,513,905),7878=>array(90,-164,613,951),7879=>array(40,-187,513,749),7880=>array(100,0,257,1031),7881=>array(93,0,246,829),7882=>array(94,-164,199,729),7883=>array(57,-164,161,729),7884=>array(38,-187,742,741),7885=>array(36,-187,510,539),7886=>array(38,-23,742,1031),7887=>array(36,-23,510,829),7888=>array(38,-23,742,1148),7889=>array(36,-23,510,949),7890=>array(38,-23,742,1148),7891=>array(36,-23,510,949),7892=>array(38,-23,742,1230),7893=>array(36,-23,510,1031),7894=>array(38,-23,742,1104),7895=>array(36,-23,510,905),7896=>array(38,-187,742,951),7897=>array(36,-187,510,749),7898=>array(38,-23,788,962),7899=>array(36,-23,566,749),7900=>array(38,-23,788,950),7901=>array(36,-23,566,726),7902=>array(38,-23,788,1032),7903=>array(36,-23,566,826),7904=>array(38,-23,788,907),7905=>array(36,-23,566,705),7906=>array(38,-187,788,796),7907=>array(36,-187,566,631),7908=>array(86,-187,646,729),7909=>array(66,-187,482,524),7910=>array(86,-23,646,1031),7911=>array(66,-23,482,829),7912=>array(86,-23,776,950),7913=>array(66,-23,623,733),7914=>array(86,-23,776,950),7915=>array(66,-23,623,733),7916=>array(86,-23,776,984),7917=>array(66,-23,623,809),7918=>array(86,-23,776,900),7919=>array(66,-23,623,701),7920=>array(86,-187,776,856),7921=>array(66,-187,623,651),7922=>array(13,0,661,949),7923=>array(20,-218,478,747),7924=>array(13,-164,661,729),7925=>array(20,-382,478,524),7926=>array(13,0,661,1031),7927=>array(20,-218,478,829),7928=>array(13,0,661,905),7929=>array(20,-218,478,703),8204=>array(-17,0,17,910),8205=>array(-110,0,110,910),8206=>array(-123,0,123,916),8207=>array(-123,0,123,916),8234=>array(-123,-94,123,822),8235=>array(-123,-94,123,822),8236=>array(-111,0,111,910),8237=>array(-123,-94,123,916),8238=>array(-123,-94,123,916),64256=>array(13,0,388,536),64257=>array(9,0,319,536),64258=>array(13,0,315,536),64259=>array(13,0,523,536),64260=>array(13,0,518,536),64261=>array(13,-17,389,536),64262=>array(25,-17,552,489),64606=>array(19,728,322,1202),64607=>array(-3,479,299,964),64608=>array(-3,678,299,1013),64609=>array(-3,701,299,1143),64610=>array(-3,656,299,1014),64611=>array(-3,689,299,1021),64830=>array(34,-158,409,578),64831=>array(34,-158,409,578),65010=>array(24,0,841,586),65152=>array(23,0,367,366),65153=>array(23,0,148,679),65154=>array(12,0,201,755),65155=>array(18,0,133,744),65156=>array(18,0,199,822),65157=>array(38,-147,339,583),65158=>array(38,-147,386,581),65159=>array(19,-144,139,586),65160=>array(22,-144,201,586),65161=>array(25,-147,462,477),65162=>array(14,-147,503,419),65163=>array(-5,0,196,552),65164=>array(-5,0,262,557),65165=>array(24,0,139,586),65166=>array(24,0,201,586),65167=>array(24,-155,777,391),65168=>array(24,-154,824,391),65169=>array(-5,-154,196,391),65170=>array(-5,-154,262,391),65171=>array(28,0,424,567),65172=>array(23,0,473,567),65173=>array(24,0,777,567),65174=>array(24,0,824,567),65175=>array(-5,0,250,567),65176=>array(-5,0,316,567),65177=>array(24,0,777,714),65178=>array(24,0,824,688),65179=>array(-5,0,245,685),65180=>array(-5,0,306,685),65181=>array(37,-151,419,386),65182=>array(37,-148,456,386),65183=>array(-10,-154,401,386),65184=>array(-10,-154,458,386),65185=>array(37,-147,415,386),65186=>array(37,-147,456,386),65187=>array(-9,0,402,386),65188=>array(-10,0,458,386),65189=>array(37,-147,415,567),65190=>array(36,-147,454,567),65191=>array(-10,0,401,567),65192=>array(-10,0,458,567),65193=>array(23,0,399,402),65194=>array(22,0,438,402),65195=>array(21,0,396,567),65196=>array(21,0,437,567),65197=>array(0,-147,190,391),65198=>array(0,-147,238,391),65199=>array(0,-147,190,567),65200=>array(0,-147,238,567),65201=>array(32,-147,987,391),65202=>array(32,-147,1044,391),65203=>array(-5,0,733,391),65204=>array(-5,0,784,391),65205=>array(30,-147,986,685),65206=>array(32,-147,1044,685),65207=>array(-5,0,733,685),65208=>array(-7,0,783,685),65209=>array(32,-147,917,391),65210=>array(32,-147,962,391),65211=>array(-5,0,751,391),65212=>array(-5,0,796,391),65213=>array(34,-147,918,567),65214=>array(32,-147,962,567),65215=>array(-5,0,751,567),65216=>array(-5,0,796,567),65217=>array(14,0,599,586),65218=>array(19,0,655,586),65219=>array(-5,0,584,586),65220=>array(-7,0,653,586),65221=>array(17,0,601,586),65222=>array(19,0,655,586),65223=>array(-5,0,584,586),65224=>array(-6,0,654,586),65225=>array(34,-147,409,391),65226=>array(37,-147,446,399),65227=>array(-5,0,357,391),65228=>array(-5,0,433,399),65229=>array(34,-147,409,567),65230=>array(37,-147,446,567),65231=>array(-5,0,357,567),65232=>array(-5,0,433,567),65233=>array(27,0,736,567),65234=>array(26,0,788,567),65235=>array(-4,0,392,567),65236=>array(-4,0,434,567),65237=>array(27,-147,532,567),65238=>array(27,-147,580,567),65239=>array(-4,0,392,567),65240=>array(-4,0,434,567),65241=>array(24,0,777,586),65242=>array(24,0,824,586),65243=>array(-6,0,522,586),65244=>array(-7,0,553,586),65245=>array(32,-147,537,586),65246=>array(32,-147,596,586),65247=>array(-5,0,172,586),65248=>array(-5,0,262,586),65249=>array(9,-294,381,391),65250=>array(6,-294,414,391),65251=>array(-3,-93,324,391),65252=>array(-3,-93,361,391),65253=>array(32,-147,502,567),65254=>array(30,-147,557,567),65255=>array(-5,0,196,567),65256=>array(-5,0,257,567),65257=>array(29,0,425,393),65258=>array(24,0,474,393),65259=>array(-6,0,491,391),65260=>array(-6,0,523,391),65261=>array(36,-147,338,391),65262=>array(36,-147,384,391),65263=>array(25,-147,462,391),65264=>array(13,-147,502,264),65265=>array(25,-298,462,391),65266=>array(13,-298,502,264),65267=>array(-5,-154,248,391),65268=>array(-5,-154,306,391),65269=>array(29,0,484,586),65270=>array(29,0,544,586),65271=>array(29,0,484,586),65272=>array(29,0,544,586),65273=>array(29,-146,484,586),65274=>array(29,-145,544,586),65275=>array(29,0,484,586),65276=>array(29,0,544,586),65535=>array(33,0,300,667)); +$cw=array(0=>0,12=>318,13=>332,14=>212,32=>278,33=>278,34=>354,35=>556,36=>556,37=>888,38=>667,39=>191,40=>332,41=>332,42=>388,43=>584,44=>278,45=>332,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>278,59=>278,60=>584,61=>584,62=>584,63=>556,64=>1014,65=>667,66=>667,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>500,75=>667,76=>556,77=>832,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>278,92=>278,93=>278,94=>468,95=>556,96=>332,97=>556,98=>556,99=>500,100=>556,101=>556,102=>278,103=>556,104=>556,105=>222,106=>222,107=>500,108=>222,109=>832,110=>556,111=>556,112=>556,113=>556,114=>332,115=>500,116=>278,117=>556,118=>500,119=>722,120=>500,121=>500,122=>500,123=>334,124=>260,125=>334,126=>584,160=>278,161=>278,162=>556,163=>556,164=>556,165=>556,166=>260,167=>556,168=>332,169=>737,170=>370,171=>556,172=>584,173=>332,174=>737,175=>332,176=>606,177=>584,178=>351,179=>351,180=>332,181=>574,182=>537,183=>278,184=>332,185=>351,186=>364,187=>556,188=>868,189=>868,190=>868,191=>556,192=>667,193=>667,194=>667,195=>667,196=>667,197=>667,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>666,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>888,231=>500,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,238=>278,239=>278,240=>556,241=>556,242=>556,243=>556,244=>556,245=>556,246=>556,247=>584,248=>611,249=>556,250=>556,251=>556,252=>556,253=>500,254=>554,255=>500,256=>667,257=>556,258=>667,259=>556,260=>667,261=>556,262=>722,263=>500,264=>722,265=>500,266=>722,267=>500,268=>722,269=>500,270=>722,271=>722,272=>722,273=>556,274=>667,275=>556,276=>667,277=>556,278=>667,279=>556,280=>667,281=>556,282=>667,283=>556,284=>778,285=>556,286=>778,287=>556,288=>778,289=>556,290=>778,291=>697,292=>722,293=>556,294=>722,295=>556,296=>278,297=>278,298=>278,299=>278,300=>278,301=>278,302=>278,303=>222,304=>278,305=>278,306=>700,307=>374,308=>500,309=>222,310=>667,311=>500,312=>500,313=>556,314=>222,315=>556,316=>222,317=>556,318=>387,319=>556,320=>500,321=>556,322=>222,323=>722,324=>556,325=>722,326=>556,327=>722,328=>556,329=>722,330=>722,331=>556,332=>778,333=>556,334=>778,335=>556,336=>778,337=>556,338=>1000,339=>944,340=>722,341=>332,342=>722,343=>332,344=>722,345=>332,346=>667,347=>500,348=>667,349=>500,350=>667,351=>500,352=>667,353=>500,354=>611,355=>278,356=>611,357=>442,358=>611,359=>278,360=>722,361=>556,362=>722,363=>556,364=>722,365=>556,366=>722,367=>556,368=>722,369=>556,370=>722,371=>556,372=>944,373=>722,374=>667,375=>500,376=>667,377=>611,378=>500,379=>611,380=>500,381=>611,382=>500,383=>278,384=>556,385=>854,386=>667,387=>556,388=>667,389=>556,390=>722,391=>722,392=>500,393=>722,394=>898,395=>667,396=>556,397=>556,398=>667,399=>722,400=>667,401=>611,402=>278,403=>778,404=>667,405=>888,406=>278,407=>332,408=>667,409=>500,410=>332,411=>560,412=>832,413=>722,414=>556,415=>778,416=>778,417=>556,418=>944,419=>722,420=>842,421=>556,422=>666,423=>667,424=>500,425=>611,426=>332,427=>278,428=>611,429=>278,430=>611,431=>722,432=>556,433=>778,434=>722,435=>722,436=>556,437=>611,438=>500,439=>611,440=>611,441=>500,442=>500,443=>556,446=>556,447=>556,448=>260,449=>370,450=>584,451=>278,452=>1311,453=>1208,454=>1056,455=>1056,456=>778,457=>444,458=>1158,459=>944,460=>778,461=>667,462=>556,463=>278,464=>278,465=>778,466=>556,467=>722,468=>556,469=>722,470=>556,471=>722,472=>556,473=>722,474=>556,475=>722,476=>556,477=>556,478=>667,479=>556,480=>667,481=>556,482=>1000,483=>888,484=>778,485=>556,486=>778,487=>556,488=>667,489=>500,490=>778,491=>556,492=>778,493=>556,494=>611,495=>500,496=>222,497=>1332,498=>1222,499=>1056,500=>778,501=>556,504=>722,505=>556,506=>667,507=>556,508=>1000,509=>888,510=>778,511=>611,512=>667,513=>556,514=>667,515=>556,516=>667,517=>556,518=>667,519=>556,520=>278,521=>278,522=>278,523=>278,524=>778,525=>556,526=>778,527=>556,528=>722,529=>332,530=>1082,531=>332,532=>722,533=>556,534=>722,535=>556,536=>667,537=>500,538=>611,539=>278,542=>722,543=>556,548=>611,549=>500,550=>667,551=>556,552=>667,553=>556,554=>778,555=>556,556=>778,557=>556,558=>778,559=>556,560=>778,561=>556,562=>667,563=>500,1548=>202,1563=>202,1567=>402,1569=>399,1570=>173,1571=>166,1572=>371,1573=>171,1574=>486,1575=>171,1576=>806,1577=>459,1578=>806,1579=>808,1580=>439,1581=>438,1582=>438,1583=>414,1584=>413,1585=>223,1586=>221,1587=>1024,1588=>1022,1589=>953,1590=>951,1591=>637,1592=>637,1593=>438,1594=>443,1600=>147,1601=>776,1602=>561,1603=>808,1604=>565,1605=>409,1606=>536,1607=>459,1608=>369,1609=>495,1610=>494,1611=>0,1612=>0,1613=>0,1614=>0,1615=>0,1616=>0,1617=>0,1618=>0,1632=>467,1633=>391,1634=>467,1635=>467,1636=>467,1637=>467,1638=>467,1639=>467,1640=>467,1641=>467,1642=>508,1645=>332,7680=>667,7681=>556,7682=>667,7683=>556,7684=>667,7685=>556,7686=>667,7687=>556,7688=>722,7689=>500,7690=>722,7691=>556,7692=>722,7693=>556,7694=>722,7695=>556,7696=>722,7697=>556,7698=>722,7699=>556,7700=>667,7701=>556,7702=>667,7703=>556,7704=>667,7705=>556,7706=>667,7707=>556,7708=>667,7709=>556,7710=>611,7711=>278,7712=>778,7713=>556,7714=>722,7715=>556,7716=>722,7717=>556,7718=>722,7719=>556,7720=>722,7721=>556,7722=>722,7723=>556,7724=>278,7725=>222,7726=>278,7727=>278,7728=>667,7729=>500,7730=>667,7731=>500,7732=>667,7733=>500,7734=>556,7735=>222,7736=>556,7737=>222,7738=>556,7739=>222,7740=>556,7741=>222,7742=>832,7743=>832,7744=>832,7745=>832,7746=>832,7747=>832,7748=>722,7749=>556,7750=>722,7751=>556,7752=>722,7753=>556,7754=>722,7755=>556,7756=>778,7757=>556,7758=>778,7759=>556,7760=>778,7761=>556,7762=>778,7763=>556,7764=>667,7765=>556,7766=>667,7767=>556,7768=>722,7769=>332,7770=>722,7771=>332,7772=>722,7773=>332,7774=>722,7775=>332,7776=>667,7777=>500,7778=>667,7779=>500,7780=>667,7781=>500,7782=>667,7783=>500,7784=>667,7785=>500,7786=>611,7787=>278,7788=>611,7789=>278,7790=>611,7791=>278,7792=>611,7793=>278,7794=>722,7795=>556,7796=>722,7797=>556,7798=>722,7799=>556,7800=>722,7801=>556,7802=>722,7803=>556,7804=>667,7805=>500,7806=>667,7807=>500,7808=>944,7809=>722,7810=>944,7811=>722,7812=>944,7813=>722,7814=>944,7815=>722,7816=>944,7817=>722,7818=>667,7819=>500,7820=>667,7821=>500,7822=>667,7823=>500,7824=>611,7825=>500,7826=>611,7827=>500,7828=>611,7829=>500,7830=>556,7831=>278,7832=>722,7833=>500,7835=>278,7840=>667,7841=>556,7842=>667,7843=>556,7844=>667,7845=>556,7846=>667,7847=>556,7848=>667,7849=>556,7850=>667,7851=>556,7852=>667,7853=>556,7854=>667,7855=>556,7856=>667,7857=>556,7858=>667,7859=>556,7860=>667,7861=>556,7862=>667,7863=>556,7864=>667,7865=>556,7866=>667,7867=>556,7868=>667,7869=>556,7870=>667,7871=>556,7872=>667,7873=>556,7874=>667,7875=>556,7876=>667,7877=>556,7878=>667,7879=>556,7880=>278,7881=>278,7882=>278,7883=>222,7884=>778,7885=>556,7886=>778,7887=>556,7888=>778,7889=>556,7890=>778,7891=>556,7892=>778,7893=>556,7894=>778,7895=>556,7896=>778,7897=>556,7898=>778,7899=>556,7900=>778,7901=>556,7902=>778,7903=>556,7904=>778,7905=>556,7906=>778,7907=>556,7908=>722,7909=>556,7910=>722,7911=>556,7912=>722,7913=>556,7914=>722,7915=>556,7916=>722,7917=>556,7918=>722,7919=>556,7920=>722,7921=>556,7922=>667,7923=>500,7924=>667,7925=>500,7926=>667,7927=>500,7928=>667,7929=>500,8204=>0,8205=>0,8206=>0,8207=>0,8234=>0,8235=>0,8236=>0,8237=>0,8238=>0,64256=>407,64257=>366,64258=>366,64259=>569,64260=>569,64261=>407,64262=>569,64606=>0,64607=>0,64608=>0,64609=>0,64610=>0,64611=>0,64830=>457,64831=>457,65010=>879,65152=>403,65153=>174,65154=>196,65155=>169,65156=>192,65157=>362,65158=>377,65159=>169,65160=>193,65161=>491,65162=>488,65163=>244,65164=>244,65165=>173,65166=>192,65167=>810,65168=>806,65169=>244,65170=>251,65171=>461,65172=>462,65173=>810,65174=>807,65175=>292,65176=>293,65177=>813,65178=>807,65179=>277,65180=>294,65181=>437,65182=>451,65183=>439,65184=>441,65185=>439,65186=>449,65187=>441,65188=>441,65189=>439,65190=>446,65191=>439,65192=>441,65193=>418,65194=>427,65195=>415,65196=>426,65197=>226,65198=>224,65199=>222,65200=>224,65201=>1024,65202=>1022,65203=>757,65204=>770,65205=>1023,65206=>1025,65207=>756,65208=>770,65209=>946,65210=>948,65211=>782,65212=>786,65213=>956,65214=>953,65215=>779,65216=>787,65217=>633,65218=>648,65219=>613,65220=>643,65221=>641,65222=>643,65223=>613,65224=>646,65225=>441,65226=>433,65227=>373,65228=>423,65229=>437,65230=>438,65231=>379,65232=>425,65233=>762,65234=>770,65235=>416,65236=>418,65237=>563,65238=>568,65239=>426,65240=>423,65241=>808,65242=>812,65243=>558,65244=>545,65245=>564,65246=>585,65247=>207,65248=>253,65249=>407,65250=>408,65251=>352,65252=>354,65253=>537,65254=>541,65255=>244,65256=>244,65257=>452,65258=>463,65259=>512,65260=>516,65261=>366,65262=>368,65263=>487,65264=>488,65265=>491,65266=>486,65267=>293,65268=>294,65269=>514,65270=>527,65271=>518,65272=>522,65273=>512,65274=>536,65275=>514,65276=>522,65535=>367); +// --- EOF --- diff --git a/TCPDF/fonts/aealarabiya.z b/TCPDF/fonts/aealarabiya.z new file mode 100644 index 0000000..653d826 Binary files /dev/null and b/TCPDF/fonts/aealarabiya.z differ diff --git a/TCPDF/fonts/aefurat.ctg.z b/TCPDF/fonts/aefurat.ctg.z new file mode 100644 index 0000000..0df3649 Binary files /dev/null and b/TCPDF/fonts/aefurat.ctg.z differ diff --git a/TCPDF/fonts/aefurat.php b/TCPDF/fonts/aefurat.php new file mode 100644 index 0000000..2610ed1 --- /dev/null +++ b/TCPDF/fonts/aefurat.php @@ -0,0 +1,16 @@ +32,'FontBBox'=>'[-272 -501 1319 1114]','ItalicAngle'=>0,'Ascent'=>1162,'Descent'=>-508,'Leading'=>200,'CapHeight'=>662,'XHeight'=>450,'StemV'=>39,'StemH'=>17,'AvgWidth'=>401,'MaxWidth'=>1332,'MissingWidth'=>367); +$cbbox=array(33=>array(130,-9,237,676),34=>array(77,431,331,676),35=>array(6,0,496,662),36=>array(44,-87,457,727),37=>array(61,-13,772,676),38=>array(42,-13,750,676),39=>array(48,431,133,676),40=>array(48,-177,304,676),41=>array(29,-177,286,676),42=>array(69,266,432,676),43=>array(30,0,534,506),44=>array(56,-141,194,102),45=>array(39,194,286,257),46=>array(70,-11,181,100),47=>array(-9,-14,287,676),48=>array(24,-14,476,676),49=>array(111,0,394,676),50=>array(30,0,474,676),51=>array(43,-14,432,676),52=>array(12,0,472,676),53=>array(32,-14,438,688),54=>array(34,-14,468,684),55=>array(20,-8,449,662),56=>array(56,-14,446,676),57=>array(30,-22,459,676),58=>array(81,-11,192,459),59=>array(80,-141,219,459),60=>array(28,-10,536,516),61=>array(30,120,534,386),62=>array(28,-10,536,516),63=>array(68,-8,414,676),64=>array(116,-14,809,676),65=>array(14,0,706,674),66=>array(17,0,593,662),67=>array(28,-14,633,676),68=>array(16,0,686,662),69=>array(12,0,597,662),70=>array(12,0,546,662),71=>array(32,-14,709,676),72=>array(19,0,702,662),73=>array(18,0,314,662),74=>array(10,-14,370,662),75=>array(34,0,723,662),76=>array(12,0,598,662),77=>array(12,0,863,662),78=>array(12,-11,707,662),79=>array(34,-14,688,676),80=>array(16,0,542,662),81=>array(34,-178,701,676),82=>array(17,0,659,662),83=>array(42,-14,491,676),84=>array(17,0,593,662),85=>array(14,-14,706,662),86=>array(16,-11,697,662),87=>array(6,-11,932,662),88=>array(10,0,704,662),89=>array(22,0,703,662),90=>array(9,0,597,662),91=>array(88,-156,299,662),92=>array(-9,-14,287,676),93=>array(34,-156,246,662),94=>array(24,297,446,662),95=>array(0,-126,500,-74),96=>array(19,507,242,678),97=>array(37,-10,442,460),98=>array(3,-10,468,683),99=>array(26,-10,412,460),100=>array(27,-10,491,683),101=>array(26,-10,424,460),102=>array(20,0,383,683),103=>array(28,-218,470,460),104=>array(9,0,487,683),105=>array(16,0,253,683),106=>array(-70,-218,194,683),107=>array(7,0,506,683),108=>array(19,0,257,683),109=>array(16,0,774,460),110=>array(16,0,486,460),111=>array(29,-10,470,460),112=>array(6,-217,470,460),113=>array(24,-217,488,461),114=>array(6,0,334,460),115=>array(51,-10,348,459),116=>array(13,-10,279,579),117=>array(9,-10,479,450),118=>array(19,-14,477,450),119=>array(21,-14,694,450),120=>array(17,0,479,450),121=>array(14,-218,474,450),122=>array(27,0,418,450),123=>array(100,-181,350,680),124=>array(67,-14,133,676),125=>array(130,-181,380,680),126=>array(40,186,502,320),160=>array(0,0,0,0),161=>array(97,-218,204,469),162=>array(53,-138,448,579),163=>array(12,-8,490,676),164=>array(-22,58,522,602),165=>array(-53,0,512,662),166=>array(67,-14,133,676),167=>array(70,-148,426,676),168=>array(18,523,316,622),169=>array(38,-14,722,676),170=>array(4,394,270,676),171=>array(42,33,456,416),172=>array(30,108,534,386),173=>array(39,194,286,257),174=>array(38,-14,722,676),175=>array(11,547,322,601),176=>array(57,390,343,676),177=>array(30,0,534,568),178=>array(1,270,296,676),179=>array(14,262,291,676),180=>array(93,507,317,678),181=>array(59,-224,514,451),182=>array(-22,-154,450,662),183=>array(70,199,181,310),184=>array(52,-214,261,0),185=>array(57,270,248,676),186=>array(6,394,304,676),187=>array(44,33,458,416),188=>array(37,-14,718,676),189=>array(31,-14,746,676),190=>array(14,-14,718,676),191=>array(30,-218,376,468),192=>array(14,0,706,890),193=>array(14,0,706,890),194=>array(14,0,706,886),195=>array(14,0,706,850),196=>array(14,0,706,836),197=>array(14,0,706,914),198=>array(0,0,863,662),199=>array(28,-214,633,676),200=>array(12,0,597,890),201=>array(12,0,597,890),202=>array(12,0,597,886),203=>array(12,0,597,834),204=>array(18,0,314,890),205=>array(18,0,317,890),206=>array(11,0,322,886),207=>array(18,0,316,836),208=>array(16,0,686,662),209=>array(12,-11,707,850),210=>array(34,-14,688,888),211=>array(34,-14,688,890),212=>array(34,-14,688,886),213=>array(34,-14,688,850),214=>array(34,-14,688,836),215=>array(38,8,527,497),216=>array(34,-80,688,734),217=>array(14,-14,706,890),218=>array(14,-14,706,890),219=>array(14,-14,706,886),220=>array(14,-14,706,834),221=>array(22,0,703,890),222=>array(16,0,542,662),223=>array(12,-9,468,683),224=>array(37,-10,442,678),225=>array(37,-10,442,678),226=>array(37,-10,442,674),227=>array(37,-10,442,638),228=>array(37,-10,442,619),229=>array(37,-10,442,718),230=>array(38,-10,632,460),231=>array(26,-214,412,460),232=>array(26,-10,424,678),233=>array(26,-10,424,678),234=>array(26,-10,424,674),235=>array(26,-10,424,621),236=>array(-8,0,253,678),237=>array(16,0,291,678),238=>array(-16,0,296,674),239=>array(11,0,269,622),240=>array(29,-10,471,686),241=>array(16,0,486,638),242=>array(29,-10,470,678),243=>array(29,-10,470,678),244=>array(29,-10,470,674),245=>array(29,-10,470,637),246=>array(29,-10,470,619),247=>array(30,-10,534,516),248=>array(29,-112,470,551),249=>array(9,-10,479,678),250=>array(9,-10,479,678),251=>array(9,-10,479,674),252=>array(9,-10,479,621),253=>array(14,-218,474,678),254=>array(6,-217,470,683),255=>array(14,-218,474,625),256=>array(14,0,706,791),257=>array(37,-10,442,574),258=>array(14,0,706,893),259=>array(37,-10,442,677),260=>array(14,-166,787,674),261=>array(37,-166,444,460),262=>array(28,-14,633,890),263=>array(26,-10,412,678),264=>array(28,-14,633,886),265=>array(26,-10,412,674),266=>array(28,-14,633,836),267=>array(26,-10,412,622),268=>array(28,-14,633,886),269=>array(26,-10,412,674),270=>array(16,0,686,887),271=>array(27,-10,599,683),272=>array(16,0,686,662),273=>array(27,-10,500,683),274=>array(12,0,597,791),275=>array(26,-10,424,574),276=>array(12,0,597,876),277=>array(26,-10,424,677),278=>array(12,0,597,836),279=>array(26,-10,424,622),280=>array(12,-166,613,662),281=>array(26,-166,424,460),282=>array(12,0,597,886),283=>array(26,-10,424,675),284=>array(32,-14,709,884),285=>array(28,-218,470,674),286=>array(32,-14,709,874),287=>array(28,-218,470,665),288=>array(32,-14,709,836),289=>array(28,-218,470,619),290=>array(32,-281,709,676),291=>array(28,-218,470,736),292=>array(19,0,702,903),293=>array(9,0,487,890),294=>array(19,0,702,662),295=>array(9,0,534,683),296=>array(1,0,331,842),297=>array(-28,0,301,626),298=>array(11,0,322,791),299=>array(-19,0,292,574),300=>array(18,0,314,893),301=>array(-4,0,277,677),302=>array(18,-166,397,662),303=>array(16,-166,278,683),304=>array(18,0,314,836),305=>array(16,0,253,460),306=>array(18,-14,703,662),307=>array(16,-218,472,683),308=>array(10,-14,382,903),309=>array(-51,-159,306,687),310=>array(34,-275,723,662),311=>array(7,-275,506,683),312=>array(7,0,490,460),313=>array(12,0,598,907),314=>array(19,0,294,894),315=>array(12,-275,598,662),316=>array(19,-275,257,683),317=>array(12,0,598,676),318=>array(19,0,348,683),319=>array(12,0,721,662),320=>array(19,0,415,683),321=>array(12,0,598,662),322=>array(19,0,259,683),323=>array(12,-11,707,892),324=>array(16,0,486,679),325=>array(12,-256,707,662),326=>array(16,-255,486,460),327=>array(12,-11,707,884),328=>array(16,0,486,675),329=>array(4,0,535,738),330=>array(12,-218,707,662),331=>array(16,-218,424,460),332=>array(34,-14,688,791),333=>array(29,-10,470,574),334=>array(34,-14,688,893),335=>array(29,-10,470,677),336=>array(34,-14,688,890),337=>array(29,-10,470,680),338=>array(30,-6,886,668),339=>array(30,-10,690,460),340=>array(17,0,659,907),341=>array(6,0,334,679),342=>array(17,-275,659,662),343=>array(6,-275,334,460),344=>array(17,0,659,886),345=>array(6,0,334,674),346=>array(42,-14,491,892),347=>array(51,-10,367,680),348=>array(42,-14,491,886),349=>array(37,-10,348,675),350=>array(42,-214,491,676),351=>array(51,-214,348,459),352=>array(42,-14,491,887),353=>array(38,-10,350,676),354=>array(17,-214,593,662),355=>array(13,-214,279,579),356=>array(17,0,593,888),357=>array(13,-10,300,676),358=>array(17,0,593,662),359=>array(13,-10,279,579),360=>array(14,-14,706,842),361=>array(9,-10,479,626),362=>array(14,-14,706,791),363=>array(9,-10,479,574),364=>array(14,-14,706,893),365=>array(9,-10,479,677),366=>array(14,-14,706,934),367=>array(9,-10,479,718),368=>array(14,-14,706,892),369=>array(9,-10,479,680),370=>array(14,-166,706,662),371=>array(9,-166,500,450),372=>array(6,-11,932,887),373=>array(21,-14,694,676),374=>array(22,0,703,887),375=>array(14,-218,474,675),376=>array(22,0,703,836),377=>array(9,0,597,891),378=>array(27,0,418,679),379=>array(9,0,597,836),380=>array(27,0,418,619),381=>array(9,0,597,886),382=>array(27,0,418,674),383=>array(20,0,383,683),384=>array(-1,-10,468,683),385=>array(-104,0,593,662),386=>array(39,0,608,686),387=>array(-10,-10,468,662),388=>array(3,0,604,683),389=>array(-17,-10,468,683),390=>array(28,-14,633,676),391=>array(28,-14,806,822),392=>array(26,-10,554,570),393=>array(16,0,686,662),394=>array(-100,0,686,662),395=>array(39,0,608,686),396=>array(27,-10,503,662),397=>array(31,-224,477,459),398=>array(12,0,597,662),399=>array(37,-14,688,676),400=>array(28,-14,484,702),401=>array(-67,-204,546,662),402=>array(-76,-218,384,683),403=>array(32,-14,816,822),404=>array(23,-14,643,662),405=>array(9,-9,709,683),406=>array(19,-10,326,683),407=>array(1,0,331,662),408=>array(34,0,794,664),409=>array(7,0,506,683),410=>array(1,0,281,683),411=>array(28,-10,458,672),412=>array(10,-10,931,662),413=>array(-70,-218,707,662),414=>array(16,-200,486,460),415=>array(30,-12,714,673),416=>array(34,-14,708,796),417=>array(29,-10,536,552),418=>array(34,-14,1022,676),419=>array(29,-217,774,460),420=>array(-106,0,542,662),421=>array(6,-217,470,683),422=>array(6,-113,659,662),423=>array(42,-14,491,676),424=>array(51,-10,348,459),425=>array(14,0,562,661),426=>array(22,-190,576,683),427=>array(13,-218,279,579),428=>array(-9,0,593,662),429=>array(-12,-10,350,683),430=>array(17,-204,593,662),431=>array(14,-14,826,848),432=>array(9,-10,538,636),433=>array(33,-13,713,663),434=>array(14,-14,688,662),435=>array(17,0,803,666),436=>array(14,-218,651,459),437=>array(9,0,597,662),438=>array(27,0,418,450),439=>array(14,-14,496,676),440=>array(14,-14,496,676),441=>array(6,-209,362,450),442=>array(46,-228,434,450),443=>array(30,0,474,676),444=>array(31,-14,580,662),445=>array(26,-183,404,477),446=>array(26,-10,379,579),447=>array(6,-217,472,460),448=>array(67,-14,133,676),449=>array(67,-14,333,676),450=>array(47,-108,553,614),451=>array(130,-9,237,676),452=>array(16,0,1319,886),453=>array(16,0,1140,674),454=>array(27,-10,918,683),455=>array(12,-14,981,662),456=>array(12,-218,804,683),457=>array(19,-218,472,683),458=>array(12,-14,1092,662),459=>array(12,-218,916,683),460=>array(16,-218,694,683),461=>array(14,0,706,886),462=>array(37,-10,442,674),463=>array(8,0,320,886),464=>array(-19,-2,292,672),465=>array(34,-14,688,886),466=>array(29,-10,470,674),467=>array(14,-14,706,882),468=>array(9,-10,479,674),469=>array(14,-14,706,913),470=>array(9,-10,479,721),471=>array(14,-14,706,931),472=>array(9,-10,479,788),473=>array(14,-14,706,963),474=>array(9,-10,479,784),475=>array(14,-14,706,939),476=>array(9,-10,479,788),477=>array(18,-10,417,460),478=>array(14,0,706,834),479=>array(37,-10,442,721),480=>array(14,0,706,913),481=>array(37,-10,442,721),482=>array(0,0,863,813),483=>array(38,-10,632,460),484=>array(32,-14,709,676),485=>array(11,-218,489,460),486=>array(32,-14,709,886),487=>array(28,-218,470,674),488=>array(34,0,723,886),489=>array(7,0,506,886),490=>array(34,-14,688,676),491=>array(29,-10,470,460),492=>array(34,-14,688,813),493=>array(29,-10,470,601),494=>array(14,-14,496,903),495=>array(6,-209,362,674),496=>array(-70,-218,292,672),497=>array(16,0,1319,662),498=>array(16,0,1140,662),499=>array(27,-10,918,683),500=>array(32,-14,709,676),501=>array(28,-218,470,678),502=>array(19,-14,917,662),504=>array(12,-11,707,890),505=>array(16,0,486,678),506=>array(14,0,706,914),507=>array(37,-10,442,718),508=>array(0,0,863,890),509=>array(38,-10,632,678),510=>array(34,-80,688,734),511=>array(29,-112,470,678),512=>array(14,0,706,890),513=>array(27,-10,442,678),514=>array(14,0,706,876),515=>array(37,-10,442,664),516=>array(12,0,597,890),517=>array(24,-10,424,678),518=>array(12,0,597,876),519=>array(26,-10,424,664),520=>array(-77,0,314,890),521=>array(-71,0,309,678),522=>array(18,0,314,876),523=>array(-4,0,277,664),524=>array(34,-14,688,890),525=>array(29,-10,470,678),526=>array(34,-14,688,876),527=>array(29,-10,470,664),528=>array(17,0,659,890),529=>array(-53,0,334,678),530=>array(17,0,659,876),531=>array(6,0,334,664),532=>array(14,-14,706,890),533=>array(9,-10,479,678),534=>array(14,-14,706,876),535=>array(9,-10,479,664),536=>array(42,-281,491,676),537=>array(51,-281,348,459),538=>array(17,-281,593,662),539=>array(13,-281,279,579),542=>array(19,0,702,886),543=>array(-6,0,487,886),550=>array(14,0,706,834),551=>array(37,-10,442,622),552=>array(12,-214,597,662),553=>array(26,-214,424,460),554=>array(34,-14,688,913),555=>array(29,-10,470,721),556=>array(34,-14,688,923),557=>array(29,-10,470,721),558=>array(34,-14,688,834),559=>array(29,-10,470,622),560=>array(34,-14,688,913),561=>array(29,-10,470,721),562=>array(22,0,703,813),563=>array(14,-218,474,601),565=>array(16,-230,578,460),567=>array(-70,-218,193,460),1548=>array(71,38,208,312),1563=>array(73,11,211,442),1567=>array(36,0,287,536),1569=>array(30,-59,264,213),1570=>array(21,-59,302,869),1571=>array(41,-58,259,760),1572=>array(59,-267,402,422),1573=>array(57,-292,288,738),1574=>array(42,-163,599,418),1575=>array(57,-58,259,738),1576=>array(38,-198,751,328),1577=>array(46,2,292,584),1578=>array(37,1,751,433),1579=>array(39,2,753,521),1580=>array(41,-440,563,411),1581=>array(34,-437,557,414),1582=>array(44,-437,567,553),1583=>array(51,1,364,454),1584=>array(43,0,357,647),1585=>array(48,-269,408,313),1586=>array(46,-269,406,513),1587=>array(36,-229,832,302),1588=>array(47,-225,844,551),1589=>array(46,-225,1032,304),1590=>array(35,-230,1022,434),1591=>array(41,0,698,738),1592=>array(40,-4,697,734),1593=>array(33,-438,462,420),1594=>array(34,-438,462,599),1600=>array(0,0,440,88),1601=>array(30,1,751,578),1602=>array(38,-228,534,454),1603=>array(37,1,744,739),1604=>array(43,-228,542,738),1605=>array(47,-412,354,242),1606=>array(46,-227,550,372),1607=>array(35,-2,282,411),1608=>array(39,-270,382,256),1609=>array(37,-164,593,417),1610=>array(44,-329,600,418),1611=>array(18,688,216,925),1612=>array(11,682,246,921),1613=>array(4,-501,202,-263),1614=>array(18,695,216,847),1615=>array(17,687,219,937),1616=>array(2,-427,200,-276),1617=>array(57,921,265,1114),1618=>array(6,731,158,914),1632=>array(157,109,292,284),1633=>array(143,-8,292,496),1634=>array(74,-8,358,496),1635=>array(46,-8,380,496),1636=>array(95,0,348,496),1637=>array(82,0,354,496),1638=>array(63,0,373,496),1639=>array(29,0,384,496),1640=>array(31,0,386,496),1641=>array(74,0,354,496),1642=>array(33,0,428,664),1645=>array(19,109,368,441),7680=>array(14,-238,706,674),7681=>array(37,-249,442,460),7682=>array(17,0,593,801),7683=>array(3,-10,468,825),7684=>array(17,-139,593,662),7685=>array(3,-149,468,683),7686=>array(17,-94,593,662),7687=>array(3,-104,468,683),7688=>array(28,-214,633,897),7689=>array(26,-214,412,661),7690=>array(16,0,686,801),7691=>array(27,-10,491,683),7692=>array(16,-139,686,662),7693=>array(27,-149,491,683),7694=>array(16,-94,686,662),7695=>array(27,-104,491,683),7696=>array(16,-214,686,662),7697=>array(27,-224,491,683),7698=>array(16,-219,686,662),7699=>array(27,-229,491,683),7700=>array(12,0,597,1024),7701=>array(26,-10,424,812),7702=>array(12,0,597,1024),7703=>array(26,-10,424,812),7704=>array(12,-219,597,662),7705=>array(26,-229,424,460),7706=>array(12,-146,597,662),7707=>array(26,-156,424,460),7708=>array(12,-214,597,858),7709=>array(26,-214,424,647),7710=>array(12,0,546,801),7711=>array(20,0,383,825),7712=>array(32,-14,709,780),7713=>array(28,-218,470,544),7714=>array(19,0,702,801),7715=>array(9,0,487,825),7716=>array(19,-139,702,662),7717=>array(9,-139,487,683),7718=>array(19,0,702,801),7719=>array(9,0,487,825),7720=>array(19,-214,702,662),7721=>array(9,-214,487,683),7722=>array(19,-197,702,662),7723=>array(9,-197,487,683),7724=>array(1,-146,331,662),7725=>array(-31,-146,298,683),7726=>array(18,0,316,1044),7727=>array(11,0,269,832),7728=>array(34,0,723,872),7729=>array(7,0,506,897),7730=>array(34,-139,723,662),7731=>array(7,-139,506,683),7732=>array(34,-94,723,662),7733=>array(7,-94,506,683),7734=>array(12,-139,598,662),7735=>array(19,-139,257,683),7736=>array(12,-139,598,756),7737=>array(-17,-139,294,780),7738=>array(12,-94,598,662),7739=>array(-17,-94,294,683),7740=>array(12,-219,598,662),7741=>array(-17,-219,294,683),7742=>array(12,0,863,872),7743=>array(16,0,774,661),7744=>array(12,0,863,801),7745=>array(16,0,774,589),7746=>array(12,-139,863,662),7747=>array(16,-139,774,460),7748=>array(12,-11,707,801),7749=>array(16,0,486,589),7750=>array(12,-151,707,662),7751=>array(16,-139,486,460),7752=>array(12,-106,707,662),7753=>array(16,-94,486,460),7754=>array(12,-231,707,662),7755=>array(16,-219,486,460),7756=>array(34,-14,688,1061),7757=>array(29,-10,470,848),7758=>array(34,-14,688,989),7759=>array(29,-10,470,777),7760=>array(34,-14,688,1024),7761=>array(29,-10,470,812),7762=>array(34,-14,688,1024),7763=>array(29,-10,470,812),7764=>array(16,0,542,872),7765=>array(6,-217,470,661),7766=>array(16,0,542,801),7767=>array(6,-217,470,589),7768=>array(17,0,659,801),7769=>array(6,0,334,589),7770=>array(17,-139,659,662),7771=>array(6,-139,334,460),7772=>array(17,-139,659,756),7773=>array(6,-139,334,544),7774=>array(17,-94,659,662),7775=>array(6,-94,334,460),7776=>array(42,-14,491,825),7777=>array(51,-10,348,589),7778=>array(42,-153,491,676),7779=>array(51,-149,348,459),7780=>array(42,-14,491,1029),7781=>array(51,-10,367,825),7782=>array(42,-14,491,1025),7783=>array(38,-10,350,825),7784=>array(42,-153,491,825),7785=>array(51,-149,348,589),7786=>array(17,0,593,801),7787=>array(13,-10,279,718),7788=>array(17,-139,593,662),7789=>array(13,-149,279,579),7790=>array(17,-94,593,662),7791=>array(-9,-104,302,579),7792=>array(17,-219,593,662),7793=>array(-9,-229,302,579),7794=>array(14,-153,706,662),7795=>array(9,-149,479,450),7796=>array(14,-160,706,662),7797=>array(9,-156,479,450),7798=>array(14,-233,706,662),7799=>array(9,-229,479,450),7800=>array(14,-14,706,1061),7801=>array(9,-10,479,848),7802=>array(14,-14,706,952),7803=>array(9,-10,479,740),7804=>array(16,-11,697,808),7805=>array(19,-14,477,596),7806=>array(16,-151,697,662),7807=>array(19,-153,477,450),7808=>array(6,-11,932,872),7809=>array(21,-14,694,661),7810=>array(6,-11,932,872),7811=>array(21,-14,694,661),7812=>array(6,-11,932,801),7813=>array(21,-14,694,589),7814=>array(6,-11,932,801),7815=>array(21,-14,694,589),7816=>array(6,-151,932,662),7817=>array(21,-153,694,450),7818=>array(10,0,704,801),7819=>array(17,0,479,589),7820=>array(10,0,704,801),7821=>array(17,0,479,589),7822=>array(22,0,703,801),7823=>array(14,-218,474,589),7824=>array(9,0,597,868),7825=>array(27,0,418,657),7826=>array(9,-139,597,662),7827=>array(27,-139,418,450),7828=>array(9,-94,597,662),7829=>array(27,-94,418,450),7830=>array(9,-94,487,683),7831=>array(-3,-10,295,718),7832=>array(21,-14,694,688),7833=>array(14,-218,474,688),7834=>array(37,-10,442,710),7835=>array(20,0,383,825),7840=>array(14,-139,706,674),7841=>array(37,-149,442,460),7842=>array(14,0,706,920),7843=>array(37,-10,442,708),7844=>array(14,0,706,1097),7845=>array(37,-10,442,897),7846=>array(14,0,706,1097),7847=>array(37,-10,442,897),7848=>array(14,0,706,911),7849=>array(37,-10,498,696),7850=>array(14,0,706,1032),7851=>array(37,-10,442,832),7852=>array(14,-139,706,893),7853=>array(37,-149,442,657),7854=>array(14,0,706,1087),7855=>array(37,-10,442,875),7856=>array(14,0,706,1087),7857=>array(37,-10,442,875),7858=>array(14,0,706,1040),7859=>array(37,-10,442,838),7860=>array(14,0,706,1022),7861=>array(37,-10,442,810),7862=>array(14,-139,706,883),7863=>array(37,-149,442,647),7864=>array(12,-139,597,662),7865=>array(26,-149,424,460),7866=>array(12,0,597,920),7867=>array(26,-10,424,708),7868=>array(12,0,597,808),7869=>array(26,-10,424,596),7870=>array(12,0,597,1097),7871=>array(26,-10,424,897),7872=>array(12,0,597,1097),7873=>array(26,-10,424,897),7874=>array(12,0,608,920),7875=>array(26,-10,504,708),7876=>array(12,0,597,1032),7877=>array(26,-10,424,832),7878=>array(12,-139,597,868),7879=>array(26,-149,424,657),7880=>array(-240,0,314,911),7881=>array(-272,0,253,699),7882=>array(18,-139,314,662),7883=>array(16,-139,253,683),7884=>array(34,-153,688,676),7885=>array(29,-149,470,460),7886=>array(34,-14,688,924),7887=>array(29,-10,470,706),7888=>array(34,-14,688,1097),7889=>array(29,-10,470,897),7890=>array(34,-14,688,1097),7891=>array(29,-10,470,897),7892=>array(34,-14,688,924),7893=>array(29,-10,537,706),7894=>array(34,-14,688,1032),7895=>array(29,-10,470,832),7896=>array(34,-153,688,893),7897=>array(29,-149,470,657),7898=>array(34,-14,708,895),7899=>array(29,-10,536,679),7900=>array(34,-14,708,904),7901=>array(29,-10,536,677),7902=>array(34,-14,708,924),7903=>array(29,-10,536,706),7904=>array(34,-14,708,857),7905=>array(29,-10,536,618),7906=>array(34,-173,708,796),7907=>array(29,-169,536,552),7908=>array(14,-153,706,662),7909=>array(9,-149,479,450),7910=>array(14,-14,706,920),7911=>array(9,-10,479,708),7912=>array(14,-14,826,914),7913=>array(9,-10,538,684),7914=>array(14,-14,826,908),7915=>array(9,-10,538,678),7916=>array(14,-14,826,920),7917=>array(9,-10,538,708),7918=>array(14,-14,826,848),7919=>array(9,-10,538,640),7920=>array(14,-173,826,848),7921=>array(9,-169,538,636),7922=>array(22,0,703,872),7923=>array(14,-218,474,661),7924=>array(22,-139,703,662),7925=>array(14,-357,474,450),7926=>array(22,0,703,920),7927=>array(14,-218,474,708),7928=>array(22,0,703,808),7929=>array(14,-218,474,596),8204=>array(-17,0,17,910),8205=>array(-110,0,110,910),8206=>array(-123,0,123,916),8207=>array(-123,0,123,916),8234=>array(-123,-94,123,822),8235=>array(-123,-94,123,822),8236=>array(-111,0,111,910),8237=>array(-123,-94,123,916),8238=>array(-123,-94,123,916),64256=>array(26,0,479,500),64257=>array(22,0,382,500),64258=>array(23,0,382,500),64259=>array(26,0,583,500),64260=>array(26,0,582,500),64262=>array(37,-7,494,512),64830=>array(29,-259,520,689),64831=>array(34,-259,525,689),65010=>array(46,1,664,673),65152=>array(49,-58,283,215),65153=>array(32,-59,314,869),65154=>array(28,0,391,870),65155=>array(41,-58,259,760),65156=>array(41,0,340,760),65157=>array(51,-267,394,422),65158=>array(48,-267,448,422),65159=>array(57,-292,288,738),65160=>array(57,-232,354,738),65161=>array(47,-164,603,417),65162=>array(34,-262,538,202),65163=>array(0,0,214,534),65164=>array(0,0,253,523),65165=>array(57,-58,259,738),65166=>array(57,0,354,738),65167=>array(34,-196,748,331),65168=>array(29,-196,777,330),65169=>array(0,-197,214,329),65170=>array(0,-197,253,329),65171=>array(34,2,281,583),65172=>array(36,1,438,582),65173=>array(42,0,756,432),65174=>array(37,0,784,432),65175=>array(0,0,244,515),65176=>array(0,0,296,515),65177=>array(39,1,753,518),65178=>array(37,0,784,518),65179=>array(0,0,244,601),65180=>array(0,0,293,601),65181=>array(38,-437,561,414),65182=>array(46,-438,568,413),65183=>array(0,-196,551,366),65184=>array(0,-196,539,366),65185=>array(42,-438,564,413),65186=>array(46,-438,568,413),65187=>array(0,0,551,366),65188=>array(0,0,539,366),65189=>array(38,-436,561,554),65190=>array(41,-438,563,551),65191=>array(0,0,551,588),65192=>array(0,0,539,515),65193=>array(47,0,361,454),65194=>array(53,0,401,454),65195=>array(50,0,364,647),65196=>array(48,-1,397,647),65197=>array(47,-268,407,314),65198=>array(38,-267,464,317),65199=>array(49,-272,409,511),65200=>array(43,-267,469,516),65201=>array(38,-228,834,303),65202=>array(43,-228,917,303),65203=>array(0,0,563,303),65204=>array(0,0,640,303),65205=>array(36,-228,832,548),65206=>array(41,-228,914,549),65207=>array(0,0,563,555),65208=>array(0,0,640,555),65209=>array(46,-228,1032,302),65210=>array(41,-228,1085,302),65211=>array(0,0,708,302),65212=>array(0,0,761,302),65213=>array(38,-228,1025,432),65214=>array(41,-228,1085,432),65215=>array(0,0,708,432),65216=>array(0,0,761,432),65217=>array(50,-1,707,738),65218=>array(49,0,729,738),65219=>array(0,0,593,738),65220=>array(0,0,616,738),65221=>array(47,0,704,738),65222=>array(42,0,722,738),65223=>array(0,0,593,738),65224=>array(0,0,616,738),65225=>array(41,-438,469,419),65226=>array(63,-458,496,274),65227=>array(0,0,493,362),65228=>array(0,0,388,281),65229=>array(39,-438,467,599),65230=>array(63,-458,496,516),65231=>array(0,0,493,542),65232=>array(0,0,388,516),65233=>array(42,0,763,578),65234=>array(35,1,792,458),65235=>array(0,0,298,578),65236=>array(0,0,316,458),65237=>array(41,-228,537,454),65238=>array(41,-228,584,454),65239=>array(0,0,298,599),65240=>array(0,0,316,491),65241=>array(38,1,746,739),65242=>array(0,0,768,738),65243=>array(0,0,357,762),65244=>array(0,0,410,762),65245=>array(38,-228,537,738),65246=>array(46,-228,616,738),65247=>array(0,0,220,738),65248=>array(0,0,245,738),65249=>array(48,-413,356,240),65250=>array(48,-416,472,256),65251=>array(0,0,385,256),65252=>array(0,-14,424,256),65253=>array(54,-231,559,367),65254=>array(38,-228,616,370),65255=>array(0,0,214,516),65256=>array(0,0,253,516),65257=>array(35,-2,282,411),65258=>array(42,1,445,413),65259=>array(0,-16,452,522),65260=>array(0,-173,415,373),65261=>array(47,-268,390,259),65262=>array(50,-267,449,259),65263=>array(41,-163,597,419),65264=>array(42,-262,546,182),65265=>array(43,-333,599,414),65266=>array(42,-422,546,183),65267=>array(0,-236,244,329),65268=>array(0,-236,283,329),65269=>array(39,-88,507,752),65270=>array(39,-99,744,779),65271=>array(52,-88,507,792),65272=>array(57,-99,744,788),65273=>array(74,-292,507,749),65274=>array(68,-248,744,736),65275=>array(48,-89,481,748),65276=>array(68,-99,744,736),65535=>array(33,0,300,667)); +$cw=array(0=>0,12=>318,32=>250,33=>332,34=>408,35=>500,36=>500,37=>832,38=>778,39=>180,40=>332,41=>332,42=>500,43=>564,44=>250,45=>332,46=>250,47=>278,48=>500,49=>500,50=>500,51=>500,52=>500,53=>500,54=>500,55=>500,56=>500,57=>500,58=>278,59=>278,60=>564,61=>564,62=>564,63=>444,64=>921,65=>722,66=>667,67=>667,68=>722,69=>611,70=>556,71=>722,72=>722,73=>332,74=>388,75=>722,76=>611,77=>888,78=>722,79=>722,80=>556,81=>722,82=>667,83=>556,84=>611,85=>722,86=>722,87=>944,88=>722,89=>722,90=>611,91=>332,92=>278,93=>332,94=>468,95=>500,96=>332,97=>444,98=>500,99=>444,100=>500,101=>444,102=>332,103=>500,104=>500,105=>278,106=>278,107=>500,108=>278,109=>778,110=>500,111=>500,112=>500,113=>500,114=>332,115=>388,116=>278,117=>500,118=>500,119=>722,120=>500,121=>500,122=>444,123=>480,124=>200,125=>480,126=>541,160=>250,161=>332,162=>500,163=>500,164=>500,165=>500,166=>200,167=>500,168=>332,169=>760,170=>276,171=>500,172=>564,173=>332,174=>760,175=>332,176=>400,177=>564,178=>300,179=>300,180=>332,181=>534,182=>452,183=>250,184=>332,185=>300,186=>310,187=>500,188=>750,189=>750,190=>750,191=>444,192=>722,193=>722,194=>722,195=>722,196=>722,197=>722,198=>888,199=>667,200=>611,201=>611,202=>611,203=>611,204=>332,205=>332,206=>332,207=>332,208=>722,209=>722,210=>722,211=>722,212=>722,213=>722,214=>722,215=>564,216=>722,217=>722,218=>722,219=>722,220=>722,221=>722,222=>556,223=>500,224=>444,225=>444,226=>444,227=>444,228=>444,229=>444,230=>667,231=>444,232=>444,233=>444,234=>444,235=>444,236=>278,237=>278,238=>278,239=>278,240=>500,241=>500,242=>500,243=>500,244=>500,245=>500,246=>500,247=>564,248=>500,249=>500,250=>500,251=>500,252=>500,253=>500,254=>500,255=>500,256=>722,257=>444,258=>722,259=>444,260=>722,261=>444,262=>667,263=>444,264=>667,265=>444,266=>667,267=>444,268=>667,269=>444,270=>722,271=>600,272=>722,273=>500,274=>611,275=>444,276=>611,277=>444,278=>611,279=>444,280=>611,281=>444,282=>611,283=>444,284=>722,285=>500,286=>722,287=>500,288=>722,289=>500,290=>722,291=>500,292=>722,293=>500,294=>722,295=>548,296=>332,297=>278,298=>332,299=>278,300=>332,301=>278,302=>332,303=>278,304=>332,305=>278,306=>722,307=>556,308=>388,309=>203,310=>722,311=>500,312=>500,313=>611,314=>278,315=>611,316=>278,317=>611,318=>348,319=>611,320=>444,321=>611,322=>278,323=>722,324=>500,325=>722,326=>500,327=>722,328=>500,329=>556,330=>722,331=>500,332=>722,333=>500,334=>722,335=>500,336=>722,337=>500,338=>888,339=>722,340=>667,341=>332,342=>667,343=>332,344=>667,345=>332,346=>556,347=>388,348=>556,349=>388,350=>556,351=>388,352=>556,353=>388,354=>611,355=>278,356=>611,357=>278,358=>611,359=>278,360=>722,361=>500,362=>722,363=>500,364=>722,365=>500,366=>722,367=>500,368=>722,369=>500,370=>722,371=>500,372=>944,373=>722,374=>722,375=>500,376=>722,377=>611,378=>444,379=>611,380=>444,381=>611,382=>444,383=>332,384=>500,385=>667,386=>646,387=>500,388=>646,389=>500,390=>667,391=>667,392=>444,393=>722,394=>722,395=>646,396=>500,397=>534,398=>611,399=>722,400=>518,401=>556,402=>332,403=>722,404=>664,405=>728,406=>332,407=>332,408=>810,409=>500,410=>278,411=>480,412=>944,413=>722,414=>500,415=>726,416=>722,417=>500,418=>1042,419=>778,420=>556,421=>500,422=>667,423=>556,424=>388,425=>627,426=>592,427=>278,428=>611,429=>278,430=>611,431=>722,432=>500,433=>757,434=>722,435=>822,436=>667,437=>611,438=>444,439=>556,440=>556,441=>388,442=>500,443=>500,444=>614,445=>438,446=>421,447=>500,448=>200,449=>400,450=>600,451=>332,452=>1332,453=>1166,454=>944,455=>1000,456=>888,457=>556,458=>1111,459=>1000,460=>778,461=>722,462=>444,463=>332,464=>278,465=>722,466=>500,467=>722,468=>500,469=>722,470=>500,471=>722,472=>500,473=>722,474=>500,475=>722,476=>500,477=>444,478=>722,479=>444,480=>722,481=>444,482=>888,483=>667,484=>722,485=>500,486=>722,487=>500,488=>722,489=>500,490=>722,491=>500,492=>722,493=>500,494=>556,495=>388,496=>278,497=>1332,498=>1166,499=>944,500=>722,501=>500,502=>944,504=>722,505=>500,506=>722,507=>444,508=>888,509=>667,510=>722,511=>500,512=>722,513=>444,514=>722,515=>444,516=>611,517=>444,518=>611,519=>444,520=>332,521=>278,522=>332,523=>278,524=>722,525=>500,526=>722,527=>500,528=>667,529=>332,530=>667,531=>332,532=>722,533=>500,534=>722,535=>500,536=>556,537=>388,538=>611,539=>278,542=>722,543=>500,550=>722,551=>444,552=>611,553=>444,554=>722,555=>500,556=>722,557=>500,558=>722,559=>500,560=>722,561=>500,562=>722,563=>500,565=>597,567=>278,1548=>278,1563=>278,1567=>322,1569=>278,1570=>343,1571=>298,1572=>442,1573=>343,1574=>634,1575=>298,1576=>806,1577=>324,1578=>808,1579=>815,1580=>616,1581=>616,1582=>625,1583=>407,1584=>408,1585=>459,1586=>469,1587=>880,1588=>907,1589=>1099,1590=>1077,1591=>750,1592=>755,1593=>522,1594=>529,1600=>439,1601=>806,1602=>584,1603=>782,1604=>589,1605=>413,1606=>623,1607=>332,1608=>435,1609=>634,1610=>634,1611=>0,1612=>0,1613=>0,1614=>0,1615=>0,1616=>0,1617=>0,1618=>0,1632=>419,1633=>419,1634=>419,1635=>419,1636=>419,1637=>419,1638=>419,1639=>419,1640=>419,1641=>419,1642=>462,1645=>398,7680=>722,7681=>444,7682=>667,7683=>500,7684=>667,7685=>500,7686=>667,7687=>500,7688=>667,7689=>444,7690=>722,7691=>500,7692=>722,7693=>500,7694=>722,7695=>500,7696=>722,7697=>500,7698=>722,7699=>500,7700=>611,7701=>444,7702=>611,7703=>444,7704=>611,7705=>444,7706=>611,7707=>444,7708=>611,7709=>444,7710=>556,7711=>332,7712=>722,7713=>500,7714=>722,7715=>500,7716=>722,7717=>500,7718=>722,7719=>500,7720=>722,7721=>500,7722=>722,7723=>500,7724=>332,7725=>278,7726=>332,7727=>278,7728=>722,7729=>500,7730=>722,7731=>500,7732=>722,7733=>500,7734=>611,7735=>278,7736=>611,7737=>278,7738=>611,7739=>278,7740=>611,7741=>278,7742=>888,7743=>778,7744=>888,7745=>778,7746=>888,7747=>778,7748=>722,7749=>500,7750=>722,7751=>500,7752=>722,7753=>500,7754=>722,7755=>500,7756=>722,7757=>500,7758=>722,7759=>500,7760=>722,7761=>500,7762=>722,7763=>500,7764=>556,7765=>500,7766=>556,7767=>500,7768=>667,7769=>332,7770=>667,7771=>332,7772=>667,7773=>332,7774=>667,7775=>332,7776=>556,7777=>388,7778=>556,7779=>388,7780=>556,7781=>388,7782=>556,7783=>388,7784=>556,7785=>388,7786=>611,7787=>278,7788=>611,7789=>278,7790=>611,7791=>278,7792=>611,7793=>278,7794=>722,7795=>500,7796=>722,7797=>500,7798=>722,7799=>500,7800=>722,7801=>500,7802=>722,7803=>500,7804=>722,7805=>500,7806=>722,7807=>500,7808=>944,7809=>722,7810=>944,7811=>722,7812=>944,7813=>722,7814=>944,7815=>722,7816=>944,7817=>722,7818=>722,7819=>500,7820=>722,7821=>500,7822=>722,7823=>500,7824=>611,7825=>444,7826=>611,7827=>444,7828=>611,7829=>444,7830=>500,7831=>278,7832=>722,7833=>500,7834=>444,7835=>332,7840=>722,7841=>444,7842=>807,7843=>528,7844=>722,7845=>444,7846=>722,7847=>444,7848=>807,7849=>528,7850=>722,7851=>444,7852=>722,7853=>444,7854=>722,7855=>444,7856=>722,7857=>444,7858=>807,7859=>528,7860=>722,7861=>444,7862=>722,7863=>444,7864=>611,7865=>444,7866=>696,7867=>528,7868=>611,7869=>444,7870=>611,7871=>444,7872=>611,7873=>444,7874=>696,7875=>528,7876=>611,7877=>444,7878=>611,7879=>444,7880=>332,7881=>278,7882=>332,7883=>278,7884=>722,7885=>500,7886=>807,7887=>584,7888=>722,7889=>500,7890=>722,7891=>500,7892=>807,7893=>584,7894=>722,7895=>500,7896=>722,7897=>500,7898=>722,7899=>500,7900=>722,7901=>500,7902=>807,7903=>584,7904=>722,7905=>500,7906=>722,7907=>500,7908=>722,7909=>500,7910=>807,7911=>584,7912=>722,7913=>500,7914=>722,7915=>500,7916=>807,7917=>584,7918=>722,7919=>500,7920=>722,7921=>500,7922=>722,7923=>500,7924=>722,7925=>500,7926=>807,7927=>584,7928=>722,7929=>500,8204=>0,8205=>0,8206=>0,8207=>0,8234=>0,8235=>0,8236=>0,8237=>0,8238=>0,64256=>443,64257=>407,64258=>407,64259=>603,64260=>601,64262=>496,64830=>554,64831=>554,65010=>719,65152=>329,65153=>366,65154=>391,65155=>296,65156=>339,65157=>439,65158=>448,65159=>342,65160=>354,65161=>659,65162=>538,65163=>267,65164=>253,65165=>298,65166=>354,65167=>808,65168=>777,65169=>274,65170=>253,65171=>337,65172=>438,65173=>818,65174=>784,65175=>293,65176=>296,65177=>818,65178=>784,65179=>293,65180=>293,65181=>608,65182=>568,65183=>599,65184=>539,65185=>606,65186=>568,65187=>606,65188=>539,65189=>616,65190=>563,65191=>599,65192=>539,65193=>411,65194=>402,65195=>423,65196=>396,65197=>459,65198=>464,65199=>464,65200=>469,65201=>887,65202=>916,65203=>623,65204=>640,65205=>883,65206=>914,65207=>621,65208=>640,65209=>1080,65210=>1084,65211=>772,65212=>761,65213=>1075,65214=>1084,65215=>767,65216=>761,65217=>762,65218=>729,65219=>654,65220=>616,65221=>762,65222=>722,65223=>642,65224=>616,65225=>522,65226=>422,65227=>553,65228=>387,65229=>529,65230=>422,65231=>541,65232=>387,65233=>815,65234=>791,65235=>346,65236=>315,65237=>587,65238=>584,65239=>348,65240=>315,65241=>806,65242=>767,65243=>408,65244=>410,65245=>589,65246=>616,65247=>278,65248=>245,65249=>407,65250=>472,65251=>439,65252=>423,65253=>611,65254=>616,65255=>281,65256=>253,65257=>332,65258=>444,65259=>507,65260=>415,65261=>439,65262=>449,65263=>637,65264=>546,65265=>639,65266=>546,65267=>293,65268=>282,65269=>569,65270=>744,65271=>577,65272=>744,65273=>579,65274=>744,65275=>537,65276=>744,65535=>367); +// --- EOF --- diff --git a/TCPDF/fonts/aefurat.z b/TCPDF/fonts/aefurat.z new file mode 100644 index 0000000..67d0f96 Binary files /dev/null and b/TCPDF/fonts/aefurat.z differ diff --git a/TCPDF/fonts/cid0cs.php b/TCPDF/fonts/cid0cs.php new file mode 100644 index 0000000..cd269d0 --- /dev/null +++ b/TCPDF/fonts/cid0cs.php @@ -0,0 +1,17 @@ +'Adobe', 'Ordering'=>'GB1','Supplement'=>2); +include(dirname(__FILE__).'/uni2cid_ag15.php'); +$desc=array('Flags'=>32,'FontBBox'=>'[-1011 -330 2260 1078]','ItalicAngle'=>0,'Ascent'=>1069,'Descent'=>-271,'Leading'=>0,'CapHeight'=>716,'XHeight'=>518,'StemV'=>34,'StemH'=>15,'AvgWidth'=>441,'MaxWidth'=>2259,'MissingWidth'=>1000); +$cbbox=array(0=>array(125,0,875,750),33=>array(85,0,194,716),34=>array(41,462,313,716),35=>array(11,-12,545,728),36=>array(38,-103,511,782),37=>array(73,-27,819,728),38=>array(43,-17,644,728),39=>array(45,462,145,716),40=>array(60,-210,297,728),41=>array(36,-210,273,728),42=>array(33,423,356,728),43=>array(55,116,529,590),44=>array(84,-141,190,100),45=>array(32,215,301,303),46=>array(89,0,189,100),47=>array(0,-24,278,716),48=>array(45,-12,511,719),49=>array(111,0,375,719),50=>array(31,0,505,719),51=>array(44,-12,513,719),52=>array(15,0,510,716),53=>array(42,-12,516,706),54=>array(42,-12,514,719),55=>array(48,0,511,706),56=>array(42,-12,513,719),57=>array(43,-12,513,719),58=>array(90,0,190,518),59=>array(84,-141,190,518),60=>array(55,111,529,595),61=>array(55,203,529,503),62=>array(55,111,529,595),63=>array(46,0,508,728),64=>array(56,-210,981,729),65=>array(-1,0,668,716),66=>array(74,0,615,716),67=>array(51,-12,683,728),68=>array(80,0,672,716),69=>array(79,0,614,716),70=>array(80,0,563,716),71=>array(52,-12,714,728),72=>array(80,0,642,716),73=>array(92,0,187,716),74=>array(27,-12,420,716),75=>array(73,0,665,716),76=>array(75,0,523,716),77=>array(76,0,757,716),78=>array(79,0,642,716),79=>array(47,-12,732,728),80=>array(77,0,623,716),81=>array(47,-56,745,728),82=>array(80,0,711,716),83=>array(45,-12,615,728),84=>array(22,0,589,716),85=>array(79,-12,642,716),86=>array(6,0,660,716),87=>array(12,0,933,716),88=>array(5,0,661,716),89=>array(5,0,661,716),90=>array(18,0,584,716),91=>array(68,-199,262,716),92=>array(0,-24,278,716),93=>array(16,-199,210,716),94=>array(26,325,443,716),95=>array(-6,-125,506,-75),96=>array(42,591,222,728),97=>array(38,-12,516,530),98=>array(67,-12,517,716),99=>array(39,-12,491,530),100=>array(36,-12,486,716),101=>array(39,-12,517,530),102=>array(8,0,311,728),103=>array(34,-210,491,530),104=>array(67,0,490,716),105=>array(67,0,155,716),106=>array(-45,-209,155,716),107=>array(66,0,496,716),108=>array(67,0,155,716),109=>array(65,0,769,530),110=>array(68,0,490,530),111=>array(35,-12,521,530),112=>array(68,-199,518,530),113=>array(38,-199,488,530),114=>array(64,0,346,530),115=>array(31,-12,461,530),116=>array(17,-7,269,700),117=>array(66,-12,487,518),118=>array(13,0,488,518),119=>array(5,0,717,518),120=>array(7,0,493,518),121=>array(16,-210,492,518),122=>array(20,0,479,518),123=>array(28,-210,310,728),124=>array(92,-199,168,716),125=>array(24,-210,306,728),126=>array(43,272,542,432),161=>array(110,-199,219,517),162=>array(55,-200,507,716),163=>array(15,-14,531,728),164=>array(38,115,518,594),165=>array(1,0,555,716),166=>array(92,-199,168,716),167=>array(42,-210,513,728),168=>array(31,611,302,711),169=>array(0,-9,737,728),170=>array(21,364,348,728),171=>array(69,35,487,481),172=>array(55,203,529,503),173=>array(32,215,301,303),174=>array(0,-9,737,728),175=>array(-6,793,506,843),176=>array(65,454,335,725),177=>array(55,0,529,611),178=>array(12,358,316,725),179=>array(16,349,315,725),180=>array(111,591,291,728),181=>array(67,-199,488,518),182=>array(-1,-199,539,716),183=>array(89,302,189,402),184=>array(52,-205,263,11),185=>array(52,358,232,725),186=>array(22,361,343,728),187=>array(69,35,487,481),188=>array(62,-25,789,732),189=>array(62,-25,806,732),190=>array(26,-25,789,732),191=>array(75,-209,537,519),192=>array(-1,0,668,900),193=>array(-1,0,668,900),194=>array(-1,0,668,900),195=>array(-1,0,668,886),196=>array(-1,0,668,881),197=>array(-1,0,668,920),198=>array(0,0,945,716),199=>array(51,-209,684,728),200=>array(79,0,614,900),201=>array(79,0,614,900),202=>array(79,0,614,900),203=>array(79,0,614,881),204=>array(15,0,195,900),205=>array(83,0,264,900),206=>array(-15,0,293,900),207=>array(3,0,274,881),208=>array(1,0,672,716),209=>array(79,0,642,884),210=>array(47,-12,732,900),211=>array(47,-12,732,900),212=>array(47,-12,732,900),213=>array(47,-12,732,884),214=>array(47,-12,732,881),215=>array(79,141,505,567),216=>array(41,-29,742,742),217=>array(79,-12,642,900),218=>array(79,-12,642,900),219=>array(79,-12,642,900),220=>array(79,-12,642,881),221=>array(5,0,661,900),222=>array(77,0,623,716),223=>array(72,-12,577,728),224=>array(38,-12,516,728),225=>array(38,-12,516,728),226=>array(38,-12,516,728),227=>array(38,-12,516,716),228=>array(38,-12,516,711),229=>array(38,-12,516,752),230=>array(34,-12,849,530),231=>array(39,-196,491,530),232=>array(39,-12,517,728),233=>array(39,-12,517,728),234=>array(39,-12,517,728),235=>array(39,-12,517,711),236=>array(13,0,193,728),237=>array(83,0,264,728),238=>array(-15,0,293,728),239=>array(5,0,276,711),240=>array(38,-12,517,716),241=>array(68,0,490,716),242=>array(35,-12,521,728),243=>array(35,-12,521,728),244=>array(35,-12,521,728),245=>array(35,-12,521,716),246=>array(35,-12,521,711),247=>array(55,146,529,560),248=>array(63,-39,549,550),249=>array(66,-12,487,728),250=>array(66,-12,487,728),251=>array(66,-12,487,728),252=>array(66,-12,487,711),253=>array(16,-210,492,728),254=>array(68,-199,518,716),255=>array(16,-210,492,711),256=>array(-1,0,668,833),257=>array(38,-12,516,697),258=>array(-1,0,668,888),259=>array(38,-12,516,722),260=>array(-1,-208,758,716),261=>array(38,-208,571,530),262=>array(51,-12,683,916),263=>array(39,-12,491,728),264=>array(51,-12,683,914),265=>array(39,-12,491,728),266=>array(51,-12,683,877),267=>array(39,-12,491,711),268=>array(51,-12,683,916),269=>array(39,-12,491,728),270=>array(80,0,672,916),271=>array(36,-12,625,716),272=>array(-1,0,672,716),273=>array(36,-12,551,716),274=>array(79,0,614,863),275=>array(39,-12,517,697),276=>array(79,0,614,902),277=>array(39,-12,517,722),278=>array(79,0,614,877),279=>array(39,-12,517,711),280=>array(79,-208,645,716),281=>array(39,-208,517,530),282=>array(79,0,614,916),283=>array(39,-12,517,728),284=>array(52,-12,714,914),285=>array(34,-210,491,728),286=>array(52,-12,714,904),287=>array(34,-210,491,722),288=>array(52,-12,714,877),289=>array(34,-210,491,711),290=>array(52,-210,714,728),291=>array(34,-210,491,775),292=>array(80,0,642,914),293=>array(67,0,490,914),294=>array(-1,0,722,716),295=>array(2,0,490,716),296=>array(-24,0,303,890),297=>array(-53,0,274,717),298=>array(-15,0,290,849),299=>array(-42,0,263,697),300=>array(-3,0,286,904),301=>array(-34,0,255,722),302=>array(91,-208,305,716),303=>array(45,-208,225,716),304=>array(92,0,187,877),305=>array(95,0,183,518),306=>array(92,-12,670,716),307=>array(67,-209,377,716),308=>array(27,-12,526,914),309=>array(-46,-209,263,728),310=>array(73,-210,665,716),311=>array(66,-210,496,716),312=>array(66,0,446,518),313=>array(75,0,523,916),314=>array(50,0,230,916),315=>array(75,-210,523,716),316=>array(58,-210,160,716),317=>array(-29,0,523,916),318=>array(-44,0,264,916),319=>array(75,0,523,716),320=>array(67,0,313,716),321=>array(0,0,521,716),322=>array(1,0,218,716),323=>array(79,0,642,916),324=>array(68,0,490,728),325=>array(79,-210,642,716),326=>array(68,-210,490,530),327=>array(79,0,642,916),328=>array(68,0,490,728),329=>array(-2,0,559,722),330=>array(81,-186,670,728),331=>array(68,-210,489,530),332=>array(47,-12,732,849),333=>array(35,-12,521,697),334=>array(47,-12,732,904),335=>array(35,-12,521,722),336=>array(47,-12,732,914),337=>array(35,-12,521,728),338=>array(63,-12,968,728),339=>array(38,-12,904,530),340=>array(80,0,711,914),341=>array(64,0,346,728),342=>array(80,-210,711,716),343=>array(54,-210,346,530),344=>array(80,0,711,916),345=>array(28,0,346,728),346=>array(45,-12,615,916),347=>array(31,-12,461,728),348=>array(45,-12,615,916),349=>array(31,-12,461,728),350=>array(45,-210,615,728),351=>array(31,-210,461,530),352=>array(45,-12,615,916),353=>array(31,-12,461,728),354=>array(22,-210,589,716),355=>array(17,-210,269,700),356=>array(22,0,589,916),357=>array(17,-7,406,716),358=>array(22,0,589,716),359=>array(17,-7,269,700),360=>array(79,-12,642,890),361=>array(66,-12,487,716),362=>array(79,-12,642,851),363=>array(66,-12,487,697),364=>array(79,-12,642,906),365=>array(66,-12,487,722),366=>array(79,-12,642,955),367=>array(66,-12,487,752),368=>array(79,-12,642,917),369=>array(66,-12,487,728),370=>array(79,-208,642,716),371=>array(66,-208,555,518),372=>array(12,0,933,916),373=>array(5,0,717,728),374=>array(5,0,661,916),375=>array(16,-210,492,728),376=>array(5,0,661,879),377=>array(18,0,584,916),378=>array(20,0,479,728),379=>array(18,0,584,877),380=>array(20,0,479,711),381=>array(18,0,584,916),382=>array(20,0,479,728),383=>array(67,0,292,728),384=>array(-14,-12,515,716),385=>array(0,0,688,716),386=>array(80,0,620,716),387=>array(65,-12,515,716),388=>array(67,-12,517,716),389=>array(67,-12,517,716),390=>array(39,-12,671,728),391=>array(51,-12,769,750),392=>array(39,-12,579,567),393=>array(1,0,672,716),394=>array(0,0,739,716),395=>array(35,0,575,716),396=>array(41,-12,491,716),397=>array(35,-198,522,530),398=>array(53,0,588,716),399=>array(45,-12,676,728),400=>array(42,-13,565,728),401=>array(-20,-154,563,716),402=>array(-14,-154,311,728),403=>array(52,-12,792,750),404=>array(0,-206,649,716),405=>array(67,-12,775,716),406=>array(67,-12,245,716),407=>array(0,0,322,716),408=>array(73,0,690,720),409=>array(66,0,496,728),410=>array(0,-12,322,716),411=>array(13,0,488,716),412=>array(65,-12,769,716),413=>array(-21,-154,642,716),414=>array(68,-199,490,530),415=>array(47,-12,732,728),416=>array(47,-12,776,768),417=>array(35,-12,555,606),418=>array(47,-12,950,728),419=>array(35,-209,715,530),420=>array(0,0,691,716),421=>array(68,-199,519,637),422=>array(80,-122,738,716),423=>array(52,-12,622,728),424=>array(39,-12,469,530),425=>array(47,0,554,716),426=>array(34,-154,405,734),427=>array(17,-151,269,700),428=>array(23,0,549,716),429=>array(17,-7,269,716),430=>array(22,-208,589,716),431=>array(79,-12,776,768),432=>array(66,-12,625,620),433=>array(67,-12,681,716),434=>array(6,0,620,728),435=>array(32,0,745,728),436=>array(16,-210,617,528),437=>array(18,0,584,716),438=>array(20,0,479,519),439=>array(40,-12,582,716),440=>array(46,-12,588,716),441=>array(42,-192,486,518),442=>array(36,-209,437,518),443=>array(31,0,505,728),444=>array(13,-12,516,716),445=>array(37,-12,486,518),446=>array(46,-10,508,716),447=>array(68,-199,498,529),448=>array(92,0,168,716),449=>array(92,0,372,716),450=>array(25,0,449,716),451=>array(85,0,194,716),452=>array(80,0,1303,896),453=>array(80,0,1202,728),454=>array(36,-12,1036,728),455=>array(75,-12,949,716),456=>array(75,-209,709,716),457=>array(67,-209,375,716),458=>array(79,-12,1141,716),459=>array(79,-209,875,716),460=>array(68,-209,709,716),461=>array(-1,0,668,900),462=>array(38,-12,516,728),463=>array(-17,0,292,900),464=>array(-18,0,291,728),465=>array(47,-12,732,900),466=>array(35,-12,521,728),467=>array(79,-12,642,900),468=>array(66,-12,487,728),469=>array(79,-12,642,1003),470=>array(66,-12,487,832),471=>array(79,-12,642,1068),472=>array(66,-12,487,896),473=>array(79,-12,642,1068),474=>array(66,-12,487,896),475=>array(79,-12,642,1068),476=>array(66,-12,487,896),477=>array(39,-11,517,530),478=>array(-1,0,668,1003),479=>array(38,-12,516,832),480=>array(-1,0,668,1003),481=>array(38,-12,516,832),482=>array(0,0,945,865),483=>array(34,-12,849,697),484=>array(52,-12,779,728),485=>array(34,-210,556,530),486=>array(52,-12,714,900),487=>array(34,-210,491,728),488=>array(73,0,665,900),489=>array(66,0,496,900),490=>array(47,-208,732,728),491=>array(33,-208,519,530),492=>array(47,-208,732,865),493=>array(33,-208,519,697),494=>array(48,6,492,898),495=>array(48,-192,492,728),496=>array(-48,-209,261,728),497=>array(80,0,1301,716),498=>array(80,0,1200,716),499=>array(36,-12,1034,716),500=>array(52,-12,714,900),501=>array(34,-210,491,728),506=>array(-1,0,668,1043),507=>array(38,-12,516,937),508=>array(0,0,945,898),509=>array(34,-12,849,728),510=>array(41,-29,742,898),511=>array(63,-39,549,728),512=>array(-1,0,668,894),513=>array(38,-12,516,728),514=>array(-1,0,668,888),515=>array(38,-12,516,722),516=>array(79,0,614,894),517=>array(39,-12,517,728),518=>array(79,0,614,888),519=>array(39,-12,517,722),520=>array(-55,0,291,894),521=>array(-53,0,292,728),522=>array(-3,0,286,888),523=>array(-5,0,284,722),524=>array(47,-12,732,894),525=>array(35,-12,521,728),526=>array(47,-12,732,888),527=>array(35,-12,521,722),528=>array(80,0,711,894),529=>array(14,0,359,728),530=>array(80,0,711,888),531=>array(38,0,346,722),532=>array(79,-12,642,894),533=>array(66,-12,487,728),534=>array(79,-12,642,888),535=>array(66,-12,487,722),592=>array(40,-12,518,530),593=>array(36,-12,486,530),594=>array(70,-12,520,530),595=>array(70,-12,520,716),596=>array(9,-12,461,530),597=>array(39,-91,482,530),598=>array(36,-210,611,716),599=>array(36,-12,611,716),600=>array(39,-12,522,530),601=>array(39,-12,517,530),602=>array(41,-12,772,530),603=>array(36,-12,450,530),604=>array(35,-12,449,530),605=>array(35,-12,701,530),606=>array(36,-12,483,530),607=>array(-51,-210,252,518),608=>array(34,-210,616,716),609=>array(34,-210,491,530),610=>array(36,-12,518,530),611=>array(13,-210,488,518),612=>array(13,-12,488,518),613=>array(66,-198,487,518),614=>array(67,0,490,716),615=>array(67,-210,490,716),616=>array(-2,0,244,716),617=>array(67,-12,280,518),618=>array(33,0,323,518),619=>array(7,0,349,716),620=>array(20,0,403,716),621=>array(67,-210,280,716),622=>array(67,-210,599,716),623=>array(64,-12,768,518),624=>array(64,-209,768,518),625=>array(65,-210,769,530),626=>array(-57,-210,490,530),627=>array(68,-210,615,530),628=>array(68,0,490,518),629=>array(35,-12,521,530),630=>array(36,-12,690,530),631=>array(36,-12,638,530),632=>array(36,-210,522,716),633=>array(-13,-12,269,518),634=>array(-13,-12,269,716),635=>array(-13,-210,394,518),636=>array(64,-198,346,530),637=>array(64,-210,346,530),638=>array(64,0,326,530),639=>array(-14,0,248,530),640=>array(64,0,518,518),641=>array(64,0,518,518),642=>array(31,-208,461,530),643=>array(-83,-210,299,716),644=>array(-53,-210,329,716),645=>array(-83,-210,299,716),646=>array(-125,-198,302,716),647=>array(9,-177,261,530),648=>array(17,-210,294,700),649=>array(20,-12,576,518),650=>array(36,-12,522,518),651=>array(66,-12,520,530),652=>array(13,0,488,518),653=>array(5,0,717,518),654=>array(8,0,484,728),655=>array(2,0,498,518),656=>array(20,-208,653,518),657=>array(20,-79,542,518),658=>array(22,-210,494,518),659=>array(26,-210,494,518),660=>array(16,0,428,728),661=>array(36,0,448,728),662=>array(16,-12,428,716),663=>array(39,-210,491,530),664=>array(36,-12,578,530),665=>array(74,0,496,518),666=>array(36,-12,483,530),667=>array(36,-12,582,616),668=>array(68,0,490,518),669=>array(-125,-198,248,716),670=>array(4,-198,434,518),671=>array(67,0,406,518),672=>array(36,-198,611,716),673=>array(16,0,428,728),674=>array(36,0,448,728),675=>array(36,-12,945,716),676=>array(36,-210,930,716),677=>array(36,-79,1008,716),678=>array(17,-12,650,700),679=>array(17,-210,540,728),680=>array(17,-91,700,700),688=>array(50,344,278,716),689=>array(50,344,278,716),690=>array(-10,235,103,716),691=>array(50,344,210,619),692=>array(-9,338,151,613),693=>array(-9,241,213,613),694=>array(50,344,292,613),695=>array(2,344,386,613),696=>array(8,235,274,613),697=>array(46,462,192,716),698=>array(46,462,342,716),699=>array(64,494,166,728),700=>array(56,482,158,716),701=>array(64,482,166,716),702=>array(44,497,178,716),703=>array(44,497,178,716),704=>array(9,428,230,720),705=>array(20,428,242,720),706=>array(57,423,264,675),707=>array(56,423,263,675),708=>array(34,445,286,652),709=>array(34,446,286,653),710=>array(12,591,321,728),711=>array(12,591,321,728),712=>array(66,506,126,716),713=>array(14,624,319,697),714=>array(111,591,291,728),715=>array(42,591,222,728),716=>array(66,-210,126,0),717=>array(14,-176,319,-113),718=>array(42,-210,222,-73),719=>array(111,-210,291,-73),720=>array(83,0,217,518),721=>array(83,382,217,518),722=>array(44,150,178,369),723=>array(44,150,178,369),724=>array(45,185,295,333),725=>array(45,185,295,333),726=>array(45,164,235,354),727=>array(65,254,297,300),728=>array(22,595,311,722),729=>array(121,611,211,711),730=>array(79,576,255,752),731=>array(89,-208,303,12),732=>array(3,605,330,716),733=>array(28,591,373,728),734=>array(20,195,329,389),736=>array(7,235,271,613),737=>array(50,344,103,716),738=>array(17,338,249,619),739=>array(4,344,271,613),740=>array(25,215,314,724),741=>array(22,0,280,716),742=>array(22,0,280,716),743=>array(22,0,280,716),744=>array(22,0,280,716),745=>array(22,0,280,716),768=>array(-368,591,-188,728),769=>array(-343,591,-163,728),770=>array(-432,591,-124,728),771=>array(-441,605,-114,716),772=>array(-430,624,-125,697),773=>array(-534,624,-22,674),774=>array(-422,595,-133,722),775=>array(-323,611,-233,711),776=>array(-414,611,-143,711),777=>array(-384,722,-172,895),778=>array(-366,574,-190,752),779=>array(-426,591,-81,728),780=>array(-432,591,-124,728),781=>array(-308,591,-248,801),782=>array(-383,591,-173,801),783=>array(-451,591,-105,728),784=>array(-422,595,-133,822),785=>array(-422,595,-133,722),786=>array(-333,591,-231,825),787=>array(-325,579,-223,813),788=>array(-333,579,-231,813),789=>array(7,482,109,716),790=>array(-368,-210,-188,-73),791=>array(-343,-210,-163,-73),792=>array(-337,-252,-219,-62),793=>array(-337,-252,-219,-62),794=>array(-392,591,-164,769),795=>array(-100,330,55,606),796=>array(-326,-210,-230,-40),797=>array(-403,-210,-153,-62),798=>array(-403,-210,-153,-62),799=>array(-373,-252,-183,-62),800=>array(-404,-165,-152,-119),801=>array(-397,-208,-158,20),802=>array(-272,-208,-33,20),803=>array(-323,-210,-233,-110),804=>array(-414,-210,-143,-110),805=>array(-366,-210,-190,-32),806=>array(-325,-210,-223,-46),807=>array(-381,-205,-169,11),808=>array(-326,-208,-112,12),809=>array(-308,-210,-248,-40),810=>array(-407,-190,-148,-77),811=>array(-414,-205,-142,-43),812=>array(-432,-210,-124,-73),813=>array(-432,-210,-124,-73),814=>array(-422,-200,-133,-73),815=>array(-422,-200,-133,-73),816=>array(-441,-185,-114,-72),817=>array(-430,-179,-125,-106),818=>array(-534,-125,-22,-75),819=>array(-534,-210,-22,-55),820=>array(-441,203,-114,316),821=>array(-430,223,-125,296),822=>array(-500,223,-56,296),823=>array(-458,84,-98,434),824=>array(-678,-24,-100,716),825=>array(-311,-210,-216,-40),826=>array(-407,-190,-148,-77),827=>array(-359,-210,-196,-47),828=>array(-414,-186,-142,-83),829=>array(-412,558,-144,790),830=>array(-333,595,-222,922),831=>array(-534,624,-22,779),832=>array(-368,722,-188,859),833=>array(-343,722,-163,859),834=>array(-441,604,-114,717),835=>array(-325,613,-223,847),836=>array(-456,585,-100,720),837=>array(-301,-210,-180,-60),864=>array(-1011,604,-101,716),865=>array(-1000,595,-112,722),884=>array(30,464,301,716),885=>array(30,-132,301,120),890=>array(80,-208,258,-42),894=>array(84,-141,190,518),900=>array(89,600,208,736),901=>array(-27,600,304,736),902=>array(-1,0,668,736),903=>array(89,303,189,403),904=>array(-43,0,651,736),905=>array(-43,0,679,736),906=>array(-43,0,224,736),908=>array(-6,-12,732,736),910=>array(-43,0,740,736),911=>array(-6,0,706,736),912=>array(-56,0,275,736),913=>array(-1,0,668,716),914=>array(74,0,615,716),915=>array(81,0,528,716),916=>array(6,0,675,716),917=>array(79,0,614,716),918=>array(18,0,584,716),919=>array(80,0,642,716),920=>array(47,-12,732,728),921=>array(92,0,187,716),922=>array(73,0,665,716),923=>array(5,0,659,716),924=>array(76,0,757,716),925=>array(79,0,642,716),926=>array(53,0,597,716),927=>array(47,-12,732,728),928=>array(80,0,642,716),929=>array(77,0,623,716),931=>array(47,0,554,716),932=>array(22,0,589,716),933=>array(5,0,661,716),934=>array(47,-26,761,737),935=>array(5,0,661,716),936=>array(46,0,759,716),937=>array(52,0,706,728),938=>array(3,0,274,860),939=>array(5,0,661,860),940=>array(35,-12,541,736),941=>array(29,-12,405,736),942=>array(68,-199,490,736),943=>array(67,0,188,736),944=>array(68,-12,483,736),945=>array(35,-12,541,530),946=>array(66,-199,528,728),947=>array(13,-199,488,518),948=>array(35,-12,522,716),949=>array(29,-12,405,530),950=>array(35,-210,433,716),951=>array(68,-199,490,530),952=>array(45,-12,511,728),953=>array(67,0,155,518),954=>array(65,0,499,518),955=>array(13,0,488,716),956=>array(66,-199,487,518),957=>array(13,0,488,518),958=>array(35,-210,420,728),959=>array(35,-12,521,530),960=>array(16,0,662,518),961=>array(66,-199,536,530),962=>array(35,-210,465,530),963=>array(35,-12,597,534),964=>array(16,0,366,518),965=>array(68,-12,483,518),966=>array(35,-199,614,530),967=>array(7,-199,515,518),968=>array(66,-199,662,518),969=>array(35,-12,731,518),970=>array(-25,0,246,711),971=>array(68,-12,483,711),972=>array(35,-12,521,736),973=>array(68,-12,483,736),974=>array(35,-12,731,736),976=>array(66,-12,528,728),977=>array(23,-12,595,728),978=>array(6,0,627,719),979=>array(-42,0,723,736),980=>array(6,0,627,861),981=>array(35,-199,609,716),982=>array(19,-12,746,518),986=>array(51,-210,671,728),988=>array(80,-209,529,716),990=>array(46,-209,524,728),992=>array(25,-12,645,728),994=>array(80,-209,800,716),995=>array(63,-209,767,518),996=>array(58,0,604,720),997=>array(46,-199,492,521),998=>array(80,-187,626,716),999=>array(25,-13,494,589),1000=>array(46,-12,511,728),1001=>array(48,-196,463,530),1002=>array(3,0,621,716),1003=>array(15,0,591,530),1004=>array(62,-12,596,747),1005=>array(35,-12,597,576),1006=>array(19,0,549,716),1007=>array(11,-196,423,606),1008=>array(20,-11,580,528),1009=>array(66,-209,536,530),1010=>array(39,-12,491,530),1011=>array(-45,-209,155,716),1025=>array(79,0,614,859),1026=>array(25,-11,826,716),1027=>array(80,0,543,869),1028=>array(47,-12,680,728),1029=>array(45,-12,615,728),1030=>array(92,0,187,716),1031=>array(1,0,272,859),1032=>array(27,-12,420,716),1033=>array(9,-11,1070,716),1034=>array(80,0,973,716),1035=>array(24,0,809,716),1036=>array(80,0,580,869),1038=>array(5,-9,633,881),1039=>array(80,-199,643,716),1040=>array(-1,0,668,716),1041=>array(80,0,620,716),1042=>array(74,0,615,716),1043=>array(80,0,543,716),1044=>array(1,-167,642,716),1045=>array(79,0,614,716),1046=>array(3,0,919,716),1047=>array(39,-13,562,728),1048=>array(79,0,643,716),1049=>array(79,0,643,881),1050=>array(80,0,580,717),1051=>array(9,-11,625,716),1052=>array(76,0,757,716),1053=>array(80,0,642,716),1054=>array(47,-12,732,728),1055=>array(80,0,643,716),1056=>array(77,0,623,716),1057=>array(51,-12,683,728),1058=>array(22,0,589,716),1059=>array(5,-9,633,716),1060=>array(40,0,720,716),1061=>array(5,0,661,716),1062=>array(78,-199,706,716),1063=>array(58,0,604,716),1064=>array(80,0,840,716),1065=>array(80,-199,904,716),1066=>array(0,0,757,716),1067=>array(80,0,801,716),1068=>array(80,0,620,716),1069=>array(38,-12,671,728),1070=>array(80,-12,960,728),1071=>array(11,0,642,716),1072=>array(38,-12,516,530),1073=>array(45,-12,532,732),1074=>array(66,0,492,518),1075=>array(66,0,364,518),1076=>array(0,-147,553,518),1077=>array(39,-12,517,530),1078=>array(-3,0,671,518),1079=>array(24,-12,423,530),1080=>array(66,0,493,518),1081=>array(66,0,493,716),1082=>array(66,0,446,518),1083=>array(11,-3,505,518),1084=>array(66,0,617,518),1085=>array(66,0,486,518),1086=>array(35,-12,521,530),1087=>array(67,0,476,518),1088=>array(68,-199,518,530),1089=>array(39,-12,491,530),1090=>array(18,0,439,518),1091=>array(16,-210,492,518),1092=>array(37,-199,788,716),1093=>array(7,0,493,518),1094=>array(66,-199,532,518),1095=>array(46,0,467,518),1096=>array(69,0,734,518),1097=>array(69,-199,792,518),1098=>array(0,0,589,518),1099=>array(66,0,646,518),1100=>array(66,0,492,518),1101=>array(24,-11,474,530),1102=>array(66,-11,709,530),1103=>array(16,0,475,518),1105=>array(39,-12,517,720),1106=>array(2,-209,490,716),1107=>array(66,0,364,720),1108=>array(37,-11,487,530),1109=>array(31,-12,461,530),1110=>array(67,0,155,716),1111=>array(4,0,275,720),1112=>array(-45,-209,155,716),1113=>array(11,-3,842,518),1114=>array(66,0,780,518),1115=>array(2,0,490,716),1116=>array(66,0,446,720),1118=>array(16,-210,492,716),1119=>array(67,-199,476,518),1120=>array(47,-12,929,730),1121=>array(35,-12,731,518),1122=>array(0,0,622,716),1123=>array(-2,0,491,716),1124=>array(92,-12,912,728),1125=>array(68,-11,671,530),1126=>array(-2,0,668,716),1127=>array(0,0,595,518),1128=>array(92,0,952,716),1129=>array(68,0,817,518),1130=>array(0,0,654,716),1131=>array(1,0,599,518),1132=>array(92,0,932,716),1133=>array(68,0,820,518),1134=>array(37,-209,562,898),1135=>array(28,-209,423,728),1136=>array(46,0,759,716),1137=>array(66,-199,662,518),1138=>array(47,-12,732,728),1139=>array(35,-11,521,530),1140=>array(6,0,674,716),1141=>array(13,0,497,518),1142=>array(6,0,674,898),1143=>array(13,0,497,728),1144=>array(47,-210,1268,728),1145=>array(35,-210,1049,530),1146=>array(47,-36,732,750),1147=>array(35,-24,521,542),1148=>array(47,-12,929,926),1149=>array(35,-12,731,758),1150=>array(47,-12,929,880),1151=>array(35,-12,731,711),1152=>array(51,-97,672,728),1153=>array(39,-143,482,530),1154=>array(55,0,631,716),1155=>array(2,621,332,758),1156=>array(4,613,380,774),1157=>array(2,621,332,758),1158=>array(2,621,332,758),1168=>array(80,0,412,883),1169=>array(66,0,321,666),1170=>array(0,0,543,716),1171=>array(-2,0,364,518),1172=>array(80,-185,622,716),1173=>array(67,-209,490,716),1174=>array(3,-199,919,716),1175=>array(-3,-199,671,518),1176=>array(39,-205,562,728),1177=>array(24,-205,423,530),1178=>array(80,-199,580,717),1179=>array(66,-199,446,518),1180=>array(80,0,580,717),1181=>array(66,0,446,518),1182=>array(0,0,580,717),1183=>array(-2,0,446,518),1184=>array(24,0,762,717),1185=>array(0,0,544,518),1186=>array(80,-199,707,716),1187=>array(66,-199,543,518),1188=>array(80,0,880,716),1189=>array(66,0,653,518),1190=>array(80,-174,704,716),1191=>array(67,-174,537,518),1192=>array(47,-154,732,728),1193=>array(35,-141,550,530),1194=>array(51,-208,684,728),1195=>array(39,-208,491,530),1196=>array(21,-199,589,716),1197=>array(18,-199,439,518),1198=>array(5,0,661,716),1199=>array(13,-199,488,518),1200=>array(5,0,661,716),1201=>array(13,-199,488,518),1202=>array(4,-199,660,716),1203=>array(7,-199,493,518),1204=>array(16,-199,882,716),1205=>array(18,-199,631,518),1206=>array(58,-199,670,716),1207=>array(46,-199,524,518),1208=>array(58,0,604,716),1209=>array(46,0,467,518),1210=>array(81,0,627,716),1211=>array(67,0,490,716),1212=>array(7,-12,784,728),1213=>array(7,-11,624,530),1214=>array(7,-208,784,728),1215=>array(7,-208,624,530),1216=>array(92,0,187,716),1217=>array(3,0,919,881),1218=>array(-3,0,671,716),1219=>array(80,-174,580,717),1220=>array(66,-174,445,519),1223=>array(80,-174,703,716),1224=>array(66,-174,547,518),1227=>array(58,-199,604,716),1228=>array(46,-199,467,518),1232=>array(-2,0,668,881),1233=>array(38,-12,516,716),1234=>array(-1,0,668,861),1235=>array(38,-12,516,721),1236=>array(0,0,945,716),1237=>array(34,-12,849,530),1238=>array(79,0,613,881),1239=>array(39,-12,517,716),1240=>array(45,-12,676,728),1241=>array(39,-11,517,530),1242=>array(45,-12,676,859),1243=>array(39,-11,517,719),1244=>array(3,0,919,859),1245=>array(-3,0,671,721),1246=>array(39,-13,562,861),1247=>array(24,-12,423,721),1248=>array(39,-13,562,716),1249=>array(24,-206,457,518),1250=>array(79,0,643,833),1251=>array(66,0,493,697),1252=>array(79,0,643,861),1253=>array(66,0,493,721),1254=>array(47,-12,732,861),1255=>array(35,-12,521,721),1256=>array(47,-12,732,728),1257=>array(35,-11,521,530),1258=>array(47,-12,732,861),1259=>array(35,-11,521,721),1262=>array(5,-9,633,833),1263=>array(16,-210,492,697),1264=>array(5,-9,633,861),1265=>array(16,-210,492,721),1266=>array(5,-9,633,898),1267=>array(16,-210,492,728),1268=>array(58,0,604,861),1269=>array(46,0,467,721),1272=>array(80,0,801,861),1273=>array(66,0,646,721),1329=>array(25,-9,618,678),1330=>array(90,-1,481,685),1331=>array(31,-1,563,684),1332=>array(34,-1,564,684),1333=>array(30,-11,468,677),1334=>array(56,-22,510,692),1335=>array(27,-185,407,671),1336=>array(89,-96,476,684),1337=>array(98,0,722,683),1338=>array(46,-11,613,678),1339=>array(24,-2,503,676),1340=>array(28,-185,357,672),1341=>array(24,-12,539,676),1342=>array(38,-11,675,676),1343=>array(32,-2,462,676),1344=>array(28,-61,410,690),1345=>array(31,-11,515,689),1346=>array(27,-96,559,683),1347=>array(63,0,487,708),1348=>array(26,-11,620,677),1349=>array(101,-10,631,684),1350=>array(36,-11,594,685),1351=>array(32,-11,602,684),1352=>array(90,-1,460,684),1353=>array(69,-19,489,689),1354=>array(78,-1,614,683),1355=>array(55,-23,508,690),1356=>array(86,-2,619,683),1357=>array(30,-12,462,675),1358=>array(37,-96,665,676),1359=>array(101,-11,501,683),1360=>array(87,-7,452,677),1361=>array(104,-15,498,680),1362=>array(23,-7,511,671),1363=>array(106,-6,608,672),1364=>array(35,-8,675,678),1365=>array(100,-16,547,679),1366=>array(76,-15,713,680),1369=>array(87,485,211,705),1370=>array(83,485,207,705),1371=>array(34,485,114,702),1372=>array(20,425,282,702),1373=>array(87,518,210,699),1374=>array(14,476,257,702),1375=>array(38,484,397,702),1377=>array(39,-8,552,315),1378=>array(52,-210,400,319),1379=>array(52,-210,402,319),1380=>array(49,-210,433,319),1381=>array(49,-8,391,613),1382=>array(48,-210,409,319),1383=>array(50,-122,393,613),1384=>array(52,-210,395,319),1385=>array(49,-210,437,319),1386=>array(40,-8,430,613),1387=>array(44,-210,394,613),1388=>array(37,-210,309,315),1389=>array(38,-210,482,613),1390=>array(45,-8,413,580),1391=>array(53,-210,391,613),1392=>array(45,0,398,613),1393=>array(51,-8,397,561),1394=>array(50,-210,401,319),1395=>array(8,-8,386,618),1396=>array(44,-8,404,618),1397=>array(6,-210,197,315),1398=>array(90,-9,394,618),1399=>array(37,-8,359,319),1400=>array(50,0,397,319),1401=>array(79,-210,318,376),1402=>array(39,-210,551,315),1403=>array(55,-210,411,319),1404=>array(29,0,420,319),1405=>array(49,-9,393,315),1406=>array(43,-210,393,613),1407=>array(42,-8,550,319),1408=>array(52,-210,399,319),1409=>array(49,-210,393,319),1410=>array(32,0,308,315),1411=>array(39,-210,550,613),1412=>array(47,0,337,618),1413=>array(52,-8,336,319),1414=>array(78,-210,541,610),1415=>array(49,-8,502,613),1417=>array(80,-21,197,335),1425=>array(97,-194,263,-63),1426=>array(37,568,323,664),1427=>array(112,569,249,789),1428=>array(147,568,213,728),1429=>array(106,568,262,728),1430=>array(104,-195,256,-43),1431=>array(133,568,227,662),1432=>array(82,568,278,684),1433=>array(0,568,152,720),1434=>array(229,-205,340,-43),1435=>array(104,-195,256,-43),1436=>array(104,568,256,720),1437=>array(208,568,360,720),1438=>array(108,568,360,750),1439=>array(12,568,348,716),1440=>array(200,568,348,716),1441=>array(58,568,303,716),1443=>array(92,-191,221,-62),1444=>array(117,-205,228,-43),1445=>array(104,-195,256,-43),1446=>array(54,-215,306,-33),1447=>array(117,-209,242,-35),1448=>array(104,568,256,720),1449=>array(12,568,160,716),1450=>array(97,-194,263,-63),1451=>array(117,568,228,730),1452=>array(92,580,221,709),1453=>array(208,-195,360,-43),1454=>array(0,568,196,684),1455=>array(125,568,235,678),1456=>array(147,-210,213,-50),1457=>array(53,-210,307,-50),1458=>array(69,-210,285,-50),1459=>array(69,-210,285,-50),1460=>array(147,-116,213,-50),1461=>array(100,-116,260,-50),1462=>array(100,-210,260,-50),1463=>array(119,-104,241,-62),1464=>array(119,-144,241,-62),1465=>array(147,568,213,634),1467=>array(53,-210,307,-50),1468=>array(147,231,213,297),1469=>array(159,-184,201,-62),1470=>array(24,430,342,518),1471=>array(119,580,241,622),1472=>array(72,-80,154,598),1473=>array(147,568,213,634),1474=>array(147,568,213,634),1475=>array(69,0,169,518),1476=>array(147,568,213,634),1488=>array(60,0,517,518),1489=>array(38,0,533,530),1490=>array(20,0,386,530),1491=>array(24,0,482,518),1492=>array(72,0,526,530),1493=>array(16,0,248,530),1494=>array(28,0,306,543),1495=>array(72,0,526,530),1496=>array(68,-12,532,530),1497=>array(16,258,248,530),1498=>array(20,-199,439,530),1499=>array(38,-12,469,530),1500=>array(33,-12,436,716),1501=>array(72,0,526,518),1502=>array(30,0,526,530),1503=>array(16,-199,248,530),1504=>array(38,0,270,530),1505=>array(25,-12,546,530),1506=>array(32,-82,503,518),1507=>array(45,-199,499,530),1508=>array(37,-12,511,530),1509=>array(37,-199,468,518),1510=>array(45,0,477,518),1511=>array(72,-199,535,518),1512=>array(20,0,439,530),1513=>array(72,-12,674,518),1514=>array(21,-13,565,530),1520=>array(16,0,522,530),1521=>array(16,0,522,530),1522=>array(16,258,522,530),1523=>array(45,398,221,641),1524=>array(45,398,417,641),1548=>array(90,-3,196,238),1563=>array(90,0,196,479),1567=>array(47,0,509,728),1569=>array(54,0,469,422),1570=>array(-23,0,270,862),1571=>array(46,0,188,933),1572=>array(-108,-210,408,761),1573=>array(46,-174,188,716),1574=>array(32,-121,679,453),1575=>array(79,0,164,716),1576=>array(62,-190,709,265),1577=>array(62,-6,452,633),1578=>array(62,-50,709,437),1579=>array(62,-50,709,539),1580=>array(52,-271,564,453),1581=>array(52,-271,564,453),1582=>array(52,-271,564,621),1583=>array(38,0,368,437),1584=>array(38,0,368,629),1585=>array(-74,-210,357,290),1586=>array(-74,-210,357,470),1587=>array(39,-228,1115,346),1588=>array(39,-228,1115,604),1589=>array(39,-228,1230,436),1590=>array(39,-228,1230,532),1591=>array(59,0,782,686),1592=>array(59,0,782,686),1593=>array(53,-271,565,492),1594=>array(53,-271,565,725),1600=>array(-1,0,280,95),1601=>array(62,0,895,773),1602=>array(34,-214,738,678),1603=>array(62,0,689,716),1604=>array(34,-121,594,716),1605=>array(58,-265,527,359),1606=>array(62,-121,630,456),1607=>array(62,-6,452,431),1608=>array(-108,-210,408,476),1609=>array(32,-121,679,453),1610=>array(32,-238,679,453),1611=>array(10,716,290,944),1612=>array(4,716,292,990),1613=>array(8,-255,288,-78),1614=>array(10,716,290,859),1615=>array(4,716,292,990),1616=>array(8,-170,288,-78),1617=>array(7,716,299,936),1618=>array(3,716,201,965),1632=>array(130,59,348,260),1633=>array(99,0,282,576),1634=>array(35,0,451,576),1635=>array(39,0,473,576),1636=>array(63,-6,443,586),1637=>array(45,-6,435,576),1638=>array(29,0,450,576),1639=>array(21,-6,459,576),1640=>array(21,0,459,582),1641=>array(42,0,466,582),1642=>array(37,-3,516,579),1643=>array(-19,-151,205,100),1644=>array(90,-3,196,238),1645=>array(20,163,418,576),1648=>array(127,716,173,984),1649=>array(-15,0,256,927),1650=>array(-47,0,196,936),1651=>array(-55,-257,188,716),1652=>array(46,716,188,933),1653=>array(79,0,384,777),1654=>array(-108,-210,551,641),1655=>array(-108,-210,551,754),1656=>array(32,-121,775,621),1657=>array(62,-50,709,569),1658=>array(62,-50,709,568),1659=>array(62,-271,709,265),1660=>array(62,-161,709,437),1661=>array(62,-50,709,539),1662=>array(62,-271,709,265),1663=>array(62,-50,709,569),1664=>array(62,-271,709,265),1665=>array(52,-271,564,621),1666=>array(52,-271,564,724),1667=>array(52,-271,564,453),1668=>array(52,-271,564,453),1669=>array(52,-271,564,695),1670=>array(52,-271,564,453),1671=>array(52,-271,564,453),1672=>array(38,0,368,746),1673=>array(38,-95,368,437),1674=>array(38,-155,368,437),1675=>array(38,-155,368,746),1676=>array(38,0,368,614),1677=>array(38,-140,368,437),1678=>array(38,0,368,716),1679=>array(38,0,368,716),1680=>array(38,0,368,746),1681=>array(-74,-210,360,587),1682=>array(-74,-210,357,526),1683=>array(-74,-258,357,290),1684=>array(-74,-267,378,290),1685=>array(-74,-269,442,290),1686=>array(-74,-267,378,290),1687=>array(-74,-210,360,455),1688=>array(-74,-210,360,557),1689=>array(-74,-210,357,587),1690=>array(39,-228,1115,517),1691=>array(39,-254,1115,346),1692=>array(39,-254,1115,603),1693=>array(39,-228,1230,436),1694=>array(39,-228,1230,619),1695=>array(59,0,782,686),1696=>array(53,-271,565,749),1697=>array(62,0,895,556),1698=>array(62,-134,895,556),1699=>array(62,-134,895,773),1700=>array(62,0,895,860),1701=>array(62,-221,895,556),1702=>array(62,0,895,891),1703=>array(34,-214,738,693),1704=>array(34,-214,738,780),1705=>array(62,0,827,717),1706=>array(62,0,997,717),1707=>array(62,0,827,717),1708=>array(62,0,689,759),1709=>array(62,0,689,846),1710=>array(62,-223,689,716),1711=>array(62,0,827,793),1712=>array(62,0,827,793),1713=>array(62,0,827,863),1714=>array(62,-169,827,793),1715=>array(62,-271,827,793),1716=>array(62,0,827,942),1717=>array(34,-121,618,952),1718=>array(34,-121,594,914),1719=>array(34,-121,647,1001),1722=>array(62,-121,630,272),1723=>array(62,-121,630,570),1724=>array(62,-232,630,455),1725=>array(62,-121,630,540),1726=>array(29,-15,644,593),1728=>array(62,-6,452,705),1729=>array(2,-85,510,159),1730=>array(2,-85,510,431),1731=>array(2,-85,510,347),1732=>array(-108,-210,408,476),1733=>array(-108,-210,408,476),1734=>array(-108,-210,408,712),1735=>array(-108,-210,408,758),1736=>array(-108,-210,408,789),1737=>array(-108,-210,408,713),1738=>array(-108,-210,408,655),1739=>array(-108,-210,408,757),1740=>array(32,-121,679,453),1741=>array(-4,-121,789,453),1742=>array(32,-121,679,576),1744=>array(32,-271,679,493),1745=>array(32,-263,679,493),1746=>array(71,-221,684,297),1747=>array(71,-221,684,349),1748=>array(-1,190,280,285),1749=>array(62,-6,452,431),1750=>array(27,352,699,802),1751=>array(27,352,531,802),1752=>array(35,573,287,788),1753=>array(5,573,284,1002),1754=>array(34,354,341,789),1755=>array(25,635,347,869),1756=>array(23,436,669,781),1757=>array(34,27,654,647),1758=>array(2,-87,850,761),1759=>array(78,687,209,808),1760=>array(78,687,209,808),1761=>array(-1,576,340,848),1762=>array(34,414,316,789),1763=>array(23,-267,669,78),1764=>array(-14,714,162,756),1765=>array(-42,395,268,807),1766=>array(36,443,404,754),1767=>array(36,443,404,754),1768=>array(37,573,378,919),1769=>array(34,0,480,736),1770=>array(35,-161,183,-13),1771=>array(35,641,183,789),1772=>array(35,641,183,789),1773=>array(34,-270,316,105),1776=>array(130,59,348,260),1777=>array(99,0,282,576),1778=>array(35,0,451,576),1779=>array(39,0,473,576),1780=>array(35,0,471,661),1781=>array(30,-6,450,576),1782=>array(94,0,403,576),1783=>array(21,-6,459,576),1784=>array(21,0,459,582),1785=>array(42,0,466,582),2305=>array(-375,608,-50,889),2306=>array(-239,608,-109,843),2307=>array(78,69,216,513),2309=>array(42,-17,706,608),2310=>array(42,-18,923,608),2311=>array(-1,-114,545,608),2312=>array(-1,-114,545,891),2313=>array(-1,11,603,608),2314=>array(-1,11,726,608),2315=>array(-1,-44,933,608),2316=>array(-1,-44,690,608),2317=>array(-1,-187,624,864),2318=>array(-1,-187,624,886),2319=>array(-1,-187,624,608),2320=>array(-1,-187,624,889),2321=>array(42,-18,923,864),2322=>array(42,-18,923,886),2323=>array(42,-14,922,889),2324=>array(42,-17,922,892),2325=>array(-1,-17,680,608),2326=>array(-1,-15,745,608),2327=>array(-1,-15,605,608),2328=>array(-1,-17,652,608),2329=>array(-1,0,636,608),2330=>array(-1,-15,700,608),2331=>array(-1,-80,726,608),2332=>array(-1,-17,700,608),2333=>array(-1,-17,725,608),2334=>array(-1,-15,710,608),2335=>array(-1,0,515,608),2336=>array(-1,0,545,608),2337=>array(-1,0,595,608),2338=>array(-1,0,535,608),2339=>array(-1,-17,706,608),2340=>array(-1,-17,598,608),2341=>array(42,-14,650,608),2342=>array(-1,-14,545,608),2343=>array(42,-18,653,616),2344=>array(-1,-15,598,608),2345=>array(-1,-33,598,608),2346=>array(-1,-17,578,608),2347=>array(-2,-15,712,608),2348=>array(-1,-17,604,608),2349=>array(39,-17,702,608),2350=>array(-1,-17,646,608),2351=>array(-1,-17,613,608),2352=>array(-1,-14,499,608),2353=>array(-1,-19,499,608),2354=>array(-1,-14,692,608),2355=>array(-1,0,742,608),2356=>array(-1,-122,742,608),2357=>array(-1,-15,604,608),2358=>array(38,-18,696,616),2359=>array(-1,-15,621,608),2360=>array(-1,-17,659,608),2361=>array(-1,-238,559,608),2364=>array(-404,-197,-274,-67),2365=>array(28,50,386,608),2366=>array(-1,-17,332,608),2367=>array(-1,-15,776,895),2368=>array(-254,-15,332,895),2369=>array(-463,-256,-31,7),2370=>array(-345,-262,84,7),2371=>array(-330,-249,-50,13),2372=>array(-321,-271,-24,46),2373=>array(-338,608,-49,864),2374=>array(-546,598,-135,886),2375=>array(-534,598,-135,889),2376=>array(-475,599,-135,892),2377=>array(-19,-17,332,864),2378=>array(-228,-17,332,886),2379=>array(-260,-17,332,889),2380=>array(-152,-17,332,892),2381=>array(-251,-271,32,0),2384=>array(47,97,830,792),2385=>array(-212,608,-135,788),2386=>array(-612,-99,0,-29),2387=>array(-349,645,-184,832),2388=>array(-261,645,-96,832),2392=>array(-1,-17,680,608),2393=>array(-1,-104,745,608),2394=>array(-1,-54,605,608),2395=>array(-1,-66,700,608),2396=>array(-1,-67,595,608),2397=>array(-1,-77,535,608),2398=>array(-2,-15,712,608),2399=>array(-1,-38,613,608),2400=>array(-1,-71,933,608),2401=>array(-1,-71,690,608),2402=>array(-418,-271,26,13),2403=>array(-418,-271,60,13),2404=>array(128,-17,203,617),2405=>array(128,-17,385,616),2406=>array(147,115,491,468),2407=>array(179,-134,455,689),2408=>array(99,-123,542,644),2409=>array(125,-106,492,677),2410=>array(12,112,617,685),2411=>array(82,-149,576,658),2412=>array(118,-130,545,653),2413=>array(73,23,570,569),2414=>array(84,29,570,667),2415=>array(119,-92,575,648),2416=>array(64,292,298,525),2433=>array(-296,703,10,875),2434=>array(66,-56,396,605),2435=>array(92,0,338,606),2437=>array(0,0,794,607),2438=>array(0,0,1039,690),2439=>array(0,-94,590,875),2440=>array(0,-22,611,875),2441=>array(0,1,656,875),2442=>array(0,0,765,875),2443=>array(54,0,766,688),2444=>array(33,1,596,651),2447=>array(38,0,593,605),2448=>array(38,0,701,876),2451=>array(57,1,629,609),2452=>array(57,1,728,876),2453=>array(0,0,787,607),2454=>array(54,0,663,625),2455=>array(44,0,614,607),2456=>array(0,0,658,607),2457=>array(51,0,621,607),2458=>array(0,0,563,607),2459=>array(0,-93,593,607),2460=>array(0,-42,737,607),2461=>array(0,0,761,607),2462=>array(38,0,829,606),2463=>array(0,0,575,875),2464=>array(0,0,634,876),2465=>array(0,1,656,607),2466=>array(0,0,575,607),2467=>array(55,0,606,607),2468=>array(0,1,688,607),2469=>array(50,0,653,607),2470=>array(0,-24,617,607),2471=>array(45,0,604,624),2472=>array(0,0,603,607),2474=>array(44,0,643,607),2475=>array(0,0,789,607),2476=>array(0,0,601,607),2477=>array(0,2,685,607),2478=>array(0,0,629,607),2479=>array(0,0,609,607),2480=>array(0,-18,601,607),2482=>array(0,-0,648,607),2486=>array(0,0,606,626),2487=>array(0,0,604,607),2488=>array(0,0,645,607),2489=>array(0,-94,590,607),2492=>array(-366,-164,-233,-32),2494=>array(0,0,253,690),2495=>array(0,0,531,850),2496=>array(-334,0,253,875),2497=>array(-357,-269,39,5),2498=>array(-359,-269,21,-73),2499=>array(-314,-270,-60,-77),2500=>array(-380,-271,98,24),2503=>array(0,1,317,607),2504=>array(0,1,317,875),2507=>array(0,0,940,690),2508=>array(0,0,940,875),2509=>array(-187,-267,26,-73),2519=>array(-250,0,253,875),2524=>array(0,-164,656,607),2525=>array(0,-164,561,607),2527=>array(0,-42,604,607),2528=>array(54,-93,766,688),2529=>array(33,-271,596,651),2530=>array(-381,-271,-4,23),2531=>array(-401,-271,333,151),2534=>array(62,55,548,550),2535=>array(46,0,513,624),2536=>array(58,-51,583,636),2537=>array(53,2,671,606),2538=>array(67,0,547,653),2539=>array(62,1,632,638),2540=>array(52,1,616,622),2541=>array(69,0,498,624),2542=>array(55,0,641,622),2543=>array(53,1,559,622),2544=>array(0,0,601,607),2545=>array(0,-51,601,607),2546=>array(36,0,581,606),2547=>array(-87,0,575,875),2548=>array(26,0,571,606),2549=>array(44,1,669,606),2550=>array(54,0,624,606),2551=>array(103,0,165,607),2552=>array(52,0,564,605),2553=>array(48,154,376,451),2554=>array(74,349,492,788),2562=>array(-156,578,-79,731),2565=>array(0,0,696,578),2566=>array(0,0,940,578),2567=>array(0,0,808,822),2568=>array(0,0,808,822),2569=>array(0,-267,683,839),2570=>array(0,-267,683,839),2575=>array(0,2,562,793),2576=>array(0,0,696,839),2579=>array(0,-2,683,836),2580=>array(0,0,696,839),2581=>array(0,0,607,578),2582=>array(0,0,572,578),2583=>array(0,0,646,578),2584=>array(0,0,692,578),2585=>array(0,0,570,578),2586=>array(0,1,597,578),2587=>array(0,0,607,578),2588=>array(0,0,596,578),2589=>array(0,0,546,578),2590=>array(0,0,563,578),2591=>array(0,0,548,578),2592=>array(0,0,586,578),2593=>array(0,0,601,578),2594=>array(0,0,645,578),2595=>array(0,0,645,578),2596=>array(0,0,596,578),2597=>array(0,0,569,578),2598=>array(0,0,645,578),2599=>array(0,0,569,578),2600=>array(0,0,587,578),2602=>array(0,0,569,578),2603=>array(0,0,556,578),2604=>array(0,0,564,578),2605=>array(0,0,554,578),2606=>array(0,0,563,578),2607=>array(0,0,657,578),2608=>array(0,4,545,578),2610=>array(0,-0,682,578),2611=>array(0,-96,682,578),2613=>array(0,0,606,578),2614=>array(0,0,563,578),2616=>array(0,0,563,578),2617=>array(0,0,554,578),2620=>array(-208,-154,-131,-77),2622=>array(0,216,251,578),2623=>array(0,0,397,822),2624=>array(-151,0,251,822),2625=>array(-388,-267,-50,0),2626=>array(-388,-267,-50,0),2631=>array(-473,578,-90,793),2632=>array(-471,578,-90,839),2635=>array(-411,572,-90,803),2636=>array(-379,578,-27,839),2637=>array(-235,-238,51,0),2649=>array(0,0,572,578),2650=>array(0,0,695,578),2651=>array(0,0,596,578),2652=>array(0,0,596,578),2654=>array(0,0,585,578),2662=>array(54,42,537,524),2663=>array(86,0,514,575),2664=>array(53,0,528,577),2665=>array(52,1,527,577),2666=>array(69,0,522,577),2667=>array(57,0,501,579),2668=>array(74,0,530,758),2669=>array(36,0,519,578),2670=>array(64,0,526,578),2671=>array(65,0,525,769),2672=>array(-103,664,103,841),2673=>array(-193,660,111,839),2674=>array(0,2,562,578),2675=>array(0,-2,683,839),2676=>array(28,-110,857,648),2689=>array(-429,608,-23,885),2690=>array(-179,608,-67,822),2691=>array(88,98,212,510),2693=>array(36,0,803,608),2694=>array(36,0,1062,610),2695=>array(42,-1,553,882),2696=>array(42,-1,606,882),2697=>array(60,0,545,742),2698=>array(60,-4,776,882),2699=>array(20,0,780,608),2701=>array(36,0,803,881),2703=>array(36,0,803,881),2704=>array(36,0,803,882),2705=>array(36,0,1062,881),2707=>array(36,0,1062,881),2708=>array(36,0,1062,882),2709=>array(35,0,411,610),2710=>array(5,0,792,608),2711=>array(25,0,625,608),2712=>array(52,-1,579,608),2713=>array(25,0,462,610),2714=>array(36,0,620,608),2715=>array(55,0,643,608),2716=>array(50,0,791,608),2717=>array(34,0,601,608),2718=>array(25,0,669,608),2719=>array(55,0,460,610),2720=>array(59,0,409,610),2721=>array(25,0,404,610),2722=>array(55,-1,447,608),2723=>array(98,-271,714,608),2724=>array(60,0,554,608),2725=>array(45,0,572,608),2726=>array(44,-1,480,608),2727=>array(27,0,561,727),2728=>array(43,0,602,608),2730=>array(5,0,592,608),2731=>array(50,-270,442,608),2732=>array(50,0,684,608),2733=>array(50,0,776,608),2734=>array(27,0,614,608),2735=>array(40,0,514,608),2736=>array(45,-2,411,609),2738=>array(55,0,633,608),2739=>array(52,0,676,609),2741=>array(50,0,558,608),2742=>array(52,0,633,610),2743=>array(75,0,528,608),2744=>array(43,0,684,608),2745=>array(69,0,573,610),2748=>array(-323,-182,-211,-70),2749=>array(52,0,436,608),2750=>array(98,0,291,610),2751=>array(98,0,660,883),2752=>array(-180,0,291,884),2753=>array(-412,-271,28,5),2754=>array(-323,-271,151,5),2755=>array(-271,-271,41,5),2756=>array(-275,-271,65,20),2757=>array(-452,608,-25,881),2759=>array(-509,608,-80,881),2760=>array(-544,608,-96,882),2761=>array(-179,0,291,881),2763=>array(-236,0,291,881),2764=>array(-271,0,291,882),2765=>array(-244,-249,186,5),2768=>array(46,0,815,881),2784=>array(20,-1,875,608),2790=>array(91,61,532,545),2791=>array(110,0,534,608),2792=>array(97,0,524,608),2793=>array(29,0,527,608),2794=>array(18,0,595,609),2795=>array(18,0,598,608),2796=>array(104,0,541,610),2797=>array(25,0,571,608),2798=>array(118,0,532,607),2799=>array(35,1,608,605),2817=>array(-374,776,37,979),2818=>array(34,379,271,717),2819=>array(59,0,332,717),2821=>array(42,0,508,717),2822=>array(42,0,726,717),2823=>array(39,-16,643,717),2824=>array(39,-16,643,717),2825=>array(39,-16,618,717),2826=>array(39,-16,625,717),2827=>array(39,-16,607,717),2828=>array(39,0,516,717),2831=>array(49,0,479,717),2832=>array(49,0,918,913),2835=>array(59,0,561,732),2836=>array(59,0,953,913),2837=>array(39,0,564,717),2838=>array(39,0,539,717),2839=>array(39,0,539,717),2840=>array(39,0,524,717),2841=>array(39,0,688,717),2842=>array(39,0,540,717),2843=>array(39,0,540,717),2844=>array(39,0,554,717),2845=>array(39,-15,540,732),2846=>array(54,0,532,717),2847=>array(39,0,539,717),2848=>array(44,0,534,717),2849=>array(39,0,540,717),2850=>array(39,-12,540,717),2851=>array(44,0,526,717),2852=>array(39,0,540,717),2853=>array(39,0,505,717),2854=>array(39,0,540,717),2855=>array(44,0,521,732),2856=>array(39,0,540,717),2858=>array(39,0,524,717),2859=>array(39,0,703,717),2860=>array(39,0,540,717),2861=>array(39,-16,628,717),2862=>array(39,-0,524,717),2863=>array(56,0,547,717),2864=>array(39,-16,604,717),2866=>array(39,-16,638,717),2867=>array(39,0,554,717),2870=>array(39,0,539,717),2871=>array(39,0,524,717),2872=>array(39,0,524,717),2873=>array(39,-30,540,717),2876=>array(-301,-176,-206,-84),2877=>array(71,0,273,717),2878=>array(82,0,136,717),2879=>array(-522,762,-17,918),2880=>array(-25,1,213,920),2881=>array(-443,-264,123,-51),2882=>array(-359,-271,171,-17),2883=>array(-325,-271,102,-18),2887=>array(59,0,436,717),2888=>array(59,0,1005,913),2891=>array(59,0,945,717),2892=>array(59,0,1006,913),2893=>array(-188,-267,161,-45),2902=>array(-515,717,-20,913),2903=>array(-297,0,198,913),2908=>array(39,-176,540,717),2909=>array(39,-176,540,717),2911=>array(23,-53,623,718),2912=>array(39,-16,607,717),2913=>array(39,-30,540,717),2918=>array(44,0,534,717),2919=>array(49,-12,441,717),2920=>array(39,-12,432,717),2921=>array(34,0,541,717),2922=>array(20,0,487,732),2923=>array(0,-21,605,717),2924=>array(34,-15,476,718),2925=>array(29,-9,495,729),2926=>array(82,0,495,717),2927=>array(54,-15,456,719),2928=>array(50,209,544,557),2946=>array(-388,499,-211,675),2947=>array(37,-11,698,702),2949=>array(22,-271,932,429),2950=>array(22,-271,1071,429),2951=>array(19,-271,915,702),2952=>array(70,0,621,417),2953=>array(55,0,988,429),2954=>array(55,0,1221,429),2958=>array(52,-11,721,417),2959=>array(52,-110,726,417),2960=>array(27,-271,813,429),2962=>array(49,-271,711,429),2963=>array(49,-271,711,429),2964=>array(49,-271,1631,429),2965=>array(36,-11,610,417),2969=>array(70,0,759,417),2970=>array(36,-11,565,417),2972=>array(28,-271,815,429),2974=>array(63,-271,928,417),2975=>array(70,0,778,417),2979=>array(52,-11,1290,429),2980=>array(-4,-271,600,417),2984=>array(-0,-271,577,417),2985=>array(52,-11,1007,429),2986=>array(70,0,623,417),2990=>array(70,0,667,429),2991=>array(83,-11,719,417),2992=>array(70,-113,540,417),2993=>array(2,-271,650,429),2994=>array(52,-11,768,510),2995=>array(52,-11,866,429),2996=>array(62,-271,665,429),2997=>array(52,-11,803,429),2999=>array(52,-271,1067,429),3000=>array(52,-11,1046,510),3001=>array(0,-271,1207,429),3006=>array(70,0,542,417),3007=>array(-245,1,112,702),3008=>array(-282,417,94,702),3009=>array(-117,145,458,417),3010=>array(-117,-52,754,636),3014=>array(61,-12,685,701),3015=>array(56,-11,659,702),3016=>array(52,-11,901,429),3018=>array(61,-12,1661,701),3019=>array(56,-11,1661,702),3020=>array(61,-12,1989,701),3021=>array(-364,523,-237,650),3031=>array(52,-11,866,429),3047=>array(36,-11,610,417),3048=>array(55,0,988,429),3049=>array(70,0,727,417),3050=>array(36,-11,682,417),3051=>array(70,-208,913,645),3052=>array(36,-11,857,417),3053=>array(52,-11,721,417),3054=>array(22,-271,932,429),3055=>array(36,-11,776,417),3056=>array(83,-11,662,702),3057=>array(71,0,714,429),3058=>array(-4,-271,745,417),3073=>array(57,-6,335,481),3074=>array(57,-13,544,471),3075=>array(65,-12,280,474),3077=>array(54,-11,667,474),3078=>array(54,-11,732,473),3079=>array(36,-229,513,472),3080=>array(24,-11,1108,664),3081=>array(57,-11,634,682),3082=>array(57,-11,996,682),3083=>array(57,-11,1239,474),3084=>array(44,-11,856,586),3086=>array(44,-11,556,702),3087=>array(44,-11,556,839),3088=>array(54,-11,656,475),3090=>array(57,-11,610,471),3091=>array(57,-11,610,642),3092=>array(6,-11,856,688),3093=>array(36,-11,474,664),3094=>array(51,-137,620,476),3095=>array(39,-14,510,664),3096=>array(35,-137,874,664),3097=>array(57,-11,610,472),3098=>array(24,-11,630,664),3099=>array(24,-137,630,664),3100=>array(57,-11,610,474),3101=>array(57,-136,1146,664),3102=>array(36,-229,715,472),3103=>array(57,-11,829,550),3104=>array(57,-11,540,664),3105=>array(57,-11,659,664),3106=>array(57,-137,659,664),3107=>array(63,-11,752,474),3108=>array(57,-11,659,664),3109=>array(60,-137,643,664),3110=>array(60,-11,643,664),3111=>array(60,-137,643,664),3112=>array(44,-11,547,664),3114=>array(35,-11,563,664),3115=>array(35,-137,563,664),3116=>array(57,-11,621,473),3117=>array(57,-137,663,664),3118=>array(44,-11,873,664),3119=>array(57,-12,1144,664),3120=>array(57,-11,540,664),3121=>array(57,-12,837,476),3122=>array(57,-11,571,474),3123=>array(48,-11,561,664),3125=>array(44,-11,561,664),3126=>array(48,-11,524,664),3127=>array(35,-137,759,664),3128=>array(24,-11,581,664),3129=>array(31,-11,893,664),3134=>array(6,305,626,545),3135=>array(17,462,281,785),3136=>array(10,462,289,980),3137=>array(-48,-9,302,474),3138=>array(-48,-9,665,545),3139=>array(-203,-271,294,474),3140=>array(-216,-271,687,473),3142=>array(6,466,618,688),3143=>array(6,466,617,889),3144=>array(6,-271,894,688),3146=>array(6,470,843,715),3147=>array(6,470,843,908),3148=>array(6,449,970,688),3149=>array(39,465,655,866),3157=>array(47,767,289,980),3158=>array(-670,-271,109,-31),3168=>array(57,-11,1602,545),3169=>array(44,-11,1263,545),3174=>array(158,-14,682,510),3175=>array(88,-14,752,510),3176=>array(54,0,726,510),3177=>array(199,-13,609,512),3178=>array(136,-12,704,519),3179=>array(60,-14,781,521),3180=>array(106,0,798,510),3181=>array(201,-15,668,513),3182=>array(65,-13,815,510),3183=>array(106,0,798,510),3202=>array(46,84,394,554),3203=>array(46,84,205,553),3205=>array(47,84,608,602),3206=>array(46,84,625,602),3207=>array(37,84,595,602),3208=>array(33,84,850,752),3209=>array(46,84,911,602),3210=>array(46,84,1247,602),3211=>array(37,84,1000,752),3212=>array(37,84,695,602),3214=>array(37,84,606,602),3215=>array(37,84,606,647),3216=>array(44,84,615,602),3218=>array(37,84,630,602),3219=>array(37,84,630,775),3220=>array(38,84,631,774),3221=>array(49,84,415,752),3222=>array(17,84,700,713),3223=>array(51,84,493,752),3224=>array(44,-79,742,752),3225=>array(37,84,630,602),3226=>array(37,84,633,752),3227=>array(46,-79,614,752),3228=>array(37,84,630,602),3229=>array(54,-79,1127,752),3230=>array(37,84,889,602),3231=>array(59,84,627,651),3232=>array(54,84,508,752),3233=>array(54,84,625,752),3234=>array(54,-79,625,752),3235=>array(54,84,682,602),3236=>array(46,84,500,752),3237=>array(54,-79,626,752),3238=>array(54,84,626,752),3239=>array(54,-79,626,752),3240=>array(46,46,514,752),3242=>array(46,84,620,752),3243=>array(46,-79,619,753),3244=>array(37,84,632,602),3245=>array(37,-79,643,752),3246=>array(49,84,928,752),3247=>array(46,84,1057,752),3248=>array(54,84,508,752),3249=>array(49,84,628,602),3250=>array(46,84,615,602),3251=>array(42,84,507,752),3253=>array(49,84,620,752),3254=>array(49,84,506,752),3255=>array(49,70,620,752),3256=>array(44,84,499,752),3257=>array(49,84,675,752),3262=>array(-21,84,370,588),3263=>array(-13,339,307,702),3264=>array(-13,46,635,702),3265=>array(-5,84,312,563),3266=>array(-5,84,673,560),3267=>array(22,-173,364,236),3268=>array(24,-173,614,253),3270=>array(-79,354,258,774),3271=>array(-79,46,606,774),3272=>array(-79,-173,438,774),3274=>array(-79,84,868,774),3275=>array(-79,46,1188,774),3276=>array(-160,276,395,774),3277=>array(-22,335,329,703),3285=>array(49,46,299,560),3286=>array(25,-173,364,301),3294=>array(49,84,624,602),3296=>array(37,84,1654,752),3297=>array(37,84,943,602),3302=>array(42,84,507,686),3303=>array(34,84,515,685),3304=>array(22,98,507,688),3305=>array(52,84,527,684),3306=>array(38,84,515,684),3307=>array(33,84,516,688),3308=>array(42,98,529,687),3309=>array(47,98,525,684),3310=>array(36,84,520,687),3311=>array(46,84,521,667),3330=>array(45,-9,323,269),3331=>array(49,-9,256,464),3333=>array(49,-9,1152,464),3334=>array(49,-173,1309,464),3335=>array(49,-232,856,464),3336=>array(49,-232,1411,464),3337=>array(49,-232,586,464),3338=>array(49,-232,1149,464),3339=>array(44,-271,817,464),3340=>array(49,-9,908,465),3342=>array(44,-271,1157,464),3343=>array(44,-271,1153,464),3344=>array(49,-271,1785,465),3346=>array(49,-9,601,464),3347=>array(49,-9,1065,464),3348=>array(49,-9,1146,464),3349=>array(42,-8,819,464),3350=>array(49,-9,907,465),3351=>array(44,-10,830,464),3352=>array(39,0,1279,464),3353=>array(49,-9,916,465),3354=>array(15,0,940,464),3355=>array(15,-9,1217,464),3356=>array(44,-51,663,464),3357=>array(49,-9,1410,464),3358=>array(49,-9,1166,465),3359=>array(39,-9,524,464),3360=>array(43,-9,517,464),3361=>array(44,-9,1146,464),3362=>array(44,-9,1195,465),3363=>array(49,-12,1219,465),3364=>array(49,-9,830,464),3365=>array(76,0,893,464),3366=>array(49,-9,501,464),3367=>array(49,-9,835,467),3368=>array(44,-12,830,464),3370=>array(44,-9,956,464),3371=>array(44,-9,1104,464),3372=>array(49,-9,1258,465),3373=>array(54,0,504,464),3374=>array(71,0,572,464),3375=>array(44,-9,905,464),3376=>array(49,-9,594,464),3377=>array(44,-8,506,464),3378=>array(76,0,869,464),3379=>array(44,-232,589,464),3380=>array(44,-9,514,464),3381=>array(49,-7,884,464),3382=>array(44,-9,888,464),3383=>array(44,-9,1043,464),3384=>array(44,-9,1146,464),3385=>array(44,-9,1063,464),3390=>array(42,-6,426,464),3391=>array(0,0,330,651),3392=>array(0,0,354,651),3393=>array(39,-271,301,466),3394=>array(39,-271,301,466),3395=>array(8,-271,458,466),3398=>array(49,-9,591,465),3399=>array(49,-8,476,464),3400=>array(49,-9,1230,465),3402=>array(49,-9,1319,465),3403=>array(49,-8,1209,464),3404=>array(49,-9,1398,465),3405=>array(-300,520,-19,721),3415=>array(39,-9,504,464),3424=>array(44,-271,817,464),3425=>array(49,-173,1058,465),3430=>array(49,-9,1080,464),3431=>array(15,-143,852,464),3432=>array(44,-7,840,464),3433=>array(44,-9,1166,464),3434=>array(44,-9,643,651),3435=>array(54,-243,918,651),3436=>array(44,-271,1162,464),3437=>array(49,-271,591,464),3438=>array(49,-271,884,464),3439=>array(44,-9,848,651),3585=>array(54,0,520,558),3586=>array(30,0,573,558),3587=>array(30,0,590,559),3588=>array(52,0,530,558),3589=>array(52,0,530,560),3590=>array(30,-5,590,559),3591=>array(25,-5,396,558),3592=>array(26,-5,481,558),3593=>array(30,-5,622,558),3594=>array(30,0,634,592),3595=>array(30,0,651,592),3596=>array(54,-5,741,558),3597=>array(54,-208,783,558),3598=>array(30,-203,545,558),3599=>array(30,-203,545,558),3600=>array(54,-206,477,560),3601=>array(30,0,710,559),3602=>array(52,-5,751,560),3603=>array(54,-5,857,558),3604=>array(52,0,530,558),3605=>array(52,0,530,560),3606=>array(54,-5,520,558),3607=>array(30,0,575,558),3608=>array(54,0,477,560),3609=>array(30,-5,622,558),3610=>array(30,0,533,558),3611=>array(30,0,533,830),3612=>array(78,0,552,558),3613=>array(78,0,552,830),3614=>array(30,0,620,558),3615=>array(30,0,620,830),3616=>array(30,-5,545,558),3617=>array(30,-5,506,558),3618=>array(75,0,513,558),3619=>array(54,-5,437,560),3620=>array(54,-199,520,558),3621=>array(44,-5,499,558),3622=>array(30,-199,545,558),3623=>array(19,-5,444,558),3624=>array(52,0,562,664),3625=>array(30,0,637,558),3626=>array(44,-5,544,659),3627=>array(30,0,584,558),3628=>array(30,0,684,723),3629=>array(36,0,491,558),3630=>array(61,0,545,656),3631=>array(30,0,442,558),3632=>array(44,49,418,510),3633=>array(-364,631,10,824),3634=>array(26,0,421,558),3635=>array(-223,0,421,767),3636=>array(-493,612,-109,775),3637=>array(-493,612,-109,800),3638=>array(-493,612,-64,800),3639=>array(-493,612,-109,800),3640=>array(-201,-206,-85,-34),3641=>array(-337,-206,-89,-34),3642=>array(-157,-115,-75,-33),3647=>array(84,-103,625,782),3648=>array(75,-5,272,553),3649=>array(75,-5,541,553),3650=>array(27,-5,466,830),3651=>array(30,-5,485,828),3652=>array(10,-5,485,828),3653=>array(26,-199,421,558),3654=>array(30,-199,431,559),3655=>array(-424,603,-47,849),3656=>array(-167,858,-109,1031),3657=>array(-293,858,1,1065),3658=>array(-342,858,98,1056),3659=>array(-225,858,-52,1031),3660=>array(-330,861,-18,1078),3661=>array(-223,609,-65,767),3662=>array(-203,858,-42,1067),3663=>array(60,-5,495,430),3664=>array(60,-5,538,428),3665=>array(50,-5,590,428),3666=>array(75,0,613,611),3667=>array(75,-5,615,428),3668=>array(50,-5,637,611),3669=>array(50,-5,637,611),3670=>array(18,-5,585,611),3671=>array(75,-5,789,574),3672=>array(60,-5,659,574),3673=>array(75,-5,715,574),3674=>array(30,0,598,558),3675=>array(40,-5,964,447),3713=>array(55,-6,721,587),3714=>array(53,-15,664,587),3716=>array(54,-5,670,587),3719=>array(34,-207,470,587),3720=>array(37,-18,636,587),3722=>array(54,-210,629,587),3725=>array(54,-5,670,588),3732=>array(54,-5,665,587),3733=>array(54,-6,780,587),3734=>array(45,-257,711,587),3735=>array(55,-5,862,587),3737=>array(54,-11,690,589),3738=>array(55,-5,686,587),3739=>array(55,-5,686,707),3740=>array(54,-5,780,593),3741=>array(54,-5,780,707),3742=>array(54,-5,800,587),3743=>array(54,-5,800,707),3745=>array(55,-11,721,589),3746=>array(54,-5,670,707),3747=>array(54,-7,643,587),3749=>array(46,-7,646,587),3751=>array(46,-7,646,587),3754=>array(58,-7,673,587),3755=>array(55,-5,862,587),3757=>array(54,-7,671,587),3758=>array(53,-7,664,595),3759=>array(54,-21,604,680),3760=>array(57,113,382,578),3761=>array(57,847,482,1049),3762=>array(34,-5,422,587),3763=>array(1,-5,422,788),3764=>array(139,805,639,1059),3765=>array(139,805,713,1059),3766=>array(139,805,639,1059),3767=>array(139,805,713,1059),3768=>array(308,-269,470,-26),3769=>array(248,-263,528,-15),3771=>array(145,838,635,1060),3772=>array(147,-257,632,-72),3773=>array(55,-5,616,829),3776=>array(34,-5,386,576),3777=>array(34,-5,772,576),3778=>array(28,-5,410,1001),3779=>array(17,-5,429,1037),3780=>array(46,-5,311,1025),3782=>array(34,-267,517,579),3784=>array(349,806,429,1012),3785=>array(148,808,630,1035),3786=>array(163,805,609,1015),3787=>array(281,805,497,1019),3788=>array(212,812,560,1049),3789=>array(308,806,470,967),3792=>array(54,-7,667,578),3793=>array(54,-5,665,578),3794=>array(67,-5,557,796),3795=>array(44,-5,665,829),3796=>array(54,-5,632,776),3797=>array(54,-5,632,776),3798=>array(54,-5,780,829),3799=>array(55,-257,702,579),3800=>array(54,-171,670,579),3801=>array(54,-5,841,577),3804=>array(55,-11,1218,579),3805=>array(55,-11,1218,579),3840=>array(52,207,573,983),3841=>array(52,232,534,864),3842=>array(11,274,571,864),3843=>array(11,274,593,864),3844=>array(0,227,583,720),3845=>array(107,227,464,720),3846=>array(0,-174,583,720),3847=>array(-152,393,649,720),3848=>array(141,-174,512,809),3849=>array(80,81,520,716),3850=>array(34,-62,576,799),3851=>array(92,522,508,716),3852=>array(92,-117,508,716),3853=>array(260,-174,340,716),3854=>array(190,-174,410,716),3855=>array(250,-174,350,716),3856=>array(187,-174,413,716),3857=>array(179,-174,421,716),3858=>array(-20,-124,620,719),3859=>array(21,126,579,706),3860=>array(238,403,371,681),3861=>array(128,254,472,716),3862=>array(128,320,477,716),3863=>array(99,378,510,657),3864=>array(159,-9,537,322),3865=>array(260,-201,340,300),3866=>array(241,459,359,577),3867=>array(151,459,449,577),3868=>array(151,419,449,687),3869=>array(123,346,476,683),3870=>array(66,426,520,607),3871=>array(129,448,455,584),3872=>array(128,-13,472,374),3873=>array(126,-149,444,374),3874=>array(40,-86,530,374),3875=>array(97,-176,507,402),3876=>array(27,19,560,339),3877=>array(80,-13,541,374),3878=>array(33,-42,547,434),3879=>array(24,-13,568,390),3880=>array(57,-63,485,401),3881=>array(82,-82,534,374),3882=>array(-65,-149,653,374),3883=>array(-65,-86,653,374),3884=>array(-65,-176,653,402),3885=>array(-65,19,653,339),3886=>array(-65,-13,653,374),3887=>array(-65,-42,653,434),3888=>array(-65,-13,653,390),3889=>array(-65,-63,653,401),3890=>array(-65,-82,653,374),3891=>array(-65,-13,653,374),3892=>array(227,359,373,609),3893=>array(238,-1,371,150),3894=>array(81,159,519,619),3895=>array(251,52,349,150),3896=>array(87,431,495,735),3897=>array(355,538,551,706),3898=>array(2,419,587,687),3899=>array(13,419,598,687),3900=>array(56,-201,484,837),3901=>array(116,-201,544,837),3902=>array(238,-201,457,180),3903=>array(143,-201,362,180),3904=>array(23,27,558,716),3905=>array(42,207,558,716),3906=>array(22,27,558,716),3907=>array(22,-174,558,716),3908=>array(72,207,528,716),3909=>array(54,207,541,716),3910=>array(43,207,557,716),3911=>array(72,207,528,716),3913=>array(96,27,488,726),3914=>array(72,27,528,716),3915=>array(62,207,538,716),3916=>array(72,27,528,716),3917=>array(72,-174,528,716),3918=>array(102,27,500,716),3919=>array(72,27,528,716),3920=>array(62,207,538,716),3921=>array(72,27,528,716),3922=>array(72,-174,528,716),3923=>array(100,27,498,716),3924=>array(72,207,558,716),3925=>array(72,207,558,716),3926=>array(72,207,558,716),3927=>array(72,-174,558,716),3928=>array(30,207,558,716),3929=>array(54,207,601,864),3930=>array(43,207,601,864),3931=>array(72,207,621,864),3932=>array(72,-174,621,864),3933=>array(31,207,558,726),3934=>array(62,27,542,716),3935=>array(62,207,538,716),3936=>array(72,187,580,716),3937=>array(72,207,558,716),3938=>array(86,207,580,716),3939=>array(72,207,558,716),3940=>array(19,27,538,716),3941=>array(62,27,581,716),3942=>array(72,207,558,716),3943=>array(72,27,528,716),3944=>array(52,207,558,716),3945=>array(23,-174,558,716),3953=>array(208,-51,414,140),3954=>array(87,625,539,864),3955=>array(87,-51,539,864),3956=>array(72,-70,524,153),3957=>array(105,-201,524,180),3958=>array(61,41,513,864),3959=>array(61,-201,513,864),3960=>array(61,-11,513,864),3961=>array(61,-201,513,864),3962=>array(137,643,365,777),3963=>array(137,643,405,897),3964=>array(67,643,573,829),3965=>array(67,643,573,929),3966=>array(241,736,359,854),3967=>array(399,180,517,448),3968=>array(61,625,513,864),3969=>array(61,-51,513,864),3970=>array(193,625,391,852),3971=>array(193,625,391,819),3972=>array(307,-201,535,-67),3973=>array(96,-54,488,726),3974=>array(186,461,432,864),3975=>array(288,666,312,864),3976=>array(162,609,438,864),3977=>array(85,575,515,864),3978=>array(165,634,455,864),3979=>array(163,652,486,864),3984=>array(75,-201,510,180),3985=>array(90,-201,510,180),3986=>array(74,-200,510,180),3987=>array(179,-201,413,180),3988=>array(115,-201,485,180),3989=>array(100,-201,496,180),3991=>array(115,-201,485,180),3993=>array(134,-201,453,186),3994=>array(115,-201,485,180),3995=>array(107,-201,493,180),3996=>array(115,-201,485,180),3997=>array(201,-201,399,180),3998=>array(139,-201,463,180),3999=>array(115,-201,485,180),4000=>array(107,-201,493,180),4001=>array(115,-201,485,180),4002=>array(201,-201,399,180),4003=>array(137,-201,461,180),4004=>array(115,-201,510,180),4005=>array(115,-201,510,180),4006=>array(115,-201,510,180),4007=>array(201,-201,413,180),4008=>array(81,-201,510,180),4009=>array(100,-201,545,301),4010=>array(91,-201,545,301),4011=>array(115,-201,561,301),4012=>array(201,-201,440,245),4013=>array(81,-201,510,188),4017=>array(115,-201,510,180),4018=>array(126,-201,528,180),4019=>array(115,-201,510,180),4020=>array(72,-201,493,180),4021=>array(107,-201,528,180),4022=>array(115,-201,510,180),4023=>array(132,-201,468,180),4025=>array(179,-201,413,180),4256=>array(42,-15,633,716),4257=>array(45,-3,677,716),4258=>array(45,-142,695,716),4259=>array(42,-15,657,716),4260=>array(45,0,543,716),4261=>array(47,0,745,716),4262=>array(1,-7,630,715),4263=>array(35,0,740,716),4264=>array(24,0,494,716),4265=>array(66,0,568,716),4266=>array(45,-7,748,716),4267=>array(34,-7,677,716),4268=>array(66,0,563,716),4269=>array(35,-15,681,732),4270=>array(-1,-15,639,719),4271=>array(-1,-209,624,721),4272=>array(34,-15,689,716),4273=>array(66,-15,581,716),4274=>array(66,0,547,716),4275=>array(35,-15,681,732),4276=>array(35,-209,644,732),4277=>array(34,-209,671,716),4278=>array(66,0,577,732),4279=>array(52,0,557,716),4280=>array(50,-15,557,716),4281=>array(66,0,563,716),4282=>array(35,-163,593,732),4283=>array(34,-7,736,716),4284=>array(66,-209,547,716),4285=>array(49,-15,614,732),4286=>array(66,0,563,716),4287=>array(-66,-171,660,716),4288=>array(45,-15,701,716),4289=>array(66,0,552,716),4290=>array(23,-15,571,716),4291=>array(34,0,539,716),4292=>array(58,-209,618,716),4293=>array(34,-15,758,716),4304=>array(36,-12,398,490),4305=>array(37,-12,519,721),4306=>array(42,-256,523,455),4307=>array(36,-251,836,454),4308=>array(20,-256,472,452),4309=>array(30,-256,498,451),4310=>array(24,-12,689,734),4311=>array(34,-16,834,454),4312=>array(34,-16,495,452),4313=>array(30,-256,498,451),4314=>array(36,-251,921,449),4315=>array(34,-12,486,728),4316=>array(66,-12,518,723),4317=>array(34,-33,700,449),4318=>array(34,-12,502,727),4319=>array(40,-256,508,466),4320=>array(34,-16,651,727),4321=>array(66,-12,512,716),4322=>array(34,-256,772,623),4323=>array(22,-257,745,449),4324=>array(34,-256,743,451),4325=>array(34,-257,436,716),4326=>array(36,-251,655,449),4327=>array(44,-257,446,452),4328=>array(34,-12,486,734),4329=>array(66,0,451,733),4330=>array(45,-256,534,452),4331=>array(34,-12,486,716),4332=>array(32,-256,562,734),4333=>array(34,-257,530,732),4334=>array(66,-12,518,716),4335=>array(32,-238,771,450),4336=>array(35,-12,514,736),4337=>array(40,-12,619,716),4338=>array(10,-12,549,453),4339=>array(23,-256,478,450),4340=>array(34,-257,448,495),4341=>array(43,-250,549,583),4342=>array(35,-256,788,715),4347=>array(87,-12,449,464),4352=>array(129,91,796,665),4353=>array(114,91,844,665),4354=>array(204,90,873,665),4355=>array(184,90,838,664),4356=>array(149,90,888,665),4357=>array(173,90,827,665),4358=>array(215,90,785,665),4359=>array(215,90,785,665),4360=>array(145,88,855,665),4361=>array(107,76,882,663),4362=>array(110,78,890,663),4363=>array(187,92,813,666),4364=>array(109,76,880,665),4365=>array(105,80,895,666),4366=>array(109,76,880,665),4367=>array(206,90,790,663),4368=>array(189,91,837,664),4369=>array(187,90,813,665),4370=>array(156,88,844,665),4371=>array(144,91,844,665),4372=>array(144,93,881,665),4373=>array(144,90,888,665),4374=>array(144,89,853,665),4375=>array(149,89,842,665),4376=>array(149,85,881,665),4377=>array(149,85,887,665),4378=>array(149,85,876,666),4379=>array(232,78,789,722),4380=>array(142,89,853,665),4381=>array(232,78,768,711),4382=>array(145,88,844,665),4383=>array(145,88,881,665),4384=>array(145,88,888,665),4385=>array(145,78,884,664),4386=>array(111,78,889,665),4387=>array(101,78,933,665),4388=>array(93,78,907,665),4389=>array(101,78,962,665),4390=>array(101,78,962,666),4391=>array(140,78,885,666),4392=>array(140,78,885,665),4393=>array(145,88,855,665),4394=>array(145,88,868,665),4395=>array(232,78,768,725),4396=>array(197,78,803,728),4397=>array(130,78,844,665),4398=>array(130,78,858,665),4399=>array(130,78,888,665),4400=>array(125,78,887,665),4401=>array(125,78,860,665),4402=>array(125,78,868,665),4403=>array(57,78,889,665),4404=>array(57,78,949,663),4405=>array(125,78,876,663),4406=>array(117,78,883,666),4407=>array(119,78,885,665),4408=>array(125,78,873,663),4409=>array(125,78,855,665),4410=>array(125,78,868,665),4411=>array(125,78,876,666),4412=>array(216,-1,702,716),4413=>array(92,-1,860,716),4414=>array(298,-1,784,716),4415=>array(140,-1,908,716),4416=>array(258,93,742,659),4417=>array(125,91,844,665),4418=>array(125,90,888,665),4419=>array(125,89,860,665),4420=>array(125,89,853,665),4421=>array(125,78,880,663),4422=>array(125,119,886,664),4423=>array(125,122,874,617),4424=>array(125,78,885,666),4425=>array(125,78,885,665),4426=>array(125,90,855,665),4427=>array(125,91,868,665),4428=>array(232,131,768,551),4429=>array(119,78,874,666),4430=>array(97,-1,903,720),4431=>array(92,-1,903,720),4432=>array(97,-1,903,720),4433=>array(97,-1,908,720),4434=>array(123,78,873,665),4435=>array(123,78,876,666),4436=>array(97,-1,903,814),4437=>array(97,-1,903,814),4438=>array(127,89,853,665),4439=>array(202,78,798,714),4440=>array(100,91,900,666),4441=>array(182,78,818,573),4449=>array(421,-64,711,842),4450=>array(345,-64,655,842),4451=>array(381,-64,676,842),4452=>array(340,-64,661,842),4453=>array(302,-65,597,841),4454=>array(186,-63,677,843),4455=>array(332,-64,626,842),4456=>array(226,-63,687,843),4457=>array(60,197,940,614),4458=>array(46,-64,931,842),4459=>array(51,-64,892,842),4460=>array(61,-64,857,842),4461=>array(60,197,940,615),4462=>array(79,76,921,554),4463=>array(68,-65,882,841),4464=>array(53,-63,912,843),4465=>array(70,-64,867,842),4466=>array(72,111,928,589),4467=>array(57,357,943,436),4468=>array(67,-64,867,842),4469=>array(462,-64,538,842),4470=>array(62,7,943,842),4471=>array(79,-64,936,842),4472=>array(62,7,943,842),4473=>array(62,-3,938,842),4474=>array(62,7,943,841),4475=>array(79,-64,920,841),4476=>array(57,22,943,841),4477=>array(62,7,943,842),4478=>array(79,-64,920,842),4479=>array(63,-70,907,841),4480=>array(63,-68,907,843),4481=>array(63,-68,907,843),4482=>array(62,22,943,783),4483=>array(62,-64,943,783),4484=>array(62,-70,907,842),4485=>array(62,-69,907,842),4486=>array(62,-70,907,842),4487=>array(62,22,943,782),4488=>array(62,-69,907,842),4489=>array(68,-69,936,842),4490=>array(68,-69,907,842),4491=>array(57,22,943,841),4492=>array(63,-68,907,843),4493=>array(79,-64,920,762),4494=>array(68,-69,936,842),4495=>array(68,-70,907,841),4496=>array(68,-63,912,843),4497=>array(68,-70,907,842),4498=>array(63,-68,907,843),4499=>array(79,-64,921,756),4500=>array(68,-64,867,842),4501=>array(79,-64,921,615),4502=>array(79,197,921,615),4503=>array(65,-64,921,842),4504=>array(321,-63,812,843),4505=>array(311,-63,772,843),4506=>array(62,22,943,842),4507=>array(79,-64,921,842),4508=>array(57,22,943,842),4509=>array(410,50,584,842),4510=>array(410,280,584,463),4511=>array(410,-65,719,841),4512=>array(79,-64,921,601),4513=>array(333,-69,667,842),4514=>array(329,280,671,463),4520=>array(129,91,796,665),4521=>array(114,91,844,665),4522=>array(114,78,880,665),4523=>array(204,90,873,665),4524=>array(144,78,880,666),4525=>array(144,91,876,666),4526=>array(184,90,838,664),4527=>array(173,90,827,665),4528=>array(149,85,842,665),4529=>array(149,85,852,665),4530=>array(149,85,853,665),4531=>array(149,78,880,665),4532=>array(149,85,855,665),4533=>array(149,85,868,665),4534=>array(149,85,876,666),4535=>array(215,90,785,665),4536=>array(215,90,785,665),4537=>array(145,78,880,664),4538=>array(107,76,882,663),4539=>array(110,78,890,663),4540=>array(187,92,813,666),4541=>array(109,76,880,665),4542=>array(109,76,880,665),4543=>array(206,90,790,663),4544=>array(189,91,837,664),4545=>array(187,90,813,665),4546=>array(156,88,844,665),4547=>array(114,85,887,665),4548=>array(75,78,913,665),4549=>array(144,91,844,665),4550=>array(144,90,888,665),4551=>array(144,78,880,665),4552=>array(144,93,886,665),4553=>array(144,90,855,665),4554=>array(149,89,842,665),4555=>array(149,85,887,665),4556=>array(76,78,961,665),4557=>array(149,85,881,665),4558=>array(149,85,888,665),4559=>array(76,85,944,666),4560=>array(149,85,887,665),4561=>array(76,85,920,665),4562=>array(76,78,973,665),4563=>array(76,78,973,665),4564=>array(76,85,946,666),4565=>array(149,85,848,728),4566=>array(80,78,960,665),4567=>array(149,85,886,665),4568=>array(149,85,873,665),4569=>array(149,85,878,666),4570=>array(142,89,844,665),4571=>array(142,85,887,665),4572=>array(142,89,853,665),4573=>array(142,78,880,665),4574=>array(84,78,960,665),4575=>array(142,89,886,665),4576=>array(142,78,885,665),4577=>array(142,89,876,666),4578=>array(232,78,768,711),4579=>array(145,85,887,665),4580=>array(145,88,868,665),4581=>array(145,88,876,666),4582=>array(232,78,768,725),4583=>array(130,78,844,665),4584=>array(130,78,888,665),4585=>array(125,78,887,665),4586=>array(125,78,868,665),4587=>array(258,93,742,659),4588=>array(125,91,844,665),4589=>array(72,91,913,665),4590=>array(125,122,874,617),4591=>array(125,90,873,663),4592=>array(232,131,768,551),4593=>array(125,78,880,663),4594=>array(125,119,886,664),4595=>array(127,89,853,665),4596=>array(202,78,798,714),4597=>array(116,91,881,666),4598=>array(116,85,887,666),4599=>array(116,89,852,666),4600=>array(116,89,853,666),4601=>array(182,78,818,573),7680=>array(-1,-210,668,716),7681=>array(38,-210,516,530),7682=>array(74,0,615,881),7683=>array(67,-12,517,881),7684=>array(74,-210,615,716),7685=>array(67,-210,517,716),7686=>array(74,-179,615,716),7687=>array(67,-179,517,716),7688=>array(51,-209,684,898),7689=>array(39,-196,491,728),7690=>array(80,0,672,881),7691=>array(36,-12,486,881),7692=>array(80,-210,672,716),7693=>array(36,-210,486,716),7694=>array(80,-179,672,716),7695=>array(36,-179,486,716),7696=>array(80,-205,672,716),7697=>array(36,-205,486,716),7698=>array(80,-210,672,716),7699=>array(36,-210,486,716),7700=>array(79,0,614,1050),7701=>array(39,-12,517,882),7702=>array(79,0,614,1050),7703=>array(39,-12,517,882),7704=>array(79,-210,614,716),7705=>array(39,-210,517,530),7706=>array(79,-185,614,716),7707=>array(39,-185,517,530),7708=>array(79,-205,614,902),7709=>array(39,-205,517,722),7710=>array(80,0,563,881),7711=>array(8,0,311,881),7712=>array(52,-12,714,865),7713=>array(34,-210,491,697),7714=>array(80,0,642,881),7715=>array(67,0,490,881),7716=>array(80,-210,642,716),7717=>array(67,-210,490,716),7718=>array(80,0,642,881),7719=>array(67,0,490,881),7720=>array(27,-205,642,716),7721=>array(2,-205,490,716),7722=>array(80,-200,642,716),7723=>array(67,-200,490,716),7724=>array(-28,-185,299,716),7725=>array(-58,-185,270,716),7726=>array(3,0,274,1066),7727=>array(5,0,276,896),7728=>array(73,0,665,898),7729=>array(66,0,496,898),7730=>array(73,-210,665,716),7731=>array(66,-210,496,716),7732=>array(73,-179,665,716),7733=>array(66,-179,496,716),7734=>array(75,-210,523,716),7735=>array(67,-210,158,716),7736=>array(75,-210,523,865),7737=>array(-41,-210,264,865),7738=>array(75,-179,523,716),7739=>array(-42,-179,262,716),7740=>array(75,-210,523,716),7741=>array(-39,-210,270,716),7742=>array(76,0,757,898),7743=>array(65,0,769,728),7744=>array(76,0,757,881),7745=>array(65,0,769,711),7746=>array(76,-210,757,716),7747=>array(65,-210,769,530),7748=>array(79,0,642,881),7749=>array(68,0,490,711),7750=>array(79,-210,642,716),7751=>array(68,-210,490,530),7752=>array(79,-179,642,716),7753=>array(68,-179,490,530),7754=>array(79,-210,642,716),7755=>array(68,-210,490,530),7756=>array(47,-12,732,1064),7757=>array(35,-12,521,902),7758=>array(47,-12,732,1035),7759=>array(35,-12,521,865),7760=>array(47,-12,732,1050),7761=>array(35,-12,521,882),7762=>array(47,-12,732,1050),7763=>array(35,-12,521,882),7764=>array(77,0,623,898),7765=>array(68,-199,518,728),7766=>array(77,0,623,881),7767=>array(68,-199,518,711),7768=>array(80,0,711,881),7769=>array(64,0,346,711),7770=>array(80,-210,711,716),7771=>array(64,-210,346,530),7772=>array(80,-210,711,865),7773=>array(14,-210,346,697),7774=>array(80,-179,711,716),7775=>array(8,-179,346,530),7776=>array(45,-12,615,881),7777=>array(31,-12,461,711),7778=>array(45,-210,615,728),7779=>array(31,-210,461,530),7780=>array(45,-12,615,939),7781=>array(31,-12,461,768),7782=>array(45,-12,615,1047),7783=>array(31,-12,461,877),7784=>array(45,-210,615,881),7785=>array(31,-210,461,711),7786=>array(22,0,589,881),7787=>array(17,-7,269,881),7788=>array(22,-210,589,716),7789=>array(17,-210,269,700),7790=>array(22,-179,589,716),7791=>array(-11,-179,293,700),7792=>array(22,-210,589,716),7793=>array(6,-210,315,700),7794=>array(79,-210,642,716),7795=>array(66,-210,487,518),7796=>array(79,-185,642,716),7797=>array(66,-185,487,518),7798=>array(79,-210,642,716),7799=>array(66,-210,487,518),7800=>array(79,-12,642,1072),7801=>array(66,-12,487,902),7802=>array(79,-12,642,1002),7803=>array(66,-12,487,846),7804=>array(6,0,660,886),7805=>array(13,0,488,716),7806=>array(6,-210,660,716),7807=>array(13,-210,488,518),7808=>array(12,0,933,898),7809=>array(5,0,717,728),7810=>array(12,0,933,898),7811=>array(5,0,717,728),7812=>array(12,0,933,881),7813=>array(5,0,717,711),7814=>array(12,0,933,881),7815=>array(5,0,717,711),7816=>array(12,-210,933,716),7817=>array(5,-210,717,518),7818=>array(5,0,661,881),7819=>array(7,0,493,711),7820=>array(5,0,661,881),7821=>array(7,0,493,711),7822=>array(5,0,661,881),7823=>array(16,-210,492,711),7824=>array(18,0,584,898),7825=>array(20,0,479,728),7826=>array(18,-210,584,716),7827=>array(20,-210,479,518),7828=>array(18,-179,584,716),7829=>array(20,-179,479,518),7830=>array(67,-179,490,716),7831=>array(1,-7,272,881),7832=>array(5,0,717,752),7833=>array(16,-210,492,752),7834=>array(38,-12,557,758),7835=>array(8,0,311,881),7840=>array(-1,-210,668,716),7841=>array(38,-210,516,530),7842=>array(-1,0,668,934),7843=>array(38,-12,516,756),7844=>array(-1,0,668,978),7845=>array(38,-12,586,808),7846=>array(-1,0,668,978),7847=>array(-30,-12,516,808),7848=>array(-1,0,668,996),7849=>array(38,-12,573,826),7850=>array(-1,0,668,1058),7851=>array(38,-12,516,888),7852=>array(-1,-210,668,898),7853=>array(38,-210,516,728),7854=>array(-1,0,668,1039),7855=>array(38,-12,516,859),7856=>array(-1,0,668,1039),7857=>array(38,-12,516,859),7858=>array(-1,0,668,1074),7859=>array(38,-12,516,895),7860=>array(-1,0,668,1060),7861=>array(38,-12,516,880),7862=>array(-1,-210,668,902),7863=>array(38,-210,516,722),7864=>array(79,-210,614,716),7865=>array(39,-210,517,530),7866=>array(79,0,614,936),7867=>array(39,-12,517,756),7868=>array(79,0,614,884),7869=>array(39,-12,517,716),7870=>array(79,0,652,978),7871=>array(39,-12,586,808),7872=>array(34,0,614,978),7873=>array(-30,-12,517,808),7874=>array(79,0,638,996),7875=>array(39,-12,573,826),7876=>array(79,0,614,1056),7877=>array(39,-12,517,886),7878=>array(79,-210,614,900),7879=>array(39,-210,517,728),7880=>array(33,0,245,936),7881=>array(33,0,245,756),7882=>array(92,-210,187,716),7883=>array(67,-210,158,716),7884=>array(47,-210,732,728),7885=>array(35,-210,521,530),7886=>array(47,-12,732,936),7887=>array(35,-12,521,756),7888=>array(47,-12,732,978),7889=>array(35,-12,586,808),7890=>array(47,-12,732,978),7891=>array(-30,-12,521,808),7892=>array(47,-12,732,996),7893=>array(35,-12,573,826),7894=>array(47,-12,732,1056),7895=>array(35,-12,521,886),7896=>array(47,-210,732,900),7897=>array(35,-210,521,728),7898=>array(47,-12,776,900),7899=>array(35,-12,555,728),7900=>array(47,-12,776,900),7901=>array(35,-12,555,728),7902=>array(47,-12,776,936),7903=>array(35,-12,555,756),7904=>array(47,-12,776,884),7905=>array(35,-12,555,716),7906=>array(47,-210,776,768),7907=>array(35,-210,555,606),7908=>array(79,-210,642,716),7909=>array(66,-210,487,518),7910=>array(79,-12,642,936),7911=>array(66,-12,487,756),7912=>array(79,-12,776,900),7913=>array(66,-12,625,728),7914=>array(79,-12,776,900),7915=>array(66,-12,625,728),7916=>array(79,-12,776,936),7917=>array(66,-12,625,756),7918=>array(79,-12,776,884),7919=>array(66,-12,625,716),7920=>array(79,-210,776,768),7921=>array(66,-210,625,620),7922=>array(5,0,661,900),7923=>array(16,-210,492,728),7924=>array(5,-210,661,716),7925=>array(16,-210,492,518),7926=>array(5,0,661,936),7927=>array(16,-210,492,756),7928=>array(5,0,661,884),7929=>array(16,-210,492,716),7936=>array(35,-12,541,763),7937=>array(35,-12,541,763),7938=>array(35,-12,541,763),7939=>array(35,-12,541,763),7940=>array(35,-12,541,763),7941=>array(35,-12,541,763),7942=>array(35,-12,541,847),7943=>array(35,-12,541,847),7944=>array(-1,0,668,763),7945=>array(-1,0,668,763),7946=>array(-50,0,681,763),7947=>array(-50,0,681,763),7948=>array(-46,0,681,763),7949=>array(-38,0,681,763),7950=>array(-43,0,719,763),7951=>array(-43,0,719,763),7952=>array(29,-12,405,763),7953=>array(29,-12,405,763),7954=>array(29,-12,405,763),7955=>array(29,-12,405,763),7956=>array(29,-12,405,763),7957=>array(29,-12,405,763),7960=>array(-43,0,639,763),7961=>array(-44,0,639,763),7962=>array(-43,0,770,763),7963=>array(-43,0,770,763),7964=>array(-71,0,770,763),7965=>array(-63,0,769,763),7968=>array(68,-199,490,763),7969=>array(68,-199,490,763),7970=>array(68,-199,490,763),7971=>array(68,-199,490,763),7972=>array(68,-199,490,763),7973=>array(68,-199,490,763),7974=>array(68,-199,490,847),7975=>array(68,-199,490,847),7976=>array(-43,0,667,763),7977=>array(-44,0,667,763),7978=>array(-43,0,798,763),7979=>array(-43,0,798,763),7980=>array(-71,0,798,763),7981=>array(-63,0,798,763),7982=>array(-43,0,843,763),7983=>array(-43,0,843,763),7984=>array(59,0,162,763),7985=>array(53,0,156,763),7986=>array(-13,0,236,763),7987=>array(-13,0,236,763),7988=>array(-15,0,251,763),7989=>array(-15,0,243,763),7990=>array(-36,0,253,847),7991=>array(-36,0,253,847),7992=>array(-43,0,212,763),7993=>array(-44,0,212,763),7994=>array(-43,0,343,763),7995=>array(-43,0,343,763),7996=>array(-71,0,343,763),7997=>array(-63,0,343,763),7998=>array(-43,0,388,763),7999=>array(-43,0,388,763),8000=>array(35,-12,521,763),8001=>array(35,-12,521,763),8002=>array(35,-12,521,763),8003=>array(35,-12,521,763),8004=>array(35,-12,521,763),8005=>array(35,-12,521,763),8008=>array(-30,-12,732,763),8009=>array(-38,-12,732,763),8010=>array(-43,-12,848,763),8011=>array(-31,-12,848,763),8012=>array(-37,-12,848,763),8013=>array(-36,-12,848,763),8016=>array(68,-12,483,763),8017=>array(68,-12,483,763),8018=>array(68,-12,483,763),8019=>array(68,-12,483,763),8020=>array(68,-12,483,763),8021=>array(68,-12,483,763),8022=>array(68,-12,483,847),8023=>array(68,-12,483,847),8025=>array(-43,0,771,763),8027=>array(-43,0,887,763),8029=>array(-43,0,879,763),8031=>array(-43,0,934,763),8032=>array(35,-12,731,763),8033=>array(35,-12,731,763),8034=>array(35,-12,731,763),8035=>array(35,-12,731,763),8036=>array(35,-12,731,763),8037=>array(35,-12,731,763),8038=>array(35,-12,731,847),8039=>array(35,-12,731,847),8040=>array(-30,0,706,763),8041=>array(-38,0,706,763),8042=>array(-43,0,822,763),8043=>array(-43,0,822,763),8044=>array(-43,0,816,763),8045=>array(-43,0,815,763),8046=>array(-43,0,859,763),8047=>array(-43,0,859,763),8048=>array(35,-12,541,736),8049=>array(35,-12,541,736),8050=>array(29,-12,405,736),8051=>array(29,-12,405,736),8052=>array(68,-199,490,736),8053=>array(68,-199,490,736),8054=>array(35,0,155,736),8055=>array(67,0,187,736),8056=>array(35,-12,521,736),8057=>array(35,-12,521,736),8058=>array(68,-12,483,736),8059=>array(68,-12,483,736),8060=>array(35,-12,731,736),8061=>array(35,-12,731,736),8064=>array(35,-208,541,763),8065=>array(35,-208,541,763),8066=>array(35,-208,541,763),8067=>array(35,-208,541,763),8068=>array(35,-208,541,763),8069=>array(35,-208,541,763),8070=>array(35,-208,541,847),8071=>array(35,-208,541,847),8072=>array(-1,-208,668,763),8073=>array(-1,-208,668,763),8074=>array(-50,-208,681,763),8075=>array(-50,-208,681,763),8076=>array(-46,-208,681,763),8077=>array(-38,-208,681,763),8078=>array(-43,-208,719,763),8079=>array(-43,-208,719,763),8080=>array(68,-208,490,763),8081=>array(68,-208,490,763),8082=>array(68,-208,490,763),8083=>array(68,-208,490,763),8084=>array(68,-208,490,763),8085=>array(68,-208,490,763),8086=>array(68,-208,490,847),8087=>array(68,-208,490,847),8088=>array(-43,-208,667,763),8089=>array(-44,-208,667,763),8090=>array(-43,-208,798,763),8091=>array(-43,-208,798,763),8092=>array(-71,-208,798,763),8093=>array(-63,-208,798,763),8094=>array(-43,-208,843,763),8095=>array(-43,-208,843,763),8096=>array(35,-208,731,763),8097=>array(35,-208,731,763),8098=>array(35,-208,731,763),8099=>array(35,-208,731,763),8100=>array(35,-208,731,763),8101=>array(35,-208,731,763),8102=>array(35,-208,731,847),8103=>array(35,-208,731,847),8104=>array(-30,-208,706,763),8105=>array(-38,-208,706,763),8106=>array(-43,-208,822,763),8107=>array(-43,-208,822,763),8108=>array(-43,-208,816,763),8109=>array(-43,-208,815,763),8110=>array(-43,-208,859,763),8111=>array(-43,-208,859,763),8112=>array(35,-12,541,722),8113=>array(35,-12,541,697),8114=>array(35,-208,541,736),8115=>array(35,-208,541,530),8116=>array(35,-208,541,736),8118=>array(35,-12,541,717),8119=>array(35,-208,541,717),8120=>array(-1,0,668,889),8121=>array(-1,0,668,835),8122=>array(-1,0,668,736),8123=>array(-1,0,668,736),8124=>array(-1,-208,668,716),8125=>array(86,579,189,763),8126=>array(111,-208,289,-42),8127=>array(86,579,189,763),8128=>array(-5,590,284,717),8129=>array(-5,591,284,819),8130=>array(68,-208,490,736),8131=>array(68,-208,490,530),8132=>array(68,-208,490,736),8134=>array(68,-199,490,717),8135=>array(68,-208,490,717),8136=>array(-43,0,640,736),8137=>array(-43,0,651,736),8138=>array(-43,0,668,736),8139=>array(-43,0,679,736),8140=>array(80,-208,642,716),8141=>array(16,579,265,763),8142=>array(16,579,282,763),8143=>array(-5,583,284,847),8144=>array(-34,0,255,722),8145=>array(-41,0,264,697),8146=>array(-55,0,276,736),8147=>array(-55,0,276,736),8150=>array(-34,0,255,717),8151=>array(-32,0,257,819),8152=>array(-5,0,284,889),8153=>array(-14,0,291,835),8154=>array(-43,0,213,736),8155=>array(-43,0,213,736),8157=>array(16,579,265,763),8158=>array(16,579,274,763),8159=>array(-5,583,284,847),8160=>array(68,-12,483,722),8161=>array(68,-12,483,697),8162=>array(68,-12,483,736),8163=>array(68,-12,483,736),8164=>array(66,-199,536,763),8165=>array(66,-199,536,763),8166=>array(68,-12,483,717),8167=>array(68,-12,483,819),8168=>array(5,0,661,889),8169=>array(5,0,661,835),8170=>array(-43,0,736,736),8171=>array(-43,0,740,736),8172=>array(-43,0,649,763),8173=>array(-27,600,304,736),8174=>array(-27,600,304,736),8175=>array(70,600,189,736),8178=>array(35,-208,731,736),8179=>array(35,-208,731,518),8180=>array(35,-208,731,736),8182=>array(35,-12,731,717),8183=>array(35,-208,731,717),8184=>array(-17,-12,732,736),8185=>array(-6,-12,732,736),8186=>array(-17,0,706,736),8187=>array(-6,0,706,736),8188=>array(52,-208,706,728),8189=>array(84,600,203,736),8190=>array(88,579,191,763),8208=>array(32,215,301,303),8209=>array(32,215,301,303),8210=>array(-6,223,562,295),8211=>array(-6,223,506,295),8212=>array(-6,223,1006,295),8213=>array(26,223,538,295),8214=>array(92,-85,336,716),8215=>array(-6,-165,506,-35),8216=>array(64,494,166,728),8217=>array(56,482,158,716),8218=>array(53,-132,155,102),8219=>array(64,482,166,716),8220=>array(43,494,297,728),8221=>array(36,482,290,716),8222=>array(36,-132,290,102),8223=>array(44,482,298,716),8224=>array(39,-169,517,699),8225=>array(39,-169,517,706),8226=>array(51,227,299,474),8227=>array(52,197,321,504),8228=>array(89,0,189,100),8229=>array(89,0,467,100),8230=>array(117,0,883,100),8231=>array(89,302,189,402),8240=>array(18,-27,982,728),8241=>array(18,-27,1310,728),8242=>array(46,462,192,716),8243=>array(46,462,342,716),8244=>array(46,462,492,716),8245=>array(30,462,176,716),8246=>array(30,462,326,716),8247=>array(30,462,476,716),8248=>array(30,-175,282,32),8249=>array(44,35,271,481),8250=>array(62,35,289,481),8251=>array(116,-125,883,641),8252=>array(85,0,387,716),8253=>array(46,0,508,747),8254=>array(-6,740,506,790),8255=>array(3,-203,941,4),8256=>array(3,578,941,785),8257=>array(30,-175,282,146),8258=>array(33,-3,786,728),8259=>array(32,185,301,333),8260=>array(-222,-25,393,732),8261=>array(68,-199,262,716),8262=>array(16,-199,210,716),8304=>array(15,349,318,725),8308=>array(11,358,319,725),8309=>array(16,349,313,716),8310=>array(9,349,315,725),8311=>array(36,358,304,716),8312=>array(22,349,312,725),8313=>array(18,349,323,725),8314=>array(37,395,296,654),8315=>array(37,496,296,553),8316=>array(37,436,296,613),8317=>array(32,209,195,769),8318=>array(16,209,178,769),8319=>array(51,358,293,646),8320=>array(15,-24,318,352),8321=>array(52,-15,232,352),8322=>array(12,-15,316,352),8323=>array(16,-24,315,352),8324=>array(11,-15,319,352),8325=>array(16,-24,313,343),8326=>array(9,-24,315,352),8327=>array(36,-15,304,343),8328=>array(22,-24,312,352),8329=>array(18,-24,323,352),8330=>array(37,22,296,281),8331=>array(37,123,296,180),8332=>array(37,63,296,240),8333=>array(32,-164,195,396),8334=>array(16,-164,178,396),8352=>array(20,0,547,719),8353=>array(51,-63,525,782),8354=>array(45,-12,533,728),8355=>array(80,0,554,716),8356=>array(13,-14,528,728),8357=>array(65,-71,769,652),8358=>array(21,0,535,719),8359=>array(21,0,539,716),8360=>array(18,-12,986,716),8361=>array(8,0,929,716),8362=>array(72,0,712,518),8363=>array(67,0,514,723),8364=>array(-14,-12,541,728),8400=>array(28,574,552,716),8401=>array(48,574,572,716),8402=>array(264,-194,336,706),8403=>array(264,-12,336,524),8404=>array(34,419,668,646),8405=>array(32,419,666,646),8406=>array(28,504,555,716),8407=>array(45,504,572,716),8408=>array(146,102,454,410),8409=>array(146,102,465,421),8410=>array(146,91,465,410),8411=>array(112,611,488,707),8412=>array(42,611,558,707),8413=>array(63,-131,837,643),8414=>array(93,-101,807,613),8415=>array(9,-186,891,697),8416=>array(63,-131,837,643),8417=>array(28,504,672,716),8448=>array(46,-27,825,728),8449=>array(46,-27,822,728),8450=>array(37,-15,632,677),8451=>array(44,-12,983,728),8452=>array(41,0,588,662),8453=>array(53,-27,836,728),8454=>array(53,-27,823,728),8455=>array(42,-15,480,677),8456=>array(30,-15,630,677),8457=>array(44,0,873,725),8458=>array(-25,-201,523,327),8459=>array(23,-9,1078,665),8460=>array(46,-20,940,698),8461=>array(19,0,703,662),8462=>array(19,-12,458,694),8463=>array(19,-12,458,694),8464=>array(8,-201,834,654),8465=>array(26,-20,498,677),8466=>array(48,-8,842,664),8467=>array(5,-5,288,627),8468=>array(3,-12,739,716),8469=>array(-12,-11,710,662),8470=>array(79,0,1031,716),8471=>array(0,-9,737,728),8472=>array(48,-216,701,516),8473=>array(19,0,524,662),8474=>array(37,-198,685,677),8475=>array(71,-13,951,658),8476=>array(46,-20,747,686),8477=>array(19,0,677,662),8478=>array(19,0,677,662),8479=>array(19,-176,677,817),8480=>array(93,311,866,723),8481=>array(100,318,1085,716),8482=>array(100,318,861,716),8483=>array(10,-176,711,817),8484=>array(11,0,581,662),8485=>array(50,-192,494,690),8486=>array(28,0,740,677),8487=>array(28,-15,740,662),8488=>array(28,-194,644,687),8489=>array(2,0,245,530),8490=>array(73,0,665,716),8491=>array(-1,0,668,922),8492=>array(105,-5,951,659),8493=>array(53,-20,627,697),8494=>array(35,-12,521,530),8495=>array(31,-4,398,328),8496=>array(75,-6,671,666),8497=>array(35,-6,885,668),8498=>array(47,0,530,716),8499=>array(36,-12,1214,661),8500=>array(37,-6,379,318),8501=>array(64,-19,649,716),8502=>array(67,0,631,716),8503=>array(25,0,325,716),8504=>array(72,-18,630,716),8531=>array(52,-25,815,732),8532=>array(12,-25,815,732),8533=>array(52,-25,813,732),8534=>array(12,-25,813,732),8535=>array(16,-25,813,732),8536=>array(11,-25,813,732),8537=>array(52,-25,813,732),8538=>array(16,-25,813,732),8539=>array(52,-25,804,732),8540=>array(16,-25,804,732),8541=>array(16,-25,804,732),8542=>array(73,-25,804,732),8543=>array(52,-25,727,732),8544=>array(92,0,187,716),8545=>array(92,0,464,716),8546=>array(92,0,741,716),8547=>array(92,0,934,716),8548=>array(6,0,660,716),8549=>array(6,0,843,716),8550=>array(2,0,960,716),8551=>array(2,0,1197,716),8552=>array(92,0,940,716),8553=>array(5,0,661,716),8554=>array(5,0,853,716),8555=>array(5,0,964,716),8556=>array(75,0,523,716),8557=>array(51,-12,683,728),8558=>array(80,0,672,716),8559=>array(76,0,757,716),8560=>array(67,0,155,716),8561=>array(67,0,377,716),8562=>array(67,0,599,716),8563=>array(67,0,697,716),8564=>array(13,0,488,518),8565=>array(13,0,633,716),8566=>array(13,0,855,716),8567=>array(13,0,1077,716),8568=>array(67,0,708,716),8569=>array(7,0,493,518),8570=>array(7,0,645,716),8571=>array(7,0,867,716),8572=>array(67,0,155,716),8573=>array(39,-12,491,530),8574=>array(36,-12,486,716),8575=>array(65,0,769,530),8576=>array(47,0,936,716),8577=>array(80,0,672,716),8578=>array(47,0,936,716),8592=>array(40,100,673,412),8593=>array(201,0,513,662),8594=>array(40,100,673,412),8595=>array(201,0,513,662),8596=>array(40,100,673,412),8597=>array(201,0,513,662),8598=>array(100,102,586,588),8599=>array(128,102,614,588),8600=>array(128,74,614,560),8601=>array(100,74,586,560),8602=>array(40,100,673,412),8603=>array(40,100,673,412),8604=>array(40,100,674,412),8605=>array(39,100,673,412),8606=>array(40,100,673,412),8607=>array(201,0,513,662),8608=>array(40,100,673,412),8609=>array(201,0,513,662),8610=>array(40,100,673,412),8611=>array(40,100,673,412),8612=>array(40,100,673,412),8613=>array(201,0,513,662),8614=>array(40,100,673,412),8615=>array(201,0,513,662),8616=>array(201,0,513,662),8617=>array(40,100,673,482),8618=>array(40,100,673,482),8619=>array(40,100,673,500),8620=>array(40,100,673,500),8621=>array(40,100,774,412),8622=>array(40,100,773,412),8623=>array(199,0,520,662),8624=>array(120,71,553,603),8625=>array(160,71,593,603),8626=>array(120,59,553,591),8627=>array(160,59,593,591),8628=>array(97,94,629,527),8629=>array(120,59,553,591),8630=>array(67,181,638,497),8631=>array(75,181,646,497),8632=>array(81,102,633,662),8633=>array(40,-56,673,568),8634=>array(60,21,740,701),8635=>array(60,21,740,701),8636=>array(40,232,673,412),8637=>array(40,100,673,280),8638=>array(333,0,513,662),8639=>array(201,0,381,662),8640=>array(40,232,673,412),8641=>array(40,100,673,280),8642=>array(333,0,513,662),8643=>array(201,0,381,662),8644=>array(40,-56,673,568),8645=>array(45,0,669,662),8646=>array(40,-56,673,568),8647=>array(40,-56,673,568),8648=>array(45,0,669,662),8649=>array(40,-56,673,568),8650=>array(45,0,669,662),8651=>array(39,30,672,482),8652=>array(40,30,673,482),8653=>array(40,40,673,472),8654=>array(40,40,910,472),8655=>array(40,40,673,472),8656=>array(40,40,673,472),8657=>array(141,0,573,662),8658=>array(40,40,673,472),8659=>array(141,0,573,662),8660=>array(40,40,823,472),8661=>array(141,0,573,783),8662=>array(100,0,688,588),8663=>array(26,0,614,588),8664=>array(26,0,614,588),8665=>array(100,0,688,588),8666=>array(40,40,673,472),8667=>array(40,40,673,472),8668=>array(40,100,773,412),8669=>array(40,100,773,412),8670=>array(201,0,513,662),8671=>array(201,0,513,662),8672=>array(40,100,673,412),8673=>array(201,0,513,662),8674=>array(40,100,673,412),8675=>array(201,0,513,662),8676=>array(40,100,673,412),8677=>array(40,100,673,412),8678=>array(40,40,673,472),8679=>array(141,0,573,662),8680=>array(40,40,673,472),8681=>array(141,0,573,662),8682=>array(141,0,573,662),8704=>array(27,0,573,689),8705=>array(80,-60,528,702),8706=>array(32,-15,486,695),8707=>array(115,0,475,689),8708=>array(115,-73,475,762),8709=>array(46,-23,755,686),8710=>array(6,0,608,688),8711=>array(6,0,608,688),8712=>array(43,33,498,480),8713=>array(43,-57,498,570),8714=>array(89,78,453,435),8715=>array(51,33,506,480),8716=>array(51,-57,506,570),8717=>array(96,78,460,435),8718=>array(98,0,451,512),8719=>array(25,-101,803,751),8720=>array(25,-101,803,751),8721=>array(17,-101,695,752),8722=>array(55,312,529,394),8723=>array(55,0,529,611),8724=>array(55,0,529,627),8725=>array(-222,-25,393,732),8726=>array(0,-24,278,716),8727=>array(33,194,356,499),8728=>array(65,207,335,478),8729=>array(65,207,335,478),8730=>array(41,-19,549,782),8731=>array(41,-19,549,782),8732=>array(41,-19,549,782),8733=>array(75,128,447,384),8734=>array(20,99,529,414),8735=>array(55,0,529,474),8736=>array(55,0,529,474),8737=>array(55,0,529,474),8738=>array(55,-98,444,572),8739=>array(92,-199,168,716),8740=>array(92,-199,352,716),8741=>array(92,-199,326,716),8742=>array(92,-199,510,716),8743=>array(20,0,542,568),8744=>array(20,0,542,568),8745=>array(50,0,512,568),8746=>array(50,0,512,568),8747=>array(63,-271,434,1022),8748=>array(63,-271,734,1022),8749=>array(63,-271,1034,1022),8750=>array(33,-271,459,1022),8751=>array(33,-271,759,1022),8752=>array(33,-271,1059,1022),8753=>array(33,-271,488,1022),8754=>array(33,-271,488,1022),8755=>array(33,-271,498,1022),8756=>array(42,0,521,528),8757=>array(42,0,521,528),8758=>array(161,0,260,528),8759=>array(42,0,521,528),8760=>array(55,312,529,567),8761=>array(55,139,529,567),8762=>array(55,139,529,567),8763=>array(55,139,529,567),8764=>array(55,279,529,424),8765=>array(55,279,529,424),8766=>array(35,212,539,496),8767=>array(40,72,544,636),8768=>array(139,0,284,592),8769=>array(55,171,529,533),8770=>array(55,202,529,535),8771=>array(55,203,529,536),8772=>array(55,91,529,613),8773=>array(55,123,529,584),8774=>array(55,51,529,614),8775=>array(55,51,529,633),8776=>array(55,171,529,533),8777=>array(55,81,529,603),8778=>array(55,123,529,584),8779=>array(55,97,529,584),8780=>array(35,53,539,654),8781=>array(55,155,529,551),8782=>array(55,58,529,648),8783=>array(55,203,529,648),8784=>array(55,203,529,676),8785=>array(55,59,529,647),8786=>array(55,59,529,647),8787=>array(55,59,529,647),8788=>array(55,195,682,511),8789=>array(55,195,682,511),8790=>array(55,189,529,518),8791=>array(55,0,529,617),8792=>array(55,0,529,518),8793=>array(55,0,529,630),8794=>array(55,0,529,630),8795=>array(55,0,529,651),8796=>array(55,0,529,701),8797=>array(55,0,529,605),8798=>array(55,0,529,532),8799=>array(55,0,529,601),8800=>array(55,103,529,603),8801=>array(55,123,529,557),8802=>array(55,23,529,657),8803=>array(55,35,529,645),8804=>array(55,55,529,650),8805=>array(55,55,529,650),8806=>array(55,0,529,783),8807=>array(55,0,529,783),8808=>array(55,-85,529,783),8809=>array(55,-85,529,783),8810=>array(55,111,914,595),8811=>array(55,111,914,595),8812=>array(143,-210,441,728),8813=>array(55,103,529,603),8814=>array(55,23,529,657),8815=>array(55,23,529,657),8816=>array(55,-141,529,657),8817=>array(55,-141,529,657),8818=>array(55,-1,529,656),8819=>array(55,-1,529,656),8820=>array(55,-91,529,718),8821=>array(55,-91,529,718),8822=>array(55,-27,529,821),8823=>array(55,-27,529,821),8824=>array(55,-27,529,821),8825=>array(55,-27,529,821),8826=>array(55,111,529,595),8827=>array(55,111,529,595),8828=>array(55,-33,529,595),8829=>array(55,-33,529,595),8830=>array(55,-1,529,656),8831=>array(55,-1,529,656),8832=>array(55,23,529,657),8833=>array(55,23,529,657),8834=>array(55,122,623,584),8835=>array(55,122,623,584),8836=>array(55,22,623,684),8837=>array(55,22,623,684),8838=>array(55,0,623,626),8839=>array(55,0,623,626),8840=>array(55,-100,623,726),8841=>array(55,-100,623,726),8842=>array(55,-100,623,626),8843=>array(55,-100,623,626),8844=>array(50,0,512,568),8845=>array(50,0,512,568),8846=>array(50,0,512,568),8847=>array(55,122,623,584),8848=>array(55,122,623,584),8849=>array(55,0,623,626),8850=>array(55,0,623,626),8851=>array(50,0,512,568),8852=>array(50,0,512,568),8853=>array(59,-85,741,597),8854=>array(59,-85,741,597),8855=>array(59,-85,741,597),8856=>array(59,-85,741,597),8857=>array(59,-85,741,597),8858=>array(59,-85,741,597),8859=>array(59,-85,741,597),8860=>array(59,-85,741,597),8861=>array(59,-85,741,597),8862=>array(60,0,741,681),8863=>array(60,0,741,681),8864=>array(60,0,741,681),8865=>array(60,0,741,681),8866=>array(60,0,531,512),8867=>array(18,0,489,512),8868=>array(18,0,531,512),8869=>array(18,0,531,512),8870=>array(60,0,381,512),8871=>array(60,0,381,512),8872=>array(60,0,531,512),8873=>array(60,0,531,512),8874=>array(60,0,531,512),8875=>array(60,0,654,512),8876=>array(60,0,531,513),8877=>array(60,0,531,513),8878=>array(60,0,531,513),8879=>array(60,0,654,513),8880=>array(18,-54,531,566),8881=>array(18,-54,531,566),8882=>array(18,0,531,512),8883=>array(18,0,531,512),8884=>array(18,-51,531,562),8885=>array(18,-51,531,562),8886=>array(40,153,673,359),8887=>array(40,153,673,359),8888=>array(40,153,673,359),8889=>array(18,0,531,512),8890=>array(88,0,461,632),8891=>array(50,0,534,638),8892=>array(50,0,534,638),8893=>array(50,0,534,638),8894=>array(55,0,529,474),8895=>array(55,0,529,474),8896=>array(20,0,542,568),8897=>array(20,0,542,568),8898=>array(50,0,512,568),8899=>array(50,0,512,568),8900=>array(156,106,395,406),8901=>array(55,186,195,326),8902=>array(39,39,511,488),8903=>array(30,9,620,502),8904=>array(29,-64,601,576),8905=>array(29,-64,601,576),8906=>array(29,-64,601,576),8907=>array(29,-64,601,576),8908=>array(29,-64,601,576),8909=>array(55,203,529,536),8910=>array(18,0,542,568),8911=>array(18,0,542,568),8912=>array(56,84,623,626),8913=>array(56,84,623,626),8914=>array(63,0,605,567),8915=>array(63,0,605,567),8916=>array(50,0,512,716),8917=>array(55,-199,529,716),8918=>array(55,111,529,595),8919=>array(55,111,529,595),8920=>array(55,111,1299,595),8921=>array(55,111,1299,595),8922=>array(55,-217,529,927),8923=>array(55,-217,529,927),8924=>array(55,55,529,650),8925=>array(55,55,529,650),8926=>array(55,-33,529,595),8927=>array(55,-33,529,595),8928=>array(55,-141,529,657),8929=>array(55,-141,529,657),8930=>array(55,-100,623,726),8931=>array(55,-100,623,726),8932=>array(55,-100,623,626),8933=>array(55,-100,623,626),8934=>array(55,-71,529,656),8935=>array(55,-71,529,656),8936=>array(55,-71,529,656),8937=>array(55,-71,529,656),8938=>array(55,23,529,657),8939=>array(55,23,529,657),8940=>array(55,-45,529,712),8941=>array(55,-45,529,712),8942=>array(89,0,189,766),8943=>array(117,333,883,433),8944=>array(117,0,883,766),8945=>array(117,0,883,766),8960=>array(60,41,490,471),8962=>array(51,24,498,486),8963=>array(129,180,419,395),8964=>array(129,117,419,332),8965=>array(78,130,471,441),8966=>array(78,130,471,565),8967=>array(191,-192,359,693),8968=>array(103,58,346,694),8969=>array(103,58,346,694),8970=>array(103,-192,346,444),8971=>array(103,-192,346,444),8972=>array(251,-40,571,280),8973=>array(-22,-40,299,280),8974=>array(251,232,571,552),8975=>array(-22,232,299,552),8976=>array(49,163,511,403),8977=>array(83,64,467,448),8978=>array(59,156,741,497),8979=>array(59,156,741,497),8980=>array(34,100,516,441),8981=>array(27,9,490,471),8982=>array(26,-102,523,614),8983=>array(18,-51,632,563),8984=>array(63,0,717,654),8985=>array(49,109,511,349),8986=>array(45,-20,505,532),8987=>array(103,0,447,512),8988=>array(111,140,391,420),8989=>array(158,140,439,420),8990=>array(111,92,391,372),8991=>array(158,92,439,372),8992=>array(180,-218,434,752),8993=>array(63,-188,313,782),8994=>array(17,159,696,341),8995=>array(17,171,696,353),8996=>array(18,226,982,547),8997=>array(18,0,982,512),8998=>array(90,0,948,600),8999=>array(90,0,910,600),9000=>array(90,0,910,600),9001=>array(32,-184,299,694),9002=>array(30,-184,297,694),9003=>array(52,0,910,600),9004=>array(57,6,493,509),9005=>array(13,77,537,435),9006=>array(100,108,465,400),9007=>array(38,132,511,380),9008=>array(38,0,504,525),9009=>array(81,62,509,450),9010=>array(35,50,531,462),9011=>array(35,186,531,392),9012=>array(51,84,498,419),9013=>array(51,84,498,419),9014=>array(60,0,540,559),9015=>array(140,0,460,559),9016=>array(60,0,540,559),9017=>array(60,0,540,559),9018=>array(60,0,540,559),9019=>array(60,0,540,559),9020=>array(60,0,540,559),9021=>array(104,0,496,559),9022=>array(60,39,540,519),9023=>array(84,0,517,559),9024=>array(83,0,516,559),9025=>array(60,0,540,559),9026=>array(60,0,540,559),9027=>array(60,0,540,559),9028=>array(60,0,540,559),9029=>array(13,0,556,559),9030=>array(44,0,587,559),9031=>array(60,0,540,559),9032=>array(60,0,540,559),9033=>array(104,0,496,559),9034=>array(60,0,540,559),9035=>array(122,0,478,559),9036=>array(60,0,540,559),9037=>array(60,0,540,559),9038=>array(60,0,540,559),9039=>array(60,0,540,559),9040=>array(60,0,540,559),9041=>array(60,0,540,559),9042=>array(122,0,478,559),9043=>array(60,0,540,559),9044=>array(60,0,540,559),9045=>array(60,0,540,559),9046=>array(60,0,540,559),9047=>array(60,0,540,559),9048=>array(160,0,440,559),9049=>array(60,0,540,559),9050=>array(60,0,540,559),9051=>array(60,0,540,397),9052=>array(60,0,540,475),9053=>array(60,0,540,559),9054=>array(60,0,540,559),9055=>array(60,39,540,519),9056=>array(60,0,540,559),9057=>array(60,0,540,559),9058=>array(122,0,478,559),9059=>array(153,157,447,509),9060=>array(153,161,447,524),9061=>array(104,33,496,559),9062=>array(60,0,540,559),9063=>array(54,0,542,559),9064=>array(50,131,549,464),9065=>array(148,122,452,559),9066=>array(160,122,440,478),9067=>array(103,68,502,508),9068=>array(93,-14,504,573),9069=>array(50,0,549,559),9070=>array(160,-136,440,559),9071=>array(60,0,540,559),9072=>array(60,0,540,559),9073=>array(51,55,550,469),9074=>array(50,89,549,503),9075=>array(163,-14,427,475),9076=>array(90,-212,525,475),9077=>array(26,-14,574,475),9078=>array(60,-136,555,475),9079=>array(60,-136,540,480),9080=>array(160,-136,440,475),9081=>array(26,-136,574,475),9082=>array(61,-14,555,475),9109=>array(60,0,540,559),9216=>array(30,0,565,689),9217=>array(37,0,564,694),9218=>array(37,0,587,694),9219=>array(41,0,587,689),9220=>array(41,0,582,689),9221=>array(41,-42,583,689),9222=>array(9,0,594,689),9223=>array(34,0,565,689),9224=>array(134,112,465,574),9225=>array(134,116,482,574),9226=>array(141,116,462,574),9227=>array(109,116,482,574),9228=>array(141,116,462,574),9229=>array(120,116,489,579),9230=>array(137,112,472,579),9231=>array(137,116,449,579),9232=>array(34,0,560,689),9233=>array(34,0,564,689),9234=>array(34,0,558,689),9235=>array(34,-4,559,689),9236=>array(34,0,573,689),9237=>array(30,0,594,689),9238=>array(37,0,568,694),9239=>array(41,0,575,689),9240=>array(20,0,568,694),9241=>array(141,116,472,574),9242=>array(37,0,575,694),9243=>array(41,-4,573,689),9244=>array(141,112,465,574),9245=>array(120,112,465,579),9246=>array(134,112,465,574),9247=>array(134,112,465,574),9248=>array(137,116,471,579),9249=>array(34,0,565,689),9250=>array(46,-12,561,716),9251=>array(96,-126,505,0),9252=>array(130,116,465,574),9280=>array(103,1,514,650),9281=>array(102,0,514,650),9282=>array(103,1,514,650),9283=>array(103,1,514,650),9284=>array(102,1,514,650),9285=>array(102,336,514,650),9286=>array(102,0,648,702),9287=>array(102,0,648,702),9288=>array(102,117,648,663),9289=>array(102,195,648,507),9290=>array(30,1,574,650),9312=>array(81,-109,919,728),9313=>array(81,-109,919,728),9314=>array(81,-109,919,728),9315=>array(81,-109,919,728),9316=>array(81,-109,919,728),9317=>array(81,-109,919,728),9318=>array(81,-109,919,728),9319=>array(81,-109,919,728),9320=>array(81,-109,919,728),9321=>array(81,-109,919,728),9322=>array(81,-109,919,728),9323=>array(81,-109,919,728),9324=>array(81,-109,919,728),9325=>array(81,-109,919,728),9326=>array(81,-109,919,728),9327=>array(81,-109,919,728),9328=>array(81,-109,919,728),9329=>array(81,-109,919,728),9330=>array(81,-109,919,728),9331=>array(81,-109,919,728),9332=>array(81,-67,919,683),9333=>array(81,-67,919,683),9334=>array(81,-67,919,683),9335=>array(81,-67,919,683),9336=>array(81,-67,919,683),9337=>array(81,-67,919,683),9338=>array(81,-67,919,683),9339=>array(81,-67,919,683),9340=>array(81,-67,919,683),9341=>array(81,-67,919,683),9342=>array(81,-67,919,683),9343=>array(81,-67,919,683),9344=>array(81,-67,919,683),9345=>array(81,-67,919,683),9346=>array(81,-67,919,683),9347=>array(81,-67,919,683),9348=>array(81,-67,919,683),9349=>array(81,-67,919,683),9350=>array(81,-67,919,683),9351=>array(81,-67,919,683),9352=>array(301,79,627,547),9353=>array(273,79,717,547),9354=>array(277,72,717,547),9355=>array(253,79,717,545),9356=>array(272,72,717,539),9357=>array(266,72,717,547),9358=>array(294,79,717,539),9359=>array(275,72,717,547),9360=>array(282,72,717,547),9361=>array(163,72,807,547),9362=>array(191,79,807,547),9363=>array(155,79,807,547),9364=>array(155,72,807,547),9365=>array(159,79,807,547),9366=>array(159,72,807,547),9367=>array(159,72,807,547),9368=>array(159,79,807,547),9369=>array(159,72,807,547),9370=>array(159,72,807,547),9371=>array(185,72,817,547),9372=>array(81,-67,919,683),9373=>array(81,-67,919,683),9374=>array(81,-67,919,683),9375=>array(81,-67,919,683),9376=>array(81,-67,919,683),9377=>array(81,-67,919,683),9378=>array(81,-67,919,683),9379=>array(81,-67,919,683),9380=>array(81,-67,919,683),9381=>array(81,-67,919,683),9382=>array(81,-67,919,683),9383=>array(81,-67,919,683),9384=>array(81,-67,919,683),9385=>array(81,-67,919,683),9386=>array(81,-67,919,683),9387=>array(81,-67,919,683),9388=>array(81,-67,919,683),9389=>array(81,-67,919,683),9390=>array(81,-67,919,683),9391=>array(81,-67,919,683),9392=>array(81,-67,919,683),9393=>array(81,-67,919,683),9394=>array(81,-67,919,683),9395=>array(81,-67,919,683),9396=>array(81,-67,919,683),9397=>array(81,-67,919,683),9398=>array(81,-109,919,728),9399=>array(81,-109,919,728),9400=>array(81,-109,919,728),9401=>array(81,-109,919,728),9402=>array(81,-109,919,728),9403=>array(81,-109,919,728),9404=>array(81,-109,919,728),9405=>array(81,-109,919,728),9406=>array(81,-109,919,728),9407=>array(81,-109,919,728),9408=>array(81,-109,919,728),9409=>array(81,-109,919,728),9410=>array(81,-109,919,728),9411=>array(81,-109,919,728),9412=>array(81,-109,919,728),9413=>array(81,-109,919,728),9414=>array(81,-109,919,728),9415=>array(81,-109,919,728),9416=>array(81,-109,919,728),9417=>array(81,-109,919,728),9418=>array(81,-109,919,728),9419=>array(81,-109,919,728),9420=>array(81,-109,919,728),9421=>array(81,-109,919,728),9422=>array(81,-109,919,728),9423=>array(81,-109,919,728),9424=>array(81,-109,919,728),9425=>array(81,-109,919,728),9426=>array(81,-109,919,728),9427=>array(81,-109,919,728),9428=>array(81,-109,919,728),9429=>array(81,-109,919,728),9430=>array(81,-109,919,728),9431=>array(81,-109,919,728),9432=>array(81,-109,919,728),9433=>array(81,-109,919,728),9434=>array(81,-109,919,728),9435=>array(81,-109,919,728),9436=>array(81,-109,919,728),9437=>array(81,-109,919,728),9438=>array(81,-109,919,728),9439=>array(81,-109,919,728),9440=>array(81,-109,919,728),9441=>array(81,-109,919,728),9442=>array(81,-109,919,728),9443=>array(81,-109,919,728),9444=>array(81,-109,919,728),9445=>array(81,-109,919,728),9446=>array(81,-109,919,728),9447=>array(81,-109,919,728),9448=>array(81,-109,919,728),9449=>array(81,-109,919,728),9450=>array(81,-109,919,728),9472=>array(-11,340,611,425),9473=>array(-11,303,611,474),9474=>array(258,-218,343,994),9475=>array(215,-218,386,994),9476=>array(-11,346,611,431),9477=>array(-11,303,611,474),9478=>array(258,-218,343,994),9479=>array(215,-218,386,994),9480=>array(-11,346,611,431),9481=>array(-11,303,611,474),9482=>array(258,-218,343,994),9483=>array(215,-218,386,994),9484=>array(258,-218,611,431),9485=>array(258,-218,611,474),9486=>array(215,-218,611,431),9487=>array(215,-218,611,474),9488=>array(-11,-218,343,431),9489=>array(-11,-218,343,474),9490=>array(-11,-218,386,431),9491=>array(-11,-218,386,474),9492=>array(258,346,611,994),9493=>array(258,303,611,994),9494=>array(215,346,611,994),9495=>array(215,303,611,994),9496=>array(-11,346,343,994),9497=>array(-11,303,343,994),9498=>array(-11,346,386,994),9499=>array(-11,303,386,994),9500=>array(258,-218,611,994),9501=>array(258,-218,611,994),9502=>array(215,-218,611,994),9503=>array(215,-218,611,994),9504=>array(215,-218,611,994),9505=>array(215,-218,611,994),9506=>array(215,-218,611,994),9507=>array(215,-218,611,994),9508=>array(-11,-218,343,994),9509=>array(-11,-218,343,994),9510=>array(-11,-218,386,994),9511=>array(-11,-218,386,994),9512=>array(-11,-218,386,994),9513=>array(-11,-218,386,994),9514=>array(-11,-218,386,994),9515=>array(-11,-218,386,994),9516=>array(-11,-218,611,431),9517=>array(-11,-218,611,474),9518=>array(-11,-218,611,474),9519=>array(-11,-218,611,474),9520=>array(-11,-218,611,431),9521=>array(-11,-218,611,474),9522=>array(-11,-218,611,474),9523=>array(-11,-218,611,474),9524=>array(-11,346,611,994),9525=>array(-11,303,611,994),9526=>array(-11,303,611,994),9527=>array(-11,303,611,994),9528=>array(-11,346,611,994),9529=>array(-11,303,611,994),9530=>array(-11,303,611,994),9531=>array(-11,303,611,994),9532=>array(-11,-218,611,994),9533=>array(-11,-218,611,994),9534=>array(-11,-218,611,994),9535=>array(-11,-218,611,994),9536=>array(-11,-218,611,994),9537=>array(-11,-218,611,994),9538=>array(-11,-218,611,994),9539=>array(-11,-218,611,994),9540=>array(-11,-218,611,994),9541=>array(-11,-218,611,994),9542=>array(-11,-218,611,994),9543=>array(-11,-218,611,994),9544=>array(-11,-218,611,994),9545=>array(-11,-218,611,994),9546=>array(-11,-218,611,994),9547=>array(-11,-218,611,994),9548=>array(-11,346,611,431),9549=>array(-11,303,611,474),9550=>array(258,-218,343,994),9551=>array(215,-218,386,994),9552=>array(-11,261,611,516),9553=>array(173,-218,428,994),9554=>array(258,-218,611,516),9555=>array(173,-218,611,431),9556=>array(173,-218,611,516),9557=>array(-11,-218,343,516),9558=>array(-11,-218,428,431),9559=>array(-11,-218,428,516),9560=>array(258,261,611,994),9561=>array(173,346,611,994),9562=>array(173,261,611,994),9563=>array(-11,261,343,994),9564=>array(-11,346,428,994),9565=>array(-11,261,428,994),9566=>array(258,-218,611,994),9567=>array(173,-218,611,994),9568=>array(173,-218,611,994),9569=>array(-11,-218,343,994),9570=>array(-11,-218,428,994),9571=>array(-11,-218,428,994),9572=>array(-11,-218,611,516),9573=>array(-11,-218,611,431),9574=>array(-11,-218,611,516),9575=>array(-11,261,611,994),9576=>array(-11,346,611,994),9577=>array(-11,261,611,994),9578=>array(-11,-218,611,994),9579=>array(-11,-218,611,994),9580=>array(-11,-218,611,994),9581=>array(258,77,612,431),9582=>array(-11,77,343,431),9583=>array(-11,346,343,700),9584=>array(258,346,612,700),9585=>array(0,88,600,688),9586=>array(0,88,600,688),9587=>array(0,88,600,688),9588=>array(-11,346,258,431),9589=>array(258,431,343,994),9590=>array(343,346,611,431),9591=>array(258,-218,343,346),9592=>array(-11,303,258,474),9593=>array(215,431,386,994),9594=>array(343,303,611,474),9595=>array(215,-218,386,346),9596=>array(-11,303,611,474),9597=>array(215,-218,386,994),9598=>array(-11,303,611,474),9599=>array(215,-218,386,994),9600=>array(-11,388,611,994),9601=>array(-11,-218,611,-66),9602=>array(-11,-218,611,85),9603=>array(-11,-218,611,237),9604=>array(-11,-218,611,388),9605=>array(-11,-218,611,540),9606=>array(-11,-218,611,691),9607=>array(-11,-218,611,843),9608=>array(-11,-218,611,994),9609=>array(-11,-218,525,994),9610=>array(-11,-218,450,994),9611=>array(-11,-218,375,994),9612=>array(-11,-218,300,994),9613=>array(-11,-218,225,994),9614=>array(-11,-218,150,994),9615=>array(-11,-218,75,994),9616=>array(300,-218,611,994),9617=>array(100,-262,600,1043),9618=>array(0,-264,601,1042),9619=>array(0,-262,601,1042),9620=>array(-11,843,611,994),9621=>array(525,-218,611,994),9632=>array(85,160,515,590),9633=>array(85,160,515,590),9634=>array(85,160,515,590),9635=>array(85,160,515,590),9636=>array(85,160,515,590),9637=>array(85,160,515,590),9638=>array(85,160,515,590),9639=>array(85,160,515,590),9640=>array(85,160,515,590),9641=>array(85,160,515,590),9642=>array(192,267,408,483),9643=>array(192,267,408,483),9644=>array(85,267,515,483),9645=>array(85,267,515,483),9646=>array(192,160,408,590),9647=>array(192,160,408,590),9648=>array(79,275,521,475),9649=>array(79,275,521,475),9650=>array(89,211,511,611),9651=>array(89,211,511,611),9652=>array(146,285,454,552),9653=>array(146,285,454,552),9654=>array(136,164,536,586),9655=>array(136,164,536,586),9656=>array(211,221,478,529),9657=>array(211,221,478,529),9658=>array(85,194,541,556),9659=>array(85,194,541,556),9660=>array(89,139,511,539),9661=>array(89,139,511,539),9662=>array(146,198,454,465),9663=>array(146,198,454,465),9664=>array(64,164,464,586),9665=>array(64,164,464,586),9666=>array(122,221,389,529),9667=>array(122,221,389,529),9668=>array(59,194,515,556),9669=>array(59,194,515,556),9670=>array(69,144,531,606),9671=>array(69,144,531,606),9672=>array(69,144,531,606),9673=>array(85,160,515,590),9674=>array(85,80,515,670),9675=>array(85,160,515,590),9676=>array(86,161,514,589),9677=>array(85,160,515,590),9678=>array(85,160,515,590),9679=>array(85,160,515,590),9680=>array(85,160,515,590),9681=>array(85,160,515,590),9682=>array(85,160,515,590),9683=>array(85,160,515,590),9684=>array(85,160,515,590),9685=>array(85,160,515,590),9686=>array(85,160,300,590),9687=>array(300,160,515,590),9688=>array(0,0,600,600),9689=>array(0,0,600,600),9690=>array(0,300,600,600),9691=>array(0,0,600,300),9692=>array(85,375,300,590),9693=>array(300,375,515,590),9694=>array(300,160,515,375),9695=>array(85,160,300,375),9696=>array(85,375,515,590),9697=>array(85,160,515,375),9698=>array(85,160,515,590),9699=>array(85,160,515,590),9700=>array(85,160,515,590),9701=>array(85,160,515,590),9702=>array(193,268,407,482),9703=>array(85,160,515,590),9704=>array(85,160,515,590),9705=>array(85,160,515,590),9706=>array(85,160,515,590),9707=>array(85,160,515,590),9708=>array(89,211,511,611),9709=>array(89,211,511,611),9710=>array(89,211,511,611),9711=>array(20,95,580,655),9728=>array(65,1,685,621),9729=>array(58,166,944,652),9730=>array(76,6,674,622),9731=>array(105,-3,672,690),9732=>array(81,0,923,690),9733=>array(37,0,779,719),9734=>array(37,0,786,720),9735=>array(107,12,356,451),9736=>array(35,53,436,449),9737=>array(70,0,730,660),9738=>array(70,50,730,620),9739=>array(70,50,730,620),9740=>array(200,100,677,577),9741=>array(100,0,700,600),9742=>array(22,63,696,521),9743=>array(22,63,696,521),9744=>array(63,0,671,607),9745=>array(63,0,671,607),9746=>array(63,0,671,607),9747=>array(129,0,633,668),9754=>array(27,56,924,451),9755=>array(36,56,933,451),9756=>array(84,168,899,531),9757=>array(288,-79,651,736),9758=>array(41,168,856,531),9759=>array(288,-36,651,779),9760=>array(24,15,720,725),9761=>array(50,40,546,610),9762=>array(56,22,694,660),9763=>array(46,115,704,724),9764=>array(45,0,535,652),9765=>array(24,0,436,699),9766=>array(35,0,409,699),9767=>array(87,0,589,637),9768=>array(35,0,409,699),9769=>array(54,20,714,680),9770=>array(88,0,727,664),9771=>array(70,-24,778,656),9772=>array(78,-2,596,691),9773=>array(56,0,741,732),9774=>array(64,0,686,622),9775=>array(64,0,686,622),9776=>array(70,0,830,639),9777=>array(70,0,830,639),9778=>array(70,0,830,639),9779=>array(70,0,830,639),9780=>array(70,0,830,639),9781=>array(70,0,830,639),9782=>array(70,0,830,639),9783=>array(70,0,830,639),9784=>array(60,32,690,661),9785=>array(64,0,686,622),9786=>array(64,0,686,622),9787=>array(64,0,686,622),9788=>array(75,11,675,611),9789=>array(84,-189,659,691),9790=>array(91,-189,666,691),9791=>array(150,-100,590,759),9792=>array(100,-100,640,699),9793=>array(100,-30,640,769),9794=>array(60,-30,711,621),9795=>array(45,0,573,699),9796=>array(26,0,432,699),9797=>array(45,0,587,699),9798=>array(23,0,757,719),9799=>array(80,0,487,699),9800=>array(38,0,796,709),9801=>array(36,0,744,703),9802=>array(35,0,699,699),9803=>array(45,0,842,699),9804=>array(41,-176,749,700),9805=>array(42,-162,1002,699),9806=>array(33,0,863,699),9807=>array(42,-72,1067,699),9808=>array(48,0,747,699),9809=>array(29,-90,808,699),9810=>array(36,106,886,618),9811=>array(34,0,662,699),9812=>array(83,-117,913,709),9813=>array(42,-117,954,729),9814=>array(154,-113,842,706),9815=>array(83,-103,913,707),9816=>array(76,-110,912,727),9817=>array(197,-103,803,710),9818=>array(83,-117,913,709),9819=>array(42,-117,954,729),9820=>array(154,-113,842,706),9821=>array(83,-103,913,707),9822=>array(76,-110,912,727),9823=>array(197,-103,803,710),9824=>array(49,0,673,705),9825=>array(49,0,685,705),9826=>array(51,0,623,706),9827=>array(49,0,755,705),9828=>array(49,0,673,705),9829=>array(49,0,685,705),9830=>array(51,0,623,706),9831=>array(49,0,755,705),9832=>array(56,24,804,680),9833=>array(48,0,316,736),9834=>array(48,0,556,736),9835=>array(48,-70,654,766),9836=>array(48,-70,654,766),9837=>array(107,10,400,736),9838=>array(107,-22,333,736),9839=>array(29,-22,411,736),9985=>array(56,49,901,637),9986=>array(38,48,923,635),9987=>array(56,49,901,637),9988=>array(6,0,979,551),9990=>array(68,-201,700,669),9991=>array(30,0,760,730),9992=>array(17,0,772,654),9993=>array(27,28,663,483),9996=>array(64,0,521,582),9997=>array(59,72,824,515),9998=>array(62,113,848,672),9999=>array(35,170,898,521),10000=>array(62,19,849,578),10001=>array(36,135,908,555),10002=>array(51,135,923,555),10003=>array(18,-10,722,706),10004=>array(34,-9,796,765),10005=>array(47,0,715,668),10006=>array(46,0,714,668),10007=>array(0,-58,567,638),10008=>array(25,-67,650,682),10009=>array(35,0,728,693),10010=>array(34,0,727,693),10011=>array(35,0,724,689),10012=>array(35,0,718,683),10013=>array(35,0,460,690),10014=>array(9,0,542,690),10015=>array(38,0,499,690),10016=>array(36,94,542,600),10017=>array(29,-12,663,720),10018=>array(37,-11,750,702),10019=>array(34,0,755,719),10020=>array(34,0,755,719),10021=>array(36,0,755,719),10022=>array(37,0,756,719),10023=>array(38,0,757,719),10025=>array(37,0,786,720),10026=>array(31,-13,757,713),10027=>array(49,0,792,719),10028=>array(37,0,786,719),10029=>array(42,0,791,719),10030=>array(34,0,783,719),10031=>array(35,-14,795,718),10032=>array(49,1,873,718),10033=>array(29,0,714,719),10034=>array(18,0,706,719),10035=>array(35,0,714,679),10036=>array(35,0,756,721),10037=>array(47,0,745,698),10038=>array(37,0,659,699),10039=>array(35,0,741,706),10040=>array(35,0,733,698),10041=>array(35,0,757,729),10042=>array(35,0,725,688),10043=>array(31,0,675,719),10044=>array(34,7,674,728),10045=>array(13,0,669,719),10046=>array(21,0,680,719),10047=>array(35,0,791,737),10048=>array(35,0,780,728),10049=>array(35,0,754,719),10050=>array(44,-14,745,695),10051=>array(28,0,679,719),10052=>array(32,0,655,696),10053=>array(29,0,667,696),10054=>array(1,0,688,687),10055=>array(30,0,757,719),10056=>array(42,-7,745,696),10057=>array(42,30,670,663),10058=>array(60,0,731,718),10059=>array(26,-21,759,711),10061=>array(41,-33,832,638),10063=>array(23,0,739,714),10064=>array(23,0,739,714),10065=>array(23,0,735,714),10066=>array(23,0,735,714),10070=>array(36,-12,749,701),10072=>array(29,0,109,712),10073=>array(29,0,248,712),10074=>array(29,0,386,712),10075=>array(56,265,336,706),10076=>array(56,265,336,706),10077=>array(38,265,630,706),10078=>array(38,265,630,706),10081=>array(87,-157,666,727),10082=>array(60,-14,484,716),10083=>array(28,-14,516,711),10084=>array(35,0,875,703),10085=>array(38,0,644,764),10086=>array(76,-15,681,709),10087=>array(0,110,760,514),10102=>array(35,-14,753,705),10103=>array(35,-14,753,705),10104=>array(35,-14,753,705),10105=>array(35,-14,753,705),10106=>array(35,-14,753,705),10107=>array(35,-14,753,705),10108=>array(35,-14,753,705),10109=>array(35,-14,753,705),10110=>array(35,-14,753,705),10111=>array(35,-14,753,705),10112=>array(35,-14,753,705),10113=>array(35,-14,753,705),10114=>array(35,-14,753,705),10115=>array(35,-14,753,705),10116=>array(35,-14,753,705),10117=>array(35,-14,753,705),10118=>array(35,-14,753,705),10119=>array(35,-14,753,705),10120=>array(35,-14,753,705),10121=>array(35,-14,753,705),10122=>array(35,-14,753,705),10123=>array(35,-14,753,705),10124=>array(35,-14,753,705),10125=>array(35,-14,753,705),10126=>array(35,-14,753,705),10127=>array(35,-14,753,705),10128=>array(35,-14,753,705),10129=>array(35,-14,753,705),10130=>array(35,-14,753,705),10131=>array(35,-14,753,705),10132=>array(22,66,879,640),10136=>array(106,19,675,558),10137=>array(33,73,909,520),10138=>array(121,-28,619,578),10139=>array(28,73,890,603),10140=>array(38,70,891,636),10141=>array(82,137,843,554),10142=>array(82,137,846,554),10143=>array(35,155,799,536),10144=>array(36,94,838,594),10145=>array(13,94,815,594),10146=>array(35,82,889,610),10147=>array(35,82,889,610),10148=>array(103,147,845,543),10149=>array(42,123,900,578),10150=>array(42,55,901,509),10151=>array(45,-85,418,772),10152=>array(21,-68,868,755),10153=>array(36,43,813,648),10154=>array(41,43,807,648),10155=>array(61,129,832,585),10156=>array(61,129,832,585),10157=>array(37,44,665,651),10158=>array(37,44,665,651),10159=>array(38,93,836,620),10161=>array(38,69,836,596),10162=>array(15,0,746,730),10163=>array(23,128,934,561),10164=>array(42,2,725,685),10165=>array(27,166,838,525),10166=>array(20,5,703,685),10167=>array(93,0,791,694),10168=>array(57,166,886,523),10169=>array(98,13,792,710),10170=>array(35,192,805,498),10171=>array(28,157,858,533),10172=>array(83,199,849,501),10173=>array(15,147,949,549),10174=>array(41,97,889,579),12289=>array(94,-86,336,167),12290=>array(86,-54,373,235),12291=>array(305,220,695,527),12292=>array(100,-35,933,800),12293=>array(137,5,781,779),12294=>array(148,4,839,695),12295=>array(106,-26,920,790),12296=>array(587,-69,921,837),12297=>array(79,-69,413,837),12298=>array(501,-69,950,837),12299=>array(50,-69,499,837),12300=>array(559,349,900,837),12301=>array(100,-68,446,419),12302=>array(560,349,930,835),12303=>array(70,-69,444,421),12304=>array(611,-69,900,837),12305=>array(100,-69,389,837),12306=>array(173,-18,827,735),12307=>array(144,20,845,750),12308=>array(625,-75,900,844),12309=>array(100,-75,375,844),12310=>array(570,-73,930,845),12311=>array(69,-73,429,845),12312=>array(649,-73,877,835),12313=>array(124,-74,352,834),12314=>array(578,-81,861,820),12315=>array(121,-82,404,819),12316=>array(39,289,961,466),12317=>array(535,523,901,853),12318=>array(100,523,466,853),12319=>array(181,-53,547,277),12320=>array(89,66,911,689),12321=>array(445,46,525,715),12322=>array(339,48,660,714),12323=>array(255,47,734,717),12324=>array(153,34,769,707),12325=>array(285,35,742,747),12326=>array(184,255,821,671),12327=>array(185,167,823,691),12328=>array(181,104,816,707),12329=>array(206,35,844,743),12330=>array(112,1,375,265),12331=>array(111,513,375,776),12332=>array(627,514,889,778),12333=>array(624,1,888,264),12334=>array(85,311,237,462),12335=>array(83,207,237,564),12336=>array(68,285,931,479),12337=>array(284,-60,729,810),12338=>array(199,-56,876,814),12339=>array(174,-28,732,782),12340=>array(128,-28,898,782),12341=>array(232,-46,726,796),12342=>array(106,-26,920,790),12343=>array(61,-53,920,827),12351=>array(241,-70,759,836),12353=>array(187,47,786,720),12354=>array(113,-60,867,781),12355=>array(217,45,802,670),12356=>array(144,-30,876,760),12357=>array(191,42,750,687),12358=>array(113,-36,810,759),12359=>array(169,54,811,709),12360=>array(90,-23,881,787),12361=>array(185,66,791,704),12362=>array(102,-12,864,796),12363=>array(80,-31,857,806),12364=>array(58,-31,944,815),12365=>array(99,-31,822,811),12366=>array(100,-30,947,833),12367=>array(145,-22,766,776),12368=>array(145,-22,914,821),12369=>array(162,-55,914,782),12370=>array(97,-62,959,839),12371=>array(163,7,857,716),12372=>array(116,10,869,807),12373=>array(98,-31,814,789),12374=>array(94,-31,925,821),12375=>array(207,-18,857,769),12376=>array(185,-18,905,821),12377=>array(114,-62,886,773),12378=>array(89,-62,915,863),12379=>array(98,-16,879,760),12380=>array(72,-16,938,863),12381=>array(102,-35,887,751),12382=>array(80,-35,925,807),12383=>array(119,-16,881,797),12384=>array(89,-16,905,807),12385=>array(143,-21,844,799),12386=>array(109,-21,905,859),12387=>array(175,123,771,603),12388=>array(122,47,868,645),12389=>array(97,57,895,873),12390=>array(90,-25,856,720),12391=>array(90,-25,903,720),12392=>array(163,10,823,775),12393=>array(163,10,911,810),12394=>array(80,-22,907,800),12395=>array(131,-8,875,779),12396=>array(105,-6,909,782),12397=>array(88,-15,903,773),12398=>array(115,-18,882,714),12399=>array(111,-30,896,774),12400=>array(84,-30,931,840),12401=>array(95,-30,944,843),12402=>array(123,-7,938,742),12403=>array(89,-7,921,840),12404=>array(103,-12,918,861),12405=>array(73,-9,924,757),12406=>array(64,-9,915,840),12407=>array(50,-9,918,861),12408=>array(86,66,909,662),12409=>array(86,66,909,806),12410=>array(66,66,889,827),12411=>array(110,-23,898,771),12412=>array(79,-23,924,823),12413=>array(94,-23,942,827),12414=>array(126,-24,892,797),12415=>array(115,-33,888,772),12416=>array(121,-17,905,789),12417=>array(130,-30,870,796),12418=>array(112,-9,858,789),12419=>array(173,48,804,710),12420=>array(99,-29,887,789),12421=>array(202,34,795,712),12422=>array(135,-48,878,792),12423=>array(192,96,804,699),12424=>array(116,21,879,780),12425=>array(144,-17,817,780),12426=>array(193,-81,777,770),12427=>array(82,11,836,767),12428=>array(105,-29,911,774),12429=>array(100,-11,857,760),12430=>array(160,62,798,700),12431=>array(80,-14,874,782),12432=>array(118,-5,879,745),12433=>array(86,1,895,774),12434=>array(115,-24,853,805),12435=>array(90,-8,906,778),12436=>array(103,-36,940,786),12441=>array(641,603,869,807),12442=>array(703,648,918,861),12443=>array(503,603,731,807),12444=>array(490,648,705,861),12445=>array(153,39,808,744),12446=>array(153,39,827,744),12449=>array(199,54,815,665),12450=>array(94,-61,920,751),12451=>array(218,66,759,704),12452=>array(121,-44,833,800),12453=>array(225,59,789,694),12454=>array(125,-47,880,803),12455=>array(189,91,810,630),12456=>array(80,0,915,735),12457=>array(184,61,822,683),12458=>array(96,-45,952,787),12459=>array(88,-41,858,794),12460=>array(88,-41,888,831),12461=>array(73,-45,901,803),12462=>array(71,-54,930,821),12463=>array(120,-49,857,815),12464=>array(77,-51,924,849),12465=>array(64,-48,908,813),12466=>array(64,-48,908,835),12467=>array(98,-23,859,734),12468=>array(81,-25,910,877),12469=>array(84,-59,917,788),12470=>array(64,-59,966,799),12471=>array(83,-39,904,789),12472=>array(79,-39,900,799),12473=>array(82,-52,952,728),12474=>array(56,-52,946,867),12475=>array(87,-5,912,786),12476=>array(81,-3,900,800),12477=>array(131,-51,841,780),12478=>array(131,-51,876,831),12479=>array(120,-60,851,805),12480=>array(60,-60,910,859),12481=>array(87,-54,921,813),12482=>array(77,-54,930,813),12483=>array(189,61,752,663),12484=>array(89,-47,845,774),12485=>array(101,-47,890,829),12486=>array(73,-61,908,740),12487=>array(73,-61,948,757),12488=>array(291,-46,850,787),12489=>array(325,-44,879,790),12490=>array(82,-63,915,786),12491=>array(77,16,911,711),12492=>array(116,-54,863,734),12493=>array(65,-51,926,786),12494=>array(130,-49,855,740),12495=>array(72,-29,928,791),12496=>array(47,-32,944,799),12497=>array(47,-32,944,837),12498=>array(163,-5,879,770),12499=>array(150,-5,930,799),12500=>array(137,-5,944,799),12501=>array(151,-58,855,732),12502=>array(107,-60,920,886),12503=>array(89,-60,964,857),12504=>array(57,24,937,651),12505=>array(57,24,937,685),12506=>array(57,24,937,685),12507=>array(70,-45,913,785),12508=>array(70,-45,913,821),12509=>array(70,-45,913,849),12510=>array(113,-31,887,729),12511=>array(104,-43,892,769),12512=>array(80,-26,927,792),12513=>array(108,-35,835,787),12514=>array(81,-6,916,739),12515=>array(203,48,790,686),12516=>array(104,-48,884,801),12517=>array(180,93,801,636),12518=>array(75,-4,909,730),12519=>array(205,80,765,640),12520=>array(105,-27,860,730),12521=>array(104,-57,873,748),12522=>array(213,-53,790,768),12523=>array(62,-45,936,788),12524=>array(203,-29,893,788),12525=>array(134,-24,848,730),12526=>array(224,51,769,636),12527=>array(124,-54,867,731),12528=>array(83,-45,918,784),12529=>array(76,-5,910,730),12530=>array(123,-53,863,753),12531=>array(107,-33,896,754),12532=>array(107,-54,884,839),12533=>array(199,57,767,690),12534=>array(179,43,809,694),12535=>array(92,-58,952,834),12536=>array(73,-45,953,843),12537=>array(82,-5,977,861),12538=>array(107,-54,947,846),12539=>array(161,311,313,462),12540=>array(83,339,917,429),12541=>array(271,-27,738,666),12542=>array(271,-27,766,807),12549=>array(157,-41,845,819),12550=>array(113,-35,861,812),12551=>array(149,51,851,697),12552=>array(147,44,849,718),12553=>array(98,-41,843,819),12554=>array(100,-45,900,783),12555=>array(151,-45,840,758),12556=>array(98,-35,843,817),12557=>array(133,-41,806,802),12558=>array(121,-34,879,738),12559=>array(60,-32,871,738),12560=>array(232,-43,676,791),12561=>array(257,-41,677,801),12562=>array(121,-28,879,738),12563=>array(105,6,895,782),12564=>array(142,-33,756,796),12565=>array(61,-30,825,752),12566=>array(227,-15,773,734),12567=>array(149,-35,811,746),12568=>array(113,-39,887,806),12569=>array(149,-32,883,752),12570=>array(163,-37,837,783),12571=>array(121,2,879,738),12572=>array(121,2,879,794),12573=>array(109,8,891,773),12574=>array(112,-39,871,754),12575=>array(82,-10,934,729),12576=>array(163,-48,866,790),12577=>array(111,-20,887,723),12578=>array(133,-37,849,742),12579=>array(166,-33,838,775),12580=>array(94,-21,872,797),12581=>array(164,54,847,751),12582=>array(88,-21,903,731),12583=>array(129,369,871,449),12584=>array(124,-4,877,753),12585=>array(157,29,843,711),12586=>array(87,-26,885,736),12587=>array(88,-21,903,734),12588=>array(60,-32,871,788),12593=>array(129,91,796,665),12594=>array(114,91,844,665),12595=>array(114,78,880,665),12596=>array(204,90,873,665),12597=>array(144,78,880,666),12598=>array(144,91,876,666),12599=>array(184,90,838,664),12600=>array(149,90,888,665),12601=>array(173,90,827,665),12602=>array(149,85,842,665),12603=>array(149,85,852,665),12604=>array(149,85,853,665),12605=>array(149,78,880,665),12606=>array(149,85,855,665),12607=>array(149,85,868,665),12608=>array(149,85,876,666),12609=>array(215,90,785,665),12610=>array(215,90,785,665),12611=>array(145,88,855,665),12612=>array(145,78,880,664),12613=>array(107,76,882,663),12614=>array(110,78,890,663),12615=>array(187,92,813,666),12616=>array(109,76,880,665),12617=>array(105,80,895,666),12618=>array(109,76,880,665),12619=>array(206,90,790,663),12620=>array(189,91,837,664),12621=>array(187,90,813,665),12622=>array(156,88,844,665),12623=>array(421,-64,711,842),12624=>array(345,-64,655,842),12625=>array(381,-64,676,842),12626=>array(340,-64,661,842),12627=>array(302,-65,597,841),12628=>array(186,-63,677,843),12629=>array(332,-64,626,842),12630=>array(226,-63,687,843),12631=>array(60,197,940,614),12632=>array(46,-64,931,842),12633=>array(51,-64,892,842),12634=>array(61,-64,857,842),12635=>array(60,197,940,615),12636=>array(79,76,921,554),12637=>array(68,-65,882,841),12638=>array(53,-63,912,843),12639=>array(70,-64,867,842),12640=>array(72,111,928,589),12641=>array(57,357,943,436),12642=>array(67,-64,867,842),12643=>array(462,-64,538,842),12645=>array(169,93,848,665),12646=>array(169,90,888,665),12647=>array(169,78,880,665),12648=>array(169,93,886,665),12649=>array(85,78,960,665),12650=>array(149,85,888,665),12651=>array(85,78,960,665),12652=>array(149,85,886,665),12653=>array(149,85,885,665),12654=>array(142,89,853,665),12655=>array(142,78,880,665),12656=>array(142,89,886,665),12657=>array(232,78,768,711),12658=>array(145,88,844,665),12659=>array(145,88,888,665),12660=>array(111,78,889,665),12661=>array(101,78,933,665),12662=>array(140,78,885,666),12663=>array(145,88,855,665),12664=>array(232,78,768,725),12665=>array(197,78,803,728),12666=>array(130,78,844,665),12667=>array(130,78,858,665),12668=>array(130,78,888,665),12669=>array(125,78,868,665),12670=>array(117,78,883,666),12671=>array(258,93,742,659),12672=>array(99,214,901,562),12673=>array(232,131,768,551),12674=>array(125,78,880,663),12675=>array(125,119,886,664),12676=>array(202,78,798,714),12677=>array(100,91,900,666),12678=>array(182,78,818,573),12679=>array(62,-64,936,842),12680=>array(62,-64,892,842),12681=>array(62,-64,867,842),12682=>array(52,-64,881,842),12683=>array(52,-63,902,843),12684=>array(52,-64,867,842),12685=>array(430,319,570,459),12686=>array(316,-98,634,855),12688=>array(468,391,532,889),12689=>array(302,391,760,889),12690=>array(56,620,459,664),12691=>array(43,481,468,770),12692=>array(47,446,470,803),12693=>array(62,415,456,817),12694=>array(45,427,479,845),12695=>array(70,401,449,858),12696=>array(44,401,477,827),12697=>array(73,399,448,839),12698=>array(82,423,470,815),12699=>array(39,401,485,834),12700=>array(46,401,469,834),12701=>array(35,401,482,832),12702=>array(30,412,488,859),12703=>array(38,401,490,846),12800=>array(72,-21,977,798),12801=>array(72,-21,977,798),12802=>array(72,-21,977,798),12803=>array(72,-21,977,798),12804=>array(72,-21,977,798),12805=>array(72,-21,977,798),12806=>array(72,-21,977,798),12807=>array(72,-21,977,798),12808=>array(72,-21,977,798),12809=>array(72,-21,977,798),12810=>array(72,-21,977,798),12811=>array(72,-21,977,798),12812=>array(72,-21,977,798),12813=>array(72,-21,977,798),12814=>array(72,-21,977,798),12815=>array(72,-21,977,798),12816=>array(72,-21,977,798),12817=>array(72,-21,977,798),12818=>array(72,-21,977,798),12819=>array(72,-21,977,798),12820=>array(72,-21,977,798),12821=>array(72,-21,977,798),12822=>array(72,-21,977,798),12823=>array(72,-21,977,798),12824=>array(72,-21,977,798),12825=>array(72,-21,977,798),12826=>array(72,-21,977,798),12827=>array(72,-21,977,798),12828=>array(72,-21,977,798),12832=>array(72,-21,976,798),12833=>array(72,-21,976,798),12834=>array(72,-21,976,798),12835=>array(72,-21,976,798),12836=>array(72,-21,976,798),12837=>array(72,-21,976,798),12838=>array(72,-21,976,798),12839=>array(72,-21,976,798),12840=>array(72,-21,976,798),12841=>array(72,-21,976,798),12842=>array(72,-21,976,798),12843=>array(72,-21,976,798),12844=>array(72,-21,976,798),12845=>array(72,-21,976,798),12846=>array(72,-21,976,803),12847=>array(72,-21,976,798),12848=>array(72,-21,976,798),12849=>array(72,-21,976,798),12850=>array(72,-21,976,798),12851=>array(72,-21,976,798),12852=>array(72,-21,976,798),12853=>array(72,-21,976,798),12854=>array(72,-21,976,798),12855=>array(72,-21,976,798),12856=>array(72,-21,976,798),12857=>array(72,-21,976,798),12858=>array(72,-21,976,798),12859=>array(72,-21,976,798),12860=>array(72,-21,976,798),12861=>array(72,-21,976,803),12862=>array(72,-21,976,798),12863=>array(72,-21,976,798),12864=>array(72,-21,976,798),12865=>array(72,-21,976,798),12866=>array(72,-21,976,798),12867=>array(72,-21,976,798),12896=>array(30,-82,970,859),12897=>array(30,-82,970,859),12898=>array(30,-82,970,859),12899=>array(30,-82,970,859),12900=>array(30,-82,970,859),12901=>array(30,-82,970,859),12902=>array(30,-82,970,859),12903=>array(30,-82,970,859),12904=>array(30,-82,970,859),12905=>array(30,-82,970,859),12906=>array(30,-82,970,859),12907=>array(30,-82,970,859),12908=>array(30,-82,970,859),12909=>array(30,-82,970,859),12910=>array(30,-82,970,859),12911=>array(30,-82,970,859),12912=>array(30,-82,970,859),12913=>array(30,-82,970,859),12914=>array(30,-82,970,859),12915=>array(30,-82,970,859),12916=>array(30,-82,970,859),12917=>array(30,-82,970,859),12918=>array(30,-82,970,859),12919=>array(30,-82,970,859),12920=>array(30,-82,970,859),12921=>array(30,-82,970,859),12922=>array(30,-82,970,859),12923=>array(30,-82,970,859),12927=>array(30,-82,970,859),12928=>array(30,-82,970,859),12929=>array(30,-82,970,859),12930=>array(30,-82,970,859),12931=>array(30,-82,970,859),12932=>array(30,-82,970,859),12933=>array(30,-82,970,859),12934=>array(30,-82,970,859),12935=>array(30,-82,970,859),12936=>array(30,-82,970,859),12937=>array(30,-82,970,859),12938=>array(30,-82,970,859),12939=>array(30,-82,970,859),12940=>array(30,-82,970,859),12941=>array(30,-82,970,859),12942=>array(30,-82,970,859),12943=>array(30,-82,970,859),12944=>array(30,-82,970,859),12945=>a