From 8e2c6c8e91ebcc1257f359148dc5dc6857ddf309 Mon Sep 17 00:00:00 2001 From: Ebersold Date: Wed, 29 Dec 2021 11:19:44 +0100 Subject: [PATCH] Status of public web site 2021.12.29 --- README.php | 16 - accounting/accueil.en_US.UTF-8.xml | 73 - accounting/accueil.fr_FR.UTF-8.xml | 75 - accounting/budget.fr_FR.UTF-8.xml | 13 - accounting/contact.en_US.UTF-8.xml | 34 - accounting/contact.fr_FR.UTF-8.xml | 34 - accounting/copropriete.fr_FR.UTF-8.xml | 8 - accounting/donates.fr_FR.UTF-8.xml | 30 - accounting/fournisseur.fr_FR.UTF-8.xml | 13 - accounting/journaux.fr_FR.UTF-8.xml | 17 - accounting/liens_syndic.en_US.UTF-8.xml | 21 - accounting/liens_syndic.fr_FR.UTF-8.xml | 31 - accounting/plan_comptable.fr_FR.UTF-8.xml | 10 - accounting/products.en_US.UTF-8.xml | 41 - accounting/products.fr_FR.UTF-8.xml | 35 - accounting/services.en_US.UTF-8.xml | 21 - accounting/services.fr_FR.UTF-8.xml | 32 - accueil.en_US.UTF-8.xml | 75 +- accueil.fr_FR.UTF-8.xml | 38 +- activite.en_US.UTF-8.xml | 54 +- activite.fr_FR.UTF-8.xml | 64 +- app/admin/view/index.fr_FR.UTF-8.xml | 10 +- app/basic.php | 81 +- app/common.php | 34 +- app/compta/Accounting.mysql | 2465 -- app/compta/Accounting.sql | 864 - app/compta/AccountingCreate.mysql | 579 - app/compta/Budgets.mysql | 85 - app/compta/InitAccounting.mysql | 681 - app/compta/booking.php | 70 - app/compta/budget.js | 302 - app/compta/budget.php | 130 - app/compta/budget_edit.xml | 58 - app/compta/copro.js | 760 - app/compta/copro_decompte.xml | 116 - app/compta/copro_entretien.xml | 47 - app/compta/copro_pay.xml | 75 - app/compta/copro_role.xml | 53 - app/compta/copro_users.xml | 61 - app/compta/exercice.js | 142 - app/compta/exercice.xml | 62 - app/compta/identity.php | 193 - app/compta/index.php | 117 - app/compta/index.xml | 240 - app/compta/journaux.js | 306 - app/compta/journaux.xml | 240 - app/compta/jrnx.xml | 58 - app/compta/jrnx_detail.xml | 72 - app/compta/jrnx_record.xml | 68 - app/compta/ledger_church.xml | 396 - app/compta/ledger_create.xml | 199 - app/compta/ledger_syndic.xml | 537 - app/compta/lot.xml | 119 - app/compta/lot_attribuer.xml | 51 - app/compta/lot_charge.xml | 126 - app/compta/lots.js | 339 - app/compta/parametre.js | 188 - app/compta/parametre.xml | 71 - app/compta/pcmn.js | 321 - app/compta/pcmn.php | 105 - app/compta/pcmn.xml | 395 - app/compta/reports/decompte_charge.php | 158 - app/compta/reports/recu_taxe.php | 195 - app/compta/reports/syndic_annexe1.php | 689 - app/compta/reports/syndic_annexes.php | 1124 - app/compta/retrieve.php | 136 - app/compta/supplier.js | 450 - app/compta/supplier_account.xml | 118 - app/compta/supplier_add.xml | 101 - app/compta/supplier_bill.xml | 120 - app/compta/supplier_pay.xml | 110 - app/compta/supplier_remove.xml | 240 - app/compta/syndic.php | 274 - app/compta/upload.php | 30 - app/compta/users.xml | 240 - app/config/analystictracking_syndic.php | 13 - app/config/andre.php | 104 +- app/config/config.php | 2 +- app/config/mysql.conf.php | 83 + app/config/mysql.conf.php.example | 10 +- app/config/trinity.php | 9 +- app/member/annuaire.mysql | 222 - app/member/class.db_user.php | 110 +- app/member/class.json_db_user.php | 113 - app/member/index.php | 58 - app/member/login.php | 2 +- app/member/sql-requests.xml | 15 +- app/registration/register.php | 14 +- app/xsl/generate_html.xsl | 2 +- app/xsl/gui-wizard.xsl | 98 - app/xsl/gui.xsl | 501 +- article.xsl | 75 + .../06/06_asn1_sans_craintes.fr_FR.UTF-8.xml | 6 +- .../06/06_eloise_blog_page.en_US.UTF-8.xml | 8 +- c2xmi/c2xmi.en_US.UTF-8.xml | 69 + c2xmi/c2xmi.fr_FR.UTF-8.xml | 69 + c2xmi/news.xml | 35 + calendar.en_US.UTF-8.xml | 13 +- calendar.fr_FR.UTF-8.xml | 15 +- calendar_doc.xml | 43 +- contact.en_US.UTF-8.xml | 2 +- contact.fr_FR.UTF-8.xml | 6 +- css/andre/default.css | 150 +- css/andre/ie_ahp.css | 2 +- css/andre/min-andre.php | 18 - css/andre/print.css | 0 css/andre/theme-andre-bottom.php | 52 - css/andre/theme-andre-menuh.php | 159 - css/andre/theme-andre.css | 18 + css/andre/theme-andre.php | 1234 - css/andre/theme-syndic.css | 1320 - css/cssmin-v3.0.1.php | 5082 --- css/xgui/default.css | 18 +- css/xgui/theme-andre.css | 211 +- css/xgui/theme-syndic.css | 344 - css/xgui/theme.css | 2 + cv-2011-05-12.en_US.UTF-8.xml | 239 +- cv-2011-05-12.fr_FR.UTF-8.xml | 274 +- cv.xsl | 279 + documents/contact.fr_FR.UTF-8.xml | 4 + documents/uml/uml_profile.en_US.UTF-8.xml | 51 + favicon.ico | Bin 0 -> 1150 bytes footer.xsl | 16 + generate_header.xsl | 134 + generate_html.xsl | 251 + googlea757b08c9f17b183.html | 1 + header_php.xml | 4 +- images/AnonymousArray.gif | 0 images/AnonymousArray.jpg | Bin 0 -> 13624 bytes images/AnonymousArray.png | Bin 0 -> 15383 bytes images/CstaInsightMain.jpg | Bin 0 -> 372600 bytes images/Horse278.png | Bin 0 -> 18133 bytes images/TypeRedefinition.jpg | Bin 0 -> 8182 bytes images/accounting/NewMenuHBlack60px.png | Bin 306 -> 0 bytes images/accounting/barre_etat.png | Bin 6701 -> 0 bytes images/accounting/book-dolars.png | Bin 1499 -> 0 bytes images/accounting/budget_edit.png | Bin 23689 -> 0 bytes images/accounting/budget_liste.png | Bin 7313 -> 0 bytes images/accounting/budget_menu.png | Bin 1833 -> 0 bytes images/accounting/building.jpg | Bin 66146 -> 0 bytes images/accounting/menu_coprorpiete.png | Bin 8728 -> 0 bytes images/accounting/payer_facture.png | Bin 9436 -> 0 bytes images/accounting/saisie_facture.png | Bin 23463 -> 0 bytes images/accounting/syndic-header-n.png | Bin 14533 -> 0 bytes images/accounting/syndic-logo.png | Bin 8673 -> 0 bytes images/alcatel_oxo_nicolas_cle_.png | Bin 0 -> 1522 bytes images/bookkeeping-church.png | Bin 24671 -> 0 bytes images/bookkeeping.png | Bin 23915 -> 0 bytes images/documents/logo-cma.svg | 91 + images/{icons/16x16 => }/home-gray.png | Bin images/{icons => }/ico_alerte.png | Bin images/{icons => }/ico_facebook.png | Bin images/{icons => }/ico_login.png | Bin images/{icons => }/ico_nav.png | Bin images/{icons => }/ico_newsletter.png | Bin images/{icons => }/ico_rss.png | Bin images/{icons => }/ico_twitter.png | Bin images/{icons => }/ico_user.png | Bin images/icons/16x16/add.png | Bin 3374 -> 0 bytes images/icons/16x16/arrow_down.gif | Bin 52 -> 0 bytes images/icons/16x16/arrow_up.gif | Bin 52 -> 0 bytes images/icons/16x16/bookmark.gif | Bin 594 -> 0 bytes images/icons/16x16/btn_help16.png | Bin 515 -> 0 bytes images/icons/16x16/budget.png | Bin 1006 -> 0 bytes images/icons/16x16/close_hov.gif | Bin 323 -> 0 bytes images/icons/16x16/contact.png | Bin 3428 -> 0 bytes images/icons/16x16/delete.gif | Bin 350 -> 0 bytes images/icons/16x16/drop4.jpg | Bin 1229 -> 0 bytes images/icons/16x16/edit.gif | Bin 533 -> 0 bytes images/icons/16x16/edit_colums.gif | Bin 578 -> 0 bytes images/icons/16x16/edit_list.gif | Bin 577 -> 0 bytes images/icons/16x16/error.gif | Bin 339 -> 0 bytes images/icons/16x16/exe.gif | Bin 1053 -> 0 bytes images/icons/16x16/exprt_excel.gif | Bin 230 -> 0 bytes images/icons/16x16/exprt_file.gif | Bin 364 -> 0 bytes images/icons/16x16/exprt_pdf.gif | Bin 358 -> 0 bytes images/icons/16x16/favorite.gif | Bin 349 -> 0 bytes images/icons/16x16/feed.png | Bin 800 -> 0 bytes images/icons/16x16/flash.gif | Bin 1010 -> 0 bytes images/icons/16x16/help.gif | Bin 622 -> 0 bytes images/icons/16x16/home.png | Bin 3478 -> 0 bytes images/icons/16x16/invite.png | Bin 752 -> 0 bytes images/icons/16x16/list.gif | Bin 595 -> 0 bytes images/icons/16x16/mail.png | Bin 3277 -> 0 bytes images/icons/16x16/mail16.png | Bin 617 -> 0 bytes images/icons/16x16/manual.png | Bin 574 -> 0 bytes images/icons/16x16/modify.gif | Bin 357 -> 0 bytes images/icons/16x16/network.png | Bin 3549 -> 0 bytes images/icons/16x16/pdf-a.png | Bin 744 -> 0 bytes images/icons/16x16/personal-a.png | Bin 706 -> 0 bytes images/icons/16x16/print.gif | Bin 612 -> 0 bytes images/icons/16x16/printer-a.png | Bin 1150 -> 0 bytes images/icons/16x16/refresh.gif | Bin 211 -> 0 bytes images/icons/16x16/related_obj.gif | Bin 599 -> 0 bytes images/icons/16x16/rss.png | Bin 745 -> 0 bytes images/icons/16x16/search.png | Bin 841 -> 0 bytes images/icons/16x16/select.png | Bin 3399 -> 0 bytes images/icons/16x16/sendmail.gif | Bin 390 -> 0 bytes images/icons/16x16/tabular.gif | Bin 249 -> 0 bytes images/icons/16x16/tested_by_obj.gif | Bin 588 -> 0 bytes images/icons/16x16/warning.png | Bin 3957 -> 0 bytes images/icons/29x29/picto-comptes.png | Bin 888 -> 0 bytes images/icons/29x29/picto-epargne.png | Bin 998 -> 0 bytes images/icons/29x29/picto-titres.png | Bin 1140 -> 0 bytes images/icons/29x29/picto_contrat.png | Bin 4152 -> 0 bytes images/icons/ico_home_gray.png | Bin 466 -> 0 bytes images/icons/news.svg | 80 - images/icons/style.svg | 74 - images/icons/summary.svg | 80 - images/icons/title.svg | 74 - images/palette_juliane_krug_01.png | Bin 0 -> 5622 bytes index.php | 95 +- js/scriptaculus/prototype.js | 4053 +-- .../filemanager/connectors/php/config.php | 25 +- js/xgui/aebw.js | 84 +- js/xgui/aebw.sh | 2 - js/xgui/xgui.js | 7 +- js/xgui/xgui_asn1.js | 16 +- js/xgui/xgui_dialogbox.js | 18 +- js/xgui/xgui_json.js | 69 +- js/xgui/xgui_jsonrpc.js | 2 +- js/xgui/xgui_tab.js | 19 - js/xgui/xgui_table.js | 28 +- js/xgui/xgui_wizard.js | 66 - linux.en_US.UTF-8.xml | 7 +- linux.fr_FR.UTF-8.xml | 7 +- linux_embedded.en_US.UTF-8.xml | 56 + linux_embedded.fr_FR.UTF-8.xml | 70 + linux_rt.en_US.UTF-8.xml | 8 +- linux_rt.fr_FR.UTF-8.xml | 66 +- locale/fr_FR.UTF-8.mo | Bin 2649 -> 0 bytes locale/fr_FR.UTF-8.po | 268 - locale/fr_FR/LC_MESSAGES/andre.mo | Bin 2649 -> 0 bytes loisirs.en_US.UTF-8.xml | 18 +- loisirs.fr_FR.UTF-8.xml | 7 +- news.xsl | 83 + phplib/CaptchaSecurityImages.php | 1 + phplib/class.crontab.php | 31 - phplib/dl.tgz | Bin 0 -> 127608 bytes phplib/fpdf/FAQ.htm | 556 +- phplib/fpdf/changelog.htm | 163 + phplib/fpdf/doc/__construct.htm | 63 + phplib/fpdf/doc/acceptpagebreak.htm | 132 +- phplib/fpdf/doc/addfont.htm | 116 +- phplib/fpdf/doc/addlink.htm | 54 +- phplib/fpdf/doc/addpage.htm | 103 +- phplib/fpdf/doc/aliasnbpages.htm | 92 +- phplib/fpdf/doc/cell.htm | 210 +- phplib/fpdf/doc/close.htm | 44 +- phplib/fpdf/doc/error.htm | 51 +- phplib/fpdf/doc/footer.htm | 74 +- phplib/fpdf/doc/getpageheight.htm | 18 + phplib/fpdf/doc/getpagewidth.htm | 18 + phplib/fpdf/doc/getstringwidth.htm | 46 +- phplib/fpdf/doc/getx.htm | 42 +- phplib/fpdf/doc/gety.htm | 42 +- phplib/fpdf/doc/header.htm | 78 +- phplib/fpdf/doc/image.htm | 187 +- phplib/fpdf/doc/index.htm | 116 +- phplib/fpdf/doc/line.htm | 76 +- phplib/fpdf/doc/link.htm | 92 +- phplib/fpdf/doc/ln.htm | 56 +- phplib/fpdf/doc/multicell.htm | 152 +- phplib/fpdf/doc/output.htm | 93 +- phplib/fpdf/doc/pageno.htm | 38 +- phplib/fpdf/doc/rect.htm | 96 +- phplib/fpdf/doc/setauthor.htm | 61 +- phplib/fpdf/doc/setautopagebreak.htm | 66 +- phplib/fpdf/doc/setcompression.htm | 62 +- phplib/fpdf/doc/setcreator.htm | 63 +- phplib/fpdf/doc/setdisplaymode.htm | 92 +- phplib/fpdf/doc/setdrawcolor.htm | 82 +- phplib/fpdf/doc/setfillcolor.htm | 80 +- phplib/fpdf/doc/setfont.htm | 190 +- phplib/fpdf/doc/setfontsize.htm | 50 +- phplib/fpdf/doc/setkeywords.htm | 61 +- phplib/fpdf/doc/setleftmargin.htm | 60 +- phplib/fpdf/doc/setlinewidth.htm | 58 +- phplib/fpdf/doc/setlink.htm | 68 +- phplib/fpdf/doc/setmargins.htm | 74 +- phplib/fpdf/doc/setrightmargin.htm | 56 +- phplib/fpdf/doc/setsubject.htm | 61 +- phplib/fpdf/doc/settextcolor.htm | 80 +- phplib/fpdf/doc/settitle.htm | 61 +- phplib/fpdf/doc/settopmargin.htm | 56 +- phplib/fpdf/doc/setx.htm | 58 +- phplib/fpdf/doc/setxy.htm | 62 +- phplib/fpdf/doc/sety.htm | 62 +- phplib/fpdf/doc/text.htm | 78 +- phplib/fpdf/doc/write.htm | 104 +- phplib/fpdf/font/courier.php | 17 +- phplib/fpdf/font/courierb.php | 10 + phplib/fpdf/font/courierbi.php | 10 + phplib/fpdf/font/courieri.php | 10 + phplib/fpdf/font/helvetica.php | 36 +- phplib/fpdf/font/helveticab.php | 36 +- phplib/fpdf/font/helveticabi.php | 36 +- phplib/fpdf/font/helveticai.php | 36 +- phplib/fpdf/font/symbol.php | 35 +- phplib/fpdf/font/times.php | 36 +- phplib/fpdf/font/timesb.php | 36 +- phplib/fpdf/font/timesbi.php | 36 +- phplib/fpdf/font/timesi.php | 36 +- phplib/fpdf/font/zapfdingbats.php | 35 +- phplib/fpdf/fpdf.css | 44 +- phplib/fpdf/fpdf.php | 3545 +- phplib/fpdf/install.txt | 41 +- phplib/fpdf/license.txt | 6 + phplib/fpdf/{font => }/makefont/cp1250.map | 0 phplib/fpdf/{font => }/makefont/cp1251.map | 0 phplib/fpdf/{font => }/makefont/cp1252.map | 0 phplib/fpdf/{font => }/makefont/cp1253.map | 0 phplib/fpdf/{font => }/makefont/cp1254.map | 0 phplib/fpdf/{font => }/makefont/cp1255.map | 0 phplib/fpdf/{font => }/makefont/cp1257.map | 0 phplib/fpdf/{font => }/makefont/cp1258.map | 0 phplib/fpdf/{font => }/makefont/cp874.map | 0 .../fpdf/{font => }/makefont/iso-8859-1.map | 0 .../fpdf/{font => }/makefont/iso-8859-11.map | 0 .../fpdf/{font => }/makefont/iso-8859-15.map | 0 .../fpdf/{font => }/makefont/iso-8859-16.map | 0 phplib/fpdf/makefont/iso-8859-2.map | 256 + .../fpdf/{font => }/makefont/iso-8859-4.map | 0 .../fpdf/{font => }/makefont/iso-8859-5.map | 0 .../fpdf/{font => }/makefont/iso-8859-7.map | 0 .../fpdf/{font => }/makefont/iso-8859-9.map | 0 phplib/fpdf/{font => }/makefont/koi8-r.map | 0 phplib/fpdf/{font => }/makefont/koi8-u.map | 0 phplib/fpdf/makefont/makefont.php | 451 + phplib/fpdf/makefont/ttfparser.php | 723 + phplib/fpdf/tutorial/20k_c1.txt | 20 +- phplib/fpdf/tutorial/20k_c2.txt | 46 +- phplib/fpdf/tutorial/calligra.php | 49 +- phplib/fpdf/tutorial/calligra.ttf | Bin 40041 -> 40120 bytes phplib/fpdf/tutorial/calligra.z | Bin 25604 -> 22477 bytes phplib/fpdf/tutorial/countries.txt | 30 +- phplib/fpdf/tutorial/index.htm | 41 +- phplib/fpdf/tutorial/logo.png | Bin phplib/fpdf/tutorial/makefont.php | 12 +- phplib/fpdf/tutorial/tuto1.htm | 160 +- phplib/fpdf/tutorial/tuto1.php | 18 +- phplib/fpdf/tutorial/tuto2.htm | 167 +- phplib/fpdf/tutorial/tuto2.php | 82 +- phplib/fpdf/tutorial/tuto3.htm | 237 +- phplib/fpdf/tutorial/tuto3.php | 164 +- phplib/fpdf/tutorial/tuto4.htm | 275 +- phplib/fpdf/tutorial/tuto4.php | 222 +- phplib/fpdf/tutorial/tuto5.htm | 274 +- phplib/fpdf/tutorial/tuto5.php | 203 +- phplib/fpdf/tutorial/tuto6.htm | 337 +- phplib/fpdf/tutorial/tuto6.php | 235 +- phplib/fpdf/tutorial/tuto7.htm | 497 +- phplib/fpdf/tutorial/tuto7.php | 22 +- phplib/fpdf153/FAQ.htm | 284 + phplib/fpdf153/doc/acceptpagebreak.htm | 69 + phplib/fpdf153/doc/addfont.htm | 61 + phplib/fpdf153/doc/addlink.htm | 28 + phplib/fpdf153/doc/addpage.htm | 42 + phplib/fpdf153/doc/aliasnbpages.htm | 47 + phplib/fpdf153/doc/cell.htm | 106 + phplib/fpdf153/doc/close.htm | 23 + phplib/fpdf153/doc/error.htm | 25 + phplib/fpdf153/doc/footer.htm | 39 + phplib/{fpdf => fpdf153}/doc/fpdf.htm | 0 phplib/fpdf153/doc/getstringwidth.htm | 23 + phplib/fpdf153/doc/getx.htm | 22 + phplib/fpdf153/doc/gety.htm | 22 + phplib/fpdf153/doc/header.htm | 41 + phplib/fpdf153/doc/image.htm | 88 + phplib/fpdf153/doc/index.htm | 57 + phplib/fpdf153/doc/line.htm | 38 + phplib/fpdf153/doc/link.htm | 46 + phplib/fpdf153/doc/ln.htm | 28 + phplib/fpdf153/doc/multicell.htm | 76 + phplib/fpdf153/doc/output.htm | 47 + phplib/fpdf153/doc/pageno.htm | 20 + phplib/fpdf153/doc/rect.htm | 48 + phplib/fpdf153/doc/setauthor.htm | 28 + phplib/fpdf153/doc/setautopagebreak.htm | 33 + phplib/fpdf153/doc/setcompression.htm | 31 + phplib/fpdf153/doc/setcreator.htm | 29 + phplib/fpdf153/doc/setdisplaymode.htm | 47 + phplib/fpdf153/doc/setdrawcolor.htm | 41 + phplib/fpdf153/doc/setfillcolor.htm | 40 + phplib/fpdf153/doc/setfont.htm | 98 + phplib/fpdf153/doc/setfontsize.htm | 25 + phplib/fpdf153/doc/setkeywords.htm | 28 + phplib/fpdf153/doc/setleftmargin.htm | 30 + phplib/fpdf153/doc/setlinewidth.htm | 29 + phplib/fpdf153/doc/setlink.htm | 34 + phplib/fpdf153/doc/setmargins.htm | 37 + phplib/fpdf153/doc/setrightmargin.htm | 28 + phplib/fpdf153/doc/setsubject.htm | 28 + phplib/fpdf153/doc/settextcolor.htm | 40 + phplib/fpdf153/doc/settitle.htm | 28 + phplib/fpdf153/doc/settopmargin.htm | 28 + phplib/fpdf153/doc/setx.htm | 29 + phplib/fpdf153/doc/setxy.htm | 31 + phplib/fpdf153/doc/sety.htm | 29 + phplib/fpdf153/doc/text.htm | 39 + phplib/fpdf153/doc/write.htm | 53 + phplib/fpdf153/font/courier.php | 7 + phplib/fpdf153/font/helvetica.php | 15 + phplib/fpdf153/font/helveticab.php | 15 + phplib/fpdf153/font/helveticabi.php | 15 + phplib/fpdf153/font/helveticai.php | 15 + phplib/fpdf153/font/makefont/cp1250.map | 251 + phplib/fpdf153/font/makefont/cp1251.map | 255 + phplib/fpdf153/font/makefont/cp1252.map | 251 + phplib/fpdf153/font/makefont/cp1253.map | 239 + phplib/fpdf153/font/makefont/cp1254.map | 249 + phplib/fpdf153/font/makefont/cp1255.map | 233 + phplib/fpdf153/font/makefont/cp1257.map | 244 + phplib/fpdf153/font/makefont/cp1258.map | 247 + phplib/fpdf153/font/makefont/cp874.map | 225 + phplib/fpdf153/font/makefont/iso-8859-1.map | 256 + phplib/fpdf153/font/makefont/iso-8859-11.map | 248 + phplib/fpdf153/font/makefont/iso-8859-15.map | 256 + phplib/fpdf153/font/makefont/iso-8859-16.map | 256 + .../font/makefont/iso-8859-2.map | 0 phplib/fpdf153/font/makefont/iso-8859-4.map | 256 + phplib/fpdf153/font/makefont/iso-8859-5.map | 256 + phplib/fpdf153/font/makefont/iso-8859-7.map | 250 + phplib/fpdf153/font/makefont/iso-8859-9.map | 256 + phplib/fpdf153/font/makefont/koi8-r.map | 256 + phplib/fpdf153/font/makefont/koi8-u.map | 256 + .../font/makefont/makefont.php | 0 phplib/fpdf153/font/symbol.php | 15 + phplib/fpdf153/font/times.php | 15 + phplib/fpdf153/font/timesb.php | 15 + phplib/fpdf153/font/timesbi.php | 15 + phplib/fpdf153/font/timesi.php | 15 + phplib/fpdf153/font/zapfdingbats.php | 15 + phplib/fpdf153/fpdf.css | 23 + phplib/fpdf153/fpdf.php | 1647 + phplib/{fpdf => fpdf153}/histo.htm | 0 phplib/fpdf153/install.txt | 26 + phplib/fpdf153/tutorial/20k_c1.txt | 10 + phplib/fpdf153/tutorial/20k_c2.txt | 23 + .../{fpdf => fpdf153}/tutorial/calligra.afm | 0 phplib/fpdf153/tutorial/calligra.php | 24 + phplib/fpdf153/tutorial/calligra.ttf | Bin 0 -> 40041 bytes phplib/fpdf153/tutorial/calligra.z | Bin 0 -> 25604 bytes .../tutorial/countries.txt} | 0 phplib/fpdf153/tutorial/index.htm | 21 + phplib/fpdf153/tutorial/logo.png | Bin 0 -> 2373 bytes phplib/{fpdf => fpdf153}/tutorial/logo_pb.png | Bin phplib/fpdf153/tutorial/makefont.php | 6 + phplib/fpdf153/tutorial/tuto1.htm | 84 + phplib/fpdf153/tutorial/tuto1.php | 9 + phplib/fpdf153/tutorial/tuto2.htm | 87 + phplib/fpdf153/tutorial/tuto2.php | 41 + phplib/fpdf153/tutorial/tuto3.htm | 122 + phplib/fpdf153/tutorial/tuto3.php | 83 + phplib/fpdf153/tutorial/tuto4.htm | 143 + phplib/fpdf153/tutorial/tuto4.php | 113 + phplib/fpdf153/tutorial/tuto5.htm | 140 + phplib/fpdf153/tutorial/tuto5.php | 101 + phplib/fpdf153/tutorial/tuto6.htm | 183 + phplib/fpdf153/tutorial/tuto6.php | 122 + phplib/fpdf153/tutorial/tuto7.htm | 310 + phplib/fpdf153/tutorial/tuto7.php | 11 + phplib/fpdf181/FAQ.htm | 272 + phplib/fpdf181/changelog.htm | 163 + phplib/fpdf181/doc/__construct.htm | 63 + phplib/fpdf181/doc/acceptpagebreak.htm | 63 + phplib/fpdf181/doc/addfont.htm | 55 + phplib/fpdf181/doc/addlink.htm | 26 + phplib/fpdf181/doc/addpage.htm | 61 + phplib/fpdf181/doc/aliasnbpages.htm | 45 + phplib/fpdf181/doc/cell.htm | 104 + phplib/fpdf181/doc/close.htm | 21 + phplib/fpdf181/doc/error.htm | 26 + phplib/fpdf181/doc/footer.htm | 35 + phplib/fpdf181/doc/getpageheight.htm | 18 + phplib/fpdf181/doc/getpagewidth.htm | 18 + phplib/fpdf181/doc/getstringwidth.htm | 23 + phplib/fpdf181/doc/getx.htm | 20 + phplib/fpdf181/doc/gety.htm | 20 + phplib/fpdf181/doc/header.htm | 37 + phplib/fpdf181/doc/image.htm | 99 + phplib/fpdf181/doc/index.htm | 59 + phplib/fpdf181/doc/line.htm | 38 + phplib/fpdf181/doc/link.htm | 46 + phplib/fpdf181/doc/ln.htm | 28 + phplib/fpdf181/doc/multicell.htm | 76 + phplib/fpdf181/doc/output.htm | 46 + phplib/fpdf181/doc/pageno.htm | 18 + phplib/fpdf181/doc/rect.htm | 48 + phplib/fpdf181/doc/setauthor.htm | 33 + phplib/fpdf181/doc/setautopagebreak.htm | 33 + phplib/fpdf181/doc/setcompression.htm | 31 + phplib/fpdf181/doc/setcreator.htm | 34 + phplib/fpdf181/doc/setdisplaymode.htm | 45 + phplib/fpdf181/doc/setdrawcolor.htm | 41 + phplib/fpdf181/doc/setfillcolor.htm | 40 + phplib/fpdf181/doc/setfont.htm | 92 + phplib/fpdf181/doc/setfontsize.htm | 25 + phplib/fpdf181/doc/setkeywords.htm | 33 + phplib/fpdf181/doc/setleftmargin.htm | 30 + phplib/fpdf181/doc/setlinewidth.htm | 29 + phplib/fpdf181/doc/setlink.htm | 34 + phplib/fpdf181/doc/setmargins.htm | 37 + phplib/fpdf181/doc/setrightmargin.htm | 28 + phplib/fpdf181/doc/setsubject.htm | 33 + phplib/fpdf181/doc/settextcolor.htm | 40 + phplib/fpdf181/doc/settitle.htm | 33 + phplib/fpdf181/doc/settopmargin.htm | 28 + phplib/fpdf181/doc/setx.htm | 29 + phplib/fpdf181/doc/setxy.htm | 31 + phplib/fpdf181/doc/sety.htm | 33 + phplib/fpdf181/doc/text.htm | 39 + phplib/fpdf181/doc/write.htm | 51 + phplib/fpdf181/font/courier.php | 10 + phplib/fpdf181/font/courierb.php | 10 + phplib/fpdf181/font/courierbi.php | 10 + phplib/fpdf181/font/courieri.php | 10 + phplib/fpdf181/font/helvetica.php | 21 + phplib/fpdf181/font/helveticab.php | 21 + phplib/fpdf181/font/helveticabi.php | 21 + phplib/fpdf181/font/helveticai.php | 21 + phplib/fpdf181/font/symbol.php | 20 + phplib/fpdf181/font/times.php | 21 + phplib/fpdf181/font/timesb.php | 21 + phplib/fpdf181/font/timesbi.php | 21 + phplib/fpdf181/font/timesi.php | 21 + phplib/fpdf181/font/zapfdingbats.php | 20 + phplib/fpdf181/fpdf.css | 21 + phplib/fpdf181/fpdf.php | 1898 + phplib/fpdf181/install.txt | 15 + phplib/fpdf181/license.txt | 6 + phplib/fpdf181/makefont/cp1250.map | 251 + phplib/fpdf181/makefont/cp1251.map | 255 + phplib/fpdf181/makefont/cp1252.map | 251 + phplib/fpdf181/makefont/cp1253.map | 239 + phplib/fpdf181/makefont/cp1254.map | 249 + phplib/fpdf181/makefont/cp1255.map | 233 + phplib/fpdf181/makefont/cp1257.map | 244 + phplib/fpdf181/makefont/cp1258.map | 247 + phplib/fpdf181/makefont/cp874.map | 225 + phplib/fpdf181/makefont/iso-8859-1.map | 256 + phplib/fpdf181/makefont/iso-8859-11.map | 248 + phplib/fpdf181/makefont/iso-8859-15.map | 256 + phplib/fpdf181/makefont/iso-8859-16.map | 256 + phplib/fpdf181/makefont/iso-8859-2.map | 256 + phplib/fpdf181/makefont/iso-8859-4.map | 256 + phplib/fpdf181/makefont/iso-8859-5.map | 256 + phplib/fpdf181/makefont/iso-8859-7.map | 250 + phplib/fpdf181/makefont/iso-8859-9.map | 256 + phplib/fpdf181/makefont/koi8-r.map | 256 + phplib/fpdf181/makefont/koi8-u.map | 256 + phplib/fpdf181/makefont/makefont.php | 451 + phplib/fpdf181/makefont/ttfparser.php | 723 + phplib/fpdf181/tutorial/20k_c1.txt | 10 + phplib/fpdf181/tutorial/20k_c2.txt | 23 + phplib/fpdf181/tutorial/calligra.php | 25 + phplib/fpdf181/tutorial/calligra.ttf | Bin 0 -> 40120 bytes phplib/fpdf181/tutorial/calligra.z | Bin 0 -> 22477 bytes phplib/fpdf181/tutorial/countries.txt | 15 + phplib/fpdf181/tutorial/index.htm | 20 + phplib/fpdf181/tutorial/logo.png | Bin 0 -> 2373 bytes phplib/fpdf181/tutorial/makefont.php | 6 + phplib/fpdf181/tutorial/tuto1.htm | 76 + phplib/fpdf181/tutorial/tuto1.php | 9 + phplib/fpdf181/tutorial/tuto2.htm | 80 + phplib/fpdf181/tutorial/tuto2.php | 41 + phplib/fpdf181/tutorial/tuto3.htm | 115 + phplib/fpdf181/tutorial/tuto3.php | 81 + phplib/fpdf181/tutorial/tuto4.htm | 132 + phplib/fpdf181/tutorial/tuto4.php | 109 + phplib/fpdf181/tutorial/tuto5.htm | 134 + phplib/fpdf181/tutorial/tuto5.php | 102 + phplib/fpdf181/tutorial/tuto6.htm | 154 + phplib/fpdf181/tutorial/tuto6.php | 113 + phplib/fpdf181/tutorial/tuto7.htm | 187 + phplib/fpdf181/tutorial/tuto7.php | 11 + phplib/tcpdf/2dbarcodes.php | 332 - phplib/tcpdf/CHANGELOG.TXT | 2500 -- phplib/tcpdf/LICENSE.TXT | 858 - phplib/tcpdf/README.TXT | 97 - phplib/tcpdf/barcodes.php | 2287 -- phplib/tcpdf/cache/chapter_demo_1.txt | 19 - phplib/tcpdf/cache/chapter_demo_2.txt | 23 - phplib/tcpdf/cache/utf8test.txt | 128 - phplib/tcpdf/composer.json | 38 - phplib/tcpdf/config/lang/afr.php | 47 - phplib/tcpdf/config/lang/ara.php | 47 - phplib/tcpdf/config/lang/aze.php | 47 - phplib/tcpdf/config/lang/bel.php | 47 - phplib/tcpdf/config/lang/bra.php | 47 - phplib/tcpdf/config/lang/bul.php | 47 - phplib/tcpdf/config/lang/cat.php | 47 - phplib/tcpdf/config/lang/ces.php | 47 - phplib/tcpdf/config/lang/chi.php | 47 - phplib/tcpdf/config/lang/cym.php | 47 - phplib/tcpdf/config/lang/dan.php | 47 - phplib/tcpdf/config/lang/eng.php | 47 - phplib/tcpdf/config/lang/est.php | 47 - phplib/tcpdf/config/lang/eus.php | 47 - phplib/tcpdf/config/lang/far.php | 47 - phplib/tcpdf/config/lang/fra.php | 47 - phplib/tcpdf/config/lang/ger.php | 47 - phplib/tcpdf/config/lang/gle.php | 47 - phplib/tcpdf/config/lang/glg.php | 47 - phplib/tcpdf/config/lang/hat.php | 47 - phplib/tcpdf/config/lang/heb.php | 47 - phplib/tcpdf/config/lang/hrv.php | 47 - phplib/tcpdf/config/lang/hun.php | 47 - phplib/tcpdf/config/lang/hye.php | 47 - phplib/tcpdf/config/lang/ind.php | 47 - phplib/tcpdf/config/lang/ita.php | 47 - phplib/tcpdf/config/lang/jpn.php | 47 - phplib/tcpdf/config/lang/kat.php | 47 - phplib/tcpdf/config/lang/kor.php | 47 - phplib/tcpdf/config/lang/mkd.php | 47 - phplib/tcpdf/config/lang/mlt.php | 47 - phplib/tcpdf/config/lang/msa.php | 47 - phplib/tcpdf/config/lang/nld.php | 47 - phplib/tcpdf/config/lang/nob.php | 47 - phplib/tcpdf/config/lang/pol.php | 47 - phplib/tcpdf/config/lang/por.php | 47 - phplib/tcpdf/config/lang/ron.php | 47 - phplib/tcpdf/config/lang/rus.php | 47 - phplib/tcpdf/config/lang/slv.php | 47 - phplib/tcpdf/config/lang/spa.php | 47 - phplib/tcpdf/config/lang/sqi.php | 47 - phplib/tcpdf/config/lang/srp.php | 47 - phplib/tcpdf/config/lang/swa.php | 47 - phplib/tcpdf/config/lang/swe.php | 47 - phplib/tcpdf/config/lang/ukr.php | 47 - phplib/tcpdf/config/lang/urd.php | 47 - phplib/tcpdf/config/lang/yid.php | 47 - phplib/tcpdf/config/lang/zho.php | 47 - phplib/tcpdf/config/tcpdf_config.php | 258 - phplib/tcpdf/config/tcpdf_config_alt.php | 252 - phplib/tcpdf/datamatrix.php | 1149 - phplib/tcpdf/doc/index.html | 11 - phplib/tcpdf/encodings_maps.php | 846 - phplib/tcpdf/examples/example_001.php | 106 - phplib/tcpdf/examples/example_002.php | 87 - phplib/tcpdf/examples/example_003.php | 118 - phplib/tcpdf/examples/example_004.php | 121 - phplib/tcpdf/examples/example_005.php | 158 - phplib/tcpdf/examples/example_006.php | 332 - phplib/tcpdf/examples/example_007.php | 113 - phplib/tcpdf/examples/example_008.php | 97 - phplib/tcpdf/examples/example_009.php | 146 - phplib/tcpdf/examples/example_010.php | 150 - phplib/tcpdf/examples/example_011.php | 138 - phplib/tcpdf/examples/example_012.pdf | Bin 13216 -> 0 bytes phplib/tcpdf/examples/example_012.php | 205 - phplib/tcpdf/examples/example_013.php | 229 - phplib/tcpdf/examples/example_014.php | 194 - phplib/tcpdf/examples/example_015.php | 161 - phplib/tcpdf/examples/example_016.php | 134 - phplib/tcpdf/examples/example_017.php | 117 - phplib/tcpdf/examples/example_018.php | 131 - phplib/tcpdf/examples/example_019.php | 106 - phplib/tcpdf/examples/example_020.php | 146 - phplib/tcpdf/examples/example_021.php | 91 - phplib/tcpdf/examples/example_022.php | 146 - phplib/tcpdf/examples/example_023.php | 113 - phplib/tcpdf/examples/example_024.php | 140 - phplib/tcpdf/examples/example_025.php | 118 - phplib/tcpdf/examples/example_026.php | 145 - phplib/tcpdf/examples/example_027.php | 418 - phplib/tcpdf/examples/example_028.php | 138 - phplib/tcpdf/examples/example_029.php | 124 - phplib/tcpdf/examples/example_030.php | 188 - phplib/tcpdf/examples/example_031.php | 103 - phplib/tcpdf/examples/example_032.php | 93 - phplib/tcpdf/examples/example_033.php | 105 - phplib/tcpdf/examples/example_034.php | 96 - phplib/tcpdf/examples/example_035.php | 111 - phplib/tcpdf/examples/example_036.php | 89 - phplib/tcpdf/examples/example_037.php | 143 - phplib/tcpdf/examples/example_038.php | 87 - phplib/tcpdf/examples/example_039.php | 104 - phplib/tcpdf/examples/example_040.php | 116 - phplib/tcpdf/examples/example_041.php | 90 - phplib/tcpdf/examples/example_042.php | 102 - phplib/tcpdf/examples/example_043.php | 85 - phplib/tcpdf/examples/example_044.php | 128 - phplib/tcpdf/examples/example_045.php | 130 - phplib/tcpdf/examples/example_046.php | 123 - phplib/tcpdf/examples/example_047.php | 117 - phplib/tcpdf/examples/example_048.php | 313 - phplib/tcpdf/examples/example_049.php | 126 - phplib/tcpdf/examples/example_050.php | 210 - phplib/tcpdf/examples/example_051.php | 145 - phplib/tcpdf/examples/example_052.php | 121 - phplib/tcpdf/examples/example_053.php | 108 - phplib/tcpdf/examples/example_054.php | 128 - phplib/tcpdf/examples/example_055.php | 114 - phplib/tcpdf/examples/example_056.php | 117 - phplib/tcpdf/examples/example_057.php | 268 - phplib/tcpdf/examples/example_058.php | 94 - phplib/tcpdf/examples/example_059.php | 190 - phplib/tcpdf/examples/example_060.php | 108 - phplib/tcpdf/examples/example_061.php | 273 - phplib/tcpdf/examples/example_062.php | 140 - phplib/tcpdf/examples/example_063.php | 131 - phplib/tcpdf/examples/example_064.php | 176 - phplib/tcpdf/examples/example_065.php | 98 - phplib/tcpdf/examples/index.php | 89 - phplib/tcpdf/fonts/aealarabiya.ctg.z | Bin 1849 -> 0 bytes phplib/tcpdf/fonts/aealarabiya.php | 15 - phplib/tcpdf/fonts/aealarabiya.z | Bin 56010 -> 0 bytes phplib/tcpdf/fonts/aefurat.ctg.z | Bin 1843 -> 0 bytes phplib/tcpdf/fonts/aefurat.php | 15 - phplib/tcpdf/fonts/aefurat.z | Bin 73899 -> 0 bytes phplib/tcpdf/fonts/cid0cs.php | 16 - phplib/tcpdf/fonts/cid0ct.php | 16 - phplib/tcpdf/fonts/cid0jp.php | 16 - phplib/tcpdf/fonts/cid0kr.php | 16 - phplib/tcpdf/fonts/courier.php | 12 - phplib/tcpdf/fonts/courierb.php | 12 - phplib/tcpdf/fonts/courierbi.php | 12 - phplib/tcpdf/fonts/courieri.php | 12 - .../fonts/dejavu-fonts-ttf-2.33/._AUTHORS | Bin 4096 -> 0 bytes .../tcpdf/fonts/dejavu-fonts-ttf-2.33/._BUGS | Bin 4096 -> 0 bytes .../fonts/dejavu-fonts-ttf-2.33/._LICENSE | Bin 4096 -> 0 bytes .../tcpdf/fonts/dejavu-fonts-ttf-2.33/._NEWS | Bin 4096 -> 0 bytes .../fonts/dejavu-fonts-ttf-2.33/._README | Bin 4096 -> 0 bytes .../dejavu-fonts-ttf-2.33/._langcover.txt | Bin 4096 -> 0 bytes .../fonts/dejavu-fonts-ttf-2.33/._status.txt | Bin 4096 -> 0 bytes .../dejavu-fonts-ttf-2.33/._unicover.txt | Bin 4096 -> 0 bytes .../tcpdf/fonts/dejavu-fonts-ttf-2.33/AUTHORS | 53 - phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/BUGS | 3 - .../tcpdf/fonts/dejavu-fonts-ttf-2.33/LICENSE | 99 - phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/NEWS | 1315 - .../tcpdf/fonts/dejavu-fonts-ttf-2.33/README | 59 - .../fonts/dejavu-fonts-ttf-2.33/langcover.txt | 242 - .../fonts/dejavu-fonts-ttf-2.33/status.txt | 6657 ---- .../fonts/dejavu-fonts-ttf-2.33/unicover.txt | 215 - phplib/tcpdf/fonts/dejavusans.ctg.z | Bin 10120 -> 0 bytes phplib/tcpdf/fonts/dejavusans.php | 15 - phplib/tcpdf/fonts/dejavusans.z | Bin 361229 -> 0 bytes phplib/tcpdf/fonts/dejavusansb.ctg.z | Bin 9854 -> 0 bytes phplib/tcpdf/fonts/dejavusansb.php | 15 - phplib/tcpdf/fonts/dejavusansb.z | Bin 333391 -> 0 bytes phplib/tcpdf/fonts/dejavusansbi.ctg.z | Bin 8757 -> 0 bytes phplib/tcpdf/fonts/dejavusansbi.php | 15 - phplib/tcpdf/fonts/dejavusansbi.z | Bin 311758 -> 0 bytes phplib/tcpdf/fonts/dejavusanscondensed.ctg.z | Bin 10120 -> 0 bytes phplib/tcpdf/fonts/dejavusanscondensed.php | 15 - phplib/tcpdf/fonts/dejavusanscondensed.z | Bin 314538 -> 0 bytes phplib/tcpdf/fonts/dejavusanscondensedb.ctg.z | Bin 9854 -> 0 bytes phplib/tcpdf/fonts/dejavusanscondensedb.php | 15 - phplib/tcpdf/fonts/dejavusanscondensedb.z | Bin 310831 -> 0 bytes .../tcpdf/fonts/dejavusanscondensedbi.ctg.z | Bin 8757 -> 0 bytes phplib/tcpdf/fonts/dejavusanscondensedbi.php | 15 - phplib/tcpdf/fonts/dejavusanscondensedbi.z | Bin 298581 -> 0 bytes phplib/tcpdf/fonts/dejavusanscondensedi.ctg.z | Bin 8996 -> 0 bytes phplib/tcpdf/fonts/dejavusanscondensedi.php | 15 - phplib/tcpdf/fonts/dejavusanscondensedi.z | Bin 295442 -> 0 bytes phplib/tcpdf/fonts/dejavusansextralight.ctg.z | Bin 3833 -> 0 bytes phplib/tcpdf/fonts/dejavusansextralight.php | 15 - phplib/tcpdf/fonts/dejavusansextralight.z | Bin 164360 -> 0 bytes phplib/tcpdf/fonts/dejavusansi.ctg.z | Bin 8996 -> 0 bytes phplib/tcpdf/fonts/dejavusansi.php | 15 - phplib/tcpdf/fonts/dejavusansi.z | Bin 311974 -> 0 bytes phplib/tcpdf/fonts/dejavusansmono.ctg.z | Bin 6318 -> 0 bytes phplib/tcpdf/fonts/dejavusansmono.php | 15 - phplib/tcpdf/fonts/dejavusansmono.z | Bin 196935 -> 0 bytes phplib/tcpdf/fonts/dejavusansmonob.ctg.z | Bin 6083 -> 0 bytes phplib/tcpdf/fonts/dejavusansmonob.php | 15 - phplib/tcpdf/fonts/dejavusansmonob.z | Bin 189280 -> 0 bytes phplib/tcpdf/fonts/dejavusansmonobi.ctg.z | Bin 4936 -> 0 bytes phplib/tcpdf/fonts/dejavusansmonobi.php | 15 - phplib/tcpdf/fonts/dejavusansmonobi.z | Bin 142395 -> 0 bytes phplib/tcpdf/fonts/dejavusansmonoi.ctg.z | Bin 5173 -> 0 bytes phplib/tcpdf/fonts/dejavusansmonoi.php | 15 - phplib/tcpdf/fonts/dejavusansmonoi.z | Bin 144067 -> 0 bytes phplib/tcpdf/fonts/dejavuserif.ctg.z | Bin 6388 -> 0 bytes phplib/tcpdf/fonts/dejavuserif.php | 15 - phplib/tcpdf/fonts/dejavuserif.z | Bin 201425 -> 0 bytes phplib/tcpdf/fonts/dejavuserifb.ctg.z | Bin 6123 -> 0 bytes phplib/tcpdf/fonts/dejavuserifb.php | 15 - phplib/tcpdf/fonts/dejavuserifb.z | Bin 187662 -> 0 bytes phplib/tcpdf/fonts/dejavuserifbi.ctg.z | Bin 6131 -> 0 bytes phplib/tcpdf/fonts/dejavuserifbi.php | 15 - phplib/tcpdf/fonts/dejavuserifbi.z | Bin 187962 -> 0 bytes phplib/tcpdf/fonts/dejavuserifcondensed.ctg.z | Bin 6388 -> 0 bytes phplib/tcpdf/fonts/dejavuserifcondensed.php | 15 - phplib/tcpdf/fonts/dejavuserifcondensed.z | Bin 180739 -> 0 bytes .../tcpdf/fonts/dejavuserifcondensedb.ctg.z | Bin 6123 -> 0 bytes phplib/tcpdf/fonts/dejavuserifcondensedb.php | 15 - phplib/tcpdf/fonts/dejavuserifcondensedb.z | Bin 171838 -> 0 bytes .../tcpdf/fonts/dejavuserifcondensedbi.ctg.z | Bin 6131 -> 0 bytes phplib/tcpdf/fonts/dejavuserifcondensedbi.php | 15 - phplib/tcpdf/fonts/dejavuserifcondensedbi.z | Bin 189956 -> 0 bytes .../tcpdf/fonts/dejavuserifcondensedi.ctg.z | Bin 6359 -> 0 bytes phplib/tcpdf/fonts/dejavuserifcondensedi.php | 15 - phplib/tcpdf/fonts/dejavuserifcondensedi.z | Bin 192309 -> 0 bytes phplib/tcpdf/fonts/dejavuserifi.ctg.z | Bin 6359 -> 0 bytes phplib/tcpdf/fonts/dejavuserifi.php | 15 - phplib/tcpdf/fonts/dejavuserifi.z | Bin 190085 -> 0 bytes .../tcpdf/fonts/freefont-20100919/._AUTHORS | Bin 4096 -> 0 bytes .../tcpdf/fonts/freefont-20100919/._COPYING | Bin 4096 -> 0 bytes .../tcpdf/fonts/freefont-20100919/._CREDITS | Bin 4096 -> 0 bytes .../tcpdf/fonts/freefont-20100919/._ChangeLog | Bin 4096 -> 0 bytes .../tcpdf/fonts/freefont-20100919/._INSTALL | Bin 4096 -> 0 bytes phplib/tcpdf/fonts/freefont-20100919/._README | Bin 4096 -> 0 bytes phplib/tcpdf/fonts/freefont-20100919/AUTHORS | 235 - phplib/tcpdf/fonts/freefont-20100919/COPYING | 674 - phplib/tcpdf/fonts/freefont-20100919/CREDITS | 581 - .../tcpdf/fonts/freefont-20100919/ChangeLog | 6325 ---- phplib/tcpdf/fonts/freefont-20100919/INSTALL | 86 - phplib/tcpdf/fonts/freefont-20100919/README | 108 - phplib/tcpdf/fonts/freemono.ctg.z | Bin 6782 -> 0 bytes phplib/tcpdf/fonts/freemono.php | 15 - phplib/tcpdf/fonts/freemono.z | Bin 161631 -> 0 bytes phplib/tcpdf/fonts/freemonob.ctg.z | Bin 3860 -> 0 bytes phplib/tcpdf/fonts/freemonob.php | 15 - phplib/tcpdf/fonts/freemonob.z | Bin 90912 -> 0 bytes phplib/tcpdf/fonts/freemonobi.ctg.z | Bin 3320 -> 0 bytes phplib/tcpdf/fonts/freemonobi.php | 15 - phplib/tcpdf/fonts/freemonobi.z | Bin 95447 -> 0 bytes phplib/tcpdf/fonts/freemonoi.ctg.z | Bin 4124 -> 0 bytes phplib/tcpdf/fonts/freemonoi.php | 15 - phplib/tcpdf/fonts/freemonoi.z | Bin 115416 -> 0 bytes phplib/tcpdf/fonts/freesans.ctg.z | Bin 8176 -> 0 bytes phplib/tcpdf/fonts/freesans.php | 15 - phplib/tcpdf/fonts/freesans.z | Bin 372168 -> 0 bytes phplib/tcpdf/fonts/freesansb.ctg.z | Bin 4683 -> 0 bytes phplib/tcpdf/fonts/freesansb.php | 15 - phplib/tcpdf/fonts/freesansb.z | Bin 183889 -> 0 bytes phplib/tcpdf/fonts/freesansbi.ctg.z | Bin 4477 -> 0 bytes phplib/tcpdf/fonts/freesansbi.php | 15 - phplib/tcpdf/fonts/freesansbi.z | Bin 161417 -> 0 bytes phplib/tcpdf/fonts/freesansi.ctg.z | Bin 4698 -> 0 bytes phplib/tcpdf/fonts/freesansi.php | 15 - phplib/tcpdf/fonts/freesansi.z | Bin 241961 -> 0 bytes phplib/tcpdf/fonts/freeserif.ctg.z | Bin 10877 -> 0 bytes phplib/tcpdf/fonts/freeserif.php | 15 - phplib/tcpdf/fonts/freeserif.z | Bin 873623 -> 0 bytes phplib/tcpdf/fonts/freeserifb.ctg.z | Bin 5646 -> 0 bytes phplib/tcpdf/fonts/freeserifb.php | 15 - phplib/tcpdf/fonts/freeserifb.z | Bin 301278 -> 0 bytes phplib/tcpdf/fonts/freeserifbi.ctg.z | Bin 4762 -> 0 bytes phplib/tcpdf/fonts/freeserifbi.php | 15 - phplib/tcpdf/fonts/freeserifbi.z | Bin 257310 -> 0 bytes phplib/tcpdf/fonts/freeserifi.ctg.z | Bin 4984 -> 0 bytes phplib/tcpdf/fonts/freeserifi.php | 15 - phplib/tcpdf/fonts/freeserifi.z | Bin 362277 -> 0 bytes phplib/tcpdf/fonts/helvetica.php | 13 - phplib/tcpdf/fonts/helveticab.php | 12 - phplib/tcpdf/fonts/helveticabi.php | 12 - phplib/tcpdf/fonts/helveticai.php | 12 - phplib/tcpdf/fonts/hysmyeongjostdmedium.php | 48 - phplib/tcpdf/fonts/kozgopromedium.php | 65 - phplib/tcpdf/fonts/kozminproregular.php | 63 - phplib/tcpdf/fonts/msungstdlight.php | 38 - phplib/tcpdf/fonts/pdfacourier.php | 15 - phplib/tcpdf/fonts/pdfacourier.z | Bin 37462 -> 0 bytes phplib/tcpdf/fonts/pdfacourierb.php | 15 - phplib/tcpdf/fonts/pdfacourierb.z | Bin 39522 -> 0 bytes phplib/tcpdf/fonts/pdfacourierbi.php | 15 - phplib/tcpdf/fonts/pdfacourierbi.z | Bin 44630 -> 0 bytes phplib/tcpdf/fonts/pdfacourieri.php | 15 - phplib/tcpdf/fonts/pdfacourieri.z | Bin 35215 -> 0 bytes phplib/tcpdf/fonts/pdfahelvetica.php | 15 - phplib/tcpdf/fonts/pdfahelvetica.z | Bin 25225 -> 0 bytes phplib/tcpdf/fonts/pdfahelveticab.php | 15 - phplib/tcpdf/fonts/pdfahelveticab.z | Bin 25573 -> 0 bytes phplib/tcpdf/fonts/pdfahelveticabi.php | 15 - phplib/tcpdf/fonts/pdfahelveticabi.z | Bin 32904 -> 0 bytes phplib/tcpdf/fonts/pdfahelveticai.php | 15 - phplib/tcpdf/fonts/pdfahelveticai.z | Bin 29045 -> 0 bytes phplib/tcpdf/fonts/pdfasymbol.php | 15 - phplib/tcpdf/fonts/pdfasymbol.z | Bin 30439 -> 0 bytes phplib/tcpdf/fonts/pdfatimes.php | 15 - phplib/tcpdf/fonts/pdfatimes.z | Bin 38971 -> 0 bytes phplib/tcpdf/fonts/pdfatimesb.php | 15 - phplib/tcpdf/fonts/pdfatimesb.z | Bin 38101 -> 0 bytes phplib/tcpdf/fonts/pdfatimesbi.php | 15 - phplib/tcpdf/fonts/pdfatimesbi.z | Bin 40653 -> 0 bytes phplib/tcpdf/fonts/pdfatimesi.php | 15 - phplib/tcpdf/fonts/pdfatimesi.z | Bin 35856 -> 0 bytes phplib/tcpdf/fonts/pdfazapfdingbats.php | 15 - phplib/tcpdf/fonts/pdfazapfdingbats.z | Bin 50713 -> 0 bytes phplib/tcpdf/fonts/stsongstdlight.php | 39 - phplib/tcpdf/fonts/symbol.php | 12 - phplib/tcpdf/fonts/times.php | 12 - phplib/tcpdf/fonts/timesb.php | 12 - phplib/tcpdf/fonts/timesbi.php | 12 - phplib/tcpdf/fonts/timesi.php | 12 - phplib/tcpdf/fonts/uni2cid_ac15.php | 6 - phplib/tcpdf/fonts/uni2cid_ag15.php | 6 - phplib/tcpdf/fonts/uni2cid_aj16.php | 6 - phplib/tcpdf/fonts/uni2cid_ak12.php | 6 - phplib/tcpdf/fonts/zapfdingbats.php | 12 - phplib/tcpdf/htmlcolors.php | 199 - phplib/tcpdf/images/_blank.png | Bin 137 -> 0 bytes phplib/tcpdf/images/alpha.png | Bin 13168 -> 0 bytes phplib/tcpdf/images/bug.eps | 1809 - phplib/tcpdf/images/image_demo.jpg | Bin 573845 -> 0 bytes phplib/tcpdf/images/image_with_alpha.png | Bin 230267 -> 0 bytes phplib/tcpdf/images/img.png | Bin 81634 -> 0 bytes phplib/tcpdf/images/logo_example.gif | Bin 21022 -> 0 bytes phplib/tcpdf/images/logo_example.jpg | Bin 32732 -> 0 bytes phplib/tcpdf/images/logo_example.png | Bin 19411 -> 0 bytes phplib/tcpdf/images/pelican.ai | 147 - phplib/tcpdf/images/tcpdf_cell.png | Bin 38415 -> 0 bytes phplib/tcpdf/images/tcpdf_logo.jpg | Bin 17633 -> 0 bytes phplib/tcpdf/images/tcpdf_signature.png | Bin 67931 -> 0 bytes phplib/tcpdf/images/testsvg.svg | 328 - phplib/tcpdf/images/tiger.ai | 3599 -- phplib/tcpdf/images/tux.svg | 1487 - phplib/tcpdf/pdf417.php | 991 - phplib/tcpdf/qrcode.php | 2866 -- phplib/tcpdf/sRGB.icc | Bin 3048 -> 0 bytes phplib/tcpdf/spotcolors.php | 60 - phplib/tcpdf/tcpdf.crt | 40 - phplib/tcpdf/tcpdf.fdf | Bin 1286 -> 0 bytes phplib/tcpdf/tcpdf.p12 | Bin 1749 -> 0 bytes phplib/tcpdf/tcpdf.php | 29927 ---------------- phplib/tcpdf/tcpdf_filters.php | 477 - phplib/tcpdf/tcpdf_parser.php | 510 - phplib/tcpdf/unicode_data.php | 18371 ---------- robots.txt | 8 - site/page.xsl | 2 +- sitemap.xml | 57 + smartasn1.en_US.UTF-8.xml | 47 + update-site/.project | 17 + update-site/artifacts.jar | Bin 0 -> 789 bytes update-site/content.jar | Bin 0 -> 5316 bytes ...feature.ale.profile_1.0.0.201310191718.jar | Bin 0 -> 421 bytes .../org.aeb.resources_1.0.0.201203121544.jar | Bin 0 -> 440 bytes .../org.aeb.resources_1.0.0.201203131523.jar | Bin 0 -> 2657 bytes .../org.aeb.resources_1.0.0.201203140914.jar | Bin 0 -> 3009 bytes .../org.aeb.resources_1.0.1.201310191721.jar | Bin 0 -> 3029 bytes .../org.aeb.resources_1.0.1.201310191809.jar | Bin 0 -> 3002 bytes ....modeling.resources_1.0.0.201203121544.jar | Bin 0 -> 32411 bytes ....modeling.resources_1.0.0.201203131523.jar | Bin 0 -> 31056 bytes ....modeling.resources_1.0.0.201203140914.jar | Bin 0 -> 31056 bytes ....modeling.resources_1.0.1.201310191721.jar | Bin 0 -> 35996 bytes ....modeling.resources_1.0.1.201310191809.jar | Bin 0 -> 35996 bytes ....modeling.resources_1.0.0.201310191718.jar | Bin 0 -> 20166 bytes update-site/site.xml | 15 + update.php | 2 +- 942 files changed, 33853 insertions(+), 133734 deletions(-) delete mode 100644 README.php delete mode 100644 accounting/accueil.en_US.UTF-8.xml delete mode 100644 accounting/accueil.fr_FR.UTF-8.xml delete mode 100755 accounting/budget.fr_FR.UTF-8.xml delete mode 100644 accounting/contact.en_US.UTF-8.xml delete mode 100644 accounting/contact.fr_FR.UTF-8.xml delete mode 100755 accounting/copropriete.fr_FR.UTF-8.xml delete mode 100755 accounting/donates.fr_FR.UTF-8.xml delete mode 100755 accounting/fournisseur.fr_FR.UTF-8.xml delete mode 100755 accounting/journaux.fr_FR.UTF-8.xml delete mode 100644 accounting/liens_syndic.en_US.UTF-8.xml delete mode 100644 accounting/liens_syndic.fr_FR.UTF-8.xml delete mode 100755 accounting/plan_comptable.fr_FR.UTF-8.xml delete mode 100644 accounting/products.en_US.UTF-8.xml delete mode 100644 accounting/products.fr_FR.UTF-8.xml delete mode 100644 accounting/services.en_US.UTF-8.xml delete mode 100644 accounting/services.fr_FR.UTF-8.xml delete mode 100755 app/compta/Accounting.mysql delete mode 100644 app/compta/Accounting.sql delete mode 100755 app/compta/AccountingCreate.mysql delete mode 100644 app/compta/Budgets.mysql delete mode 100755 app/compta/InitAccounting.mysql delete mode 100644 app/compta/booking.php delete mode 100644 app/compta/budget.js delete mode 100644 app/compta/budget.php delete mode 100644 app/compta/budget_edit.xml delete mode 100644 app/compta/copro.js delete mode 100644 app/compta/copro_decompte.xml delete mode 100644 app/compta/copro_entretien.xml delete mode 100644 app/compta/copro_pay.xml delete mode 100644 app/compta/copro_role.xml delete mode 100644 app/compta/copro_users.xml delete mode 100644 app/compta/exercice.js delete mode 100644 app/compta/exercice.xml delete mode 100644 app/compta/identity.php delete mode 100644 app/compta/index.php delete mode 100644 app/compta/index.xml delete mode 100644 app/compta/journaux.js delete mode 100644 app/compta/journaux.xml delete mode 100644 app/compta/jrnx.xml delete mode 100644 app/compta/jrnx_detail.xml delete mode 100644 app/compta/jrnx_record.xml delete mode 100644 app/compta/ledger_church.xml delete mode 100644 app/compta/ledger_create.xml delete mode 100644 app/compta/ledger_syndic.xml delete mode 100644 app/compta/lot.xml delete mode 100644 app/compta/lot_attribuer.xml delete mode 100644 app/compta/lot_charge.xml delete mode 100644 app/compta/lots.js delete mode 100644 app/compta/parametre.js delete mode 100644 app/compta/parametre.xml delete mode 100644 app/compta/pcmn.js delete mode 100644 app/compta/pcmn.php delete mode 100644 app/compta/pcmn.xml delete mode 100644 app/compta/reports/decompte_charge.php delete mode 100644 app/compta/reports/recu_taxe.php delete mode 100644 app/compta/reports/syndic_annexe1.php delete mode 100644 app/compta/reports/syndic_annexes.php delete mode 100644 app/compta/retrieve.php delete mode 100644 app/compta/supplier.js delete mode 100644 app/compta/supplier_account.xml delete mode 100644 app/compta/supplier_add.xml delete mode 100644 app/compta/supplier_bill.xml delete mode 100644 app/compta/supplier_pay.xml delete mode 100644 app/compta/supplier_remove.xml delete mode 100644 app/compta/syndic.php delete mode 100644 app/compta/upload.php delete mode 100644 app/compta/users.xml delete mode 100644 app/config/analystictracking_syndic.php create mode 100644 app/config/mysql.conf.php delete mode 100644 app/member/annuaire.mysql delete mode 100644 app/member/class.json_db_user.php delete mode 100644 app/member/index.php delete mode 100644 app/xsl/gui-wizard.xsl create mode 100644 article.xsl create mode 100644 c2xmi/c2xmi.en_US.UTF-8.xml create mode 100644 c2xmi/c2xmi.fr_FR.UTF-8.xml create mode 100644 c2xmi/news.xml delete mode 100644 css/andre/min-andre.php create mode 100644 css/andre/print.css delete mode 100644 css/andre/theme-andre-bottom.php delete mode 100644 css/andre/theme-andre-menuh.php create mode 100644 css/andre/theme-andre.css delete mode 100644 css/andre/theme-andre.php delete mode 100644 css/andre/theme-syndic.css delete mode 100755 css/cssmin-v3.0.1.php delete mode 100644 css/xgui/theme-syndic.css create mode 100644 cv.xsl create mode 100755 documents/contact.fr_FR.UTF-8.xml create mode 100755 documents/uml/uml_profile.en_US.UTF-8.xml create mode 100755 favicon.ico create mode 100644 footer.xsl create mode 100644 generate_header.xsl create mode 100644 generate_html.xsl create mode 100644 googlea757b08c9f17b183.html create mode 100755 images/AnonymousArray.gif create mode 100755 images/AnonymousArray.jpg create mode 100755 images/AnonymousArray.png create mode 100755 images/CstaInsightMain.jpg create mode 100755 images/Horse278.png create mode 100755 images/TypeRedefinition.jpg delete mode 100755 images/accounting/NewMenuHBlack60px.png delete mode 100755 images/accounting/barre_etat.png delete mode 100755 images/accounting/book-dolars.png delete mode 100755 images/accounting/budget_edit.png delete mode 100755 images/accounting/budget_liste.png delete mode 100755 images/accounting/budget_menu.png delete mode 100755 images/accounting/building.jpg delete mode 100755 images/accounting/menu_coprorpiete.png delete mode 100755 images/accounting/payer_facture.png delete mode 100755 images/accounting/saisie_facture.png delete mode 100755 images/accounting/syndic-header-n.png delete mode 100755 images/accounting/syndic-logo.png create mode 100755 images/alcatel_oxo_nicolas_cle_.png delete mode 100644 images/bookkeeping-church.png delete mode 100644 images/bookkeeping.png create mode 100755 images/documents/logo-cma.svg rename images/{icons/16x16 => }/home-gray.png (100%) rename images/{icons => }/ico_alerte.png (100%) rename images/{icons => }/ico_facebook.png (100%) rename images/{icons => }/ico_login.png (100%) rename images/{icons => }/ico_nav.png (100%) rename images/{icons => }/ico_newsletter.png (100%) rename images/{icons => }/ico_rss.png (100%) rename images/{icons => }/ico_twitter.png (100%) rename images/{icons => }/ico_user.png (100%) delete mode 100644 images/icons/16x16/add.png delete mode 100755 images/icons/16x16/arrow_down.gif delete mode 100755 images/icons/16x16/arrow_up.gif delete mode 100755 images/icons/16x16/bookmark.gif delete mode 100644 images/icons/16x16/btn_help16.png delete mode 100755 images/icons/16x16/budget.png delete mode 100755 images/icons/16x16/close_hov.gif delete mode 100644 images/icons/16x16/contact.png delete mode 100755 images/icons/16x16/delete.gif delete mode 100644 images/icons/16x16/drop4.jpg delete mode 100755 images/icons/16x16/edit.gif delete mode 100755 images/icons/16x16/edit_colums.gif delete mode 100755 images/icons/16x16/edit_list.gif delete mode 100755 images/icons/16x16/error.gif delete mode 100644 images/icons/16x16/exe.gif delete mode 100755 images/icons/16x16/exprt_excel.gif delete mode 100755 images/icons/16x16/exprt_file.gif delete mode 100755 images/icons/16x16/exprt_pdf.gif delete mode 100755 images/icons/16x16/favorite.gif delete mode 100644 images/icons/16x16/feed.png delete mode 100644 images/icons/16x16/flash.gif delete mode 100755 images/icons/16x16/help.gif delete mode 100644 images/icons/16x16/home.png delete mode 100644 images/icons/16x16/invite.png delete mode 100755 images/icons/16x16/list.gif delete mode 100644 images/icons/16x16/mail.png delete mode 100644 images/icons/16x16/mail16.png delete mode 100644 images/icons/16x16/manual.png delete mode 100755 images/icons/16x16/modify.gif delete mode 100644 images/icons/16x16/network.png delete mode 100644 images/icons/16x16/pdf-a.png delete mode 100644 images/icons/16x16/personal-a.png delete mode 100755 images/icons/16x16/print.gif delete mode 100644 images/icons/16x16/printer-a.png delete mode 100755 images/icons/16x16/refresh.gif delete mode 100755 images/icons/16x16/related_obj.gif delete mode 100644 images/icons/16x16/rss.png delete mode 100644 images/icons/16x16/search.png delete mode 100644 images/icons/16x16/select.png delete mode 100755 images/icons/16x16/sendmail.gif delete mode 100755 images/icons/16x16/tabular.gif delete mode 100755 images/icons/16x16/tested_by_obj.gif delete mode 100755 images/icons/16x16/warning.png delete mode 100755 images/icons/29x29/picto-comptes.png delete mode 100755 images/icons/29x29/picto-epargne.png delete mode 100755 images/icons/29x29/picto-titres.png delete mode 100755 images/icons/29x29/picto_contrat.png delete mode 100755 images/icons/ico_home_gray.png delete mode 100644 images/icons/news.svg delete mode 100644 images/icons/style.svg delete mode 100644 images/icons/summary.svg delete mode 100644 images/icons/title.svg create mode 100755 images/palette_juliane_krug_01.png delete mode 100644 js/xgui/aebw.sh delete mode 100644 js/xgui/xgui_wizard.js create mode 100644 linux_embedded.en_US.UTF-8.xml create mode 100644 linux_embedded.fr_FR.UTF-8.xml delete mode 100644 locale/fr_FR.UTF-8.mo delete mode 100644 locale/fr_FR.UTF-8.po delete mode 100644 locale/fr_FR/LC_MESSAGES/andre.mo create mode 100644 news.xsl delete mode 100644 phplib/class.crontab.php create mode 100644 phplib/dl.tgz mode change 100644 => 100755 phplib/fpdf/FAQ.htm create mode 100755 phplib/fpdf/changelog.htm create mode 100755 phplib/fpdf/doc/__construct.htm mode change 100644 => 100755 phplib/fpdf/doc/acceptpagebreak.htm mode change 100644 => 100755 phplib/fpdf/doc/addfont.htm mode change 100644 => 100755 phplib/fpdf/doc/addlink.htm mode change 100644 => 100755 phplib/fpdf/doc/addpage.htm mode change 100644 => 100755 phplib/fpdf/doc/aliasnbpages.htm mode change 100644 => 100755 phplib/fpdf/doc/cell.htm mode change 100644 => 100755 phplib/fpdf/doc/close.htm mode change 100644 => 100755 phplib/fpdf/doc/error.htm mode change 100644 => 100755 phplib/fpdf/doc/footer.htm create mode 100755 phplib/fpdf/doc/getpageheight.htm create mode 100755 phplib/fpdf/doc/getpagewidth.htm mode change 100644 => 100755 phplib/fpdf/doc/getstringwidth.htm mode change 100644 => 100755 phplib/fpdf/doc/getx.htm mode change 100644 => 100755 phplib/fpdf/doc/gety.htm mode change 100644 => 100755 phplib/fpdf/doc/header.htm mode change 100644 => 100755 phplib/fpdf/doc/image.htm mode change 100644 => 100755 phplib/fpdf/doc/index.htm mode change 100644 => 100755 phplib/fpdf/doc/line.htm mode change 100644 => 100755 phplib/fpdf/doc/link.htm mode change 100644 => 100755 phplib/fpdf/doc/ln.htm mode change 100644 => 100755 phplib/fpdf/doc/multicell.htm mode change 100644 => 100755 phplib/fpdf/doc/output.htm mode change 100644 => 100755 phplib/fpdf/doc/pageno.htm mode change 100644 => 100755 phplib/fpdf/doc/rect.htm mode change 100644 => 100755 phplib/fpdf/doc/setauthor.htm mode change 100644 => 100755 phplib/fpdf/doc/setautopagebreak.htm mode change 100644 => 100755 phplib/fpdf/doc/setcompression.htm mode change 100644 => 100755 phplib/fpdf/doc/setcreator.htm mode change 100644 => 100755 phplib/fpdf/doc/setdisplaymode.htm mode change 100644 => 100755 phplib/fpdf/doc/setdrawcolor.htm mode change 100644 => 100755 phplib/fpdf/doc/setfillcolor.htm mode change 100644 => 100755 phplib/fpdf/doc/setfont.htm mode change 100644 => 100755 phplib/fpdf/doc/setfontsize.htm mode change 100644 => 100755 phplib/fpdf/doc/setkeywords.htm mode change 100644 => 100755 phplib/fpdf/doc/setleftmargin.htm mode change 100644 => 100755 phplib/fpdf/doc/setlinewidth.htm mode change 100644 => 100755 phplib/fpdf/doc/setlink.htm mode change 100644 => 100755 phplib/fpdf/doc/setmargins.htm mode change 100644 => 100755 phplib/fpdf/doc/setrightmargin.htm mode change 100644 => 100755 phplib/fpdf/doc/setsubject.htm mode change 100644 => 100755 phplib/fpdf/doc/settextcolor.htm mode change 100644 => 100755 phplib/fpdf/doc/settitle.htm mode change 100644 => 100755 phplib/fpdf/doc/settopmargin.htm mode change 100644 => 100755 phplib/fpdf/doc/setx.htm mode change 100644 => 100755 phplib/fpdf/doc/setxy.htm mode change 100644 => 100755 phplib/fpdf/doc/sety.htm mode change 100644 => 100755 phplib/fpdf/doc/text.htm mode change 100644 => 100755 phplib/fpdf/doc/write.htm mode change 100644 => 100755 phplib/fpdf/font/courier.php create mode 100755 phplib/fpdf/font/courierb.php create mode 100755 phplib/fpdf/font/courierbi.php create mode 100755 phplib/fpdf/font/courieri.php mode change 100644 => 100755 phplib/fpdf/font/helvetica.php mode change 100644 => 100755 phplib/fpdf/font/helveticab.php mode change 100644 => 100755 phplib/fpdf/font/helveticabi.php mode change 100644 => 100755 phplib/fpdf/font/helveticai.php mode change 100644 => 100755 phplib/fpdf/font/symbol.php mode change 100644 => 100755 phplib/fpdf/font/times.php mode change 100644 => 100755 phplib/fpdf/font/timesb.php mode change 100644 => 100755 phplib/fpdf/font/timesbi.php mode change 100644 => 100755 phplib/fpdf/font/timesi.php mode change 100644 => 100755 phplib/fpdf/font/zapfdingbats.php mode change 100644 => 100755 phplib/fpdf/fpdf.css mode change 100644 => 100755 phplib/fpdf/fpdf.php mode change 100644 => 100755 phplib/fpdf/install.txt create mode 100755 phplib/fpdf/license.txt rename phplib/fpdf/{font => }/makefont/cp1250.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp1251.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp1252.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp1253.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp1254.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp1255.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp1257.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp1258.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/cp874.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/iso-8859-1.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/iso-8859-11.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/iso-8859-15.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/iso-8859-16.map (100%) mode change 100644 => 100755 create mode 100755 phplib/fpdf/makefont/iso-8859-2.map rename phplib/fpdf/{font => }/makefont/iso-8859-4.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/iso-8859-5.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/iso-8859-7.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/iso-8859-9.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/koi8-r.map (100%) mode change 100644 => 100755 rename phplib/fpdf/{font => }/makefont/koi8-u.map (100%) mode change 100644 => 100755 create mode 100755 phplib/fpdf/makefont/makefont.php create mode 100755 phplib/fpdf/makefont/ttfparser.php mode change 100644 => 100755 phplib/fpdf/tutorial/20k_c1.txt mode change 100644 => 100755 phplib/fpdf/tutorial/20k_c2.txt mode change 100644 => 100755 phplib/fpdf/tutorial/calligra.php mode change 100644 => 100755 phplib/fpdf/tutorial/calligra.ttf mode change 100644 => 100755 phplib/fpdf/tutorial/calligra.z mode change 100644 => 100755 phplib/fpdf/tutorial/countries.txt mode change 100644 => 100755 phplib/fpdf/tutorial/index.htm mode change 100644 => 100755 phplib/fpdf/tutorial/logo.png mode change 100644 => 100755 phplib/fpdf/tutorial/makefont.php mode change 100644 => 100755 phplib/fpdf/tutorial/tuto1.htm mode change 100644 => 100755 phplib/fpdf/tutorial/tuto1.php mode change 100644 => 100755 phplib/fpdf/tutorial/tuto2.htm mode change 100644 => 100755 phplib/fpdf/tutorial/tuto2.php mode change 100644 => 100755 phplib/fpdf/tutorial/tuto3.htm mode change 100644 => 100755 phplib/fpdf/tutorial/tuto3.php mode change 100644 => 100755 phplib/fpdf/tutorial/tuto4.htm mode change 100644 => 100755 phplib/fpdf/tutorial/tuto4.php mode change 100644 => 100755 phplib/fpdf/tutorial/tuto5.htm mode change 100644 => 100755 phplib/fpdf/tutorial/tuto5.php mode change 100644 => 100755 phplib/fpdf/tutorial/tuto6.htm mode change 100644 => 100755 phplib/fpdf/tutorial/tuto6.php mode change 100644 => 100755 phplib/fpdf/tutorial/tuto7.htm mode change 100644 => 100755 phplib/fpdf/tutorial/tuto7.php create mode 100644 phplib/fpdf153/FAQ.htm create mode 100644 phplib/fpdf153/doc/acceptpagebreak.htm create mode 100644 phplib/fpdf153/doc/addfont.htm create mode 100644 phplib/fpdf153/doc/addlink.htm create mode 100644 phplib/fpdf153/doc/addpage.htm create mode 100644 phplib/fpdf153/doc/aliasnbpages.htm create mode 100644 phplib/fpdf153/doc/cell.htm create mode 100644 phplib/fpdf153/doc/close.htm create mode 100644 phplib/fpdf153/doc/error.htm create mode 100644 phplib/fpdf153/doc/footer.htm rename phplib/{fpdf => fpdf153}/doc/fpdf.htm (100%) create mode 100644 phplib/fpdf153/doc/getstringwidth.htm create mode 100644 phplib/fpdf153/doc/getx.htm create mode 100644 phplib/fpdf153/doc/gety.htm create mode 100644 phplib/fpdf153/doc/header.htm create mode 100644 phplib/fpdf153/doc/image.htm create mode 100644 phplib/fpdf153/doc/index.htm create mode 100644 phplib/fpdf153/doc/line.htm create mode 100644 phplib/fpdf153/doc/link.htm create mode 100644 phplib/fpdf153/doc/ln.htm create mode 100644 phplib/fpdf153/doc/multicell.htm create mode 100644 phplib/fpdf153/doc/output.htm create mode 100644 phplib/fpdf153/doc/pageno.htm create mode 100644 phplib/fpdf153/doc/rect.htm create mode 100644 phplib/fpdf153/doc/setauthor.htm create mode 100644 phplib/fpdf153/doc/setautopagebreak.htm create mode 100644 phplib/fpdf153/doc/setcompression.htm create mode 100644 phplib/fpdf153/doc/setcreator.htm create mode 100644 phplib/fpdf153/doc/setdisplaymode.htm create mode 100644 phplib/fpdf153/doc/setdrawcolor.htm create mode 100644 phplib/fpdf153/doc/setfillcolor.htm create mode 100644 phplib/fpdf153/doc/setfont.htm create mode 100644 phplib/fpdf153/doc/setfontsize.htm create mode 100644 phplib/fpdf153/doc/setkeywords.htm create mode 100644 phplib/fpdf153/doc/setleftmargin.htm create mode 100644 phplib/fpdf153/doc/setlinewidth.htm create mode 100644 phplib/fpdf153/doc/setlink.htm create mode 100644 phplib/fpdf153/doc/setmargins.htm create mode 100644 phplib/fpdf153/doc/setrightmargin.htm create mode 100644 phplib/fpdf153/doc/setsubject.htm create mode 100644 phplib/fpdf153/doc/settextcolor.htm create mode 100644 phplib/fpdf153/doc/settitle.htm create mode 100644 phplib/fpdf153/doc/settopmargin.htm create mode 100644 phplib/fpdf153/doc/setx.htm create mode 100644 phplib/fpdf153/doc/setxy.htm create mode 100644 phplib/fpdf153/doc/sety.htm create mode 100644 phplib/fpdf153/doc/text.htm create mode 100644 phplib/fpdf153/doc/write.htm create mode 100644 phplib/fpdf153/font/courier.php create mode 100644 phplib/fpdf153/font/helvetica.php create mode 100644 phplib/fpdf153/font/helveticab.php create mode 100644 phplib/fpdf153/font/helveticabi.php create mode 100644 phplib/fpdf153/font/helveticai.php create mode 100644 phplib/fpdf153/font/makefont/cp1250.map create mode 100644 phplib/fpdf153/font/makefont/cp1251.map create mode 100644 phplib/fpdf153/font/makefont/cp1252.map create mode 100644 phplib/fpdf153/font/makefont/cp1253.map create mode 100644 phplib/fpdf153/font/makefont/cp1254.map create mode 100644 phplib/fpdf153/font/makefont/cp1255.map create mode 100644 phplib/fpdf153/font/makefont/cp1257.map create mode 100644 phplib/fpdf153/font/makefont/cp1258.map create mode 100644 phplib/fpdf153/font/makefont/cp874.map create mode 100644 phplib/fpdf153/font/makefont/iso-8859-1.map create mode 100644 phplib/fpdf153/font/makefont/iso-8859-11.map create mode 100644 phplib/fpdf153/font/makefont/iso-8859-15.map create mode 100644 phplib/fpdf153/font/makefont/iso-8859-16.map rename phplib/{fpdf => fpdf153}/font/makefont/iso-8859-2.map (100%) create mode 100644 phplib/fpdf153/font/makefont/iso-8859-4.map create mode 100644 phplib/fpdf153/font/makefont/iso-8859-5.map create mode 100644 phplib/fpdf153/font/makefont/iso-8859-7.map create mode 100644 phplib/fpdf153/font/makefont/iso-8859-9.map create mode 100644 phplib/fpdf153/font/makefont/koi8-r.map create mode 100644 phplib/fpdf153/font/makefont/koi8-u.map rename phplib/{fpdf => fpdf153}/font/makefont/makefont.php (100%) create mode 100644 phplib/fpdf153/font/symbol.php create mode 100644 phplib/fpdf153/font/times.php create mode 100644 phplib/fpdf153/font/timesb.php create mode 100644 phplib/fpdf153/font/timesbi.php create mode 100644 phplib/fpdf153/font/timesi.php create mode 100644 phplib/fpdf153/font/zapfdingbats.php create mode 100644 phplib/fpdf153/fpdf.css create mode 100644 phplib/fpdf153/fpdf.php rename phplib/{fpdf => fpdf153}/histo.htm (100%) create mode 100644 phplib/fpdf153/install.txt create mode 100644 phplib/fpdf153/tutorial/20k_c1.txt create mode 100644 phplib/fpdf153/tutorial/20k_c2.txt rename phplib/{fpdf => fpdf153}/tutorial/calligra.afm (100%) create mode 100644 phplib/fpdf153/tutorial/calligra.php create mode 100644 phplib/fpdf153/tutorial/calligra.ttf create mode 100644 phplib/fpdf153/tutorial/calligra.z rename phplib/{tcpdf/cache/table_data_demo.txt => fpdf153/tutorial/countries.txt} (100%) create mode 100644 phplib/fpdf153/tutorial/index.htm create mode 100644 phplib/fpdf153/tutorial/logo.png rename phplib/{fpdf => fpdf153}/tutorial/logo_pb.png (100%) create mode 100644 phplib/fpdf153/tutorial/makefont.php create mode 100644 phplib/fpdf153/tutorial/tuto1.htm create mode 100644 phplib/fpdf153/tutorial/tuto1.php create mode 100644 phplib/fpdf153/tutorial/tuto2.htm create mode 100644 phplib/fpdf153/tutorial/tuto2.php create mode 100644 phplib/fpdf153/tutorial/tuto3.htm create mode 100644 phplib/fpdf153/tutorial/tuto3.php create mode 100644 phplib/fpdf153/tutorial/tuto4.htm create mode 100644 phplib/fpdf153/tutorial/tuto4.php create mode 100644 phplib/fpdf153/tutorial/tuto5.htm create mode 100644 phplib/fpdf153/tutorial/tuto5.php create mode 100644 phplib/fpdf153/tutorial/tuto6.htm create mode 100644 phplib/fpdf153/tutorial/tuto6.php create mode 100644 phplib/fpdf153/tutorial/tuto7.htm create mode 100644 phplib/fpdf153/tutorial/tuto7.php create mode 100755 phplib/fpdf181/FAQ.htm create mode 100755 phplib/fpdf181/changelog.htm create mode 100755 phplib/fpdf181/doc/__construct.htm create mode 100755 phplib/fpdf181/doc/acceptpagebreak.htm create mode 100755 phplib/fpdf181/doc/addfont.htm create mode 100755 phplib/fpdf181/doc/addlink.htm create mode 100755 phplib/fpdf181/doc/addpage.htm create mode 100755 phplib/fpdf181/doc/aliasnbpages.htm create mode 100755 phplib/fpdf181/doc/cell.htm create mode 100755 phplib/fpdf181/doc/close.htm create mode 100755 phplib/fpdf181/doc/error.htm create mode 100755 phplib/fpdf181/doc/footer.htm create mode 100755 phplib/fpdf181/doc/getpageheight.htm create mode 100755 phplib/fpdf181/doc/getpagewidth.htm create mode 100755 phplib/fpdf181/doc/getstringwidth.htm create mode 100755 phplib/fpdf181/doc/getx.htm create mode 100755 phplib/fpdf181/doc/gety.htm create mode 100755 phplib/fpdf181/doc/header.htm create mode 100755 phplib/fpdf181/doc/image.htm create mode 100755 phplib/fpdf181/doc/index.htm create mode 100755 phplib/fpdf181/doc/line.htm create mode 100755 phplib/fpdf181/doc/link.htm create mode 100755 phplib/fpdf181/doc/ln.htm create mode 100755 phplib/fpdf181/doc/multicell.htm create mode 100755 phplib/fpdf181/doc/output.htm create mode 100755 phplib/fpdf181/doc/pageno.htm create mode 100755 phplib/fpdf181/doc/rect.htm create mode 100755 phplib/fpdf181/doc/setauthor.htm create mode 100755 phplib/fpdf181/doc/setautopagebreak.htm create mode 100755 phplib/fpdf181/doc/setcompression.htm create mode 100755 phplib/fpdf181/doc/setcreator.htm create mode 100755 phplib/fpdf181/doc/setdisplaymode.htm create mode 100755 phplib/fpdf181/doc/setdrawcolor.htm create mode 100755 phplib/fpdf181/doc/setfillcolor.htm create mode 100755 phplib/fpdf181/doc/setfont.htm create mode 100755 phplib/fpdf181/doc/setfontsize.htm create mode 100755 phplib/fpdf181/doc/setkeywords.htm create mode 100755 phplib/fpdf181/doc/setleftmargin.htm create mode 100755 phplib/fpdf181/doc/setlinewidth.htm create mode 100755 phplib/fpdf181/doc/setlink.htm create mode 100755 phplib/fpdf181/doc/setmargins.htm create mode 100755 phplib/fpdf181/doc/setrightmargin.htm create mode 100755 phplib/fpdf181/doc/setsubject.htm create mode 100755 phplib/fpdf181/doc/settextcolor.htm create mode 100755 phplib/fpdf181/doc/settitle.htm create mode 100755 phplib/fpdf181/doc/settopmargin.htm create mode 100755 phplib/fpdf181/doc/setx.htm create mode 100755 phplib/fpdf181/doc/setxy.htm create mode 100755 phplib/fpdf181/doc/sety.htm create mode 100755 phplib/fpdf181/doc/text.htm create mode 100755 phplib/fpdf181/doc/write.htm create mode 100755 phplib/fpdf181/font/courier.php create mode 100755 phplib/fpdf181/font/courierb.php create mode 100755 phplib/fpdf181/font/courierbi.php create mode 100755 phplib/fpdf181/font/courieri.php create mode 100755 phplib/fpdf181/font/helvetica.php create mode 100755 phplib/fpdf181/font/helveticab.php create mode 100755 phplib/fpdf181/font/helveticabi.php create mode 100755 phplib/fpdf181/font/helveticai.php create mode 100755 phplib/fpdf181/font/symbol.php create mode 100755 phplib/fpdf181/font/times.php create mode 100755 phplib/fpdf181/font/timesb.php create mode 100755 phplib/fpdf181/font/timesbi.php create mode 100755 phplib/fpdf181/font/timesi.php create mode 100755 phplib/fpdf181/font/zapfdingbats.php create mode 100755 phplib/fpdf181/fpdf.css create mode 100755 phplib/fpdf181/fpdf.php create mode 100755 phplib/fpdf181/install.txt create mode 100755 phplib/fpdf181/license.txt create mode 100755 phplib/fpdf181/makefont/cp1250.map create mode 100755 phplib/fpdf181/makefont/cp1251.map create mode 100755 phplib/fpdf181/makefont/cp1252.map create mode 100755 phplib/fpdf181/makefont/cp1253.map create mode 100755 phplib/fpdf181/makefont/cp1254.map create mode 100755 phplib/fpdf181/makefont/cp1255.map create mode 100755 phplib/fpdf181/makefont/cp1257.map create mode 100755 phplib/fpdf181/makefont/cp1258.map create mode 100755 phplib/fpdf181/makefont/cp874.map create mode 100755 phplib/fpdf181/makefont/iso-8859-1.map create mode 100755 phplib/fpdf181/makefont/iso-8859-11.map create mode 100755 phplib/fpdf181/makefont/iso-8859-15.map create mode 100755 phplib/fpdf181/makefont/iso-8859-16.map create mode 100755 phplib/fpdf181/makefont/iso-8859-2.map create mode 100755 phplib/fpdf181/makefont/iso-8859-4.map create mode 100755 phplib/fpdf181/makefont/iso-8859-5.map create mode 100755 phplib/fpdf181/makefont/iso-8859-7.map create mode 100755 phplib/fpdf181/makefont/iso-8859-9.map create mode 100755 phplib/fpdf181/makefont/koi8-r.map create mode 100755 phplib/fpdf181/makefont/koi8-u.map create mode 100755 phplib/fpdf181/makefont/makefont.php create mode 100755 phplib/fpdf181/makefont/ttfparser.php create mode 100755 phplib/fpdf181/tutorial/20k_c1.txt create mode 100755 phplib/fpdf181/tutorial/20k_c2.txt create mode 100755 phplib/fpdf181/tutorial/calligra.php create mode 100755 phplib/fpdf181/tutorial/calligra.ttf create mode 100755 phplib/fpdf181/tutorial/calligra.z create mode 100755 phplib/fpdf181/tutorial/countries.txt create mode 100755 phplib/fpdf181/tutorial/index.htm create mode 100755 phplib/fpdf181/tutorial/logo.png create mode 100755 phplib/fpdf181/tutorial/makefont.php create mode 100755 phplib/fpdf181/tutorial/tuto1.htm create mode 100755 phplib/fpdf181/tutorial/tuto1.php create mode 100755 phplib/fpdf181/tutorial/tuto2.htm create mode 100755 phplib/fpdf181/tutorial/tuto2.php create mode 100755 phplib/fpdf181/tutorial/tuto3.htm create mode 100755 phplib/fpdf181/tutorial/tuto3.php create mode 100755 phplib/fpdf181/tutorial/tuto4.htm create mode 100755 phplib/fpdf181/tutorial/tuto4.php create mode 100755 phplib/fpdf181/tutorial/tuto5.htm create mode 100755 phplib/fpdf181/tutorial/tuto5.php create mode 100755 phplib/fpdf181/tutorial/tuto6.htm create mode 100755 phplib/fpdf181/tutorial/tuto6.php create mode 100755 phplib/fpdf181/tutorial/tuto7.htm create mode 100755 phplib/fpdf181/tutorial/tuto7.php delete mode 100644 phplib/tcpdf/2dbarcodes.php delete mode 100644 phplib/tcpdf/CHANGELOG.TXT delete mode 100644 phplib/tcpdf/LICENSE.TXT delete mode 100644 phplib/tcpdf/README.TXT delete mode 100644 phplib/tcpdf/barcodes.php delete mode 100644 phplib/tcpdf/cache/chapter_demo_1.txt delete mode 100644 phplib/tcpdf/cache/chapter_demo_2.txt delete mode 100644 phplib/tcpdf/cache/utf8test.txt delete mode 100644 phplib/tcpdf/composer.json delete mode 100644 phplib/tcpdf/config/lang/afr.php delete mode 100644 phplib/tcpdf/config/lang/ara.php delete mode 100644 phplib/tcpdf/config/lang/aze.php delete mode 100644 phplib/tcpdf/config/lang/bel.php delete mode 100644 phplib/tcpdf/config/lang/bra.php delete mode 100644 phplib/tcpdf/config/lang/bul.php delete mode 100644 phplib/tcpdf/config/lang/cat.php delete mode 100644 phplib/tcpdf/config/lang/ces.php delete mode 100644 phplib/tcpdf/config/lang/chi.php delete mode 100644 phplib/tcpdf/config/lang/cym.php delete mode 100644 phplib/tcpdf/config/lang/dan.php delete mode 100644 phplib/tcpdf/config/lang/eng.php delete mode 100644 phplib/tcpdf/config/lang/est.php delete mode 100644 phplib/tcpdf/config/lang/eus.php delete mode 100644 phplib/tcpdf/config/lang/far.php delete mode 100644 phplib/tcpdf/config/lang/fra.php delete mode 100644 phplib/tcpdf/config/lang/ger.php delete mode 100644 phplib/tcpdf/config/lang/gle.php delete mode 100644 phplib/tcpdf/config/lang/glg.php delete mode 100644 phplib/tcpdf/config/lang/hat.php delete mode 100644 phplib/tcpdf/config/lang/heb.php delete mode 100644 phplib/tcpdf/config/lang/hrv.php delete mode 100644 phplib/tcpdf/config/lang/hun.php delete mode 100644 phplib/tcpdf/config/lang/hye.php delete mode 100644 phplib/tcpdf/config/lang/ind.php delete mode 100644 phplib/tcpdf/config/lang/ita.php delete mode 100644 phplib/tcpdf/config/lang/jpn.php delete mode 100644 phplib/tcpdf/config/lang/kat.php delete mode 100644 phplib/tcpdf/config/lang/kor.php delete mode 100644 phplib/tcpdf/config/lang/mkd.php delete mode 100644 phplib/tcpdf/config/lang/mlt.php delete mode 100644 phplib/tcpdf/config/lang/msa.php delete mode 100644 phplib/tcpdf/config/lang/nld.php delete mode 100644 phplib/tcpdf/config/lang/nob.php delete mode 100644 phplib/tcpdf/config/lang/pol.php delete mode 100644 phplib/tcpdf/config/lang/por.php delete mode 100644 phplib/tcpdf/config/lang/ron.php delete mode 100644 phplib/tcpdf/config/lang/rus.php delete mode 100644 phplib/tcpdf/config/lang/slv.php delete mode 100644 phplib/tcpdf/config/lang/spa.php delete mode 100644 phplib/tcpdf/config/lang/sqi.php delete mode 100644 phplib/tcpdf/config/lang/srp.php delete mode 100644 phplib/tcpdf/config/lang/swa.php delete mode 100644 phplib/tcpdf/config/lang/swe.php delete mode 100644 phplib/tcpdf/config/lang/ukr.php delete mode 100644 phplib/tcpdf/config/lang/urd.php delete mode 100644 phplib/tcpdf/config/lang/yid.php delete mode 100644 phplib/tcpdf/config/lang/zho.php delete mode 100644 phplib/tcpdf/config/tcpdf_config.php delete mode 100644 phplib/tcpdf/config/tcpdf_config_alt.php delete mode 100644 phplib/tcpdf/datamatrix.php delete mode 100644 phplib/tcpdf/doc/index.html delete mode 100644 phplib/tcpdf/encodings_maps.php delete mode 100644 phplib/tcpdf/examples/example_001.php delete mode 100644 phplib/tcpdf/examples/example_002.php delete mode 100644 phplib/tcpdf/examples/example_003.php delete mode 100644 phplib/tcpdf/examples/example_004.php delete mode 100644 phplib/tcpdf/examples/example_005.php delete mode 100644 phplib/tcpdf/examples/example_006.php delete mode 100644 phplib/tcpdf/examples/example_007.php delete mode 100644 phplib/tcpdf/examples/example_008.php delete mode 100644 phplib/tcpdf/examples/example_009.php delete mode 100644 phplib/tcpdf/examples/example_010.php delete mode 100644 phplib/tcpdf/examples/example_011.php delete mode 100644 phplib/tcpdf/examples/example_012.pdf delete mode 100644 phplib/tcpdf/examples/example_012.php delete mode 100644 phplib/tcpdf/examples/example_013.php delete mode 100644 phplib/tcpdf/examples/example_014.php delete mode 100644 phplib/tcpdf/examples/example_015.php delete mode 100644 phplib/tcpdf/examples/example_016.php delete mode 100644 phplib/tcpdf/examples/example_017.php delete mode 100644 phplib/tcpdf/examples/example_018.php delete mode 100644 phplib/tcpdf/examples/example_019.php delete mode 100644 phplib/tcpdf/examples/example_020.php delete mode 100644 phplib/tcpdf/examples/example_021.php delete mode 100644 phplib/tcpdf/examples/example_022.php delete mode 100644 phplib/tcpdf/examples/example_023.php delete mode 100644 phplib/tcpdf/examples/example_024.php delete mode 100644 phplib/tcpdf/examples/example_025.php delete mode 100644 phplib/tcpdf/examples/example_026.php delete mode 100644 phplib/tcpdf/examples/example_027.php delete mode 100644 phplib/tcpdf/examples/example_028.php delete mode 100644 phplib/tcpdf/examples/example_029.php delete mode 100644 phplib/tcpdf/examples/example_030.php delete mode 100644 phplib/tcpdf/examples/example_031.php delete mode 100644 phplib/tcpdf/examples/example_032.php delete mode 100644 phplib/tcpdf/examples/example_033.php delete mode 100644 phplib/tcpdf/examples/example_034.php delete mode 100644 phplib/tcpdf/examples/example_035.php delete mode 100644 phplib/tcpdf/examples/example_036.php delete mode 100644 phplib/tcpdf/examples/example_037.php delete mode 100644 phplib/tcpdf/examples/example_038.php delete mode 100644 phplib/tcpdf/examples/example_039.php delete mode 100644 phplib/tcpdf/examples/example_040.php delete mode 100644 phplib/tcpdf/examples/example_041.php delete mode 100644 phplib/tcpdf/examples/example_042.php delete mode 100644 phplib/tcpdf/examples/example_043.php delete mode 100644 phplib/tcpdf/examples/example_044.php delete mode 100644 phplib/tcpdf/examples/example_045.php delete mode 100644 phplib/tcpdf/examples/example_046.php delete mode 100644 phplib/tcpdf/examples/example_047.php delete mode 100644 phplib/tcpdf/examples/example_048.php delete mode 100644 phplib/tcpdf/examples/example_049.php delete mode 100644 phplib/tcpdf/examples/example_050.php delete mode 100644 phplib/tcpdf/examples/example_051.php delete mode 100644 phplib/tcpdf/examples/example_052.php delete mode 100644 phplib/tcpdf/examples/example_053.php delete mode 100644 phplib/tcpdf/examples/example_054.php delete mode 100644 phplib/tcpdf/examples/example_055.php delete mode 100644 phplib/tcpdf/examples/example_056.php delete mode 100644 phplib/tcpdf/examples/example_057.php delete mode 100644 phplib/tcpdf/examples/example_058.php delete mode 100644 phplib/tcpdf/examples/example_059.php delete mode 100644 phplib/tcpdf/examples/example_060.php delete mode 100644 phplib/tcpdf/examples/example_061.php delete mode 100644 phplib/tcpdf/examples/example_062.php delete mode 100644 phplib/tcpdf/examples/example_063.php delete mode 100644 phplib/tcpdf/examples/example_064.php delete mode 100644 phplib/tcpdf/examples/example_065.php delete mode 100644 phplib/tcpdf/examples/index.php delete mode 100644 phplib/tcpdf/fonts/aealarabiya.ctg.z delete mode 100644 phplib/tcpdf/fonts/aealarabiya.php delete mode 100644 phplib/tcpdf/fonts/aealarabiya.z delete mode 100644 phplib/tcpdf/fonts/aefurat.ctg.z delete mode 100644 phplib/tcpdf/fonts/aefurat.php delete mode 100644 phplib/tcpdf/fonts/aefurat.z delete mode 100644 phplib/tcpdf/fonts/cid0cs.php delete mode 100644 phplib/tcpdf/fonts/cid0ct.php delete mode 100644 phplib/tcpdf/fonts/cid0jp.php delete mode 100644 phplib/tcpdf/fonts/cid0kr.php delete mode 100644 phplib/tcpdf/fonts/courier.php delete mode 100644 phplib/tcpdf/fonts/courierb.php delete mode 100644 phplib/tcpdf/fonts/courierbi.php delete mode 100644 phplib/tcpdf/fonts/courieri.php delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._AUTHORS delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._BUGS delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._LICENSE delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._NEWS delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._README delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._langcover.txt delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._status.txt delete mode 100755 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/._unicover.txt delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/AUTHORS delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/BUGS delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/LICENSE delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/NEWS delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/README delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/langcover.txt delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/status.txt delete mode 100644 phplib/tcpdf/fonts/dejavu-fonts-ttf-2.33/unicover.txt delete mode 100644 phplib/tcpdf/fonts/dejavusans.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusans.php delete mode 100644 phplib/tcpdf/fonts/dejavusans.z delete mode 100644 phplib/tcpdf/fonts/dejavusansb.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansb.php delete mode 100644 phplib/tcpdf/fonts/dejavusansb.z delete mode 100644 phplib/tcpdf/fonts/dejavusansbi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansbi.php delete mode 100644 phplib/tcpdf/fonts/dejavusansbi.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensed.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensed.php delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensed.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedb.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedb.php delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedb.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedbi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedbi.php delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedbi.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedi.php delete mode 100644 phplib/tcpdf/fonts/dejavusanscondensedi.z delete mode 100644 phplib/tcpdf/fonts/dejavusansextralight.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansextralight.php delete mode 100644 phplib/tcpdf/fonts/dejavusansextralight.z delete mode 100644 phplib/tcpdf/fonts/dejavusansi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansi.php delete mode 100644 phplib/tcpdf/fonts/dejavusansi.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmono.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmono.php delete mode 100644 phplib/tcpdf/fonts/dejavusansmono.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmonob.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmonob.php delete mode 100644 phplib/tcpdf/fonts/dejavusansmonob.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmonobi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmonobi.php delete mode 100644 phplib/tcpdf/fonts/dejavusansmonobi.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmonoi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavusansmonoi.php delete mode 100644 phplib/tcpdf/fonts/dejavusansmonoi.z delete mode 100644 phplib/tcpdf/fonts/dejavuserif.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserif.php delete mode 100644 phplib/tcpdf/fonts/dejavuserif.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifb.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifb.php delete mode 100644 phplib/tcpdf/fonts/dejavuserifb.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifbi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifbi.php delete mode 100644 phplib/tcpdf/fonts/dejavuserifbi.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensed.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensed.php delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensed.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedb.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedb.php delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedb.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedbi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedbi.php delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedbi.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedi.php delete mode 100644 phplib/tcpdf/fonts/dejavuserifcondensedi.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifi.ctg.z delete mode 100644 phplib/tcpdf/fonts/dejavuserifi.php delete mode 100644 phplib/tcpdf/fonts/dejavuserifi.z delete mode 100755 phplib/tcpdf/fonts/freefont-20100919/._AUTHORS delete mode 100755 phplib/tcpdf/fonts/freefont-20100919/._COPYING delete mode 100755 phplib/tcpdf/fonts/freefont-20100919/._CREDITS delete mode 100755 phplib/tcpdf/fonts/freefont-20100919/._ChangeLog delete mode 100755 phplib/tcpdf/fonts/freefont-20100919/._INSTALL delete mode 100755 phplib/tcpdf/fonts/freefont-20100919/._README delete mode 100644 phplib/tcpdf/fonts/freefont-20100919/AUTHORS delete mode 100644 phplib/tcpdf/fonts/freefont-20100919/COPYING delete mode 100644 phplib/tcpdf/fonts/freefont-20100919/CREDITS delete mode 100644 phplib/tcpdf/fonts/freefont-20100919/ChangeLog delete mode 100644 phplib/tcpdf/fonts/freefont-20100919/INSTALL delete mode 100644 phplib/tcpdf/fonts/freefont-20100919/README delete mode 100644 phplib/tcpdf/fonts/freemono.ctg.z delete mode 100644 phplib/tcpdf/fonts/freemono.php delete mode 100644 phplib/tcpdf/fonts/freemono.z delete mode 100644 phplib/tcpdf/fonts/freemonob.ctg.z delete mode 100644 phplib/tcpdf/fonts/freemonob.php delete mode 100644 phplib/tcpdf/fonts/freemonob.z delete mode 100644 phplib/tcpdf/fonts/freemonobi.ctg.z delete mode 100644 phplib/tcpdf/fonts/freemonobi.php delete mode 100644 phplib/tcpdf/fonts/freemonobi.z delete mode 100644 phplib/tcpdf/fonts/freemonoi.ctg.z delete mode 100644 phplib/tcpdf/fonts/freemonoi.php delete mode 100644 phplib/tcpdf/fonts/freemonoi.z delete mode 100644 phplib/tcpdf/fonts/freesans.ctg.z delete mode 100644 phplib/tcpdf/fonts/freesans.php delete mode 100644 phplib/tcpdf/fonts/freesans.z delete mode 100644 phplib/tcpdf/fonts/freesansb.ctg.z delete mode 100644 phplib/tcpdf/fonts/freesansb.php delete mode 100644 phplib/tcpdf/fonts/freesansb.z delete mode 100644 phplib/tcpdf/fonts/freesansbi.ctg.z delete mode 100644 phplib/tcpdf/fonts/freesansbi.php delete mode 100644 phplib/tcpdf/fonts/freesansbi.z delete mode 100644 phplib/tcpdf/fonts/freesansi.ctg.z delete mode 100644 phplib/tcpdf/fonts/freesansi.php delete mode 100644 phplib/tcpdf/fonts/freesansi.z delete mode 100644 phplib/tcpdf/fonts/freeserif.ctg.z delete mode 100644 phplib/tcpdf/fonts/freeserif.php delete mode 100644 phplib/tcpdf/fonts/freeserif.z delete mode 100644 phplib/tcpdf/fonts/freeserifb.ctg.z delete mode 100644 phplib/tcpdf/fonts/freeserifb.php delete mode 100644 phplib/tcpdf/fonts/freeserifb.z delete mode 100644 phplib/tcpdf/fonts/freeserifbi.ctg.z delete mode 100644 phplib/tcpdf/fonts/freeserifbi.php delete mode 100644 phplib/tcpdf/fonts/freeserifbi.z delete mode 100644 phplib/tcpdf/fonts/freeserifi.ctg.z delete mode 100644 phplib/tcpdf/fonts/freeserifi.php delete mode 100644 phplib/tcpdf/fonts/freeserifi.z delete mode 100644 phplib/tcpdf/fonts/helvetica.php delete mode 100644 phplib/tcpdf/fonts/helveticab.php delete mode 100644 phplib/tcpdf/fonts/helveticabi.php delete mode 100644 phplib/tcpdf/fonts/helveticai.php delete mode 100644 phplib/tcpdf/fonts/hysmyeongjostdmedium.php delete mode 100644 phplib/tcpdf/fonts/kozgopromedium.php delete mode 100644 phplib/tcpdf/fonts/kozminproregular.php delete mode 100644 phplib/tcpdf/fonts/msungstdlight.php delete mode 100644 phplib/tcpdf/fonts/pdfacourier.php delete mode 100644 phplib/tcpdf/fonts/pdfacourier.z delete mode 100644 phplib/tcpdf/fonts/pdfacourierb.php delete mode 100644 phplib/tcpdf/fonts/pdfacourierb.z delete mode 100644 phplib/tcpdf/fonts/pdfacourierbi.php delete mode 100644 phplib/tcpdf/fonts/pdfacourierbi.z delete mode 100644 phplib/tcpdf/fonts/pdfacourieri.php delete mode 100644 phplib/tcpdf/fonts/pdfacourieri.z delete mode 100644 phplib/tcpdf/fonts/pdfahelvetica.php delete mode 100644 phplib/tcpdf/fonts/pdfahelvetica.z delete mode 100644 phplib/tcpdf/fonts/pdfahelveticab.php delete mode 100644 phplib/tcpdf/fonts/pdfahelveticab.z delete mode 100644 phplib/tcpdf/fonts/pdfahelveticabi.php delete mode 100644 phplib/tcpdf/fonts/pdfahelveticabi.z delete mode 100644 phplib/tcpdf/fonts/pdfahelveticai.php delete mode 100644 phplib/tcpdf/fonts/pdfahelveticai.z delete mode 100644 phplib/tcpdf/fonts/pdfasymbol.php delete mode 100644 phplib/tcpdf/fonts/pdfasymbol.z delete mode 100644 phplib/tcpdf/fonts/pdfatimes.php delete mode 100644 phplib/tcpdf/fonts/pdfatimes.z delete mode 100644 phplib/tcpdf/fonts/pdfatimesb.php delete mode 100644 phplib/tcpdf/fonts/pdfatimesb.z delete mode 100644 phplib/tcpdf/fonts/pdfatimesbi.php delete mode 100644 phplib/tcpdf/fonts/pdfatimesbi.z delete mode 100644 phplib/tcpdf/fonts/pdfatimesi.php delete mode 100644 phplib/tcpdf/fonts/pdfatimesi.z delete mode 100644 phplib/tcpdf/fonts/pdfazapfdingbats.php delete mode 100644 phplib/tcpdf/fonts/pdfazapfdingbats.z delete mode 100644 phplib/tcpdf/fonts/stsongstdlight.php delete mode 100644 phplib/tcpdf/fonts/symbol.php delete mode 100644 phplib/tcpdf/fonts/times.php delete mode 100644 phplib/tcpdf/fonts/timesb.php delete mode 100644 phplib/tcpdf/fonts/timesbi.php delete mode 100644 phplib/tcpdf/fonts/timesi.php delete mode 100644 phplib/tcpdf/fonts/uni2cid_ac15.php delete mode 100644 phplib/tcpdf/fonts/uni2cid_ag15.php delete mode 100644 phplib/tcpdf/fonts/uni2cid_aj16.php delete mode 100644 phplib/tcpdf/fonts/uni2cid_ak12.php delete mode 100644 phplib/tcpdf/fonts/zapfdingbats.php delete mode 100644 phplib/tcpdf/htmlcolors.php delete mode 100644 phplib/tcpdf/images/_blank.png delete mode 100644 phplib/tcpdf/images/alpha.png delete mode 100644 phplib/tcpdf/images/bug.eps delete mode 100644 phplib/tcpdf/images/image_demo.jpg delete mode 100644 phplib/tcpdf/images/image_with_alpha.png delete mode 100644 phplib/tcpdf/images/img.png delete mode 100644 phplib/tcpdf/images/logo_example.gif delete mode 100644 phplib/tcpdf/images/logo_example.jpg delete mode 100644 phplib/tcpdf/images/logo_example.png delete mode 100644 phplib/tcpdf/images/pelican.ai delete mode 100644 phplib/tcpdf/images/tcpdf_cell.png delete mode 100644 phplib/tcpdf/images/tcpdf_logo.jpg delete mode 100644 phplib/tcpdf/images/tcpdf_signature.png delete mode 100644 phplib/tcpdf/images/testsvg.svg delete mode 100644 phplib/tcpdf/images/tiger.ai delete mode 100644 phplib/tcpdf/images/tux.svg delete mode 100644 phplib/tcpdf/pdf417.php delete mode 100644 phplib/tcpdf/qrcode.php delete mode 100644 phplib/tcpdf/sRGB.icc delete mode 100644 phplib/tcpdf/spotcolors.php delete mode 100644 phplib/tcpdf/tcpdf.crt delete mode 100644 phplib/tcpdf/tcpdf.fdf delete mode 100644 phplib/tcpdf/tcpdf.p12 delete mode 100644 phplib/tcpdf/tcpdf.php delete mode 100644 phplib/tcpdf/tcpdf_filters.php delete mode 100644 phplib/tcpdf/tcpdf_parser.php delete mode 100644 phplib/tcpdf/unicode_data.php create mode 100644 sitemap.xml create mode 100755 smartasn1.en_US.UTF-8.xml create mode 100644 update-site/.project create mode 100644 update-site/artifacts.jar create mode 100644 update-site/content.jar create mode 100644 update-site/features/org.aeb.feature.ale.profile_1.0.0.201310191718.jar create mode 100644 update-site/features/org.aeb.resources_1.0.0.201203121544.jar create mode 100644 update-site/features/org.aeb.resources_1.0.0.201203131523.jar create mode 100644 update-site/features/org.aeb.resources_1.0.0.201203140914.jar create mode 100644 update-site/features/org.aeb.resources_1.0.1.201310191721.jar create mode 100644 update-site/features/org.aeb.resources_1.0.1.201310191809.jar create mode 100644 update-site/plugins/org.aeb.modeling.resources_1.0.0.201203121544.jar create mode 100644 update-site/plugins/org.aeb.modeling.resources_1.0.0.201203131523.jar create mode 100644 update-site/plugins/org.aeb.modeling.resources_1.0.0.201203140914.jar create mode 100644 update-site/plugins/org.aeb.modeling.resources_1.0.1.201310191721.jar create mode 100644 update-site/plugins/org.aeb.modeling.resources_1.0.1.201310191809.jar create mode 100644 update-site/plugins/org.ale.smb.modeling.resources_1.0.0.201310191718.jar create mode 100644 update-site/site.xml diff --git a/README.php b/README.php deleted file mode 100644 index 1408c33..0000000 --- a/README.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/accounting/accueil.en_US.UTF-8.xml b/accounting/accueil.en_US.UTF-8.xml deleted file mode 100644 index 7d14cd2..0000000 --- a/accounting/accueil.en_US.UTF-8.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - Welcome page of Aeb -

Welcome page to aeb website. You can find a porto folio of our realizations.

- C++,CV,Linux,Development - $Date: 2010/08/25 15:10:02 $ - $Id: accueil.en_US.UTF-8.xml,v 1.4 2010/08/25 15:10:02 aebersol Exp $ - -
-
-
-
-
Who I am
-
-

Senior Software Engineer
-

39 years old
Married 1 child

-

Company : Alcatel Lucent

-

-

Specialized in C/C++ development

-
-
-
-
Studies / Projects
-
-
    -
  • Flash driver enhancement
  • -
  • Web reverse proxy comparison
  • -
  • Encapsulation of binary flow in http chucks
  • -
  • OmniPCX Office feature improvements
  • -
  • Porting Linux 2.4 drivers to kernel 2.6
  • -
  • Migration of x86 application to powerpc
  • -
-
-
-
-
-
-
-
News Events
-
- -
-
-
-
Activities
-
-
    -
  • I work for Alcatel Lucent as a sub-contractor
  • -
  • I remotely maintain a server (from dedibox) for an association
  • -
-
-
-
-
-
- -
diff --git a/accounting/accueil.fr_FR.UTF-8.xml b/accounting/accueil.fr_FR.UTF-8.xml deleted file mode 100644 index 5776169..0000000 --- a/accounting/accueil.fr_FR.UTF-8.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - La page d'accueil de la gestion de copropriete en ligne. -

En tant que syndics bénévoles, nous sommes fièrs de vous présenter notre solution de gestion pour le syndic bénévole. Cette application, simple d'utilisation, réponds précisément au besoin des syndics bénévoles qui gèrent de petite copropriété. Tous les services de comptabilités sont facile d'accès et vous permettent de gagner un temps précieux.

- $Date: 2010/08/25 15:10:02 $ - $Id: accueil.fr_FR.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ - SYNDIC,Bénévole,STRASBOURG,ANDRE,EBERSOLD,COMPTABILITE,CLOUD, syndic bénévole, le syndic bénévole, les syndics bénévoles, syndic bénévole compta - - - -
-
Bookkeeping for trustee
-

-

Solution de gestion comptable

-

pour les Syndics Bénévoles

-
-
-

Expérimentez la comptabilité pour le syndic en toute simplicité. Une nouvelle manière de gérer votre bâtiment et vos copropriétaires.
Joignez la communauté en ligne des syndics bénévoles qui ont choisis la comptabilité en ligne.

-
-
-
Services
-
-
    -
  • Disponible en tout temps
  • -
  • Détail des comptes
  • -
  • Gestion de lots
  • -
  • Gestion des fournisseurs
  • -
  • Gestion des copropriétaires
  • -
  • Synthèse à la cloture conforme aux exigences de la loi
  • -
-
-
- -
-
Syndic bénévole
-
- -

-
    -
-
-
-
-
En toute Simplicité
-
-
    -
  • Des fenêtres de saisies adaptées
  • -
  • Pour lancer les appels de fonds
  • -
  • Enregistrer les factures
  • -
  • Enregistrer les payements
  • -
  • Enregistrer les versements des corpropriértaires
  • -
  • Gérer les lots de la copropriété
  • -
  • Toutes les annexes comptable à la cloture conformes aux exigences de la loi
  • -
-
-
-
-
- -
diff --git a/accounting/budget.fr_FR.UTF-8.xml b/accounting/budget.fr_FR.UTF-8.xml deleted file mode 100755 index 5143ff3..0000000 --- a/accounting/budget.fr_FR.UTF-8.xml +++ /dev/null @@ -1,13 +0,0 @@ - -accounting/budgetLiens,SYNDIC,Budget,gestionGestion du budget de la copropriété. -

L'onglet Budget

-

Les options offertes aux syndics bénévoles pour gérer les budgets

-

Il permet au syndic de préparer les budgets prévisionnels pour les années à venirs. Ces budgets sont automatiquement intégré dans les annexes comptable en fin d'exercice.

-

Cet espace de travail fournit deux service. La liste des budgets, la création d'un nouveau budget. Le logiciel se base sur le plan comptable pour créer les lignes qui doivent être budgété.

-

Liste des budgets

-

C'est un simple tableau qui affiche la liste de tous les budgets qui ont été créé. Le syndic peut supprimer un budget en cliquant sur le croix d'une ligne, ou il peut simplement selection un budget pour passer en mode édition.

-
Un tableau qui donne la liste des budgets que le syndic a créé.
-

Edition d'un budget

-

L'édition du budget est enfantine. Il suffit de selectionner un celulle dans la colonne "N". Le champ se met alors en mode édition et vous pouvez saisir la montant que vous souhaiter budgéter pour le poste en question. Il vous suffit de valider la saisie en appuyant sur entré. La celulle change de nouveau d'état et votre montant est enregistré. Le Total est égalelement mis à jour.

-
La fenêtre d'édition du budget. permet au syndic de sélectionner la class de compte. Puis, pour chaque entrée de la classe il peut affecter une valeur et une clé de charge.
-

diff --git a/accounting/contact.en_US.UTF-8.xml b/accounting/contact.en_US.UTF-8.xml deleted file mode 100644 index dbcae01..0000000 --- a/accounting/contact.en_US.UTF-8.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Contact - Contact - Willkommen - $Date: 2009/04/27 06:38:44 $ - $Id: contact.xml,v 1.6 2009/04/27 06:38:44 aeb Exp $ - -

Contact

-

Feel free to leave a message or comments.

-
-
Comments:
-
Security
- -
-
- - -
-
- diff --git a/accounting/contact.fr_FR.UTF-8.xml b/accounting/contact.fr_FR.UTF-8.xml deleted file mode 100644 index 60652aa..0000000 --- a/accounting/contact.fr_FR.UTF-8.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Contact - Contact - Willkommen - $Date: 2009/04/27 06:38:44 $ - $Id: contact.xml,v 1.6 2009/04/27 06:38:44 aeb Exp $ - -

Contact

-

Laissez nous votre message.

-
-
Comments:
-
Security
- -
-
- - -
-
- diff --git a/accounting/copropriete.fr_FR.UTF-8.xml b/accounting/copropriete.fr_FR.UTF-8.xml deleted file mode 100755 index 8c246ce..0000000 --- a/accounting/copropriete.fr_FR.UTF-8.xml +++ /dev/null @@ -1,8 +0,0 @@ - -accounting/coprorietesyndic bénévole,gestion copropriété, créer comptabilité, exercice comptable,gestion de lots,gestion des postes de chargeDéscription générale des fonctions qui sont offert par la solution de gestion en ligne. -

L'onglet Copropriété

-

Les options de configuration de la copropriété.Il fournit tous les services relatifs à la configuration de la copropriété.

-

Un premier groupe permet de voir la liste des copropriétés dont vous faites partie. Il vous est possible de créer un nouvel environnement de gestion à l'aide du lien Nouvelle Organisation.

-

Un second groupe permet de gérer les exercices des périodes comptable.

-

Un troisième groupe permet de gérer les lots

-

Et enfin un dernier groupe permet de gérer l'attribution des cotes part suivant le poste de charge.

diff --git a/accounting/donates.fr_FR.UTF-8.xml b/accounting/donates.fr_FR.UTF-8.xml deleted file mode 100755 index f8b9736..0000000 --- a/accounting/donates.fr_FR.UTF-8.xml +++ /dev/null @@ -1,30 +0,0 @@ - -Faites un dont pour nous soutenirSYNDIC,bénévoles,dons,comptabilité,STRASBOURG,gestion,fondsFaire des dons pour l'utilisation de l'application -

Faire Un don

-

Vous aimez la solution de ce site et vous souhaitez qu'elle vive parce qu'elle vous rend un service incommensurable par rapport à la gestion traditionnelle, alors, n'hésitez pas à faire un don annuel en fonction de la taille de votre copropriété.

-

Les fonds vont servir à financer le fournisseur de service qui héberge le site ainsi qu'au financement des futurs évolutions.

-
- - - - - - - - - - - - - - - - - - - -
Pour une copropriété de 1 à 10 lots:Faites un don de 15 euros/ans
Pour une copropriété de 10 à 20 lots:Faites un don de 30 euros/ans
Pour une copropriété de 20 à 30 lots:Faites un don de 45 euros/ans
Pour une copropriété de plus de 30 lots:
-

Il vos mieux nous contacter

-
-
-
La mise en place des donnation n'est pas opérationnel à ce jour. Vous pouvez malgré tout utiliser l'application de comptabilité.
diff --git a/accounting/fournisseur.fr_FR.UTF-8.xml b/accounting/fournisseur.fr_FR.UTF-8.xml deleted file mode 100755 index 593f825..0000000 --- a/accounting/fournisseur.fr_FR.UTF-8.xml +++ /dev/null @@ -1,13 +0,0 @@ - -accounting/fournisseurLiens,SYNDICDescription générale des fonctions qui sont offert par la solution de gestion en ligne pour géré les aspects comptable liés aux fournisseurs.. -

L'onglet fournisseur.

-

Enregistrement des factures

-

Ci-dessous, un aperçu de la fenêtre de saisie d'une facture.

-
Fenêtre de sasie d'une nouvelle facture. Les champs que le syndic bénévole doit saisir pour enregistrer une nouvelle facture.
-

Après avoir sélectionné l'onglet Fournisseurs, puis l'entrée Nouvelle facture dans le menu gauche, le syndic peu commencer à faire la saisie. Il choisira un intitulé approprié, ensuite il selectionnera le fournisseur dans la liste déroulante aussi que le compte de charge à débiter. Bien sûr il ne faut pas oublier la date de la facture, son montant ainsi que sa référence. Avant d'enregistrer le tout, si le syndic dispose d'un scanner, il peut joindre à l'enregistrement une version électronique de la facture via l'entrée Fichier. Ce document pourra être consulté ultérieument sous plusieurs vue.

-

Une fois que tous les champs sont saisis (sans oublier la clé de charge), le syndic peu en toute tranquilité enregistrer la facture. Cette dernière sera automatiquement répartie au prorata des cotes parts des lots sur l'ensemble des propriétaires.

-

La saisie du payement d'une facture.

-
La fenêtre de saisie pour enregistrer le payement d'un fournisseur.
-

L'état des comptes d'un fournisseur

-

Ci-dessous, un aperçu des informations auquelles on peut rapidement avoir accès sans se casser la tête. En quatres clics vous avez accès au détail du compte d'un fournisseur.

-
Fenêtre qui affiche l'état du compte d'un fournisseur.
diff --git a/accounting/journaux.fr_FR.UTF-8.xml b/accounting/journaux.fr_FR.UTF-8.xml deleted file mode 100755 index 16acc2c..0000000 --- a/accounting/journaux.fr_FR.UTF-8.xml +++ /dev/null @@ -1,17 +0,0 @@ - -accounting/journauxLiens,SYNDIC,syndic,bénévoles,journaux,comptabilité,consulter,strasbourg,compte,gestion

Déscription générale des fonctions qui sont offert par la solution de gestion en ligne.

-

Les Journaux

-

Le menu pour consulter les journaux.La gestion des journaux. est un onglet qui offre deux principaux services. Le premier est bien sûr celui de consulter les journaux. Le second celui de voir le détail d'un compte.

-

-

Le journal

-

Un journal répertorie toutes les opérations qui se sont déroulé durant un exercice donnée. La solution de gestion propose 7 types de journaux comme on peu le voir dans la figure ci-dessous.

-

Le premier type, appelé "Banque" répertorie toutes les opérations bancaires. Le syndic bénévole peut ainsi facilement controler les transactions enregistrées par la banque et celle qu'il a enregistré dans la comptabilité en ligne.

-

Le second type: "Ventes" ne devrait à priori pas être utilisé.

-

Le troisième type: "Achats et frais" concerne répertorie toutes les opérations d'achat. En principe on devrait y voir apparaître les mouvements entre des comptes de fournisseurs et des comptes de charges.

-

Le quatrième type: "Opération divers" sera utilisé pour toutes les opérations qui ne rentre dans aucun type prédéfini.

-

Le cinquième type: "Appels de fonds" répertorie toutes les opérations d'appels de fonds. C'est à dire les mouvements entre les comptes de la classe 7 et celle des copropriétaires qui devront régler l'appel de fonds.

-

La sixième catégorie:"Remboursement appels de fonds" est utilisé à la cloture des comptes où le syndic rembourse tous les appels de fonds. Après de remboursement des appels de fonds, le syndic vera apparaître sur les comptes des copropriétaires le trop percu ou le reste à percevoir.

-

La septième catégorie:"Report à nouveau" est utilisée pour l'enregistrement des mouvements en début d'exercice. Il s'agit de reporter les soldes créditeurs et débiteurs de l'exercice clos sur le nouvel exercice.

-

Le fenêtre journal. Le syndic bénévole peut séléctionner le journal et voir toutes les transations du journal pour l'exercice en cours

-

-

Détail d'un compte

diff --git a/accounting/liens_syndic.en_US.UTF-8.xml b/accounting/liens_syndic.en_US.UTF-8.xml deleted file mode 100644 index 1fa14dd..0000000 --- a/accounting/liens_syndic.en_US.UTF-8.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - Hobbies - $Date: 2008/03/06 18:11:29 $ - $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ - - - -

Useful Links

- -

-
-
- - -
diff --git a/accounting/liens_syndic.fr_FR.UTF-8.xml b/accounting/liens_syndic.fr_FR.UTF-8.xml deleted file mode 100644 index 3334838..0000000 --- a/accounting/liens_syndic.fr_FR.UTF-8.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - Liens vers d'autre site relatif a la gestion de copropriete - $Date: 2008/03/06 18:11:29 $ - $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ - - Liens,SYNDIC,strasbourg,bénévoles,conseil,loi,copropriété,conseilLiens utiles pour le syndic bénévole. - -

Liens utiles

-

Les Associations de syndic bénévoles

-

UNARC, l'assocation des résponsables de copropriété.

-

ASIB, l'association des syndics d'immeuble bénévoles.

-

Conseil syndical de Besançon.

-

Ce que dit la loi

-

JPM-COPRO Droit et pratique de la copropriété de Jean-Pierre MANTELET une source d'information bien utile que vous pouvez consulter.

-

La répartition des charges

-

Loi N° 65-557 du 10 juillet 1965 fixant le status de la copropriété des immeubles bâtis.

-

Décret n°67-223 du 17 mars 1967 pris pour l'application de la loi n° 65-557 du 10 juillet 1965 fixant le statut de la copropriété des immeubles bâtis

-

Taux d'intéret légaux en cas de retard de versement des appels de fonds.

-

Quelques définitions utiles

-

Le conseil syndical Il a pour rôle d'assister le syndic dans ses décisions.

-

La répartition des charges

-

Un article de l'ADIL qui donne une définition claire sur les différents postes de charges.

-

Un autre article de l'ANIL donne une définition similaire.

-

Une description exhaustive des types de charges sur le site de syneval.

-
- - - -
diff --git a/accounting/plan_comptable.fr_FR.UTF-8.xml b/accounting/plan_comptable.fr_FR.UTF-8.xml deleted file mode 100755 index c604e79..0000000 --- a/accounting/plan_comptable.fr_FR.UTF-8.xml +++ /dev/null @@ -1,10 +0,0 @@ - -accounting/plan_comptableSYNDIC,logiciel,cloud,syndic bénévole édition du plan comptable,plan comptable,plan comptable,comptabilité,gestion,syndicLogiciel de gestion comptable en ligne: La gestion du plan comptable. C'est une interface simple et intuitive. -

Le Plan comptable

-

Un plan comptable est créé automatiquement lors de la création d'un compte.

-

Le menu relatif au plan comptable

-

Le menu gauche du plan comptable. Le syndic bénévole peut choisir la classe de compte qu'il souhaite éditer ou visualiser.Pour plus de clarté sur la présentation du plan comptable, un menu sur le coté gauche permet de sélectionner la classe de compte qu'on souhaite visualiser ou éditer.

-

Cette sélection étant effectué le syndic peut maintenant aisément ajouter ou supprimer un comptes.

-

Tableau du plan comptable pour une classe de compte

-

L'ajout d'un compte se fait en choisissant un numéro de compte, un libellé, puis on selectionne le bouton ajouter.

-

La suppression de compte est tout aussi simple. Il suffit de cliquer sur "delete" pour supprimer un compte. (Attention aux conséquences de la suppression d'un compte. Toutes les opérations qui sont associées à ce compte seront supprimés. Le logiciel ne supprime pas le compte si celui-ci n'est pas soldé).

diff --git a/accounting/products.en_US.UTF-8.xml b/accounting/products.en_US.UTF-8.xml deleted file mode 100644 index 9680d9f..0000000 --- a/accounting/products.en_US.UTF-8.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - Mes activités privées - Activities - Willkommen - Activity - Description des mes activités de développement personnel - $Date: 2010/08/25 15:10:02 $ - $Id: activite.en_US.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ - - - -
-
-
Bookkeeping for trustee
-
-

Bookkeeping for trustees.

-Experiment the Bookkeeping for trustee. A new way to to manage your building and deal with your part owners.
Join the great community of online accounting managers.
-
-
-
Bookkeeping for churches
-
-

Bookkeeping for churches.

-Experiment the Bookkeeping for churches. A new way to to manage the finances of the church and your members.
-
-
- -
- -
- diff --git a/accounting/products.fr_FR.UTF-8.xml b/accounting/products.fr_FR.UTF-8.xml deleted file mode 100644 index 600a770..0000000 --- a/accounting/products.fr_FR.UTF-8.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - Les solutions de gestion en ligne - SYNDIC,Comptabilité, Copropriété,Gestion - Description des mes activités de développement personnel - $Date: 2010/08/25 15:10:02 $ - $Id: activite.fr_FR.UTF-8.xml,v 1.2 2010/08/25 15:10:02 aebersol Exp $ - - - -
-
-
Bookkeeping for trustee
-
-

Comptabilité pour le syndic

-Experimentez la comptabilité pour le syndic Une nouvelle manière de gérer votre batiment et vos copropriétaires.
Joignez la communauté en ligne des syndics qui ont choisis la comptabilité en ligne.
-
-
-
Comptabilité pour les associations cultuelles
-
-

Comptabilité pour les associations cultuelles.

-Créé votre comptabilité en ligne pour associations cultuelles. Une façon simple pour maintenir les comptes de votre association.
-
-
- - -
- -
- diff --git a/accounting/services.en_US.UTF-8.xml b/accounting/services.en_US.UTF-8.xml deleted file mode 100644 index 1fa14dd..0000000 --- a/accounting/services.en_US.UTF-8.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - Hobbies - $Date: 2008/03/06 18:11:29 $ - $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ - - - -

Useful Links

- -

-
-
- - -
diff --git a/accounting/services.fr_FR.UTF-8.xml b/accounting/services.fr_FR.UTF-8.xml deleted file mode 100644 index 24340f7..0000000 --- a/accounting/services.fr_FR.UTF-8.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - <p>Documentation, les généralités</p> - $Date: 2008/03/06 18:11:29 $ - $Id: loisirs_music.xml,v 1.5 2008/03/06 18:11:29 aebersol Exp $ - + + +
-
-
Who I am
-
-

Senior Software Engineer
-

39 years old
Married 1 child

-

Company : Alcatel Lucent

-

+
+
+
Profile
+
+

+

Senior Software Engineer

+
+


Married 2 children

+

Company : Siemens

+

Specialized in C/C++ development

-
-
-
Studies / Projects
-
+
+
+
Studies / Projects
+
    +
  • Emergency Virtual Number Management in OmniPCX Office R11
  • +
  • Qualified sqlite for an embedded Instant Messaging service that supports 200 users.
  • Flash driver enhancement
  • Web reverse proxy comparison
  • -
  • Encapsulation of binary flow in http chucks
  • +
  • Encapsulation of binary flow in http chunks
  • OmniPCX Office feature improvements
  • -
  • Porting Linux 2.4 drivers to kernel 2.6
  • -
  • Migration of x86 application to powerpc
  • +
+
-
-
News Events
-
+
+
News Events
+
    -
  • I work for Alcatel Lucent Entreprise
  • +
  • Web Socket proxy server.
  • +
  • Developped a small application on Mac that monitors web sites (Based on wxWidget 3.0).
  • +
  • Second child (a boy) born 27 april 2013
  • +
  • Employed by Alcatel-Lucent since 1 April 2012
  • +
  • I worked for Alcatel Lucent as a sub-contractor
  • I maintain a remote server (from dedibox) for an association
  • -
  • A distribution generator.
  • -
  • Accounting software
-
-
Activities
-
+
+
OmniPCX Office R10
+
+

Working on OmniPCX Office at Alcatel Lucent

    -
  • I work for Alcatel Lucent as a sub-contractor
  • -
  • I remotely maintain a server (from dedibox) for an association
  • +
  • Reworked production chain. Saved 90% production time compared to the previous production chaine.
  • +
  • Preparing OmniPCX Office R10 (IM services)
  • +
  • Preparing MyICMobile dual mode feature
  • +
  • Web Service Development ICE 1.0
  • +
  • HTTP Chunk Event Managment
diff --git a/accueil.fr_FR.UTF-8.xml b/accueil.fr_FR.UTF-8.xml index a5b50eb..fa5babb 100644 --- a/accueil.fr_FR.UTF-8.xml +++ b/accueil.fr_FR.UTF-8.xml @@ -12,20 +12,21 @@ La page d'accueil d'Andre EBERSOLD About Willkommen -

Toutes nos realisation et savoir faire en matière de service informatique. Développement de serveur pour des systèmes embarquées.

+ Andre,EBERSOLD,AEB,Strasbourg,Linux,C++ + + $Date: 2010/08/25 15:10:02 $ $Id: accueil.fr_FR.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ - C++,Ingénieur,Linux - - -
+ + +
-
Profile
+
Profil
-

-Ingénieur Informatique
Marié 1 enfant
Français

-

Société : Adival Services

+

+

Ingénieur Informatique en télécom
Marié 2 enfants
Français

+

Société : Alcatel-Lucent

Spécialisé dans le développement C/C++

@@ -34,10 +35,10 @@
@@ -48,19 +49,20 @@
Nouvelles
    -
  • Realisation d'un compilateur asn1
  • +
  • Realisation d'un compilateur asn1
  • +
  • C2XMI l'outil qui vous aide à réutiliser du code existant
  • Studied packagers for embedded systems (rpm, opkg/ipkg, npm,...)
  • -
  • Ecriture d'un programme de génération de distribution
-
Activités
-
+
OmniPCX Office 810
+
+

Consultant chez Alcatel-Lucent

+
    -
  • Je travaille en tant que consultant pour Alcatel-Lucent
  • -
  • Pour le compte d'une association, je maintiens une dedibox
  • -
  • Source formating
  • +
  • Développement de "Web Service"
  • +
  • Réalisation d'un mécanisme de notification via HTTP
diff --git a/activite.en_US.UTF-8.xml b/activite.en_US.UTF-8.xml index 0e8b0f7..d8e2fe4 100644 --- a/activite.en_US.UTF-8.xml +++ b/activite.en_US.UTF-8.xml @@ -5,47 +5,25 @@ Mes activités privées Activities Willkommen - Activity + Activity,ASN1,CSTA Description des mes activités de développement personnel $Date: 2010/08/25 15:10:02 $ $Id: activite.en_US.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ - - -

Activities

-

Ajax application

- -
-
-
Bookkeeping for trustee
-
- -

Bookkeeping for trustees.

Experiment the - Bookkeeping for trustee. A new way to - to manage your building and deal with your part owners. -
- Join the great community of online accounting managers. -
-
-
-
Bookkeeping for churches
-
- -

Bookkeeping for churches.

- Experiment the - Bookkeeping for churches. A new way to - to manage the finances of the church and your members. -
-
-
-
+ + +

Projects

+

XSD2CPP

+

XSD2CPP is a set of xsl templates that generates C++ classes from a XSD description. It's also called a data binding tool as it transforms a formal data description into usable C++ code.

+

There is a ambrion of code that parses the CSTA phase III soap description. The aim of this part is to generate stubs that inherit gsoap structures. The new stub will implement new data encode and decoding functions in order to shrink the size of the messages that a exchanged. Thus an initial implementation based on gsoap can be easily upgraded to use another encoding/decoding mechanims that will use lesser bandwith.

+

SmartAsn1

+

SmartASN1 is a new generation ASN1 parser. Its flexlibility offers you the ability to write your own transformation rules for a given ASN.1 document. Given an Asn1 file and a xsl stylesheet, the SmartAsn1 parser will generate the code according to the rules described in the xsl stylesheet.

+

Using SmartAsn.1 not only gives you the power of an existing transformation tool but it also opens the possibility to write your own encoding rules for your language, ibraries and your application.

+

The compiler also integrates a small asn1 library that handles the encoding and decoding of the basic types. This library is used by CSTAInsight a CSTA protocol analyzer program.

+

CstaInsight

+

CstaInsight Application Main windowsThis program is specialized in analyzing the CSTA flow captured with tcpdump or wireshark. The user interface presents the flow in a sequence diagram. This diagram can easely be analysed by any end user who is developping CTI application.

+

The Application runs on Mac OSX 10.7 and above. It's also able to make a basic analysis of the SIP protocol.

+

This tool will save you a lot of money and time if you plan to implement an application based on those protocols.

+ -

Activités

-

Internet

-

La création et le maintien de ce site internet représente une activité en sois. Toujours à l'affut de nouvelles informations technologiques et de services à offrir, je mets ce site à jours régulièrement.

+

Projets

+

XSD2CPP

+

C'est un ensemble de templates xsl qui permet de transformer le contenu d'un fichier xsd en des class C++ et des fonctions de serialisation et de désérialisation.

+

SmartAsn1

+

Pour comprendre la raison de ce projet il faut déjà saisir l'intéret de l'ASN1. L'idée de base était d'écrire un parser en C++ avec des transformateurs xsl (appliqué sur les noeuds qui sont construits par la parser).

+

Faute de temps, le projet s'est terminé par un parser ASN1, une librairie ASN1 en C++ pour les types de base et des générteurs écrit en C++.

+

A ce jour, le parseur est capable de parser complètement, les spécifications csta v1,v2,v3. J'ai également testé le parser avec des spécifications du site 3GPP (Seul bémole, l'encodage PER n'est pas suporté par ce parseur).

+

Les languages qui sont générés sont soit le C++ ou le javascript.

+

Pour valider le code généré, j'utilise la librairie CPPUnit. A ce jour, le parser est testé par une centaine de testes unitaires.

+

Internet

+

La création et le maintien de ce site internet représente une activité en sois. Toujours à l'affut de nouvelles informations, j'améliore régulièrement l'outil d'édition. Même s'il existe de nombreux outils de gestion de contenu, j'ai souhaiter écrire celui-ci pour me former aux technologies du web. j'ai ainsi écrit les outils suivants:

-
-
-
Bookkeeping for trustee
-
- -

Comptabilité pour le syndic

Experimentez la - comptabilité pour le syndic - Une nouvelle manière de gérer votre batiment et vos copropriétaires. -
- Joignez la communauté en ligne des syndics qui ont choisis la comptabilité en ligne. -
-
-
-
Comptabilité pour les associations cultuelles
-
- -

Comptabilité pour les églises.

- Créé votre comptabilité en ligne pour - associations cultuelles. - Une façon simple pour maintenir les comptes de votre association. -
-
-
- +

+

Gestion de comptabilité en ligne

+

Pour mes besoins personnel en tant que syndic bénévole, j'ai développé une solution de gestion comptable en ligne pour les syndics bénévoles. Cette solution permet de gérer les lots d'une copropriété, les propriétaires, les factures, les appels de fonds, la répartition des charges etc...

+

En fin de périod comptable, vous pouvez télécharger les annexes comptables pour l'assemblée générale.

diff --git a/app/admin/view/index.fr_FR.UTF-8.xml b/app/admin/view/index.fr_FR.UTF-8.xml index 8719e6b..4cb1f9e 100644 --- a/app/admin/view/index.fr_FR.UTF-8.xml +++ b/app/admin/view/index.fr_FR.UTF-8.xml @@ -228,8 +228,8 @@ 1HMenu/fr/accueil.htmlfrHORIZONTAL menu1 - - + + @@ -303,7 +303,7 @@ Titre: - + Langue: @@ -325,11 +325,11 @@ Résumé: - + Mots Cle: - + diff --git a/app/basic.php b/app/basic.php index aa98fa4..b5541e9 100644 --- a/app/basic.php +++ b/app/basic.php @@ -1,26 +1,7 @@ xp = new XsltProcessor(); $xsl = new DomDocument; $xsl->load('xsl/gui.xsl'); $this->xp->importStylesheet($xsl); $params['site']= "_xgui"; - //$params["langue"] = "fr"; - if ($this->lang == "en_US.UTF-8" ) { - $params["lang"] = "en"; - } else { - $params["lang"] = "fr"; - } + $params["langue"] = "fr"; $params["mode"] = 'standalone'; $params["alias"] = $this->alias; - $this->xp->setParameter($namespace,$params); - $this->check_access(); - } - - function check_access() { - $s = new Session(); - if ( ! $s->is_logged_in() ) { - error_log("check_access not Logged in: ".$this->alias."/app/member/login.php"); - header("HTTP/1.1 401 Unauthorized"); - if ($_SERVER["HTTPS"] != "") { - header("Location: https://".$_SERVER["SERVER_NAME"]."/".$this->alias."/app/member/login.php"); - } else - header("Location: http://".$_SERVER["SERVER_NAME"]."/".$this->alias."/app/member/login.php"); - die(); - } - + $this->xp->setParameter($namespace,$params); } - function showXML ($file) { $xml = new DomDocument(); $xml->load($file); @@ -93,12 +53,6 @@ class Basic extends AppPage { case "pcmn": $this->file = "compta/pcmn.xml"; break; - case "syndic": - $this->file = "compta/ledger_syndic.xml"; - break; - case "eglise": - $this->file = "compta/ledger_church.xml"; - break; case "idx": $this->file = "compta/index.xml"; break; @@ -109,17 +63,6 @@ class Basic extends AppPage { $this->file = "compta/index.xml"; } } - function admin($form) - { - switch ($form) - { - case "user": - $this->file = "admin/view/index.fr_FR.UTF-8.xml"; - break; - default: - $this->file = "compta/index.xml"; - } - } /** * */ @@ -140,6 +83,14 @@ class Basic extends AppPage { $this->file = "distro/view/index.fr_FR.UTF8.xml"; } } + /** + * I need to check if the administrater has a session + */ + function admin($form) + { + $this->file = "admin/view/index.fr_FR.UTF-8.xml"; + } + function xsd2cpp($form) { @@ -193,14 +144,14 @@ if (isset($page) ) { $page->distro($_GET["app"]); $page->show(); break; - case 'xsd2cpp': + case 'admin': + $page->admin($_GET["app"]); + $page->show(); + break; + case 'xsd2cpp': $page->xsd2cpp($_GET["app"]); $page->show(); break; - case 'admin': - $page->admin($_GET["app"]); - $page->show(); - break; default: $page->showXML('index.xml'); diff --git a/app/common.php b/app/common.php index 8752a1c..b4c0e5f 100644 --- a/app/common.php +++ b/app/common.php @@ -1,22 +1,5 @@ $value) - { - if (isset($GLOBALS[$key])) - unset($GLOBALS[$key]); - } -} -if (isset($_SESSION['last_location'])) { - $last_location= $_SESSION['last_location']; -} - if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){ - $_SESSION['last_location'] = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; - } else { - $_SESSION['last_location'] = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; - } /** * $Id: common.php,v 1.11 2010/08/25 16:15:24 aebersol Exp $ * @@ -24,7 +7,7 @@ if (isset($_SESSION['last_location'])) { * */ if (!defined('INFO_ADMIN')) define('INFO_ADMIN','Informatique'); -if (!defined('WEB_ADMIN')) define('WEB_ADMIN','andre.ebersold@free.fr'); +if (!defined('WEB_ADMIN')) define('WEB_ADMIN','Webman'); if (!defined('FTP_ADMIN')) define('FTP_ADMIN','Ftpman'); if (!defined('MAIL_ADMIN')) define('MAIL_ADMIN','Ftpman'); if (!defined('FEEBF_FINANCE')) define('FEEBF_FINANCE','Finance'); @@ -32,9 +15,18 @@ if (!defined('FEEBF_SECRETARIAT')) define('FEEBF_SECRETARIAT','Secretariat'); /* Application groups */ if (!defined('FEEBF_NEWS_ADMIN')) define('FEEBF_NEWS_ADMIN','Newsletter'); if (!defined('FEEBF_PRAYER_ADMIN')) define('FEEBF_PRAYER_ADMIN','Newsletter'); -/* For COMPTA */ -if (!defined('COMPTA_SYNDIC')) define('COMPTA_SYNDIC','Syndic'); -if (!defined('COMPTA_COPRO')) define('COMPTA_COPRO','Coproprietaire'); + +/* Found in php web site 28/03/11 */ +if (ini_get('register_globals')) +{ + foreach ($_SESSION as $key => $value) + { + if (isset($GLOBALS[$key])) + { + unset($GLOBALS[$key]); + } + } +} if (isset($_GET['action']) && $_GET['action'] == "LOGOUT") { # echo "unset login\n"; diff --git a/app/compta/Accounting.mysql b/app/compta/Accounting.mysql deleted file mode 100755 index 837f0df..0000000 --- a/app/compta/Accounting.mysql +++ /dev/null @@ -1,2465 +0,0 @@ --- set @@binlog_format=mixed; --- --- Account information stuff --- -DROP TABLE IF EXISTS AccountInfo; - -DROP TABLE IF EXISTS Account; -CREATE TABLE IF NOT EXISTS Account ( - acc_id VARCHAR(32) PRIMARY KEY, - acc_info_id INTEGER, - acc_name VARCHAR(64) COLLATE utf8_general_ci, - acc_desc VARCHAR(255), - acc_balance REAL, -- Could be computed dynamically - INDEX USING BTREE(acc_id) -) CHARACTER SET utf8 COLLATE utf8_general_ci; - --- --- Budget tables. Not sur I I did it right. --- - -DROP TABLE IF EXISTS Budget; -CREATE TABLe IF NOT EXISTS Budget ( - bu_id INTEGER AUTO_INCREMENT PRIMARY KEY, - bu_period_id INTEGER, - bu_desc VARCHAR(64) DEFAULT "" -); - -DROP TABLE IF EXISTS BudgetEntry; - -CREATE TABLE IF NOT EXISTS BudgetEntry ( - buet_id INTEGER AUTO_INCREMENT PRIMARY KEY, - buet_budget_id INTEGER, - buet_acc_id VARCHAR(32), - buet_amount DOUBLE DEFAULT 0.0, - buet_debit_credit ENUM('d','c') DEFAULT 'c', - buet_pc_id INTEGER DEFAULT 1 -); --- --- --- Transaction stuff --- -DROP TABLE IF EXISTS Transactions; -CREATE TABLE IF NOT EXISTS Transactions ( - trans_id INTEGER AUTO_INCREMENT PRIMARY KEY, - voucher_ref VARCHAR(255), - voucher_date DATE, - act_trans_date DATE, - trans_label VARCHAR(255), - trans_file VARCHAR(255) -); - -DROP TABLE IF EXISTS Period; -CREATE TABLE IF NOT EXISTS Period ( - per_id INTEGER AUTO_INCREMENT PRIMARY KEY, - per_begin DATE, - per_end DATE, - per_string VARCHAR(32) -- Example Q1_2012 - per_closed BOOL DEFAULT FALSE - per_approved BOOL DEFAULT FALSE -); - -DROP TABLE IF EXISTS TransactionEntry; -CREATE TABLE IF NOT EXISTS TransactionEntry ( - trans_entry_id INTEGER AUTO_INCREMENT PRIMARY KEY, - trans_id INTEGER, - entry_date DATE, - entry_type VARCHAR(2), - acc_id VARCHAR(32), - orig_amount REAL, - amount DOUBLE PRECISION, - debit_credit enum ('d','c'), - description VARCHAR(255), - voucher_ref VARCHAR(255), - tret_key_id INTEGER DEFAULT 0 -- Cle de charge pour le decompte de charge -); - --- Example Journal debit -DROP TABLE IF EXISTS TransactionEntryType; -CREATE TABLE IF NOT EXISTS TransactionEntryType ( - type_id INTEGER AUTO_INCREMENT PRIMARY KEY, - type_code VARCHAR(2), -- BQ, VT, OD - type_desc VARCHAR(255) -); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('BQ','Banque'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('VT','Ventes'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('HA','Achats et frais'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('OD','Operation divers'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('AF','Appels de fonds'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('RF','Remboursement appels de fonds'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('AN','Report a nouveau'); - -DROP TABLE IF EXISTS Identity; -CREATE TABLE IF NOT EXISTS Identity ( - ident_id INTEGER AUTO_INCREMENT PRIMARY KEY, - ident_type INTEGER DEFAULT 2, - ident_name VARCHAR(32), - ident_firstname VARCHAR(32), - ident_address VARCHAR(64), - ident_postalcode VARCHAR(16), - ident_city VARCHAR(32), - ident_country VARCHAR(32), - ident_mobile VARCHAR(32), - ident_phone VARCHAR(32), - ident_email1 VARCHAR(32), - ident_email2 VARCHAR(32) -); - -DROP TABLE IF EXISTS JoinIdentityAccount; -CREATE TABLE IF NOT EXISTS JoinIdentityAccount ( - jia_id INTEGER AUTO_INCREMENT PRIMARY KEY, - jia_ident INTEGER, - jia_acc INTEGER -); - -DROP TABLE IF EXISTS IdentityType; - -CREATE TABLE IF NOT EXISTS IdentityType ( - idtp_id INTEGER AUTO_INCREMENT PRIMARY KEY, - idtp_name VARCHAR(32) -); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 1,"Fournisseur"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 2,"Coproprietaire"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 3,"Batiment"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 4,"Organisation"); - -CREATE OR REPLACE VIEW OldOwners AS select * - FROM Identity as i - JOIN IdentityType as it on (i.ident_type = it.idtp_id ) - WHERE it.idtp_name = "Coproprietaire" -; - -CREATE OR REPLACE VIEW Owners AS SELECT ident_id,ident_name,ident_firstname, ident_address, ident_postalcode, - ident_city,ident_country,ident_mobile,ident_phone,ident_email1, - ident_email2, ir.idr_name FROM users.Users as u - JOIN users.UserRoles as ur on ur.ur_user_id = u.ident_id - JOIN users.IdentityRole as ir on ur.ur_role_id =ir.idr_id - WHERE ur.ur_org_id = 11 and ir.idr_name = "Coproprietaire"; - -CREATE OR REPLACE VIEW OldSuppliers AS select * - FROM Identity as i - JOIN IdentityType as it on i.ident_type = it.idtp_id - WHERE it.idtp_name = "Fournisseur" -; - -CREATE OR REPLACE VIEW Suppliers AS select ident_id,ident_name,ident_firstname,ident_address, - ident_postalcode,ident_city,ident_country,ident_mobile,ident_phone, - ident_email1,ident_email2 FROM users.Identity as i - JOIN users.IdentityType as it on (i.ident_type = it.idtp_id) - JOIN users.UserRoles as ur on (ur.ur_user_id = i.ident_id) - JOIN users.IdentityRole as ir on (ir.idr_id = ur.ur_role_id ) - WHERE ur.ur_org_id = 11 and ir.idr_name ="Fournisseur"; - - --- Building stuff -DROP TABLE IF EXISTS Lot; - -CREATE TABLE IF NOT EXISTS Lot ( - lot_id INTEGER AUTO_INCREMENT PRIMARY KEY, - lot_num INTEGER UNIQUE, - lot_floor VARCHAR(32) DEFAULT "RDC", - lot_area INTEGER DEFAULT 0, - lot_room INTEGER DEFAULT 0, - lot_name VARCHAR(32), - lot_type VARCHAR(32), - lot_building VARCHAR(32), - lot_door VARCHAR(32), - lot_description VARCHAR(256) -); - -DROP TABLE IF EXISTS PosteCharge; -CREATE TABLE IF NOT EXISTS PosteCharge ( - pc_id INTEGER AUTO_INCREMENT PRIMARY KEY, - pc_sz INTEGER DEFAULT 0, - pc_name VARCHAR(64), - pc_comment VARCHAR(256) -); - -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC1","Charges Générales"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC2","Charges Exceptionnelles"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC3","Non Utilise"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC4","Charges Chauffage"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("EAU","Charges Eau"); - -DROP TABLE IF EXISTS Tantieme; -CREATE TABLE IF NOT EXISTS Tantieme ( - tant_id INTEGER AUTO_INCREMENT PRIMARY KEY, - tant_pc_id INTEGER, - tant_lot_num INTEGER, - tant_lot_size REAL -); - --- PC1 - -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,1,319); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,2,319); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,3,119); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,4,4); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,5,112); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,6,43); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,7,35); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,102,32); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,103,17); - - --- PC2 - -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,1,335); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,2,335); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,3,125); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,4,5); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,5,118); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,6,45); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,7,37); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,102,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,103,0); - --- PC4 - -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,1,339); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,2,339); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,3,156); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,4,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,5,151); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,6,9); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,7,6); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,102,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,103,0); - --- EAU -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,1,3/9*1000); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,2,3/9*1000); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,3,2/9*1000); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,4,1/9*1000); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,5,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,6,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,7,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,102,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (5,103,0); - --- --- A Lot is necessarely assign to an Owner --- -DROP TABLE IF EXISTS LotsOwners; -CREATE TABLE LotsOwners ( - lo_id INTEGER AUTO_INCREMENT PRIMARY KEY, - lo_owner_id INTEGER, - lo_lot_id INTEGER -); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 3,1); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 2,2); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 1,3); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 4,4); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 4,5); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 2,6); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 3,7); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 4,8); -INSERT INTO LotsOwners (lo_owner_id,lo_lot_id) VALUES( 3,9); - --- --- Carnet d'entretien --- - -DROP TABLE IF EXISTS Entretien; -CREATE TABLE Entretien ( - entr_id INTEGER AUTO_INCREMENT PRIMARY KEY, - entr_date DATE, - entr_title VARCHAR(64), - entr_description TEXT -); - - -INSERT INTO Entretien (entr_date,entr_title,entr_description) VALUES - ("2012-07-08","Chagement eclairage entree","Afin d'assurer l'eclairage de l'allee de l'entree. Un eclairage a ete installe au coin du batiment. Le projecteur noir a egalement ete remplace par la meme occasion."); -INSERT INTO Entretien (entr_date,entr_title,entr_description) VALUES - ("2013-01-08","Chagement lampe local chauffage","Lors du passage de Savelys pour l'entretien de la chaudiere, on s'est apercu qu'il n'y avait plus d'eclairage. L'ampoule a ete remplacee."); - - --- --- --- - -DROP VIEW IF EXISTS view_pc1; - -DROP VIEW IF EXISTS view_pc2; - -DROP VIEW IF EXISTS view_pc4; - -DROP VIEW IF EXISTS view_eau; - -DROP VIEW IF EXISTS view_avance; - -DROP VIEW IF EXISTS view_paye; - -DROP VIEW IF EXISTS view_facture; - -delimiter // - -DROP TRIGGER IF EXISTS insert_view_avance// - -DROP PROCEDURE IF EXISTS insert_view_avance// -CREATE PROCEDURE insert_view_avance(IN tid INTEGER, - IN ed DATE, - IN bqaid VARCHAR(32), - IN aid VARCHAR(32), - IN am REAL, - IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,"BQ",aid,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,"BQ",bqaid,am,'d',des); -END// - -DROP PROCEDURE IF EXISTS insert_avance// -CREATE PROCEDURE insert_avance( - IN ed DATE, - IN vouch VARCHAR(32), - IN bqaid VARCHAR(32), - IN aid VARCHAR(32), - IN am REAL, - IN des VARCHAR(256)) -BEGIN - INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( ed,ed,vouch,des); - SET @last_id = LAST_INSERT_ID(); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,entry_type,acc_id,amount,debit_credit,description) VALUES - (@last_id,ed,vouch,"BQ",aid,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,entry_type,acc_id,amount,debit_credit,description) VALUES - (@last_id,ed,vouch,"BQ",bqaid,am,'d',des); -END// - - -DROP PROCEDURE IF EXISTS insert_view_pc1// - -CREATE PROCEDURE insert_view_pc1 (IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN chaci INTEGER, - IN aci INTEGER, - IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450001",am*119.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450002",am*362.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450003",am*371.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450004",am*148.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,chaci,am,'c',des); --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES --- (tid,ed,vouch,'701000',am,'c',des); -END// - -DROP PROCEDURE IF EXISTS insert_view_pc2// -CREATE PROCEDURE insert_view_pc2 (IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN chaci INTEGER, - IN aci INTEGER, - IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450001",am*125.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450002",am*380.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450003",am*372.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450004",am*123.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,chaci,am,'c',des); --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES --- (tid,ed,vouch,'701000',am,'c',des); -END// - - -DROP PROCEDURE IF EXISTS insert_view_pc4// -CREATE PROCEDURE insert_view_pc4 (IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN chaci INTEGER, - IN aci INTEGER, - IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450001",am*156.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450002",am*348.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450003",am*345.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,"450004",am*151.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,"OD",ed,vouch,chaci,am,'c',des); --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES --- (tid,ed,vouch,'701000',am,'c',des); -END// - -DROP PROCEDURE IF EXISTS insert_view_eau// - - -DROP PROCEDURE IF EXISTS insert_view_facture// - -CREATE PROCEDURE insert_view_facture(IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32),IN chaci INTEGER ,IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,chaci,am,'d',des,'HA'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,aci,am,'c',des,'HA'); -END// - -DROP PROCEDURE IF EXISTS insert_facture// - -CREATE PROCEDURE insert_facture(IN tid INTEGER, - IN ed DATE, - IN vouch VARCHAR(32), - IN chaci INTEGER , - IN aci INTEGER, - IN am REAL, - IN des VARCHAR(256), - IN key_id INTEGER - ) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type,tret_key_id) VALUES - (tid,ed,vouch,chaci,am,'d',des,'HA',key_id); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type,tret_key_id) VALUES - (tid,ed,vouch,aci,am,'c',des,'HA',key_id); -END// - -DROP PROCEDURE IF EXISTS insert_trans_facture// - -CREATE PROCEDURE insert_trans_facture(IN er_date DATE, - IN ed DATE, - IN vouch VARCHAR(32), - IN chaci INTEGER , - IN aci INTEGER, - IN am REAL, - IN des VARCHAR(256), - IN key_id INTEGER - ) -BEGIN - INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - (ed,er_date,vouch,des); - SET @last_id = LAST_INSERT_ID(); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type,tret_key_id) VALUES - (@last_id,ed,vouch,chaci,am,'d',des,'HA',key_id); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type,tret_key_id) VALUES - (@last_id,ed,vouch,aci,am,'c',des,'HA',key_id); -END// - - - -DROP PROCEDURE IF EXISTS insert_view_paye// -CREATE PROCEDURE insert_view_paye(IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN bqaci INTEGER , - IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,bqaci,am,'c',des,'BQ'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,aci,am,'d',des,'BQ'); -END// - -DROP PROCEDURE IF EXISTS insert_trans_paye// -CREATE PROCEDURE insert_trans_paye(IN tid DATE,IN ed DATE,IN vouch VARCHAR(32), - IN bqaci INTEGER , - IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - (ed,tid,vouch,des); - SET @last_id = LAST_INSERT_ID(); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (@last_id,ed,vouch,bqaci,am,'c',des,'BQ'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (@last_id,ed,vouch,aci,am,'d',des,'BQ'); -END// - -DROP PROCEDURE IF EXISTS appel_fonds// -CREATE PROCEDURE appel_fonds( - IN ed DATE, - IN copro_aid INTEGER , - IN prod_aid INTEGER, - IN am REAL, - IN des VARCHAR(256)) -BEGIN -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - (ed,ed,"",des); -SET @last_id = LAST_INSERT_ID(); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (@last_id,ed,"",prod_aid,am,'c',des,'AF'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (@last_id,ed,"",copro_aid,am,'d',des,'AF'); -END// - --- --- --- - -DROP PROCEDURE IF EXISTS rembourse_appel_fonds// -CREATE PROCEDURE rembourse_appel_fonds( - IN ed DATE, - IN period VARCHAR(32), - IN prod_aid INTEGER, - IN des VARCHAR(256)) -BEGIN --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES --- (@last_id,ed,"",prod_aid,am,'d',des,'AF'); --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES --- (@last_id,ed,"",corpo_aid,am,'c',des,'AF'); - DECLARE done INT DEFAULT FALSE; - DECLARE a CHAR(16); - DECLARE am DOUBLE; - -- DECLARE cur1 CURSOR FOR SELECT acc_id,FctTantieme(acc_id,cle) FROM Account where acc_id like '450%'; - DECLARE cur1 CURSOR FOR SELECT acc_id,sum(amount) as am FROM TransactionEntry as te - JOIN Period as p on te.entry_date BETWEEN p.per_begin and p.per_end and p.per_string =period - where entry_type = "AF" and acc_id like '450%' GROUP BY acc_id; - DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; - - INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - (ed,ed,"",des); - SET @last_id = LAST_INSERT_ID(); - - OPEN cur1; - - read_loop: LOOP - FETCH cur1 INTO a, am; - IF done THEN - LEAVE read_loop; - END IF; - IF am > 0 THEN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"RF",ed,"",prod_aid,am,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"RF",ed,"",a,am,'c',des); - END IF; - END LOOP; - - CLOSE cur1; -END// - - - -DROP PROCEDURE IF EXISTS detail_compte// -CREATE PROCEDURE detail_compte(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN --- select "Compte" ; - select entry_date as Date , - voucher_ref as Ref, - description , - CASE WHEN debit_credit='d' THEN ROUND(amount,2) ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN ROUND(amount,2) ELSE 0 END as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -select "" , "","Total ", - ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - -1 * ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) - ELSE - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) - END as Solde - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -END// - -DROP PROCEDURE IF EXISTS detail_compte_sans_solde// -CREATE PROCEDURE detail_compte_sans_solde(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN --- select "Compte" ; - select entry_date as Date , - voucher_ref as Ref, - description , - CASE WHEN debit_credit='d' THEN ROUND(amount,2) ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN ROUND(amount,2) ELSE 0 END as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; -END// - -DROP PROCEDURE IF EXISTS solde_compte// -CREATE PROCEDURE solde_compte(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN - -select - ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - -1 * ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) - ELSE - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) - END as Solde - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -END// - -DROP PROCEDURE IF EXISTS solde_compte_where// -CREATE PROCEDURE solde_compte_where(IN period VARCHAR(32), IN crit VARCHAR(128)) -BEGIN - SET @Stm = CONCAT(" -select - COALESCE(ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2),0) as Debit, - COALESCE(ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2),0) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - COALESCE( - -1 * ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2),0) - ELSE - COALESCE( - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) , 0) - END as Solde - - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string = '",period,"' - WHERE ", crit," ORDER BY entry_date;"); - PREPARE q FROM @Stm; - EXECUTE q; - DEALLOCATE PREPARE q; - -END// - - -DROP PROCEDURE IF EXISTS bilan// -CREATE PROCEDURE bilan(IN period VARCHAR(32) ) -BEGIN -select j.acc_id as Compte ,j.acc_name as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string = period -GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS journal// -CREATE PROCEDURE journal(IN period VARCHAR(32),IN jrn VARCHAR(2),IN preci INTEGER ) -BEGIN -select j.entry_date as Date, j.acc_id as Compte , j.voucher_ref as Ref ,j.description as Libelle - ,ROUND((CASE WHEN j.debit_credit ='d' THEN j.amount ELSE 0 END), preci) as Debit , - ROUND((CASE WHEN j.debit_credit ='c' THEN j.amount ELSE 0 END), preci) as Credit -from TransactionEntry as j - JOIN Account AS r on j.acc_id = r.acc_id - JOIN Period AS p on j.entry_date > p.per_begin and j.entry_date < p.per_end and p.per_string = period - WHERE j.entry_type = jrn -; --- GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS journal_solde// -CREATE PROCEDURE journal_solde(IN period VARCHAR(32),IN jrn VARCHAR(2),IN preci INTEGER ) -BEGIN -select ROUND(sum(CASE WHEN j.debit_credit ='d' THEN j.amount ELSE 0 END), preci) as Debit , - ROUND(sum(CASE WHEN j.debit_credit ='c' THEN j.amount ELSE 0 END), preci) as Credit -from TransactionEntry as j - JOIN Account AS r on j.acc_id = r.acc_id - JOIN Period AS p on j.entry_date > p.per_begin and j.entry_date < p.per_end and p.per_string = period - WHERE j.entry_type = jrn -; --- GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS tantieme// - -CREATE PROCEDURE tantieme(IN owner_id INTEGER, - IN charge_id INTEGER, - IN preci INTEGER) -BEGIN -select ROUND(sum(tant_lot_size) ,preci) as Tant FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.lot_num = t.tant_lot_num) - WHERE lo_owner_id = owner_id and t.tant_pc_id = charge_id; -END// - -DROP FUNCTION IF EXISTS FctTantieme// - -CREATE FUNCTION FctTantieme( acc_id VARCHAR(32), - charge_key INTEGER) - RETURNS DOUBLE - NOT DETERMINISTIC - READS SQL DATA -BEGIN - DECLARE select_var DOUBLE; - SET select_var =(SELECT sum(tant_lot_size) FROM Tantieme as tant - JOIN Lot as l on l.lot_num = tant.tant_lot_num - JOIN LotsOwners as lo on lo.lo_lot_id = l.lot_id - JOIN Account as a on a.acc_id = acc_id - JOIN JoinIdentityAccount as jia on jia.jia_acc = a.acc_id and jia_ident = lo.lo_owner_id - WHERE tant_pc_id =charge_key); - IF (select_var IS NULL) THEN - RETURN 0.0 ; - ELSE - RETURN select_var ; - END IF; -END// - --- --- Nouvell procedure de repartition des charges --- - -DROP PROCEDURE IF EXISTS repartir_charge// -CREATE PROCEDURE repartir_charge( IN trans_id INTEGER, - IN chrg VARCHAR(32), - IN ed DATE, - IN vouch VARCHAR(32), - in am DOUBLE, - in cle INTEGER, - in des VARCHAR(256) - ) - -BEGIN - DECLARE done INT DEFAULT FALSE; - DECLARE a CHAR(16); - DECLARE tant DOUBLE; - DECLARE cur1 CURSOR FOR SELECT acc_id,FctTantieme(acc_id,cle) FROM Account where acc_id like '450%'; - DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; - - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (trans_id,"OD",ed,vouch,chrg,am,'c',des); - OPEN cur1; - - read_loop: LOOP - FETCH cur1 INTO a, tant; - IF done THEN - LEAVE read_loop; - END IF; - IF tant > 0 THEN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (trans_id,"OD",ed,vouch,a,am*tant/1000.0,'d',des); - END IF; - END LOOP; - - CLOSE cur1; -END// - -DROP PROCEDURE IF EXISTS repartir_trans_charge// -CREATE PROCEDURE repartir_trans_charge(IN trs_dt DATE , - IN ed DATE, - IN chrg VARCHAR(32), - IN vouch VARCHAR(32), - in am DOUBLE, - in cle INTEGER, - in des VARCHAR(256) - ) - -BEGIN - DECLARE done INT DEFAULT FALSE; - DECLARE a CHAR(16); - DECLARE tant DOUBLE; - DECLARE cur1 CURSOR FOR SELECT acc_id,FctTantieme(acc_id,cle) FROM Account where acc_id like '450%'; - DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; - - INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( ed,trs_dt,vouch,des); - SET @last_id = LAST_INSERT_ID(); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"OD",ed,vouch,chrg,am,'c',des); - OPEN cur1; - - read_loop: LOOP - FETCH cur1 INTO a, tant; - IF done THEN - LEAVE read_loop; - END IF; - IF tant > 0 THEN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"OD",ed,vouch,a,am*tant/1000.0,'d',des); - END IF; - END LOOP; - - CLOSE cur1; -END// - -DROP PROCEDURE IF EXISTS appel_fonds_sur_facture// -CREATE PROCEDURE appel_fonds_sur_facture(IN trs_dt DATE , - IN ed DATE, - IN chrg VARCHAR(32), - IN vouch VARCHAR(32), - in am DOUBLE, - in cle INTEGER, - in des VARCHAR(256) - ) - -BEGIN - DECLARE done INT DEFAULT FALSE; - DECLARE a CHAR(16); - DECLARE tant DOUBLE; - DECLARE cur1 CURSOR FOR SELECT acc_id,FctTantieme(acc_id,cle) FROM Account where acc_id like '450%'; - DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; - - INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( ed,trs_dt,vouch,des); - SET @last_id = LAST_INSERT_ID(); - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AF",ed,vouch,chrg,am,'c',des); - OPEN cur1; - - read_loop: LOOP - FETCH cur1 INTO a, tant; - IF done THEN - LEAVE read_loop; - END IF; - IF tant > 0 THEN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AF",ed,vouch,a,am*tant/1000.0,'d',des); - END IF; - END LOOP; - - CLOSE cur1; -END// - - - - -DROP PROCEDURE IF EXISTS detail_decompte_charge// - -CREATE PROCEDURE detail_decompte_charge( - IN user_id INTEGER, - IN poste_charge_id INTEGER, - IN period VARCHAR(32), - IN preci INTEGER) -BEGIN -select te.`entry_date` as Date, - te.acc_id as Compte, - ac.`acc_name`, - te.description, - amount as MontantTotal, - ROUND((select sum(t1.tant_lot_size) FROM Tantieme as t1 - JOIN LotsOwners as lo1 - JOIN Lot as l1 on ( lo1.lo_lot_id = l1.lot_id and l1.`lot_num` = t1.`tant_lot_num`) - WHERE lo_owner_id = user_id and t1.tant_pc_id = te.tret_key_id) ,preci) - - as Tan, - ROUND( (amount /1000.0 * ( - select sum(t.tant_lot_size) FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.`lot_num` = t.`tant_lot_num`) - WHERE lo_owner_id = user_id and t.tant_pc_id = te.tret_key_id)) ,preci - ) as Montant, - pc.pc_name as Cle from TransactionEntry as te - JOIN Account as ac on (ac.acc_id = te.acc_id) - JOIN PosteCharge as pc on (te.tret_key_id = pc.pc_id) - JOIN Period AS p on te.entry_date > p.per_begin and te.entry_date < p.per_end and p.per_string = period - where te.acc_id like '6%' and te.debit_credit = 'd' and IF (poste_charge_id != 0,te.tret_key_id = poste_charge_id,1) - ORDER BY te.entry_date; - -END// - -DROP PROCEDURE IF EXISTS detail_decompte_charge_par_lot// - -CREATE PROCEDURE detail_decompte_charge_par_lot( - IN user_id INTEGER, - IN poste_charge_id INTEGER, - IN period VARCHAR(32), - IN preci INTEGER) -BEGIN -select te.`entry_date` as Date, te.acc_id as Compte, - ac.`acc_name` as Intitule, - te.description, - lot.lot_name as Lot, - amount as MontantTotal, - lot.tant_lot_size as tanti, - ROUND( (amount /1000.0 * lot.tant_lot_size) ,preci) as Montant, - - pc.pc_name as Cle from TransactionEntry as te - JOIN Account as ac on (ac.acc_id = te.acc_id) - JOIN PosteCharge as pc on (te.tret_key_id = pc.pc_id) - JOIN (select * FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.`lot_num` = t.`tant_lot_num`) - WHERE lo_owner_id = user_id) as lot on (lot.tant_pc_id = te.tret_key_id) - - JOIN Period AS p on te.entry_date > p.per_begin and te.entry_date < p.per_end and p.per_string = period - where te.acc_id like '6%' and te.debit_credit = 'd' and IF(poste_charge_id != 0, te.tret_key_id = poste_charge_id,'1') - ORDER BY lot.lot_name,te.entry_date,te.acc_id; - -END// - -DROP PROCEDURE IF EXISTS detail_decompte_solde// - -CREATE PROCEDURE detail_decompte_solde( - IN user_id INTEGER, - IN poste_charge_id INTEGER, - IN period VARCHAR(32), - IN preci INTEGER) -BEGIN - -select - sum(amount) as MontantTotal, - ROUND( sum((amount /1000.0 * ( - select sum(t.tant_lot_size) FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.`lot_num` = t.`tant_lot_num`) - WHERE lo_owner_id = user_id and t.tant_pc_id = te.tret_key_id))) ,preci - ) as Montant - from TransactionEntry as te - JOIN Account as ac on (ac.acc_id = te.acc_id) - JOIN PosteCharge as pc on (te.tret_key_id = pc.pc_id) - JOIN Period AS p on te.entry_date > p.per_begin and te.entry_date < p.per_end and p.per_string = period - where te.acc_id like '6%' and te.debit_credit = 'd' and IF (poste_charge_id != 0,te.tret_key_id = poste_charge_id,1) - ORDER BY te.entry_date; - -END// - -delimiter ; - --- Ok, fill in data --- - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone) VALUES - ("CORDIER","Philippe","2 RUE DES ROSSIGNOLS","67114","ECHAU","ma.cordier@orange.fr","philippe.cordier@douane.finances.gouv.fr",""); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (1,450001); -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - ("EBERSOLD","Andre","25 rue Pfeffinger","67100","STRASBOURG","andre.ebersold@gmail.com","0388","0670437380"); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (2,450002); - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone) VALUES - ("FLEURY","Annabelle","25 rue Pfeffinger","67100","STRASBOURG","fleury1@gmail.com",""); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (3,450003); - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone,ident_mobile) VALUES - ("Immoval","Leila Elaillaji","4 rue de l'eglise","67000","STRASBOURG","leila.elailaji@immoval.com","info@immoval.com","0388228822","06"); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (4,450004); - --- Les Forunisseurs -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"BOLLOREE","Energie","25 rue Pfeffinger","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Savelys","Energie","","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"EDF","Strasbourg","","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Eau","Strasbourg","","67000","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Eau","Strasbourg","","67000","STRASBOURG","","0388",""); - --- --- Insert Lots --- --- lot_floor VARCHAR(8) DEFAULT "RDC", --- lot_area INTEGER DEFAULT 0, --- lot_room INTEGER DEFAULT 0, --- lot_name VARCHAR(32), --- lot_type VARCHAR(32), --- lot_building VARCHAR(32), --- lot_door VARCHAR(32), --- lot_description VARCHAR(256) - -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type,lot_area) VALUES - ("RDC",1,"Lot N1","","Appartement",97.7); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type,lot_area) VALUES - ("1er Etage",2,"Lot N2","Appartement","Appartement",97.7); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type,lot_area) VALUES - ("COMBLES",3,"Lot N3","","Appartement",30); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("COMBLES",4,"Lot N4","","Grenier"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("Sous sol",5,"Lot N5","","Appartement"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("Sous sol",6,"Lot N6","","Garage"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("Sous sol",7,"Lot N7","","Garage"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("exterieur",102,"Lot N102","Jardinet 1","Jardinet"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("exterieur",103,"Lot N103","Jardinet 2","Jardinet"); - --- Insert periods --- per_begin DATE, --- per_end DATE, --- per_string VARCHAR(16) -- Example Q1_2012 - -INSERT INTO Period (per_begin,per_end,per_string,per_closed,per_approved) VALUES ("2011-01-01","2011-12-31","2011",TRUE,TRUE); -INSERT INTO Period (per_begin,per_end,per_string,per_closed,per_approved) VALUES ("2012-01-01","2012-12-31","2012",TRUE,TRUE); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-01-01","2013-12-31","2013"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2014-01-01","2014-12-31","2014"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2015-01-01","2015-12-31","2015"); - --- --- Create the account info and accounts --- - --- - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("103000",103000, 0.0,"Avances",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("103100",103100, 0.0,"Avances de trésorerie",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450000",450000, 0.0,"Collectivité des Copropriétaire",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450001",450001, 0.0,"Cordier",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450002",450002, 0.0,"Ebersold",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450003",450003, 0.0,"Hentschel",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450004",450004, 0.0,"Immoval",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450005",450005, 0.0,"Ancien Cordier - Nouv Ebersold",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("400000",400000, 0.0,"",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401002",401002, 0.0,"BOLLORE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401003",401003, 0.0,"VEOLIA",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401004",401004, 0.0,"SAVELYS",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401005",401005, 0.0,"EDF",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401006",401006, 0.0,"POSTE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401007",401007, 0.0,"ASSURANCE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401008",401008, 0.0,"RAMONAGE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401009",401009, 0.0,"EAU",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401010",401010, 0.0,"LEROY MERLIN",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401011",401011, 0.0,"LIDL meinau",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401012",401012, 0.0,"Mustchler Bischoff",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("461000",461000, 0.0,"Débiteur Divers",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("462000",462000, 0.0,"Crédit Divers",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("512001",512001, 0.0,"BANQUE","La Banque Postale"); --- -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("601000",601000, 0.0,"Eau",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("602000",602000, 0.0,"Eléctricité",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("603000",603000, 0.0,"Chauffage,énergie et combustible",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("604000",604000, 0.0,"Achat produits d'entretien",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("605000",605000, 0.0,"Matériel",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("606000",606000, 0.0,"Fourniture",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("611000",611000, 0.0,"Nettoyage des locaux",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("614000",614000, 0.0,"Control de maintenance",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("615000",615000, 0.0,"Entretien et petites réparations",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("616000",616000, 0.0,"Prime d'assurance",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("620000",620000, 0.0,"Frais d'administration",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("621300",621300, 0.0,"Frais postaux",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("671000",671000, 0.0,"Travaux decides par assemblée générale",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("672000",672000, 0.0,"Travaux urgents",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("700000",700000, 0.0,"Appels de fond",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("701000",701000, 0.0,"Provision sur opérations courantes",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("702000",702000, 0.0,"Provision sur travaux de l'article 14.2",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("703000",703000, 0.0,"Avances",""); --- --- Transactions .... --- - - --- trans_entry_id INTEGER PRIMARY KEY, --- trans_id INTEGER, --- entry_date DATE, --- entry_type VARCHAR(32), --- acc_id INTEGER, --- orig_amount REAL, --- amount REAL, --- debit_credit CHARACTER CONSTRAINT IN ('d','c'), --- description VARCHAR(255), --- voucher_ref VARCHAR(255) - --- --- Saisie 2011 --- - --- MATMUT Jan - -CALL insert_trans_facture - ("2011-01-02","2011-01-02","029","616000","401007",165.54,"Facture MatMut ",1); -CALL repartir_trans_charge("2011-01-02","2011-01-02","616000","029",165.54,1,"Repartition Charges Assurance PC1"); - -CALL appel_fonds_sur_facture("2011-01-02","2011-01-02","701000","029",165.54,1,"Appel de fonds Charges Assurance 1er T"); - -CALL insert_trans_paye - ("2011-01-02","2011-01-03","Payement direct","512001","401007",165.54,"Payer Matmut 1er tier"); --- SAVELYS ENTRETIEN CHAUDIER - -CALL insert_trans_facture - ("2011-01-02","2011-01-02","5KI12135952","614000","401004",158.43,"Facture Savelys ",4); -CALL repartir_trans_charge("2011-01-02","2011-01-02","614000","5KI12135952",158.43,4,"Repartition Charges Savelys PC4"); - -CALL appel_fonds_sur_facture("2011-01-02","2011-01-02","701000","5KI12135952",158.43,4,"Appel de fonds Savelys"); - -CALL insert_trans_paye - ("2011-01-02","2011-01-03","Payement direct","512001","401004",158.43,"Payer Savelys"); - --- Fioul -CALL insert_trans_facture - ("2011-01-10","2011-01-10","330904","603000","401002",780,"Facture Fioul ",4); - -CALL repartir_trans_charge( "2011-01-10","2011-01-10","603000","330904",780,4,"Repartition Charges Fioul PC4"); - -CALL appel_fonds_sur_facture( "2011-01-10","2011-01-10","701000","330904",780,4,"Appel de fonds Fioul 1000L"); - -CALL insert_trans_paye - ("2011-01-11","2011-01-11","Payement direct","512001","401002",780,"Payer Fioul 1000L janv"); --- VEOLIA PROXI SERV - -CALL insert_trans_facture - ("2011-02-01","2011-02-01","11009226","603000","401003",200.99,"Facture VEOLIA ",4); -CALL repartir_trans_charge("2011-02-10","2011-02-10","603000","11009226",200.99,4,"Repartition Charges VEOLIA PC4") -; -CALL appel_fonds_sur_facture("2011-02-10","2011-02-10","701000","11009226",200.99,4,"Appel de fonds VEOLIA PC4"); - -CALL insert_trans_paye - ("2011-02-15","2011-02-15","Payement direct","512001","401003",200.99,"Payer VEOLIA fev"); - --- EDF - -CALL insert_trans_facture - ("2011-02-10","2011-02-10","3438875S","602000","401005",30.63,"Facture EDF ",2); -CALL repartir_trans_charge("2011-02-10","2011-02-10","602000","3438875S",30.63,2,"Repartition Charges EDF PC2"); -CALL appel_fonds_sur_facture("2011-02-10","2011-02-10","701000","3438875S",30.63,2,"Appel de fonds EDF PC2"); -CALL insert_trans_paye - ("2011-02-15","2011-02-15","Payement direct","512001","401005",30.63,"Payer EDF fev"); --- Fioul - -CALL insert_trans_facture - ("2011-02-21","2011-02-21","335763","603000","401002",805.80,"Facture Fioul ",4); -CALL repartir_trans_charge("2011-02-21","2011-02-21","603000","336763",805.80,4,"Repartition Charges Fioul PC4"); -CALL appel_fonds_sur_facture("2011-02-21","2011-02-21","701000","336763",805.80,4,"Appel de fonds Fioul PC4"); - -CALL insert_trans_paye - ("2011-02-22","2011-02-22","Payement direct","512001","401002",805.80,"Payer Fioul 1000L fev"); - --- EDF - -CALL insert_trans_facture - ("2011-04-10","2011-04-08","3749680S","602000","401005",28.01,"Facture EDF ",2); -CALL repartir_trans_charge("2011-04-10","2011-04-08","602000","3749680S",28.01,2,"Repartition Charges EDF PC2"); -CALL appel_fonds_sur_facture("2011-04-10","2011-04-08","701000","3749680S",28.01,2,"Appel de fonds EDF PC2"); -CALL insert_trans_paye - ("2011-04-15","2011-04-15","Payement direct","512001","401005",28.01,"Payer EDF avril"); - --- EAU -CALL insert_trans_facture - ("2011-04-21","2011-04-21","0333011301573L","601000","401009",335.37,"Facture EAU ",5); -CALL repartir_trans_charge("2011-04-21","2011-04-21","601000","0333011301573L",335.37,5,"Repartition Charges EAU"); -CALL appel_fonds_sur_facture("2011-04-21","2011-04-21","701000","0333011301573L",335.37,5,"Appel de fonds EAU"); -CALL insert_trans_paye - ("2011-04-22","2011-04-22","Payement direct","512001","401009",335.37,"Payer EAU"); - --- EDF Juin - -CALL insert_trans_facture - ("2011-06-10","2011-06-08","4114080S","602000","401005",24.94,"Facture EDF ",2); -CALL repartir_trans_charge("2011-06-10","2011-06-08","602000","4114080S",24.94,2,"Repartition Charges EDF PC2"); -CALL appel_fonds_sur_facture("2011-06-10","2011-06-08","701000","4114080S",24.94,2,"Appel de fonds EDF PC2"); -CALL insert_trans_paye - ("2011-06-15","2011-06-15","Payement direct","512001","401005",24.94,"Payer EDF juin"); - --- MATMUT Juin - -CALL insert_trans_facture - ("2011-06-10","2011-06-08","030","616000","401007",156.24,"Facture MatMut ",1); -CALL repartir_trans_charge("2011-06-10","2011-06-08","616000","030",156.24,1,"Repartition Charges Assurance PC1"); -CALL appel_fonds_sur_facture("2011-06-10","2011-06-08","701000","030",156.24,1,"Appel de fonds Assurance PC1"); - -CALL insert_trans_paye - ("2011-06-11","2011-06-11","Payement direct","512001","401007",156.24,"Payer Matmut 2ieme tier"); - --- Ramonage -CALL insert_trans_facture - ("2011-07-01","2011-07-01","5810","603000","401008",35.60,"Facture Ramonage ",4); -CALL repartir_trans_charge("2011-07-01","2011-07-01","603000","5810",35.60,4,"Repartition Charges Ramonage PC4"); -CALL appel_fonds_sur_facture("2011-07-01","2011-07-01","701000","5810",35.60,4,"Appel de fonds Ramonage PC4"); -CALL insert_trans_paye - ("2011-07-02","2011-07-02","Payement direct","512001","401008",35.60,"Payer Ramonage "); - --- Fioul - -CALL insert_trans_facture - ("2011-07-21","2011-07-21","347597","603000","401002",855.00,"Facture Fioul ",4); -CALL repartir_trans_charge("2011-07-21","2011-07-21","603000","347597",855.00,4,"Repartition Charges Fioul PC4"); -CALL appel_fonds_sur_facture("2011-07-21","2011-07-21","701000","347597",855.00,4,"Appel de fonds Fioul PC4"); -CALL insert_trans_paye - ("2011-07-22","2011-07-22","Payement direct","512001","401002",855.00,"Payer Fioul 1000L juillet"); - --- EDF Aout - -CALL insert_trans_facture - ("2011-08-10","2011-08-08","4471779S","602000","401005",11.62,"Facture EDF ",2); -CALL repartir_trans_charge("2011-08-10","2011-08-08","602000","4471779S",11.62,2,"Repartition Charges EDF PC2"); -CALL appel_fonds_sur_facture("2011-08-10","2011-08-08","701000","4471779S",11.62,2,"Appel de fonds EDF PC2"); -CALL insert_trans_paye - ("2011-08-15","2011-08-15","Payement direct","512001","401005",11.62,"Payer EDF aout"); - --- EDF Octo - -CALL insert_trans_facture - ("2011-10-10","2011-10-08","4790007S","602000","401005",24.61,"Facture EDF ",2); -CALL repartir_trans_charge("2011-10-10","2011-10-08","602000","4790007S",24.61,2,"Repartition Charges EDF PC2"); -CALL appel_fonds_sur_facture("2011-10-10","2011-10-08","701000","4790007S",24.61,2,"Appel de fonds EDF PC2"); -CALL insert_trans_paye - ("2011-10-15","2011-10-15","Payement direct","512001","401005",24.61,"Payer EDF oct"); - --- EAU -CALL insert_trans_facture - ("2011-11-15","2011-11-15","0333011900860Q","601000","401009",324.60,"Facture EAU ",5); -CALL repartir_trans_charge("2011-11-15","2011-11-15","601000","0333011900860Q",324.60,5,"Repartition Charges EAU"); -CALL appel_fonds_sur_facture("2011-11-15","2011-11-15","701000","0333011900860Q",324.60,5,"Appel de fonds EAU"); -CALL insert_trans_paye - ("2011-11-22","2011-11-22","Payement direct","512001","401009",324.60,"Payer EAU"); - --- Fioul - -CALL insert_trans_facture - ("2011-11-17","2011-11-17","358343","603000","401002",940.00,"Facture Fioul ",4); -CALL repartir_trans_charge("2011-11-17","2011-11-17","603000","358343",940.00,4,"Repartition Charges Fioul PC4"); -CALL appel_fonds_sur_facture("2011-11-17","2011-11-17","701000","358343",940.00,4,"Appel de fonds Fioul PC4"); -CALL insert_trans_paye - ("2011-11-22","2011-11-22","Payement direct","512001","401002",940,"Payer Fioul 1000L nov"); - --- EDF Dec - -CALL insert_trans_facture - ("2011-12-10","2011-12-09","5139892SS","602000","401005",25.98,"Facture EDF ",2); -CALL repartir_trans_charge("2011-12-10","2011-12-09","602000","5139892S",25.98,2,"Repartition Charges EDF PC2"); -CALL appel_fonds_sur_facture("2011-12-10","2011-12-09","701000","5139892S",25.98,2,"Appel de fonds EDF PC2"); -CALL insert_trans_paye - ("2011-12-15","2011-12-15","Payement direct","512001","401005",25.98,"Payer EDF dec"); - --- Ramonage -CALL insert_trans_facture - ("2011-12-10","2011-12-09","6348","603000","401008",35.60,"Facture Ramonage ",4); -CALL repartir_trans_charge("2011-12-10","2011-12-09","603000","6348",35.60,4,"Repartition Charges Ramonage PC4"); -CALL appel_fonds_sur_facture("2011-12-10","2011-12-09","701000","6348",35.60,4,"Appel de fonds Ramonage PC4"); -CALL insert_trans_paye - ("2011-12-10","2011-12-10","Payement direct","512001","401008",35.60,"Payer Ramonage "); - --- Fioul - -CALL insert_trans_facture - ("2011-12-29","2011-12-29","361276","603000","401002",880.00,"Facture Fioul ",4); -CALL repartir_trans_charge("2011-12-29","2011-12-29","603000","361276",880.00,4,"Repartition Charges Fioul PC4"); -CALL appel_fonds_sur_facture("2011-12-29","2011-12-29","701000","361276",880.00,4,"Appel de fonds Fioul PC4"); -CALL insert_trans_paye - ("2011-12-30","2011-12-30","Payement direct","512001","401002",880.00,"Payer Fioul 1000L dec"); - -CALL rembourse_appel_fonds("2011-12-30","2011","701000","Remboursement appels de fonds"); - --- --- Saisie 2012 --- - -UPDATE Tantieme SET tant_lot_size= 2/9*1000 WHERE tant_pc_id=5 AND tant_lot_num = 1; -UPDATE Tantieme SET tant_lot_size= 3/9*1000 WHERE tant_pc_id=5 AND tant_lot_num = 2; -UPDATE Tantieme SET tant_lot_size= 2/9*1000 WHERE tant_pc_id=5 AND tant_lot_num = 3; -UPDATE Tantieme SET tant_lot_size= 2/9*1000 WHERE tant_pc_id=5 AND tant_lot_num = 4; - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-15","2012-02-01","364381","Facture Fioul BOLLORE 1000L"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture (@last_id,"2012-02-02","364381","603000","401002",961.92,"Facture Bollore Fioul PC4",4); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-15","2012-02-01","364381","Répartition Charges Fioul PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 (@last_id,"2012-02-02","364381","603000","401002",961.92,"Appel de fonds Bollore Fioul PC4"); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-15","2012-02-01","Direct via cheque copro","Payer BOLLORE Fioul"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-02-02","Payement direct","512001","401002",961.92,"Payer Bollore "); --- - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-14","2012-02-01","","Avance pour Fioul"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-02-02","512001","450001",150.06,"Virement Cordier Fioul"); - -CALL insert_view_avance - (@last_id,"2012-02-02","512001","450002",480.00,"Virement Ebersold Fioul + part Immoval"); - -CALL insert_view_avance - (@last_id,"2012-02-02","512001","450003",331.86,"Virement Henschel Fioul"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-13","2012-02-01","5485019S","Facture ES "); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture (@last_id,"2012-02-13","5485019S","602000","401005",31.72,"Facture EDF PC1",1); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-13","2012-02-01","5485019S","Répartition Charges ES PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 (@last_id,"2012-02-13","5485019S","602000","401005",31.72,"Appel de fonds EDF PC1"); - -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-02-02","","401005",31.72,'d',"Payement EDF"); --- Un credit sur les comptes de coproprite induit un debit en banque. - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-13","2012-02-01","","Cordier Payer EDF"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-02-02","512001","450001",31.72,"Cordier a Paye EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-02-02","","512001",31.72,'c',"Cordier a Paye EDF"); - --- --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-02","2012-02-01","","Cordier paye Matmut"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance -(@last_id,"2012-02-02","512001","450001",173.35,"Cordier Payement assurance "); --- Un credit sur les comptes de coproprite induit un debit en banque. -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-02-02","","512001",173.35,'c',"Cordier Payement Assurance par cordier"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-02","2012-02-01","31","Facture Matmut 1T 2012"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture (@last_id,"2012-02-02","31","616000","401007",173.35,"Facture Assurance PC1",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-02","2012-02-01","31","Répartition Charges Matmut 1T 2012"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 (@last_id,"2012-02-02","31","616000","401007",173.35,"Appel de fonds Assurance PC1"); - -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (@last_id,"2012-02-02","OD","401007",173.35,'d',"Payement Assurance par cordier"); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-02-29","2012-02-01","","Versement Fév"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-02-29","512001","450004",210.25,"Virement Immoval"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-03-03","2012-02-01","","Versement mars"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-03-02","512001","450001",65.00,"Virement Cordier"); -CALL insert_view_avance - (@last_id,"2012-03-02","512001","450003",150.00,"Virement Hentschel"); -CALL insert_view_avance - (@last_id,"2012-03-02","512001","450002",150.00,"Virement Ebersold"); -CALL insert_view_avance - (@last_id,"2012-03-02","512001","450002",307.80,"Ebersold"); -CALL insert_view_avance - (@last_id,"2012-03-07","512001","450003",155.15,"Remise Cheque Hentschel"); - --- Veolia compteur - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-03-07","2012-03-07","12013768","Facture Veolia PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-02-02","12013768","603000","401003",211.17,"Facture Veolia PC4",4); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-03-07","2012-03-07","12013768","Répartition Charges Veolia PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-02-02","","603000","401003",211.17,"Appel de fonds Veolia PC4"); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-03-07","2012-03-14","CHEQUE 2452001","Payer Veolio"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-03-14","CHEQUE 2452001","512001","401003",211.17,"Payer Veolia "); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-03-06","2012-03-06","367096","Facture BOLLORE 500L Filoul"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-03-04","367096","603000","401002",501.00,"Facture Bollore PC4",4); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-03-06","2012-03-06","367096","Répartition Charge BOLLORE 500L PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-03-06","367096","603000","401002",501.00,"Appel de fonds Bollore"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-03-06","2012-03-07","CHEQUE 2452002","Payer BOLLORE"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-03-07","CHEQUE 2452002","512001","401002",501.00,"Payer facture Bollore "); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-16","2012-02-01","369631","Facture BOLLORE 500L"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-04-14","369631","603000","401002",490.98,"Facture Bollore PC4",4); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-17","2012-04-01","369631","Répartitions Charges BOLLORE 500L PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-04-17","369631","603000","401002",490.98,"Appel de fonds Bollore"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-16","2012-02-01","CHEQUE 2452003","Payer BOLLORE 500L"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-04-08","CHEQUE 2452003","512001","401002",490.98,"Payer Bollore "); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-02","2012-04-01","","Versement avril"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-04-02","512001","450003",150.00,"Virement Hentschel"); - -CALL insert_view_avance - (@last_id,"2012-04-10","512001","450001",65.00,"Virement Cordier"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-30","2012-02-01","5812179S","Facture ES avril"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-04-10","5812179S","602000","401005",26.77,"Facture EDF PC1",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-30","2012-02-01","5812179S","Répartition Charges ES PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 - (@last_id,"2012-04-10","5812179S","602000","401005",26.77,"Appel de fonds EDF PC1"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-30","2012-02-01","CHEQUE 2452005","Payer ES"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-04-30","CHEQUE 2452005","512001","401005",26.77,"Payer EDF PC1 "); - --- Savelys retard de payement -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-10","2012-02-01","5KI13684246","Facture Savelys"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-04-01","5KI13684246","614000","401004",165.51,"Facture SAVELYS Entretien ",4); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-10","2012-02-01","5KI13684246","Répartition Charges Savelys PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-04-08","","614000","401003",165.51,"Appel de fonds Savelys PC4"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-04-10","2012-02-01","CHEQUE 2452004","Payer Savelys"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-04-08","CHEQUE 2452004","512001","401004",165.51,"Payer Savelys GDF Suez"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-05-10","2012-05-01","","Versement Mai"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-05-03","512001","450003",150.00,"Virement Hentschel"); -CALL insert_view_avance - (@last_id,"2012-05-03","512001","450001",65.00,"Cordier"); -CALL insert_view_avance - (@last_id,"2012-05-03","512001","450002",150.00,"Ebersold"); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-10","2012-06-01","","Versement juin"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-06-03","512001","450003",150.00,"Hentschel"); -CALL insert_view_avance - (@last_id,"2012-06-03","512001","450001",65.00,"Cordier"); -CALL insert_view_avance - (@last_id,"2012-06-20","512001","450002",4.75,"Virement Ebersold"); -CALL insert_view_avance - (@last_id,"2012-06-13","512001","450004",260.00,"Immoval"); - --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-16","2012-02-01","","Lettre recommandée"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-06-06","OD","401006",4.78,'c',"Poste Lettre recommand Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,tret_key_id) VALUES (@last_id,"2012-06-06","OD","620000",4.78,'d',"Poste Lettre recommand Immoval",2); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-06-03","OD","450004",4.78,'d',"Lettre recommande AR Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,tret_key_id) VALUES (@last_id,"2012-06-03","OD","620000",4.78,'c',"Fonds Lettre recommande AR Immoval",2); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-16","2012-02-01","CHEQUE 2452006","Payer Lettre recommandée "); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-07-13","CHEQUE 2452006","512001","401006",4.78,"Payer lettre recommande Immoval"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-13","2012-06-01","6187827S","Facture ES juin"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-06-12","6187827S","602000","401005",24.85,"Facture EDF PC1",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-13","2012-06-01","6187827S","Répartition des charges ES Juin"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 - (@last_id,"2012-06-12","6187827S","602000","401005",24.85,"Appel de fonds EDF PC1"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-13","2012-02-01","CHEQUE 2452007","Payer ES"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-06-22","CHEQUE 2452007","512001","401005",24.85,"Payement EDF"); - --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-09","2012-06-06","7275","Facture Ramonage"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,voucher_ref,description) VALUES - (@last_id,"2012-06-09","HA","401008",61.95,'c',"7175","Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,voucher_ref,description) VALUES - (@last_id,"2012-06-09","HA","603000",61.95,'d',"7175","Entretien Ramonage"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-06","2012-06-06","7275","Répartition des charges ramonage PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-06-09","7175","603000","401008",39.27,"Appel de fonds Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"OD","2012-06-09","7175","450005",22.68,'d',"Appel de fonds Ramonage Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (@last_id,"OD","2012-06-09","7175","603000",22.68,'c',"Appel de fonds Ramonage Cordier"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-06","2012-06-06","CHEQUE 2452009","Payer Ramonage"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-06-09","BQ","401008",61.95,'d',"Payement Ramonage",'CHEQUE 2452009'); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-08-03","BQ","512001",61.95,'c',"Payement Ramonage","CHEQUE 2452009"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-06-16","2012-06-01","","Versement Copropriétaires Juillet"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-07-03","512001","450001",65.00,"Virement Cordier"); - -CALL insert_view_avance -(@last_id,"2012-07-30","512001","450002",150.00,"Virement Ebersold"); - -CALL insert_view_avance -(@last_id,"2012-07-03","512001","450003",150.00,"Virement Hentschel"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-09","2012-07-01","","Facture EAU"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-07-31","---","601000","401009",377.89,"Facture Eau",5); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-09","2012-02-01","---","Répartition Charges EAU"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge( @last_id,"601000","2012-07-31","---",377.89,5,"Repartition Charges EAU"); - -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-07-31","OD","450005",73.48,'d',"Prorata eau 2011"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-07-31","OD","450002",73.48,'c',"Prorata eau 2011"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-09","2012-02-01","CHEQUE 2452010","Payer EAU"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-07-31","BQ","401009",377.89,'d',"Payement Eau","CHEQUE 2452010"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-08-03","BQ","512001",377.89,'c',"Payement Eau","CHEQUE 2452010"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-28","2012-02-01","","Frais bancaires"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-07-17","xx","620000","401006",2.60,"Banque Frais",2); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-28","2012-02-01","","Répartition Frais bancaires"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc2 - (@last_id,"2012-07-17","xx","620000","401006",2.60,"Appel de fonds Banque Frais"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-28","2012-02-01","","Prélèvement banque"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-07-17","BQ","401006",2.60,'d',"Payement Banque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-07-17","BQ","512001",2.60,'c',"Payement Banque Frais"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-15","2012-02-01","6562864S","Facture ES Juillet"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-08-18","6562864S","602000","401005",28.10,"Facture EDF PC1",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-15","2012-02-01","6562864S","Répartition des charges ES PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 - (@last_id,"2012-08-18","6562864S","602000","401005",28.10,"Appel de fonds EDF PC1"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-15","2012-08-21","CHEQUE 2452011","Payer ES"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-08-18","BQ","401005",28.10,'d',"Payement EDF","CHEQUE 2452011"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-08-21","BQ","512001",28.10,'c',"Payement EDF","CHEQUE 2452011"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-07-31","2012-02-01","","Versement Juillet"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance -(@last_id,"2012-08-03","512001","450001",65.00,"Cordier"); - -CALL insert_view_avance -(@last_id,"2012-08-27","512001","450002",150.00,"Ebersold"); - -CALL insert_view_avance -(@last_id,"2012-08-03","512001","450003",150.00,"Virement Hentschel"); - -CALL insert_view_avance - (@last_id,"2012-08-18","512001","450004",130.00,"Immoval"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-08-18","2012-02-01","033","Facture Matmut Assurance"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-08-23","033","616000","401007",164.05,"Facture Assurance",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-08-18","2012-02-01","033","Répartition Charges Matmut PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 - (@last_id,"2012-08-23","033","616000","401007",164.05,"Appel de fonds Assurance"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-08-18","2012-02-01","CHEQUE 2452012","Payer Assurance"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-08-23","BQ","401007",164.05,'d',"Payement Assurance","CHEQUE 2452012"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-08-23","BQ","512001",164.05,'c',"Payement Assurance","CHEQUE 2452012"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-08-18","2012-02-01","","Versement Copropriétaires"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-09-03","512001","450003",150.00,"Virement Hentschel"); - -CALL insert_view_avance - (@last_id,"2012-09-03","512001","450001",65.00,"Cordier"); - -CALL insert_view_avance - (@last_id, "2012-09-06","512001","450002",150.00,"Ebersold"); - -CALL insert_view_avance - (@last_id,"2012-09-18","512001","450004",65.00,"Immoval"); - -CALL insert_view_avance - (@last_id,"2012-10-02","512001","450001",65.00,"Cordier"); - --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-09-05","2012-02-01","xxx","Facture Divers lampe"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-10-02","xxx","605000","401010",70.10,"Facture Divers lampe PC2",2); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-09-05","2012-02-01","","Répartition Charges Divers lampe "); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc2 - (@last_id,"2012-10-02","xxx","605000","401010",70.10,"Appel de Divers lampe PC2"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-09-05","2012-02-01","CHEQUE 2452014","Payer Divers lampe"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (@last_id,"2012-10-02","BQ","401010",70.10,'d',"Payement Divers lampe"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-10-02","BQ","512001",70.10,'c',"Payement Divers lampe","CHEQUE 2452014"); - --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-09-17","2012-02-01","","Virement Septembre"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-10-03","512001","450003",150.00,"Virement Hentschel"); -CALL insert_view_avance - (@last_id,"2012-10-09","512001","450002",150.00,"Ebersold"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-02","2012-02-01","379180","Facture de FIOUL 1000L"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-09-06","379180","603000","401002",996,"Facture Bollore PC4",4); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-02","2012-02-01","379180","Répartition Charges Fioul 1000L PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-09-06","379180","603000","401002",996,"Appel de fonds Bollore PC4"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-02","2012-02-01","CHEQUE 2452013","Payer BOLLORE 1000L Fioul"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-09-25","BQ","401002",996,'d',"Payement Bollore","CHEQUE 2452013"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-09-25","BQ","512001",996,'c',"Payement Bollore","CHEQUE 2452013"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-03","2012-02-01","","Versement IMMOVAL"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-10-18","512001","450004",65.00,"Immoval"); - - --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-09","2012-02-01","Relevé","Facture Banque Frais"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-10-16","xxx","620000","401006",2.60,"Facture Banque Frais",2); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-09","2012-02-01","Relevé","Répartition Frais banquaires"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc2 - (@last_id,"2012-10-16","xxx","620000","401006",2.60,"Appel de fonds Banque Frais"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-11","2012-02-01","Releve banque","Prélèvment Frais bancaires"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-10-16","BQ","401006",2.60,'d',"Payement Banque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-10-16","BQ","512001",2.60,'c',"Payement Banque Frais"); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-16","2012-02-01","","Versement Ebersold"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance -(@last_id,"2012-11-05","512001","450002",150.00,"Ebersold"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-10-16","2012-10-01","6881712S","Facture ES Octobre"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-10-02","6881712S","602000","401005",27.0,"Facture EDF PC1",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-11-05","2012-11-01","6881712S","Répartition Charges ES PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 - (@last_id,"2012-10-08","6881712S","602000","401005",27.0,"Appel de fonds EDF PC1"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-11-02","2012-11-01","TIP","Payement ES Nov"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-11-02","BQ","401005",27.0,'d',"Payement EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-11-02","BQ","512001",27.0,'c',"Payement TIP EDF"); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-11-03","2012-11-01","","Versement de Nov"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-11-03","512001","450003",150.00,"Virement Hentschel"); - -CALL insert_view_avance - (@last_id,"2012-11-03","512001","450001",65.00,"Cordier"); - -CALL insert_view_avance - (@last_id,"2012-11-18","512001","450004",65.00,"Immoval"); - --- --- --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-11-15","2012-11-01","xxx","Facture EAU"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-11-15","xxx","601000","401009",325.20,"Facture Eau",5); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-11-15","2012-11-01","xxx","Répartition Charges EAU"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge( @last_id,"601000","2012-11-15","xxx",325.20,5,"Repartition Charges EAU"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-11-15","2012-11-01","CHEQUE 2452015","Payer EAU"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (@last_id,"2012-11-15","BQ","401009",325.20,'d',"Payement Eau"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-11-15","BQ","512001",325.20,'c',"Payement Eau","CHEQUE 2452015"); - --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-05","2012-02-01","384886","Facture BOLLERE FIOUL 1000L"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-11-29","384886","603000","401002",950.95,"Facture Bollore PC4",4); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-05","2012-02-01","384886","Répartition Charges Fioul 1000L"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-11-29","384886","603000","401002",950.95,"Appel de fonds Bollore PC4"); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-05","2012-02-01","CHEQUE 2452016","Payer BOLLORE FIOUL 1000L Déc"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-12-05","BQ","401002",950.95,'d',"Payement Bollore",'CHEQUE 2452016'); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-12-05","BQ","512001",950.95,'c',"Payement Bollore","CHEQUE 2452016"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-05","2012-02-01","","Avance Décembre "); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2012-12-05","512001","450003",150.00,"Virement Hentschel"); - -CALL insert_view_avance - (@last_id,"2012-12-05","512001","450002",150.00,"Ebersold"); - -CALL insert_view_avance - (@last_id,"2012-12-19","512001","450004",65.00,"Immoval"); - -CALL insert_view_avance - (@last_id,"2012-12-15","512001","450001",65.00,"Cordier"); --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-20","2012-02-01","7244392S","Facture ES Décembre"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2012-12-20","7244392S","602000","401005",28.85,"Facture EDF PC1",1); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-20","2012-02-01","7244392S","Répartition Charges ES Décembre PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc1 - (@last_id,"2012-12-20","7244392S","602000","401005",28.85,"Appel de fonds EDF PC1"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-20","2012-02-01","CHEQUE 2452017","Payer EDF"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2012-12-20","CHEQUE 2452017","512001","401005",28.85,"Payer EDF"); - --- - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-20","2012-02-01","7784","Facture Ramonage"); -SET @last_id = LAST_INSERT_ID(); - -CALL insert_facture - (@last_id,"2012-11-29","7784","603000","401008",39.27,"Facture Ramonage PC4",4); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-20","2012-02-01","7784","Répartitions de charges Ramonage PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_pc4 - (@last_id,"2012-11-29","7784","603000","401008",39.27,"Appel de fonds Ramonage PC4"); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-20","2012-02-01","CHEQUE 2452018","Payer Ramoneur"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (@last_id,"2012-12-20","BQ","401008",39.27,'d',"Payement Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES - (@last_id,"2012-12-20","BQ","512001",39.27,'c',"Payement Ramonage","CHEQUE 2452018"); - --- Repartiteur -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-20","2012-02-01","","Repartiteur"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","OD","450001",372.59,'d',"Repartiteur Veolia Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","OD","450002",244.66,'c',"Repartiteur Veolia Ebersold"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","OD","450003",91.22,'c',"Repartiteur Veolia Hentschel"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","OD","450004",15.59,'d',"Repartiteur Veolia Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","OD","450005",52.30,'c',"Repartiteur Veolia Ancien Cordier"); - - --- Appels de fonds -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-28","2012-12-28","","Appels de fond + remboursement"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","450001",1005.13,'d',"Appels Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","701000",1005.13,'c',"Appels Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","450002",1992.55,'d',"Appels Ebersold"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","701000",1992.55,'c',"Appels Ebersold"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","450003",1987.01,'d',"Appels Hentschel"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","701000",1987.01,'c',"Appels Hentschel"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","450004",860.25,'d',"Appels Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","AF","701000",860.25,'c',"Appels Immoval"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2012-12-28","2012-12-28","","Appels de fond + remboursement"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","450001",1005.13,'c',"Remb Appels Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","701000",1005.13,'d',"Remb Appels Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","450002",1992.55,'c',"Remb Appels Ebersold"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","701000",1992.55,'d',"Remb Appels Ebersold"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","450003",1987.01,'c',"Remb Appels Hentschel"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","701000",1987.01,'d',"Remb Appels Hentschel"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","450004",860.25,'c',"Remb Appels Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2012-12-30","RF","701000",860.25,'d',"Remb Appels Immoval"); - - --- Cloture des comptes sur 2013 --- INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES --- ( "2012-12-30","2012-12-30","","Cloture des comptes 2012"); --- SET @last_id = LAST_INSERT_ID(); --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","450001",272.73,'c',"Report solde debiteur 2012"); --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","701000",272.73,'d',"Report solde debiteur 2012"); --- - --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","450002",349.10,'d',"Report solde crediteur 2012"); --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","701000",349.10,'c',"Report solde crediteur 2012"); --- - --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","450003",203.89,'d',"Report solde crediteur 2012"); --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","701000",203.89,'c',"Report solde crediteur 2012"); --- - --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","450004",58.08,'c',"Report solde debiteur 2012"); --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","701000",58.08,'d',"Report solde debiteur 2012"); --- - --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","450005",43.86,'c',"Report solde debiteur 2012"); --- INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES --- (@last_id,"OD","2012-12-30","701000",43.86,'d',"Report solde debiteur 2012"); --- --- INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES --- (69,"2012-12-30","512001",178.33,'d',"Report solde debiteur 2012"); - --- --- Debut 2013 --- - --- Report 2012 -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-02","Report de soldes","A NOUVEAU"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AN","2013-01-02","450001",272.73,'d',"Report solde debiteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AN","2013-01-02","450002",349.10,'c',"Report solde crediteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AN","2013-01-02","450003",203.89,'c',"Report solde crediteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AN","2013-01-02","450004",58.08,'d',"Report solde debiteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AN","2013-01-02","450001",43.86,'d',"Report solde debiteur 2012 Ancien C"); -INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,acc_id,amount,debit_credit,description) VALUES - (@last_id,"AN","2013-01-02","512001",178.33,'d',"Report solde debiteur 2012"); - --- Versement - -CALL appel_fonds("2013-01-02","450001","701000",372.59,"Appel de fonds Suite au decompte de charge"); -CALL appel_fonds("2013-01-02","450002","701000",170.00,"Appel de fonds janv"); -CALL appel_fonds("2013-01-02","450003","701000",150.00,"Appel de fonds janv"); -CALL appel_fonds("2013-01-02","450004","701000",129.09,"Appel de fonds Suite au decompte de charge"); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-02","","Virement Janvier 2013"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2013-01-02","512001","450003",150.00,"Virement Hentschel"); -CALL insert_view_avance - (@last_id,"2013-01-05","512001","450002",170.00,"Virement Ebersold"); -CALL insert_view_avance - (@last_id,"2013-01-05","512001","450001",372.59,"Virement Cordier"); -CALL insert_view_avance - (@last_id,"2013-01-15","512001","450004",129.09,"Virement Immoval"); --- Matmut payer - -CALL insert_trans_facture - ("2013-01-02","2013-01-03","Releve 35","616000","401007",177.41,"Matmut 1T 2013",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-03","Releve 35","Repartition Charges Assurance PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge - ( @last_id,"616000","2013-01-02","035",177.41,1,"Repartition Charges Assurance PC1"); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-04","CHEQUE 2452019","Payer Matmut 1T 2013"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2013-01-04","CHEQUE 2452019","512001","401007",177.41,"Payer Matmut 1T 2013"); - --- Ampoule Leroy -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-03","0153280","Achat d'ampoules Leroy Merlin" ); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2013-01-03","0153280","604000","401010",25.89,"Achat Leroy Merling ampoule",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,trans_label) VALUES - ( "2013-01-02","2013-01-03","Repartion Charge Leroy Merlin ampoules PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge( @last_id,"604000","2013-01-07","0153280",25.89,1,"Repartition Charges Leroy ampoules PC1"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-03","CHEQUE 2452020","Payer Achat Leroy Merlin"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2013-01-03","CHEQUE 2452020","512001","401010",25.89,"Payer Achat Leroy Merling ampoule"); - --- Savelys -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-03","5KI15289850","Facture Savelys Suez entretien"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2013-01-08","5KI15289850","614000","401004",170.48,"Savely Suez entretien",4); - - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-02","2013-01-03","KI15289850","Repartition Charges Savelys PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge - ( @last_id,"614000","2013-01-07","5KI15289850",170.48,4,"Repartition Charges Savelys PC4"); - --- Commande de fioul 2012-01-08 -CALL insert_trans_facture - ("2013-01-09","2013-01-10","258850","603000","401002",940,"Fioul Janv 1000L PC4",4); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-09","2013-01-15","258850","Répartition Charges Fioul 1000L PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge - (@last_id,"603000","2013-01-27","258850",940,4,"Repartition Charges Fioul 1000L PC4"); - --- CALL appel_fonds_sur_facture("2013-01-10","2013-01-10","701000","258850",940,4,"Appel de fonds Fioul 1000L PC4"); - --- Elagage de l'arbre - -CALL insert_trans_facture - ("2013-01-09","2013-01-20","xxx","615000","450002",50,"Elagage PC1",1); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-09","2013-01-15","","Elagage arbre"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge - ( @last_id,"615000","2013-01-27","xxx",50.00,1,"Repartition Charges Elagage arbre PC1"); - --- CALL appel_fonds_sur_facture("2013-01-27","2013-01-27","701000","xxx",50,1,"Appel de fonds Elagage"); - -CALL appel_fonds("2013-01-02","450004","701000",150,"Appel de fonds 1T"); --- Virement Immmoval -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-09","2013-01-29","","Versement Exceptionnel 1T Immoval"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2013-01-29","512001","450004",150.00,"Virement Immoval"); - --- Payement Fioul -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-09","2013-01-30","CHEQUE 2452021","Payer Fioul BOLLERE Janv"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2013-01-30","CHEQUE 2452021","512001","401002",940.00,"Payer Fioul Bollore"); --- Virement Cordier Janvier 2013 -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-09","2013-01-29","","Virement Régulier Jan Corider 03/01/2013"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2013-01-29","512001","450001",65.00,"Virement Regulier Jan 03/01/2013"); - --- Frais Banquaire - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-17","2013-01-17","","Frais bancaires"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_facture - (@last_id,"2013-01-17","xxx","620000","401006",2.60,"Facture Banque Frais",1); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-17","2013-01-17","","Répartition Charges Frais Banque PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge( @last_id,"620000","2013-01-17","Releve 1",2.60,1,"Repartition Charges Frais Banque PC1"); - --- CALL appel_fonds_sur_facture("2013-01-17","2013-01-17","701000","Releve 1",2.60,1,"Appel de fonds Banque PC1"); - -INSERT INTO Transactions (voucher_date,act_trans_date,trans_label) VALUES - ( "2013-01-17","2013-01-17","Prélèvement de la Banque"); -SET @last_id = LAST_INSERT_ID(); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2013-01-17","BQ","401006",2.60,'d',"Payement Baque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (@last_id,"2013-01-17","BQ","512001",2.60,'c',"Payement Baque Frais"); - --- Appel de fonds Fev -CALL appel_fonds("2013-02-02","450001","701000",100.00,"Appel de fonds fev"); -CALL appel_fonds("2013-02-02","450002","701000",170.00,"Appel de fonds fev"); -CALL appel_fonds("2013-02-02","450003","701000",150.00,"Appel de fonds fev"); --- Virement Fevrier -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ("2013-02-09","2013-02-05","","Virement régulier Fév"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2013-02-05","512001","450001",100.00,"Virement Regulier Fev 03/02/2013"); - -CALL insert_view_avance - (@last_id,"2013-02-20","512001","450002",370.00,"Virement Regulier Fev 20/02/2013"); - -CALL insert_view_avance - (@last_id,"2013-02-05","512001","450003",150.00,"Virement Regulier Fev 03/02/2013"); - --- Fioul Pour fevrier -CALL insert_trans_facture - ("2013-02-14","2013-02-14","387771","603000","401002",1261.05,"Fioul Fev 1200L PC4",4); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-02-14","2013-02-14","387771","Répartition Charge Fioul 1200L Fév PC4"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge( @last_id,"603000","2013-02-14","387771",1261.05,4,"Repartition Charges Fioul 1200L Fev PC4"); - --- CALL appel_fonds_sur_facture("2013-02-14","2013-02-14","701000","387771",1261.05,4,"Appel de fonds Fioul 1200L Fev PC4"); - --- Achat Sel -CALL insert_trans_facture - ("2013-02-16","2013-02-16","0218001160213000156","604000","401011",3.99,"Sel pour neige PC1",1); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-02-16","2013-02-16","0218001160213000156","Répartition Charge Sel Fév PC1"); -SET @last_id = LAST_INSERT_ID(); -CALL repartir_charge( @last_id,"604000","2013-02-16","0218001160213000156",3.99,1,"Repartition Charges Sel Fev PC1"); - --- CALL appel_fonds_sur_facture("2013-02-16","2013-02-16","701000","0218001160213000156",3.99,1,"Appel de fonds Sel"); - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-02-16","2013-02-16","CHEQUE 2452022","Payer Achat LIDL Sel"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2013-02-16","CHEQUE 2452022","512001","401011",3.99,"Payer Achat LIDL Sel"); - --- Facture EDF --- jm.hentschel@gmail.com -CALL insert_trans_facture - ("2013-02-12","2013-02-16","7604369S","602000","401005",30.54,"Facture EDF Fev ",2); - -CALL repartir_trans_charge( "2013-02-16","2013-02-16","602000","7604369S",30.54,2,"Repartition Charges EDF Fev PC2"); - --- CALL appel_fonds_sur_facture("2013-02-12","2013-02-16","701000","7604369S",30.54,2,"Appel de fonds EDF Fev PC2"); -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ("2013-02-12","2013-02-17","CHEQUE 2452023","Payer ES Fév"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2013-02-17","CHEQUE 2452023","512001","401005",30.54,"Payer Electricite Fév"); - --- Appel de fonds Exceptionnel -CALL appel_fonds("2013-02-19","450001","701000",201.00,"Appel de fonds excep fev"); -CALL appel_fonds("2013-02-19","450002","701000",200.00,"Appel de fonds excep fev"); -CALL appel_fonds("2013-02-19","450003","701000",625.48,"Appel de fonds excep fev"); --- Virement exception Jean Matthieu - -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-02-18","2013-02-18","","Virement exceptionnel Hentschel"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2013-02-19","512001","450003",625.48,"Virement exceptionel Fioul Fev 19/02/2013"); --- Cheque exceptionnel Cordier - --- INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES --- ( "2013-02-18","2013-02-18","CHEQUE 0381071","Versement Avance CHEQUE Cordier"); --- SET @last_id = LAST_INSERT_ID(); -CALL insert_avance - ("2013-02-19","CHEQUE 0381071","512001","450001",201.01,"Versement Cheque Cordier,exceptionel Fioul Fev 19/02/2013"); - --- Payer Savelys -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-25","2013-02-25","CHEQUE 2452024","Payer Savelys"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2013-02-25","CHEQUE 2452024","512001","401004",170.48,"Payer Savelys Fév"); - --- Payer Bollore Fioul -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ( "2013-01-25","2013-02-25","CHEQUE 2452025","Payer BOLLERE Fév"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_paye - (@last_id,"2013-02-25","CHEQUE 2452025","512001","401002",1261.05,"Payer Bollore 1200L"); - - --- Appel de fonds Mars -CALL appel_fonds("2013-03-02","450001","701000",100,"Appel de fonds Mensuel mars"); -CALL appel_fonds("2013-03-02","450002","701000",150,"Appel de fonds Mensuel mars 100+50 arbre"); -CALL appel_fonds("2013-03-02","450003","701000",150,"Appel de fonds Mensuel mars"); --- Avances mars -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ("2013-03-09","2013-03-05","","Virement régulier Fév"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2013-02-09","512001","450001",100.00,"Virement Regulier mars 03/03/2013"); - -CALL insert_view_avance - (@last_id,"2013-02-20","512001","450002",100.00,"Virement Regulier mars 25/03/2013"); - -CALL insert_view_avance - (@last_id,"2013-03-05","512001","450003",150.00,"Virement Regulier mars 03/03/2013"); - --- Appel de fonds Avril -CALL appel_fonds("2013-04-02","450001","701000",100,"Appel de fonds Mensuel avril"); -CALL appel_fonds("2013-04-02","450002","701000",170,"Appel de fonds Mensuel avril"); -CALL appel_fonds("2013-04-02","450003","701000",150,"Appel de fonds Mensuel avril"); -CALL appel_fonds("2013-04-02","450004","701000",225,"Appel de fonds 2T"); --- Avances avril -INSERT INTO Transactions (voucher_date,act_trans_date,voucher_ref,trans_label) VALUES - ("2013-04-09","2013-04-05","","Virement régulieravril"); -SET @last_id = LAST_INSERT_ID(); -CALL insert_view_avance - (@last_id,"2013-04-09","512001","450001",100.00,"Virement Regulier avril 03/04/2013"); - -CALL insert_view_avance - (@last_id,"2013-04-09","512001","450002",170.00,"Virement Regulier avril 25/04/2013"); - -CALL insert_view_avance - (@last_id,"2013-04-09","512001","450003",150.00,"Virement Regulier avril 03/04/2013"); - -CALL insert_view_avance - (@last_id,"2013-04-09","512001","450004",225.00,"Virement Q2 avril 03/04/2013"); - --- Fioul -CALL insert_trans_facture - ("2013-04-06","2013-04-06","493890","603000","401012",933,"Facture Fioul Avril PC4",4); - -CALL repartir_trans_charge("2013-04-06","2013-04-06","603000","493890",933.00,4,"Repartition Charges Fioul PC4"); --- CALL appel_fonds_sur_facture("2013-04-06","2013-04-06","701000","493890",933.00,4,"Appel de fonds Fioul PC4"); - -CALL insert_trans_paye - ("2013-04-06","2013-04-09","CHEQUE 2452026","512001","401012",933.00,"Payer Mutschler 1000L"); - - - - -CALL insert_avance - ("2013-04-11","VIREMENT","512001","450002",170.00,"Versement avance mai Fioul avril 06/04/2013"); - --- Timbres poste -CALL insert_trans_facture - ("2013-04-13","2013-04-13","51679260130004666","620000","401006",13.92,"2 Carnets de timbre PC1",1); - -CALL repartir_trans_charge("2013-04-13","2013-04-13","620000","51679260130004666",13.92,1,"2 Carnets de timbre PC1"); - -CALL insert_trans_paye - ("2013-04-13","2013-04-13","CHEQUE 2452027","512001","401006",13.92,"Payer timbres"); - - --- VEOLIA -CALL insert_trans_facture("2013-04-29","2013-02-11","13019808","603000","401003",216.67,"Facture veolia proxiserve",4); - -CALL repartir_trans_charge("2013-04-29","2013-02-11","603000","13019808",216.67,4,"Veolia proxiserve PC4"); - -CALL insert_trans_paye("2013-04-29","2013-02-11","CHEQUE 2452028","512001","401003",216.67,"Payer VEOLIA"); - --- ES -CALL insert_trans_facture("2013-04-29","2013-04-10","7925086S","602000","401005",31.18,"Facture ES",2); - -CALL repartir_trans_charge("2013-04-29","2013-04-10","602000","7925086S",31.18,2,"ES PC2"); - -CALL insert_trans_paye("2013-04-29","2013-04-29","CHEQUE 2452029","512001","401005",31.18,"Payer ES"); - --- EAU Facture -CALL insert_trans_facture("2013-05-06","2013-05-06","233813200026Y","601000","401009",226.26,"Facture EAU",5); - -CALL repartir_trans_charge("2013-05-06","2013-05-06","601000","233813200026Y",226.26,5,"Charge EAU"); --- Frais Bancaires - -CALL insert_trans_facture("2013-05-06","2013-04-11","Releve CCP N 4","620000","401006",2.60,"Frais bancaires",1); -CALL repartir_trans_charge("2013-05-06","2013-04-11","620000","Releve CCP N 4",2.60,1,"Frais bancaires PC1"); - -CALL insert_trans_paye("2013-05-06","2013-04-11","Prelevement","512001","401006",2.60,"Prelevement CCP N4"); - --- Appel de fonds mai -CALL appel_fonds("2013-04-30","450001","701000",100,"Appel de fonds Mensuel mai"); -CALL appel_fonds("2013-04-30","450002","701000",170,"Appel de fonds Mensuel mai"); -CALL appel_fonds("2013-04-30","450003","701000",150,"Appel de fonds Mensuel mai"); - --- Avance programme -CALL insert_avance - ("2013-05-06","VIREMENT","512001","450001",100.00,"Versement Cordier mai "); -CALL insert_avance - ("2013-05-06","VIREMENT","512001","450002",170.00,"Versement Ebersold mai "); -CALL insert_avance - ("2013-05-06","VIREMENT","512001","450003",150.00,"Versement Hentschel mai "); - --- Payement eau -CALL insert_trans_paye("2013-05-06","2013-05-10","CHEQUE N 2452030","512001","401009",226.26,"Payement EAU"); - --- Appel de fonds juin -CALL appel_fonds("2013-05-25","450001","701000",100,"Appel de fonds Mensuel juin"); -CALL appel_fonds("2013-05-25","450002","701000",170,"Appel de fonds Mensuel juin"); -CALL appel_fonds("2013-05-25","450003","701000",150,"Appel de fonds Mensuel juin"); -CALL appel_fonds("2013-05-20","450004","701000",225,"Appel de fonds Q3 2013"); - --- Avance Mois de Juin -CALL insert_avance - ("2013-06-06","VIREMENT","512001","450001",100.00,"Versement Cordier juin "); -CALL insert_avance - ("2013-06-06","VIREMENT","512001","450002",170.00,"Versement Ebersold juin "); -CALL insert_avance - ("2013-06-06","VIREMENT","512001","450003",150.00,"Versement Hentschel juin "); - --- Facture Ramonge -CALL insert_trans_facture - ("2013-06-07","2013-06-06","8651","603000","401008",40.50,"Facture Ramonage ",4); -CALL repartir_trans_charge("2013-06-07","2013-06-06","603000","8651",40.50,4,"Frais Ramonage"); - -CALL insert_trans_paye("2013-06-06","2013-06-08","CHEQUE N 2452031","512001","401008",40.50,"Payement Ramoneur"); - --- Juin Matmut assurance -CALL insert_trans_facture("2013-06-12","2013-06-13","Releve 036","616000","401007",168.11,"Matmut 2T 2013 PC 1",1); - -CALL repartir_trans_charge("2013-06-22","2013-06-20","616000","Releve 036",168.11,1,"Frais Assurance PC1"); - -CALL insert_trans_paye("2013-06-22","2013-06-22","CHEQUE 2452032","512001","401007",168.11,"Payer Matmut 2ieme semestre"); - - --- Juin Eletricite - -CALL insert_trans_facture("2013-06-22","2013-06-10","8287789S","602000","401005",27.77,"Facture ES juin 2013 ",2); - -CALL repartir_trans_charge("2013-06-22","2013-06-10","602000","8287789S",27.77,2,"ES PC2"); - -CALL insert_trans_paye("2013-06-22","2013-06-22","CHEQUE 2452033","512001","401005",27.77,"Payer ES juin 2013"); - --- Appel de fonds juillet -CALL appel_fonds("2013-06-25","450001","701000",100,"Appel de fonds Mensuel juillet"); -CALL appel_fonds("2013-06-25","450002","701000",170,"Appel de fonds Mensuel juillet"); -CALL appel_fonds("2013-06-25","450003","701000",150,"Appel de fonds Mensuel juillet"); - --- Juillet --- Avance Mois de Juin -CALL insert_avance - ("2013-07-05","VIREMENT","512001","450001",100.00,"Versement Cordier juillet "); -CALL insert_avance - ("2013-07-02","VIREMENT","512001","450002",170.00,"Versement Ebersold juillet "); -CALL insert_avance - ("2013-07-03","VIREMENT","512001","450003",150.00,"Versement Hentschel juillet "); -CALL insert_avance - ("2013-07-16","VIREMENT","512001","450004",225.00,"Versement Immoval"); - --- Frais Bancaires - -CALL insert_trans_facture("2013-08-01","2013-07-16","Releve CCP N 4","620000","401006",2.60,"Frais bancaires",1); -CALL repartir_trans_charge("2013-08-06","2013-07-16","620000","Releve CCP N 7",2.60,1,"Frais bancaires PC1"); - -CALL insert_trans_paye("2013-08-06","2013-07-16","Prelevement","512001","401006",2.60,"Prelevement CCP N7"); - --- --- --- --- Bilan sythese des comptes -select j.acc_id as Compte ,j.acc_name as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string ="2012" -GROUP BY j.acc_id ; - -select "Charges 6" ; -select "" , "Total ", ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string = "2012" - where t.acc_id like "6%" ORDER BY entry_date; - - -select j.acc_id as Compte ,j.acc_name as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - -1 * ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string ="2013" -GROUP BY j.acc_id ; --- Bilan sythese des comptes -select j.acc_id as Compte ,j.acc_name as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string ="2012" -GROUP BY j.acc_id ; - -select "Charges 6" ; -select "" , "Total ", ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string = "2012" - where t.acc_id like "6%" ORDER BY entry_date; - - -select j.acc_id as Compte ,j.acc_name as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - -1 * ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string ="2013" -GROUP BY j.acc_id ; - -CALL detail_compte("2013","450001"); -CALL detail_compte("2013","450002"); -CALL detail_compte("2013","450003"); -CALL detail_compte("2013","450004"); -select "Banque account" ; -CALL detail_compte("2013","512001"); --- Detail Hentschel 2013 - - diff --git a/app/compta/Accounting.sql b/app/compta/Accounting.sql deleted file mode 100644 index c0bd351..0000000 --- a/app/compta/Accounting.sql +++ /dev/null @@ -1,864 +0,0 @@ - --- --- Account information stuff --- -CREATE TABLE IF NOT EXISTS AccountInfo ( - acc_info_id INTEGER PRIMARY KEY, - acc_description VARCHAR(255), - acc_name VARCHAR(32) -); - -CREATE TABLE IF NOT EXISTS Account ( - acc_id VARCHAR(32) PRIMARY KEY, - acc_info_id INTEGER, - balance REAL -- Could be computed dynamically -); - --- --- --- Transaction stuff --- -CREATE TABLE IF NOT EXISTS Transactions ( - trans_id INTEGER PRIMARY KEY, - voucher_ref VARCHAR(255), - voucher_date DATE, - act_trans_date DATE, - period_id INTEGER -); - -CREATE TABLE IF NOT EXISTS Period ( - period_id INTEGER PRIMARY KEY, - per_begin DATE, - per_end DATE, - per_string VARCHAR(16) -- Example Q1_2012 -); - -CREATE TABLE IF NOT EXISTS TransactionEntry ( - trans_entry_id INTEGER PRIMARY KEY, - trans_id INTEGER, - entry_date DATE, - entry_type VARCHAR(32), - acc_id VARCHAR(32), - orig_amount REAL, - amount DOUBLE PRECISION, - debit_credit CHARACTER CONSTRAINT enum CHECK (debit_credit IN ('d','c')), - description VARCHAR(255), - voucher_ref VARCHAR(255) -); - --- Example Journal debit -CREATE TABLE IF NOT EXISTS TransactionEntryType ( - type_id VARCHAR(32) PRIMARY KEY, - description VARCHAR(255) -); - - -CREATE TABLE IF NOT EXISTS Identity ( - ident_id INTEGER PRIMARY KEY, - ident_type INTEGER , - ident_name VARCHAR(32), - ident_firstname VARCHAR(32), - ident_address VARCHAR(64), - ident_postalcode VARCHAR(16), - ident_city VARCHAR(32), - ident_country VARCHAR(32), - ident_mobile VARCHAR(32), - ident_phone VARCHAR(32), - ident_email1 VARCHAR(32), - ident_email2 VARCHAR(32) -); - -CREATE TABLE IF NOT EXISTS IdentityType ( - idtp_id INTEGER PRIMARY KEY, - idtp_name VARCHAR(32) -); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 1,"Fournisseur"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 2,"Coproprietaire"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 3,"Batiment"); - -CREATE VIEW IF NOT EXISTS Owners AS select * - FROM Identity as i - JOIN IdentityType as it on i.ident_type = it.idtp_id - WHERE it.idtp_name = "Coproprietaire" -; - -CREATE VIEW IF NOT EXISTS Suppliers AS select * - FROM Identity as i - JOIN IdentityType as it on i.ident_type = it.idtp_id - WHERE it.idtp_name = "Fournisseur" -; - - --- Building stuff - -CREATE TABLE IF NOT EXISTS Lot ( - lot_id INTEGER PRIMARY KEY, - lot_floor VARCHAR(8) DEFAULT "RDC", - lot_area INTEGER DEFAULT 0, - lot_room INTEGER DEFAULT 0, - lot_name VARCHAR(32), - lot_type VARCHAR(32), - lot_building VARCHAR(32), - lot_door VARCHAR(32), - lot_description VARCHAR(256) -); - -CREATE TABLE IF NOT EXISTS Key ( - key_id INTEGER PRIMARY KEY, - key_name VARCHAR(64), - key_size INTEGER DEFAULT 1000, - key_comment VARCHAR(256) -); - -CREATE TABLE IF NOT EXISTS KeyLot ( - keylot_id INTEGER PRIMARY KEY, - key_id INTEGER, - lot_id INTEGER, - lot_size INTEGER -); --- --- --- -CREATE VIEW view_pc1 AS SELECT trans_id,entry_date,entry_type,acc_id,voucher_ref,amount,debit_credit,description ,"" as charge_acc_id From TransactionEntry - WHERE acc_id = "401002" or acc_id ="401008" or acc_id ="401003" ; - -CREATE VIEW view_pc2 AS SELECT trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description From TransactionEntry - WHERE acc_id = "401005" or acc_id ="401007" or acc_id ="401009" ; - -CREATE VIEW view_pc4 AS SELECT trans_id,entry_date,entry_type,acc_id,voucher_ref,amount,debit_credit,description ,"" as charge_acc_id From TransactionEntry - WHERE acc_id = "401003" or acc_id ="401005" or acc_id ="401006" ; - -CREATE VIEW view_eau AS SELECT trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description From TransactionEntry - WHERE acc_id = "401009" ; - -CREATE VIEW view_avance AS SELECT trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description From TransactionEntry - WHERE acc_id = "4501"or acc_id="4502" or acc_id = "4503" or acc_id = "4504" ; - -CREATE VIEW view_payer AS SELECT trans_id,entry_date,"" as banque_acc_id,acc_id,amount,voucher_ref,description From TransactionEntry - WHERE acc_id = "51201" ; - -CREATE VIEW view_facture AS SELECT trans_id,entry_date,"" as charge_acc_id,acc_id,amount,voucher_ref,description From TransactionEntry - WHERE acc_id = "4501"or acc_id="4502" or acc_id = "4503" or acc_id = "4504" ; --- --- Use full triggers for charges --- --- CREATE TRIGGER versement AFTER INSERT ON TransactionEntry WHEN (NEW.acc_id like "450%" and NEW.debit_credit = 'c') --- BEGIN --- INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES --- (NEW.trans_id,NEW.entry_date,"","51201",NEW.amount,'d',"Avance de charge " || NEW.description); --- END; - -CREATE TRIGGER insert_view_avance INSTEAD OF INSERT ON view_avance WHEN (NEW.debit_credit ='c') -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"",NEW.acc_id,NEW.amount,NEW.debit_credit,"Avance de charge " || NEW.description); - - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","51201",NEW.amount,'d',"Avance de charge " || NEW.description); -END; - -CREATE TRIGGER insert_view_pc1 INSTEAD OF INSERT ON view_pc1 ---FOR EACH ROW -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4501",NEW.amount*119.0/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4502",NEW.amount*362.0/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4503",NEW.amount * 371.0 / 1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4504",ROUND(NEW.amount *148.0 / 1000.0,6) ,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,NEW.charge_acc_id,NEW.amount,'c',NEW.description); -END; - -CREATE TRIGGER insert_view_pc2 INSTEAD OF INSERT ON view_pc2 -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4501",ROUND(NEW.amount * 125.0 / 1000.0,2) ,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4502",NEW.amount*380.0/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4503",NEW.amount*372.0/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4504",ROUND(NEW.amount*123.0/1000.0,6),'d',NEW.description); -END; - -CREATE TRIGGER insert_view_pc4 INSTEAD OF INSERT ON view_pc4 -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4501",NEW.amount*156.0/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4502",NEW.amount*348.0/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4503",NEW.amount*345.0/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,"4504",ROUND(NEW.amount*151.0/1000.0,6),'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,NEW.charge_acc_id,NEW.amount,'c',NEW.description); -END; - -CREATE TRIGGER insert_view_eau INSTEAD OF INSERT ON view_eau -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4501",NEW.amount*222.22/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4502",NEW.amount*333.33/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4503",NEW.amount*222.22/1000.0,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","4504",ROUND(NEW.amount*222.22/1000.0,6),'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,"","601",NEW.amount,'d',NEW.description); -END; - -CREATE TRIGGER insert_view_facture INSTEAD OF INSERT ON view_facture -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,NEW.charge_acc_id,NEW.amount,'d',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,NEW.acc_id,NEW.amount,'c',NEW.description); -END; - -CREATE TRIGGER insert_view_payer INSTEAD OF INSERT ON view_payer -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,NEW.banque_acc_id,NEW.amount,'c',NEW.description); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (NEW.trans_id,NEW.entry_date,NEW.voucher_ref,NEW.acc_id,NEW.amount,'d',NEW.description); -END; - - - - --- --- Ok, fill in data --- - --- Insert periods --- per_begin DATE, --- per_end DATE, --- per_string VARCHAR(16) -- Example Q1_2012 - -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2012-01-01","2012-12-31","2012"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2012-01-01","2012-03-31","Q1_2012"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2012-04-01","2012-06-30","Q2_2012"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2012-07-01","2012-09-30","Q3_2012"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2012-10-01","2012-12-31","Q4_2012"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2012-07-01","2013-05-31","CHAUFFAGE_2012_2013"); - -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-01-01","2013-12-31","2013"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-01-01","2013-03-31","Q1_2013"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-04-01","2013-06-30","Q2_2013"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-07-01","2013-09-30","Q3_2013"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-10-01","2013-12-31","Q4_2013"); - --- --- Create the account info and accounts --- -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (10,"Provisions et avances"); -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (103,"Avances"); -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (1031,"Avances de tresorie"); -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (3,"ab"); --- -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (41,"Clients comptes rattaches") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (45,"Collectivite des Coproprietaires") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (450,"Coproprietaire individualise") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (4501,"Cordier") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (4502,"Ebersold") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (4503,"Hentschel") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (4504,"Immoval") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (4505,"Ancien Cordier - Nouv Ebersold") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (400,"Fournisseur") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401002,"BOLERE") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401003,"VEOLIA") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401004,"SAVELYS") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401005,"EDF") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401006,"POSTE") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401007,"ASSURANCE") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401008,"RAMONAGE") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401009,"EAU") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (401010,"Leroy Merlin") ; - -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (462000,"Créditeurs divers") ; --- Compte financier -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (510,"Banques, ou fond disponible en banque") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (512,"Banques") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (51201,"La Banques Postale") ; --- Class 6 comptes de charges -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (601,"Eau") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (602,"Electricite") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (603,"Chauffage, energie et combustible") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (604,"Achat produits d'entretien") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (605,"Materiel") ; - -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (61,"Services exterieur") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (614,"Control de maintenance") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (616,"Prime d'assurance") ; - -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (62,"Frais d'administration") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (6213,"Frais postaux") ; - ---Class 7 Compte des produit -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (70,"Appels de fonds") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (701,"Provision sur operation courante") ; -INSERT INTO AccountInfo (acc_info_id,acc_description) VALUES (703,"Avances") ; - --- -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("103",103, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("1031",1031, 0.0); - -INSERT INTO Account ( acc_id,acc_info_id,balance) VALUES ("450",450, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("4501",4501, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("4502",4502, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("4503",4503, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("4504",4504, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("4505",4505, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("400",400, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401002",401002, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401003",401003, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401004",401004, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401005",401005, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401006",401006, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401007",401007, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401008",401008, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401009",401009, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("401010",401010, 0.0); - -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("462000",462000, 0.0); - -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("51201",51201, 0.0); --- -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("601",601, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("602",602, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("603",603, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("604",604, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("605",605, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("606",606, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("614",614, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("616",616, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("62",62, 0.0); - -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("70",70, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("701",701, 0.0); -INSERT INTO Account (acc_id,acc_info_id,balance) VALUES ("703",703, 0.0); --- --- Transactions .... --- - -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 0,"02/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 1,"15/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 2,"14/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 3,"10/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 4,"13/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 5,"13/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 6,"02/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 7,"02/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 8,"29/02/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 9,"03/03/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 10,"02/03/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 11,"02/03/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 12,"07/03/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 13,"07/03/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 14,"07/03/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 15,"30/03/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 16,"16/04/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 17,"02/04/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 18,"15/04/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 19,"30/04/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 20,"10/04/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 21,"10/04/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 22,"08/04/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 23,"03/05/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 24,"03/05/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 25,"07/05/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 26,"03/06/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 27,"03/06/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 28,"16/06/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 29,"13/06/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 30,"06/06/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 31,"16/06/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 32,"26/07/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 33,"05/07/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 34,"09/07/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 35,"28/07/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 36,"15/07/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 37,"31/07/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 38,"17/07/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 39,"18/08/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 40,"18/08/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 41,"18/08/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 42,"18/08/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 43,"18/08/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 44,"23/08/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 45,"03/09/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 46,"03/09/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 47,"05/09/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 48,"17/09/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 49,"02/10/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 50,"02/10/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 51,"03/10/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 52,"09/10/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 53,"11/10/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 54,"16/10/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 55,"16/10/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 56,"05/11/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 57,"02/11/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 58,"03/11/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 59,"05/11/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 60,"05/11/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 61,"15/11/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 62,"05/12/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 63,"05/12/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 64,"05/12/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 65,"15/12/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 66,"15/12/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 67,"20/12/2012","01/02/2012"); -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 68,"20/12/2012","01/02/2012"); - --- trans_entry_id INTEGER PRIMARY KEY, --- trans_id INTEGER, --- entry_date DATE, --- entry_type VARCHAR(32), --- acc_id INTEGER, --- orig_amount REAL, --- amount REAL, --- debit_credit CHARACTER CONSTRAINT IN ('d','c'), --- description VARCHAR(255), --- voucher_ref VARCHAR(255) - -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (0,"2012-02-02","","401002",961.92,'c',"Facture Bolore Fioul"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (0,"2012-02-02","","603",961.92,'d',"Facture Bolore Fioul"); - -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (0,"2012-02-02","364381","603","401002",961.92,'d',"Appel de fonds Bolore Fioul PC4"); - -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (0,"2012-02-02","","401002",961.92,'d',"Payement Facture Bolore Fioul"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(0,"2012-02-02","","51201",961.92,'c',"Payement Facture Bolore Fioul",""); --- - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (1,"2012-02-02","","4501",150.06,'c',"Virement Cordier Fioul"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (2,"2012-02-02","","4502",480.00,'c',"Virement Ebersold Fioul + part Immoval"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (3,"2012-02-02","","4503",331.86,'c',"Virement Henschel Fioul"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (4,"2012-02-02","","401005",31.72,'c',"EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (4,"2012-02-02","","602",31.72,'d',"Facture EDF"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (4,"2012-02-13","602","401005",31.72,"5485019S","Appel de fonds EDF PC1"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (4,"2012-02-02","","401005",31.72,'d',"Payement EDF"); --- Un credit sur les comptes de coproprite induit un debit en banque. -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (5,"2012-02-02","","4501",31.72,'c',"Cordier a Paye EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (5,"2012-02-02","","51201",31.72,'c',"Cordier a Paye EDF"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (6,"2012-02-02","","4501",173.35,'c',"Cordier Payement assurance "); --- Un credit sur les comptes de coproprite induit un debit en banque. -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (6,"2012-02-02","","51201",173.35,'c',"Cordier Payement Assurance par cordier"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (7,"2012-02-02","","401007",173.35,'c',"Assurance"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (7,"2012-02-02","","616",173.35,'d',"Facture Assurance"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES (7,"2012-02-02","616","401007",173.35,"31","Appel de fonds Assurance PC1"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (7,"2012-02-02","","401007",173.35,'d',"Payement Assurance par cordier"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (8,"2012-02-29","","4504",210.25,'c',"Immoval"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (9,"2012-03-02","","4501",65.00,'c',"Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (10,"2012-03-02","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (11,"2012-03-02","","4502",150.00,'c',"Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (12,"2012-03-02","","4502",307.80,'c',"Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (13,"2012-03-07","","4503",155.15,'c',"Remise Cheque Hentschel"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (14,"2012-02-02","","401003",211.17,'c',"Veolia"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (14,"2012-02-02","","614",211.17,'d',"Veolia"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (14,"2012-02-02","","614","401003",211.17,'d',"Appel de fonds Veolia PC4"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (14,"2012-02-02","","401003",211.17,'d',"Payement Veolia"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(14,"2012-03-14","","51201",211.17,'c',"Payement Veolia","CHEQUE 2452001"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (15,"2012-03-07","","401002",501.00,'c',"Commande fioul Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (15,"2012-03-07","","603",501.00,'d',"Commande fioul Bolore"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (15,"2012-03-07","367096","603","401002",501.00,'d',"Appel de fonds Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(15,"2012-03-08","","51201",501.00,'c',"Payement facture Bolore","CHEQUE 2452002"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (15,"2012-03-07","","401002",501.00,'d',"Payement facture Bolore"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (16,"2012-04-14","","401002",490.98,'c',"Commande Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (16,"2012-04-14","","603",490.98,'d',"Bolore"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (16,"2012-04-17","369x63","603","401002",490.98,'d',"Appel de fonds Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (16,"2012-04-14","","401002",490.98,'d',"Payement Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(16,"2012-04-08","","51201",490.98,'c',"Payement Bolore","CHEQUE 2452003"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (17,"2012-04-02","","4503",150.00,'c',"Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (18,"2012-04-10","","4501",65.00,'c',"Cordier"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (19,"2012-04-10","","401005",26.77,'c',"EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (19,"2012-04-10","","602",26.77,'d',"EDF"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (19,"2012-04-10","602","401005",26.77,"5812179S","Appel de fonds EDF PC1"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (19,"2012-04-10","","401005",26.77,'d',"Payment EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(19,"2012-04-30","","51201",26.77,'c',"Payment EDF","CHEQUE 2452005"); - -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (20,"2012-04-08","","401004",165.51,'c',"Savelys"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (20,"2012-04-08","","603",165.51,'d',"Savelys comtpteur"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (20,"2012-04-08","","603","401003",165.51,'d',"Appel de fonds Savelys PC4"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (20,"2012-04-08","","401004",165.51,'d',"Payement Savelys"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(20,"2012-04-08","","51201",165.51,'c',"Payement Savelys GDF Suez","CHEQUE 2452004"); - - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (21,"2012-05-03","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (22,"2012-05-03","","4501",65.00,'c',"Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (23,"2012-05-03","","4502",150.00,'c',"Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (24,"2012-06-03","","4503",150.00,'c',"Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (25,"2012-06-03","","4501",65.00,'c',"Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (26,"2012-06-20","","4502",4.75,'c',"Virement Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (27,"2012-06-13","","4504",260.00,'c',"Immoval"); - --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (28,"2012-06-06","","401006",4.78,'c',"Poste Lettre recommand Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (28,"2012-06-06","","62",4.78,'d',"Poste Lettre recommand Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (28,"2012-06-03","","4504",4.78,'d',"Lettre recommande AR Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (28,"2012-06-03","","62",4.78,'c',"Fonds Lettre recommande AR Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (28,"2012-06-06","","401006",4.78,'d',"Payement Poste Lettre recommande Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(28,"2012-07-13","","51201",4.78,'c',"Payement Poste Lettre recommande Immoval","CHEQUE 2452006"); - --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (29,"2012-06-16","","401005",24.85,'c',"EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (29,"2012-06-16","","602",24.85,'d',"EDF"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (29,"2012-06-12","602","401005",24.85,"6187827S","Appel de fonds EDF PC1"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (29,"2012-06-16","","401005",24.85,'d',"Payement EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(29,"2012-06-22","","51201",24.85,'c',"Payement EDF","CHEQUE 2452007"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (30,"2012-06-09","","401008",61.95,'c',"Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (30,"2012-06-09","","603",61.95,'d',"Entretien Ramonage"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (30,"2012-06-09","7175","603","401008",39.27,'d',"Appel de fonds Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES (30,"2012-06-09","7175","4505",22.68,'d',"Appel de fonds Ramonage Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES (30,"2012-06-09","7175","603",22.68,'c',"Appel de fonds Ramonage Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (30,"2012-06-09","","401008",61.95,'d',"Payement Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(30,"2012-08-03","","51201",61.95,'c',"Payement Ramonage","CHEQUE 2452009"); --- -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (31,"2012-07-03","","4501",65.00,'c',"Virement Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (32,"2012-07-30","","4502",150.00,'c',"Virement Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (33,"2012-07-03","","4503",150.00,'c',"Virement Hentschel"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (34,"2012-07-31","","401009",377.89,'c',"Eau"); -INSERT INTO view_eau (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (34,"2012-07-31","","401009",377.89,'d',"Appel de fonds Eau"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (34,"2012-07-31","","601",377.89,'c',"Appel de fonds Payement Eau"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (34,"2012-07-31","","4505",73.48,'d',"Prorata eau 2011"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (34,"2012-07-31","","4502",73.48,'c',"Prorata eau 2011"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (34,"2012-07-31","","401009",377.89,'d',"Payement Eau"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(34,"2012-08-03","","51201",377.89,'c',"Payement Eau","CHEQUE 2452010"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (35,"2012-07-17","","62",2.60,'d',"Banque Frais"); -INSERT INTO view_pc2 (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (35,"2012-07-17","","401009",2.60,'d',"Appel de fonds Banque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (35,"2012-07-17","","62",2.60,'c',"Appel de fonds Banque Frais"); ---INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (35,"2012-07-17","","401009",2.60,'d',"Payement Banque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (35,"2012-07-17","","51201",2.60,'c',"Payement Banque Frais"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (36,"2012-08-18","","401005",28.10,'c',"EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (36,"2012-08-18","","602",28.10,'d',"EDF"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (36,"2012-08-18","602","401005",28.10,"6562864S","Appel de fonds EDF PC1"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (36,"2012-08-18","","401005",28.10,'d',"Payement EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(36,"2012-08-21","","51201",28.10,'c',"Payement EDF","CHEQUE 2452011"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (37,"2012-08-03","","4501",65.00,'c',"Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (38,"2012-08-27","","4502",150.00,'c',"Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (39,"2012-08-03","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (40,"2012-08-18","","4504",130.00,'c',"Immoval"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (41,"2012-08-23","","401007",164.05,'c',"Assurance Matmut"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (41,"2012-08-23","","616",164.05,'d',"Assurance Matmut"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (41,"2012-08-23","616","401007",164.05,"033","Appel de fonds Assurance"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (41,"2012-08-23","","401007",164.05,'d',"Payement Assurance"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(41,"2012-08-23","","51201",164.05,'c',"Payement Assurance","CHEQUE 2452012"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (42,"2012-09-03","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (43,"2012-09-03","","4501",65.00,'c',"Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (44,"2012-09-06","","4502",150.00,'c',"Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (45,"2012-09-18","","4504",65.00,'c',"Immoval"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (46,"2012-10-02","","4501",65.00,'c',"Cordier"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (47,"2012-10-02","","401010",70.10,'c',"Divers lampe"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (47,"2012-10-02","","605",70.10,'d',"Divers lampe"); -INSERT INTO view_pc2 (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (47,"2012-10-02","","401005",70.10,'d',"Appel de Divers lampe PC2"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (47,"2012-10-02","","605",70.10,'c',"Appel Divers lampe"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (47,"2012-10-02","","401010",70.10,'d',"Payement Divers lampe"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(47,"2012-10-02","","51201",70.10,'c',"Payement Divers lampe","CHEQUE 2452014"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (48,"2012-10-03","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (49,"2012-10-09","","4502",150.00,'c',"Ebersold"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (50,"2012-09-06","","401002",996,'c',"Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (50,"2012-09-06","","603",996,'d',"Bolore"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (50,"2012-09-06","379180","603","401002",996,'d',"Appel de fonds Bolore PC4"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (50,"2012-07-07","","401002",996,'d',"Payement Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(50,"2012-10-11","","51201",996,'c',"Payement Bolore","CHEQUE 2452013"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (51,"2012-10-18","","4504",65.00,'c',"Immoval"); - --- INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (52,"2012-10-16","","401009",2.60,'c',"Baque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (52,"2012-10-16","","62",2.60,'d',"Banque Frais"); -INSERT INTO view_pc2 (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (52,"2012-10-16","","401009",2.60,'d',"Appel de fonds Baque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (52,"2012-10-16","","62",2.60,'c',"Appel de fonds Banque Frais"); ---INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (52,"2012-10-16","","401009",2.60,'d',"Payement Baque Frais"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (52,"2012-10-16","","51201",2.60,'c',"Payement Baque Frais"); - - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (53,"2012-11-05","","4502",150.00,'c',"Ebersold"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (54,"2012-11-02","","401005",27.0,'c',"EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (54,"2012-11-02","","602",27.0,'d',"EDF"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (54,"2012-10-08","602","401005",27.0,"6881712S","Appel de fonds EDF PC1"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (54,"2012-11-02","","401005",27.0,'d',"Payement EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (54,"2012-11-02","","51201",27.0,'c',"Payement TIP EDF"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (58,"2012-11-03","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (59,"2012-11-03","","4501",65.00,'c',"Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (60,"2012-11-18","","4504",65.00,'c',"Immoval"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (61,"2012-11-15","","401009",325.20,'c',"Facture Eau"); -INSERT INTO view_eau (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (61,"2012-11-15","","401009",325.20,'d',"Appel de fonds Eau"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (61,"2012-11-15","","601",325.20,'c',"Appel de fonds Eau"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (61,"2012-11-15","","401009",325.20,'d',"Payement Eau"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(61,"2012-11-15","","51201",325.20,'c',"Payement Eau","CHEQUE 2452015"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (62,"2012-11-29","","401002",950.95,'c',"Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (62,"2012-11-29","","603",950.95,'d',"Bolore"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (62,"2012-11-29","384886","603","401002",950.95,'d',"Appel de fonds Bolore PC4"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (62,"2012-12-05","","401002",950.95,'d',"Payement Bolore"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(62,"2012-12-05","","51201",950.95,'c',"Payement Bolore","CHEQUE 2452016"); - -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (63,"2012-12-05","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (64,"2012-12-05","","4502",150.00,'c',"Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (65,"2012-12-19","","4504",65.00,'c',"Immoval"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (66,"2012-12-15","","4501",65.00,'c',"Cordier"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (67,"2012-12-20","","401005",28.85,'c',"EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (67,"2012-12-20","","602",28.85,'d',"EDF"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (67,"2012-12-20","602","401005",28.85,"7244392S","Appel de fonds EDF PC1"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (67,"2012-12-20","","401005",28.85,'d',"Payement EDF"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(67,"2012-12-20","","51201",28.85,'c',"Payemet EDF","CHEQUE 2452017"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-11-29","","401008",39.27,'c',"Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-11-29","","603",39.27,'d',"Entretien Ramonage"); -INSERT INTO view_pc4 (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,debit_credit,description) VALUES - (68,"2012-11-29","7784","603","401008",39.27,'d',"Appel de fonds Ramonage PC4"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-12-20","","401008",39.27,'d',"Payement Ramonage"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description,voucher_ref) VALUES -(68,"2012-12-20","","51201",39.27,'c',"Payement Ramonage","CHEQUE 2452018"); - --- Repartiteur -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-12-30","","4501",372.59,'d',"Repartiteur Veolia Cordier"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-12-30","","4502",244.66,'c',"Repartiteur Veolia Ebersold"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-12-30","","4503",91.22,'c',"Repartiteur Veolia Hentschel"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-12-30","","4504",15.59,'d',"Repartiteur Veolia Immoval"); -INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (68,"2012-12-30","","4505",52.30,'c',"Repartiteur Veolia Ancien Cordier"); - - --- Cloture des comptes sur 2013 -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date,voucher_ref) VALUES ( 69,"2012-12-30","2012-12-30","Cloture"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","4501",272.73,'c',"Report solde debiteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","701",272.73,'d',"Report solde debiteur 2012"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","4502",349.10,'d',"Report solde crediteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","701",349.10,'c',"Report solde crediteur 2012"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","4503",203.89,'d',"Report solde crediteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","701",203.89,'c',"Report solde crediteur 2012"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","4504",58.08,'c',"Report solde debiteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","701",58.08,'d',"Report solde debiteur 2012"); --- -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","4505",43.86,'c',"Report solde debiteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (69,"2012-12-30","701",43.86,'d',"Report solde debiteur 2012"); --- ---INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES --- (69,"2012-12-30","51201",178.33,'d',"Report solde debiteur 2012"); - --- --- Debut 2013 --- -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date,voucher_ref) VALUES ( 70,"2013-01-02","2013-01-02",""); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (70,"2013-01-02","","4503",150.00,'c',"Virement Hentschel"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (70,"2013-01-05","","4502",170.00,'c',"Virement Ebersold"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (70,"2013-01-05","","4501",372.69,'c',"Virement Cordier"); -INSERT INTO view_avance (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (70,"2013-01-15","","4504",129.09,'c',"Virement Immoval"); --- Report 2012 -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (70,"2013-01-02","4501",272.73,'d',"Report solde debiteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (70,"2013-01-02","4502",349.10,'c',"Report solde crediteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (70,"2013-01-02","4503",203.89,'c',"Report solde crediteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (70,"2013-01-02","4504",58.08,'d',"Report solde debiteur 2012"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (70,"2013-01-02","4501",43.86,'d',"Report solde debiteur 2012 Ancien C"); -INSERT INTO TransactionEntry (trans_id,entry_date,acc_id,amount,debit_credit,description) VALUES - (70,"2013-01-02","51201",178.33,'d',"Report solde debiteur 2012"); - --- Matmut payer -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 71,"2013-01-02","2013-01-03"); -INSERT INTO view_facture (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,description) VALUES - (71,"2013-01-03","Releve 35","616","401007",177.41,"Matmut 1T 2013"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (71,"2013-01-02","616","401007",177.41,"035","Appel de fonds Assurance PC1"); ---INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES (71,"2013-01-03","","616",173.35,'c',"Appel de fonds Assurance Matmut"); -INSERT INTO view_payer (trans_id,entry_date,voucher_ref,banque_acc_id,acc_id,amount,description) VALUES - (71,"2013-01-03","CHEQUE 2452019","51201","401007",177.41,"Payer Matmut 1T 2013"); - --- Ampoule Leroy -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 72,"2013-01-02","2013-01-03"); -INSERT INTO view_facture (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,description) VALUES - (72,"2013-01-03","0153280","605","401010",25.89,"Achat Leroy Merling ampoule"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (72,"2013-01-07","605","401010",25.89,"0153280","Appel de fonds Leroy"); -INSERT INTO view_payer (trans_id,entry_date,voucher_ref,banque_acc_id,acc_id,amount,description) VALUES - (72,"2013-01-03","CHEQUE 2452020","51201","401010",25.89,"Payer Achat Leroy Merling ampoule"); - --- Savelys -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 73,"2013-01-02","2013-01-03"); -INSERT INTO view_facture (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,description) VALUES - (73,"2013-01-08","5KI15289850","614","401004",170.48,"Savely Suez entretien"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (73,"2013-01-07","614","401004",170.48,"5KI15289850","Appel de fonds Savelys PC1"); - --- Commande de fioul 2012-01-08 -INSERT INTO Transactions (trans_id,voucher_date,act_trans_date) VALUES ( 74,"2013-01-09","2013-01-15"); -INSERT INTO view_facture (trans_id,entry_date,voucher_ref,charge_acc_id,acc_id,amount,description) VALUES - (74,"2013-01-10","258850","603","401002",940,"Fioul 1000L PC4"); -INSERT INTO view_pc1 (trans_id,entry_date,charge_acc_id,acc_id,amount,voucher_ref,description) VALUES - (74,"2013-01-27","603","401004",940,"258850","Appel de fonds Fioul"); - -.mode column -.headers ON -.width 12 38 12 12 13 13 -select j.acc_id as Compte ,ai.acc_description as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - "Debit " || ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - "Credit " || ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN AccountInfo AS ai on j.acc_info_id = ai.acc_info_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string ="2012" -GROUP BY j.acc_id ; - -.headers OFF -select "Charges 6" ; -.headers ON -select "" , "Total ", ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string = "2012" - where t.acc_id like "6%" ORDER BY entry_date; - - -select j.acc_id as Compte ,ai.acc_description as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - "Debit " || ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - "Credit " || ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN AccountInfo AS ai on j.acc_info_id = ai.acc_info_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string ="2013" -GROUP BY j.acc_id ; - -.headers OFF -select "Jean Mathieu " ; -.width 12 15 38 12 12 12 - -.headers ON -select entry_date as Date , voucher_ref,description , - CASE WHEN debit_credit='d' THEN - ROUND(amount,2) ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN - ROUND(amount,2) ELSE 0 END as Credit from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string = "2013" - where acc_id="4503" ORDER BY entry_date; - -.headers OFF -select "------------","-------------------------------------------------------------------------","----------------------","-----------------------"; -select "" , "","Total ", ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string ="2013" - where acc_id="4503" ORDER BY entry_date; - -.width 12 15 38 12 12 12 -select "Banque account" ; -.headers ON -select entry_date as Date , - voucher_ref as Ref, - description , - CASE WHEN debit_credit='d' THEN amount ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN amount ELSE 0 END as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string ="2013" - where acc_id="51201" ORDER BY entry_date; - -select "------------","-------------------------------------------------------------------------","----------------------","-----------------------"; -select "" , "","Total ", - ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - "Debt " || (sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END)) - ELSE - "Cred " || ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) - END - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string ="2013" - where acc_id="51201" ORDER BY entry_date; - - - - diff --git a/app/compta/AccountingCreate.mysql b/app/compta/AccountingCreate.mysql deleted file mode 100755 index 58502dd..0000000 --- a/app/compta/AccountingCreate.mysql +++ /dev/null @@ -1,579 +0,0 @@ - --- --- Account information stuff --- -DROP TABLE IF EXISTS AccountInfo; -CREATE TABLE IF NOT EXISTS AccountInfo ( - acc_info_id INTEGER PRIMARY KEY, - acc_description VARCHAR(255), - acc_name VARCHAR(32) -); - -DROP TABLE IF EXISTS Account; -CREATE TABLE IF NOT EXISTS Account ( - acc_id VARCHAR(32) PRIMARY KEY, - acc_info_id INTEGER, - acc_name VARCHAR(64), - acc_desc VARCHAR(255), - balance REAL -- Could be computed dynamically -); - --- --- --- Transaction stuff --- -DROP TABLE IF EXISTS Transactions; -CREATE TABLE IF NOT EXISTS Transactions ( - trans_id INTEGER AUTO_INCREMENT PRIMARY KEY, - voucher_ref VARCHAR(255), - voucher_date DATE, - act_trans_date DATE, - period_id INTEGER -); - -DROP TABLE IF EXISTS Period; -CREATE TABLE IF NOT EXISTS Period ( - period_id INTEGER AUTO_INCREMENT PRIMARY KEY, - per_begin DATE, - per_end DATE, - per_string VARCHAR(16) -- Example Q1_2012 -); - -DROP TABLE IF EXISTS TransactionEntry; -CREATE TABLE IF NOT EXISTS TransactionEntry ( - trans_entry_id INTEGER AUTO_INCREMENT PRIMARY KEY, - trans_id INTEGER, - entry_date DATE, - entry_type VARCHAR(2), - acc_id VARCHAR(32), - orig_amount REAL, - amount DOUBLE PRECISION, - debit_credit enum ('d','c'), - description VARCHAR(255), - voucher_ref VARCHAR(255) -); - --- Example Journal debit -DROP TABLE IF EXISTS TransactionEntryType; -CREATE TABLE IF NOT EXISTS TransactionEntryType ( - type_id INTEGER AUTO_INCREMENT PRIMARY KEY, - type_code VARCHAR(2), -- BQ, VT, OD - type_desc VARCHAR(255) -); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('BQ','Banque'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('VT','Ventes'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('HA','Achats et Frais'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('OD','Operation Divers'); - -DROP TABLE IF EXISTS Identity; -CREATE TABLE IF NOT EXISTS Identity ( - ident_id INTEGER AUTO_INCREMENT PRIMARY KEY, - ident_type INTEGER DEFAULT 2, - ident_name VARCHAR(32), - ident_firstname VARCHAR(32), - ident_address VARCHAR(64), - ident_postalcode VARCHAR(16), - ident_city VARCHAR(32), - ident_country VARCHAR(32), - ident_mobile VARCHAR(32), - ident_phone VARCHAR(32), - ident_email1 VARCHAR(32), - ident_email2 VARCHAR(32) -); - -DROP TABLE IF EXISTS JoinIdentityAccount; -CREATE TABLE IF NOT EXISTS JoinIdentityAccount ( - jia_id INTEGER AUTO_INCREMENT PRIMARY KEY, - jia_ident INTEGER, - jia_acc INTEGER -); - -DROP TABLE IF EXISTS IdentityType; - -CREATE TABLE IF NOT EXISTS IdentityType ( - idtp_id INTEGER AUTO_INCREMENT PRIMARY KEY, - idtp_name VARCHAR(32) -); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 1,"Fournisseur"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 2,"Coproprietaire"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 3,"Batiment"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 4,"Organisation"); - -CREATE OR REPLACE VIEW Owners AS select * - FROM Identity as i - JOIN IdentityType as it on (i.ident_type = it.idtp_id ) - WHERE it.idtp_name = "Coproprietaire" -; - -CREATE OR REPLACE VIEW Suppliers AS select * - FROM Identity as i - JOIN IdentityType as it on i.ident_type = it.idtp_id - WHERE it.idtp_name = "Fournisseur" -; - - --- Building stuff -DROP TABLE IF EXISTS Lot; - -CREATE TABLE IF NOT EXISTS Lot ( - lot_id INTEGER AUTO_INCREMENT PRIMARY KEY, - lot_num INTEGER UNIQUE, - lot_floor VARCHAR(8) DEFAULT "RDC", - lot_area INTEGER DEFAULT 0, - lot_room INTEGER DEFAULT 0, - lot_name VARCHAR(32), - lot_type VARCHAR(32), - lot_building VARCHAR(32), - lot_door VARCHAR(32), - lot_description VARCHAR(256) -); - -DROP TABLE IF EXISTS PosteCharge; -CREATE TABLE IF NOT EXISTS PosteCharge ( - pc_id INTEGER AUTO_INCREMENT PRIMARY KEY, - pc_sz INTEGER DEFAULT 0, - pc_name VARCHAR(64), - pc_comment VARCHAR(256) -); - -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC1","Charge Générales"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC2","Charge Electricite"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC3","Non Utilise"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("PC4","Charge Chauffage"); -INSERT INTO PosteCharge (pc_name,pc_comment) VALUES ("EAU","Charge Eau"); - -DROP TABLE IF EXISTS Tantieme; -CREATE TABLE IF NOT EXISTS Tantieme ( - tant_id INTEGER AUTO_INCREMENT PRIMARY KEY, - tant_pc_id INTEGER, - tant_lot_num INTEGER, - tant_lot_size REAL -); - --- PC1 - -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,1,319); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,2,319); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,3,119); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,4,4); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,5,112); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,6,43); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,7,35); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,102,32); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (1,103,17); - - --- PC2 - -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,1,335); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,2,335); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,3,125); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,4,5); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,5,118); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,6,45); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,7,37); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,102,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (2,103,0); - --- PC4 - -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,1,339); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,2,339); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,3,156); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,4,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,5,151); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,6,9); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,7,6); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,102,0); -INSERT INTO Tantieme (tant_pc_id,tant_lot_num,tant_lot_size) VALUES (4,103,0); - --- --- --- - -DROP VIEW IF EXISTS view_pc1; - -DROP VIEW IF EXISTS view_pc2; - -DROP VIEW IF EXISTS view_pc4; - -DROP VIEW IF EXISTS view_eau; - -DROP VIEW IF EXISTS view_avance; - -DROP VIEW IF EXISTS view_paye; - -DROP VIEW IF EXISTS view_facture; - -delimiter // - -DROP TRIGGER IF EXISTS insert_view_avance// - -DROP PROCEDURE IF EXISTS insert_view_avance// -CREATE PROCEDURE insert_view_avance(IN tid INTEGER, - IN ed DATE, - IN bqaid VARCHAR(32), - IN aid VARCHAR(32), - IN am REAL, - IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,"BQ",aid,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,"BQ",bqaid,am,'d',des); -END// - -DROP PROCEDURE IF EXISTS insert_view_pc1// - -CREATE PROCEDURE insert_view_pc1 (IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN chaci INTEGER, - IN aci INTEGER, - IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450001",am*119.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450002",am*362.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450003",am*371.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450004",am*148.0/1000.0,'d',des); --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES --- (tid,ed,vouch,chaci,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,'701000',am,'c',des); -END// - -DROP PROCEDURE IF EXISTS insert_view_pc2// -CREATE PROCEDURE insert_view_pc2 (IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN chaci INTEGER, - IN aci INTEGER, - IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450001",am*125.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450002",am*380.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450003",am*372.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450004",am*123.0/1000.0,'d',des); --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES --- (tid,ed,vouch,chaci,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,'701000',am,'c',des); -END// - - -DROP PROCEDURE IF EXISTS insert_view_pc4// -CREATE PROCEDURE insert_view_pc4 (IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN chaci INTEGER, - IN aci INTEGER, - IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450001",am*156.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450002",am*348.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450003",am*345.0/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450004",am*151.0/1000.0,'d',des); --- INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES --- (tid,ed,vouch,chaci,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,'701000',am,'c',des); -END// - -DROP PROCEDURE IF EXISTS insert_view_eau// - -CREATE PROCEDURE insert_view_eau (IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32),IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450001",am*222.22/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450002",am*333.33/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450003",am*222.22/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"450004",am*222.22/1000.0,'d',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"601000",am,'c',des); -END// - -DROP PROCEDURE IF EXISTS insert_view_facture// - -CREATE PROCEDURE insert_view_facture(IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32),IN chaci INTEGER ,IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,chaci,am,'d',des,'HA'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,aci,am,'c',des,'HA'); -END// - -DROP PROCEDURE IF EXISTS insert_view_paye// -CREATE PROCEDURE insert_view_paye(IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN bqaci INTEGER , - IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,bqaci,am,'c',des,'BQ'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,aci,am,'d',des,'BQ'); -END// - - -DROP PROCEDURE IF EXISTS detail_compte// -CREATE PROCEDURE detail_compte(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN --- select "Compte" ; - select entry_date as Date , - voucher_ref as Ref, - description , - CASE WHEN debit_credit='d' THEN ROUND(amount,2) ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN ROUND(amount,2) ELSE 0 END as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -select "" , "","Total ", - ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - -1 * ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) - ELSE - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) - END as Solde - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -END// - -DROP PROCEDURE IF EXISTS detail_compte_sans_solde// -CREATE PROCEDURE detail_compte_sans_solde(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN --- select "Compte" ; - select entry_date as Date , - voucher_ref as Ref, - description , - CASE WHEN debit_credit='d' THEN ROUND(amount,2) ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN ROUND(amount,2) ELSE 0 END as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; -END// - -DROP PROCEDURE IF EXISTS solde_compte// -CREATE PROCEDURE solde_compte(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN - -select - ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - -1 * ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) - ELSE - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) - END as Solde - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -END// - -DROP PROCEDURE IF EXISTS bilan// -CREATE PROCEDURE bilan(IN period VARCHAR(32) ) -BEGIN -select j.acc_id as Compte ,j.acc_name as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string = period -GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS journal// -CREATE PROCEDURE journal(IN period VARCHAR(32),IN jrn VARCHAR(2),IN preci INTEGER ) -BEGIN -select j.entry_date as Date, j.acc_id as Compte , j.voucher_ref as Ref ,j.description as Libelle - ,ROUND((CASE WHEN j.debit_credit ='d' THEN j.amount ELSE 0 END), preci) as Debit , - ROUND((CASE WHEN j.debit_credit ='c' THEN j.amount ELSE 0 END), preci) as Credit -from TransactionEntry as j - JOIN Account AS r on j.acc_id = r.acc_id - JOIN Period AS p on j.entry_date > p.per_begin and j.entry_date < p.per_end and p.per_string = period - WHERE j.entry_type = jrn -; --- GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS journal_solde// -CREATE PROCEDURE journal_solde(IN period VARCHAR(32),IN jrn VARCHAR(2),IN preci INTEGER ) -BEGIN -select ROUND(sum(CASE WHEN j.debit_credit ='d' THEN j.amount ELSE 0 END), preci) as Debit , - ROUND(sum(CASE WHEN j.debit_credit ='c' THEN j.amount ELSE 0 END), preci) as Credit -from TransactionEntry as j - JOIN Account AS r on j.acc_id = r.acc_id - JOIN Period AS p on j.entry_date > p.per_begin and j.entry_date < p.per_end and p.per_string = period - WHERE j.entry_type = jrn -; --- GROUP BY j.acc_id ; -END// - - -delimiter ; - --- Ok, fill in data --- - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone) VALUES - ("CORDIER","Philippe","2 RUE DES ROSSIGNOLS","67114","ECHAU","ma.cordier@orange.fr","philippe.cordier@douane.finances.gouv.fr",""); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (1,450001); -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - ("EBERSOLD","Andre","25 rue Pfeffinger","67100","STRASBOURG","andre.ebersold@gmail.com","0388","0670437380"); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (2,450002); - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone) VALUES - ("FLEURY","Annabelle","25 rue Pfeffinger","67100","STRASBOURG","fleury1@gmail.com",""); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (3,450003); - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone,ident_mobile) VALUES - ("Immoval","Leila Elaillaji","4 rue de l'eglise","67000","STRASBOURG","leila.elailaji@immoval.com","info@immoval.com","0388228822","06"); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (4,450004); - --- Les Forunisseurs -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"BOLLOREE","Energie","25 rue Pfeffinger","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Savelys","Energie","","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"EDF","Strasbourg","","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Eau","Strasbourg","","67000","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Eau","Strasbourg","","67000","STRASBOURG","","0388",""); - --- --- Insert Lots --- --- lot_floor VARCHAR(8) DEFAULT "RDC", --- lot_area INTEGER DEFAULT 0, --- lot_room INTEGER DEFAULT 0, --- lot_name VARCHAR(32), --- lot_type VARCHAR(32), --- lot_building VARCHAR(32), --- lot_door VARCHAR(32), --- lot_description VARCHAR(256) - -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("RDC",1,"Lot N1",""); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("1er Etage",2,"Lot N2","Appartement"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("COMBLE",3,"Lot N3","Appartement"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("COMBLES",4,"Lot N4","Grenier"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("Sous sol",5,"Lot N5",""); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("1er Etage",6,"Lot N6","Garage"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("1er Etage",7,"Lot N7","Garage"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("1er Etage",102,"Lot N102","Jardinet 1"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description) VALUES - ("1er Etage",103,"Lot N103","Jardinet 2"); - --- Insert periods --- per_begin DATE, --- per_end DATE, --- per_string VARCHAR(16) -- Example Q1_2012 - -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2012-01-01","2012-12-31","2012"); -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-04-01","2013-06-30","Q2_2013"); - --- --- Create the account info and accounts --- - -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("103",103, 0.0,"Avances",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("1031",1031, 0.0,"Avances de trésorerie",""); - -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("450000",450000, 0.0,"Collectivité des Copropriétaire",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("450001",450001, 0.0,"Cordier",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("450002",450002, 0.0,"Ebersold",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("450003",450003, 0.0,"Hentschel",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("450004",450004, 0.0,"Immoval",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("450005",450005, 0.0,"Ancien Cordier - Nouv Ebersold",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("400000",400000, 0.0,"",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401002",401002, 0.0,"BOLLORE",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401003",401003, 0.0,"VEOLIA",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401004",401004, 0.0,"SAVELYS",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401005",401005, 0.0,"EDF",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401006",401006, 0.0,"POSTE",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401007",401007, 0.0,"ASSURANCE",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401008",401008, 0.0,"RAMONAGE",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401009",401009, 0.0,"EAU",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401010",401010, 0.0,"LEROY MERLIN",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("401011",401011, 0.0,"LIDL meinau",""); - -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("461000",461000, 0.0,"Débiteur Divers",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("462000",462000, 0.0,"Crédit Divers",""); - -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("512001",512001, 0.0,"BANQUE","La Banque Postale"); --- -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("601000",601000, 0.0,"Eau",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("602000",602000, 0.0,"Eléctricité",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("603000",603000, 0.0,"Chauffage,énergie et combustible",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("604000",604000, 0.0,"Achat produits d'entretien",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("605000",605000, 0.0,"Matériel",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("606000",606000, 0.0,"Fourniture",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("611000",611000, 0.0,"Nettoyage des locaux",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("614000",614000, 0.0,"Control de maintenance",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("615000",615000, 0.0,"Entretien et petites réparation",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("616000",616000, 0.0,"Prime d'assurance",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("620000",620000, 0.0,"Frais d'administration",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("621300",621300, 0.0,"Frais postaux",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("671000",671000, 0.0,"Travaux decides par assemblée générale",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("672000",672000, 0.0,"Travaux urgents",""); - -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("700000",700000, 0.0,"Appels de fond",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("701000",701000, 0.0,"Provision sur opérations courantes",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("702000",702000, 0.0,"Provision sur travaux de l'article 14.2",""); -INSERT INTO Account (acc_id,acc_info_id,balance,acc_name,acc_desc) VALUES ("703000",703000, 0.0,"Avances",""); --- --- Transactions .... --- - --- entry_date DATE, --- entry_type VARCHAR(32), --- acc_id INTEGER, --- orig_amount REAL, --- amount REAL, --- debit_credit CHARACTER CONSTRAINT IN ('d','c'), --- description VARCHAR(255), --- voucher_ref VARCHAR(255) - - - --- Bilan sythese des comptes diff --git a/app/compta/Budgets.mysql b/app/compta/Budgets.mysql deleted file mode 100644 index bc3a22e..0000000 --- a/app/compta/Budgets.mysql +++ /dev/null @@ -1,85 +0,0 @@ - - - --- --- Budget 2012 --- - -DELETE FROM Budget; -ALTER TABLE Budget AUTO_INCREMENT = 1; -DELETE FROM BudgetEntry; -ALTER TABLE BudgetEntry AUTO_INCREMENT = 1; -INSERT INTO Budget (bu_period_id,bu_desc) VALUES(2,"Budget previsionnel 2012"); - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(1,"601000",703.09,5); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(1,"602000",160.00); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(1,"603000",4000,4); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(1,"604000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(1,"605000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(1,"614000",170,4); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(1,"616000",600); - - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(1,"701000",5633.09); - - --- --- Budget 2013 --- - -INSERT INTO Budget (bu_period_id,bu_desc) VALUES(3,"Budget previsionnel 2013"); - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(2,"601000",703.00,5); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(2,"602000",174.00,2); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(2,"603000",4194.39,4); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(2,"604000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(2,"605000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(2,"614000",168.82,4); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(2,"615000",240); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(2,"616000",344); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(2,"620000",5.20,2); - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(2,"672000",400); - - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(2,"701000",5841.00); - --- --- Budget 2014 --- - -INSERT INTO Budget (bu_period_id,bu_desc) VALUES(4,"Budget previsionnel 2014"); - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(3,"601000",706.00,5); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(3,"602000",180.00); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(3,"603000",4300,4); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(3,"604000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(3,"605000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(3,"614000",175,4); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(3,"616000",350); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(3,"620000",5.20,2); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(3,"621300",10); - - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(3,"701000",5750.00); - - - --- --- Budget 2015 --- - -INSERT INTO Budget (bu_period_id,bu_desc) VALUES(5,"Budget previsionnel 2015"); - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(4,"601000",715.00,5); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(4,"602000",190.00); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES(4,"603000",4310,4); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(4,"604000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(4,"605000",0); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(4,"614000",180); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(4,"616000",360); -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(4,"620000",5.20); - - -INSERT INTO BudgetEntry (buet_budget_id,buet_acc_id,buet_amount) VALUES(4,"701000",5850.00); - diff --git a/app/compta/InitAccounting.mysql b/app/compta/InitAccounting.mysql deleted file mode 100755 index cd5c4de..0000000 --- a/app/compta/InitAccounting.mysql +++ /dev/null @@ -1,681 +0,0 @@ --- set @@binlog_format=mixed; --- --- Account information stuff --- -DROP TABLE IF EXISTS AccountInfo; - -DROP TABLE IF EXISTS Account; -CREATE TABLE IF NOT EXISTS Account ( - acc_id VARCHAR(32) PRIMARY KEY, - acc_info_id INTEGER, - acc_name VARCHAR(64) COLLATE utf8_general_ci, - acc_desc VARCHAR(255), - acc_balance REAL, -- Could be computed dynamically - INDEX USING BTREE(acc_id) -) CHARACTER SET utf8 COLLATE utf8_general_ci; - --- --- --- Transaction stuff --- -DROP TABLE IF EXISTS Transactions; -CREATE TABLE IF NOT EXISTS Transactions ( - trans_id INTEGER AUTO_INCREMENT PRIMARY KEY, - voucher_ref VARCHAR(255), - voucher_date DATE, - act_trans_date DATE, - period_id INTEGER -- I have the feeling this is not used -); - -DROP TABLE IF EXISTS Period; -CREATE TABLE IF NOT EXISTS Period ( - per_id INTEGER AUTO_INCREMENT PRIMARY KEY, - per_begin DATE, - per_end DATE, - per_string VARCHAR(32) -- Example Q1_2012 -); - -DROP TABLE IF EXISTS TransactionEntry; -CREATE TABLE IF NOT EXISTS TransactionEntry ( - trans_entry_id INTEGER AUTO_INCREMENT PRIMARY KEY, - trans_id INTEGER, - entry_date DATE, - entry_type VARCHAR(2), - acc_id VARCHAR(32), - orig_amount REAL, - amount DOUBLE PRECISION, - debit_credit enum ('d','c'), - description VARCHAR(255), - voucher_ref VARCHAR(255), - tret_key_id INTEGER DEFAULT 0 -- Cle de charge pour le decompte de charge -); - --- Example Journal debit -DROP TABLE IF EXISTS TransactionEntryType; -CREATE TABLE IF NOT EXISTS TransactionEntryType ( - type_id INTEGER AUTO_INCREMENT PRIMARY KEY, - type_code CHAR(2), -- BQ, VT, OD - type_desc CHAR(64) -); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('BQ','Banque'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('VT','Ventes'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('HA','Achats et Frais'); -INSERT INTO TransactionEntryType (type_code,type_desc) VALUES ('OD','Operation Divers'); - -DROP TABLE IF EXISTS Identity; -CREATE TABLE IF NOT EXISTS Identity ( - ident_id INTEGER AUTO_INCREMENT PRIMARY KEY, - ident_type INTEGER DEFAULT 2, - ident_name VARCHAR(32), - ident_firstname VARCHAR(32), - ident_address VARCHAR(64), - ident_postalcode VARCHAR(16), - ident_city VARCHAR(32), - ident_country VARCHAR(32), - ident_mobile VARCHAR(32), - ident_phone VARCHAR(32), - ident_email1 VARCHAR(62), - ident_email2 VARCHAR(62) -); - -DROP TABLE IF EXISTS JoinIdentityAccount; -CREATE TABLE IF NOT EXISTS JoinIdentityAccount ( - jia_id INTEGER AUTO_INCREMENT PRIMARY KEY, - jia_ident INTEGER, - jia_acc INTEGER -); - -DROP TABLE IF EXISTS IdentityType; - -CREATE TABLE IF NOT EXISTS IdentityType ( - idtp_id INTEGER AUTO_INCREMENT PRIMARY KEY, - idtp_name VARCHAR(32) -); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 1,"Fournisseur"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 2,"Coproprietaire"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 3,"Batiment"); -INSERT INTO IdentityType (idtp_id,idtp_name) VALUES( 4,"Organisation"); - - --- --- The problem with this request is that the organisation is a fixed ID that might change --- - -CREATE OR REPLACE VIEW Owners AS SELECT ident_id,ident_name,ident_firstname, ident_address, ident_postalcode, - ident_city,ident_country,ident_mobile,ident_phone,ident_email1, - ident_email2, ir.idr_name FROM users.Users as u - JOIN users.UserRoles as ur on ur.ur_user_id = u.ident_id - JOIN users.IdentityRole as ir on ur.ur_role_id =ir.idr_id - WHERE ur.ur_org_id = 11 and ir.idr_name = "Coproprietaire"; - - -CREATE OR REPLACE VIEW Suppliers AS select ident_id,ident_name,ident_firstname,ident_address, - ident_postalcode,ident_city,ident_country,ident_mobile,ident_phone, - ident_email1,ident_email2 FROM users.Identity as i - JOIN users.IdentityType as it on (i.ident_type = it.idtp_id) - JOIN users.UserRoles as ur on (ur.ur_user_id = i.ident_id) - JOIN users.IdentityRole as ir on (ir.idr_id = ur.ur_role_id ) - WHERE ur.ur_org_id = 11 and ir.idr_name ="Fournisseur"; - - --- Building stuff -DROP TABLE IF EXISTS Lot; - -CREATE TABLE IF NOT EXISTS Lot ( - lot_id INTEGER AUTO_INCREMENT PRIMARY KEY, - lot_num INTEGER UNIQUE, - lot_floor VARCHAR(32) DEFAULT "RDC", - lot_area INTEGER DEFAULT 0, - lot_room INTEGER DEFAULT 0, - lot_name VARCHAR(32), - lot_type VARCHAR(32), - lot_building VARCHAR(32), - lot_door VARCHAR(32), - lot_description VARCHAR(256) -); - -DROP TABLE IF EXISTS PosteCharge; -CREATE TABLE IF NOT EXISTS PosteCharge ( - pc_id INTEGER AUTO_INCREMENT PRIMARY KEY, - pc_sz INTEGER DEFAULT 0, - pc_name VARCHAR(64), - pc_comment VARCHAR(256) -); - - -DROP TABLE IF EXISTS Tantieme; -CREATE TABLE IF NOT EXISTS Tantieme ( - tant_id INTEGER AUTO_INCREMENT PRIMARY KEY, - tant_pc_id INTEGER, - tant_lot_num INTEGER, - tant_lot_size REAL -); - - --- --- A Lot is necessarely assign to an Owner --- -DROP TABLE IF EXISTS LotsOwners; -CREATE TABLE LotsOwners ( - lo_id INTEGER AUTO_INCREMENT PRIMARY KEY, - lo_owner_id INTEGER, - lo_lot_id INTEGER UNIQUE -); - --- --- Carnet d'entretien --- - -DROP TABLE IF EXISTS Entretien; -CREATE TABLE Entretien ( - entr_id INTEGER AUTO_INCREMENT PRIMARY KEY, - entr_date DATE, - entr_title VARCHAR(64), - entr_description TEXT -); - - - --- --- --- - - -delimiter // - -DROP TRIGGER IF EXISTS insert_view_avance// - -DROP PROCEDURE IF EXISTS insert_view_avance// -CREATE PROCEDURE insert_view_avance(IN tid INTEGER, - IN ed DATE, - IN bqaid VARCHAR(32), - IN aid VARCHAR(32), - IN am REAL, - IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,"BQ",aid,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,"BQ",bqaid,am,'d',des); -END// - -DROP PROCEDURE IF EXISTS insert_avance// -CREATE PROCEDURE insert_avance(IN tid INTEGER, - IN ed DATE, - IN vouch VARCHAR(32), - IN bqaid VARCHAR(32), - IN aid VARCHAR(32), - IN am REAL, - IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"BQ",aid,am,'c',des); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,entry_type,acc_id,amount,debit_credit,description) VALUES - (tid,ed,vouch,"BQ",bqaid,am,'d',des); -END// - - - -DROP PROCEDURE IF EXISTS insert_view_facture// - -CREATE PROCEDURE insert_view_facture(IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32),IN chaci INTEGER ,IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,chaci,am,'d',des,'HA'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,aci,am,'c',des,'HA'); -END// - -DROP PROCEDURE IF EXISTS insert_facture// - -CREATE PROCEDURE insert_facture(IN tid INTEGER, - IN ed DATE, - IN vouch VARCHAR(32), - IN chaci INTEGER , - IN aci INTEGER, - IN am REAL, - IN des VARCHAR(256), - IN key_id INTEGER - ) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type,tret_key_id) VALUES - (tid,ed,vouch,chaci,am,'d',des,'HA',key_id); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type,tret_key_id) VALUES - (tid,ed,vouch,aci,am,'c',des,'HA',key_id); -END// - - - -DROP PROCEDURE IF EXISTS insert_view_paye// -CREATE PROCEDURE insert_view_paye(IN tid INTEGER,IN ed DATE,IN vouch VARCHAR(32), - IN bqaci INTEGER , - IN aci INTEGER,IN am REAL,IN des VARCHAR(256)) -BEGIN - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,bqaci,am,'c',des,'BQ'); - INSERT INTO TransactionEntry (trans_id,entry_date,voucher_ref,acc_id,amount,debit_credit,description,entry_type) VALUES - (tid,ed,vouch,aci,am,'d',des,'BQ'); -END// - - -DROP PROCEDURE IF EXISTS detail_compte// -CREATE PROCEDURE detail_compte(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN --- select "Compte" ; - select entry_date as Date , - voucher_ref as Ref, - description , - CASE WHEN debit_credit='d' THEN ROUND(amount,2) ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN ROUND(amount,2) ELSE 0 END as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -select "" , "","Total ", - ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - -1 * ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) - ELSE - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) - END as Solde - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -END// - -DROP PROCEDURE IF EXISTS detail_compte_sans_solde// -CREATE PROCEDURE detail_compte_sans_solde(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN --- select "Compte" ; - select entry_date as Date , - voucher_ref as Ref, - description , - CASE WHEN debit_credit='d' THEN ROUND(amount,2) ELSE 0 END as Debit, - CASE WHEN debit_credit='c' THEN ROUND(amount,2) ELSE 0 END as Credit - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; -END// - -DROP PROCEDURE IF EXISTS solde_compte// -CREATE PROCEDURE solde_compte(IN period VARCHAR(32), IN acc VARCHAR(32) ) -BEGIN - -select - ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) as Debit, - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) as Credit, - CASE WHEN - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) > sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) > 0 - THEN - -1 * ROUND(sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END),2) - ELSE - ROUND(sum(CASE WHEN debit_credit='c' THEN amount ELSE 0 END) - sum(CASE WHEN debit_credit='d' THEN amount ELSE 0 END),2) - END as Solde - from TransactionEntry as t - join Period as p on t.entry_date > p.per_begin and t.entry_date < p.per_end and p.per_string =period - where acc_id=acc ORDER BY entry_date; - -END// - -DROP PROCEDURE IF EXISTS bilan// -CREATE PROCEDURE bilan(IN period VARCHAR(32) ) -BEGIN -select j.acc_id as Compte ,j.acc_name as Description - ,ROUND(sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) as Debit , - ROUND(sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) as Credit , - CASE - WHEN sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) > 0 THEN - ROUND( sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END),2) - ELSE - ROUND( sum(CASE WHEN r.debit_credit ='c' THEN r.amount ELSE 0 END) - sum(CASE WHEN r.debit_credit ='d' THEN r.amount ELSE 0 END),2) - END - as Solde -from Account as j - JOIN TransactionEntry AS r on j.acc_id = r.acc_id - JOIN Period AS p on r.entry_date > p.per_begin and r.entry_date < p.per_end and p.per_string = period -GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS journal// -CREATE PROCEDURE journal(IN period VARCHAR(32),IN jrn VARCHAR(2),IN preci INTEGER ) -BEGIN -select j.entry_date as Date, j.acc_id as Compte , j.voucher_ref as Ref ,j.description as Libelle - ,ROUND((CASE WHEN j.debit_credit ='d' THEN j.amount ELSE 0 END), preci) as Debit , - ROUND((CASE WHEN j.debit_credit ='c' THEN j.amount ELSE 0 END), preci) as Credit -from TransactionEntry as j - JOIN Account AS r on j.acc_id = r.acc_id - JOIN Period AS p on j.entry_date > p.per_begin and j.entry_date < p.per_end and p.per_string = period - WHERE j.entry_type = jrn -; --- GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS journal_solde// -CREATE PROCEDURE journal_solde(IN period VARCHAR(32),IN jrn VARCHAR(2),IN preci INTEGER ) -BEGIN -select ROUND(sum(CASE WHEN j.debit_credit ='d' THEN j.amount ELSE 0 END), preci) as Debit , - ROUND(sum(CASE WHEN j.debit_credit ='c' THEN j.amount ELSE 0 END), preci) as Credit -from TransactionEntry as j - JOIN Account AS r on j.acc_id = r.acc_id - JOIN Period AS p on j.entry_date > p.per_begin and j.entry_date < p.per_end and p.per_string = period - WHERE j.entry_type = jrn -; --- GROUP BY j.acc_id ; -END// - -DROP PROCEDURE IF EXISTS tantieme// - -CREATE PROCEDURE tantieme(IN owner_id INTEGER, - IN charge_id INTEGER, - IN preci INTEGER) -BEGIN -select ROUND(sum(tant_lot_size) ,preci) as Tant FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.lot_num = t.tant_lot_num) - WHERE lo_owner_id = owner_id and t.tant_pc_id = charge_id; -END// - -DROP FUNCTION IF EXISTS FctTantieme// - -CREATE FUNCTION FctTantieme( acc_id VARCHAR(32), - charge_key INTEGER) - RETURNS DOUBLE - NOT DETERMINISTIC - READS SQL DATA -BEGIN - DECLARE select_var DOUBLE; - SET select_var =(SELECT sum(tant_lot_size) FROM Tantieme as tant - JOIN Lot as l on l.lot_num = tant.tant_lot_num - JOIN LotsOwners as lo on lo.lo_lot_id = l.lot_id - JOIN Account as a on a.acc_id = acc_id - JOIN JoinIdentityAccount as jia on jia.jia_acc = a.acc_id and jia_ident = lo.lo_owner_id - WHERE tant_pc_id =charge_key); - IF (select_var IS NULL) THEN - RETURN 0.0 ; - ELSE - RETURN select_var ; - END IF; -END// - --- --- Nouvell procedure de repartition des charges --- - -DROP PROCEDURE IF EXISTS repartir_charge// -CREATE PROCEDURE repartir_charge( IN trans_id INTEGER, - IN chrg VARCHAR(32), - IN ed DATE, - IN vouch VARCHAR(32), - in am DOUBLE, - in cle INTEGER, - in des VARCHAR(256) - ) - -BEGIN - DECLARE done INT DEFAULT FALSE; - DECLARE a CHAR(16); - DECLARE tant DOUBLE; - DECLARE cur1 CURSOR FOR SELECT acc_id,FctTantieme(acc_id,cle) FROM Account where acc_id like '450%'; - DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; - - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (trans_id,"OD",ed,vouch,chrg,am,'c',des); - OPEN cur1; - - read_loop: LOOP - FETCH cur1 INTO a, tant; - IF done THEN - LEAVE read_loop; - END IF; - IF tant > 0 THEN - INSERT INTO TransactionEntry (trans_id,entry_type,entry_date,voucher_ref,acc_id,amount,debit_credit,description) VALUES - (trans_id,"OD",ed,vouch,a,am*tant/1000.0,'d',des); - END IF; - END LOOP; - - CLOSE cur1; -END// - -DROP PROCEDURE IF EXISTS detail_decompte_charge// - -CREATE PROCEDURE detail_decompte_charge( - IN user_id INTEGER, - IN poste_charge_id INTEGER, - IN period VARCHAR(32), - IN preci INTEGER) -BEGIN -select te.`entry_date` as Date, - te.acc_id as Compte, - ac.`acc_name`, - te.description, - amount as MontantTotal, - ROUND((select sum(t1.tant_lot_size) FROM Tantieme as t1 - JOIN LotsOwners as lo1 - JOIN Lot as l1 on ( lo1.lo_lot_id = l1.lot_id and l1.`lot_num` = t1.`tant_lot_num`) - WHERE lo_owner_id = user_id and t1.tant_pc_id = te.tret_key_id) ,preci) - - as Tan, - ROUND( (amount /1000.0 * ( - select sum(t.tant_lot_size) FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.`lot_num` = t.`tant_lot_num`) - WHERE lo_owner_id = user_id and t.tant_pc_id = te.tret_key_id)) ,preci - ) as Montant, - pc.pc_name as Cle from TransactionEntry as te - JOIN Account as ac on (ac.acc_id = te.acc_id) - JOIN PosteCharge as pc on (te.tret_key_id = pc.pc_id) - JOIN Period AS p on te.entry_date > p.per_begin and te.entry_date < p.per_end and p.per_string = period - where te.acc_id like '6%' and te.debit_credit = 'd' and IF (poste_charge_id != 0,te.tret_key_id = poste_charge_id,1) - ORDER BY te.entry_date; - -END// - -DROP PROCEDURE IF EXISTS detail_decompte_charge_par_lot// - -CREATE PROCEDURE detail_decompte_charge_par_lot( - IN user_id INTEGER, - IN poste_charge_id INTEGER, - IN period VARCHAR(32), - IN preci INTEGER) -BEGIN -select te.`entry_date` as Date, te.acc_id as Compte, - ac.`acc_name` as Intitule, - te.description, - lot.lot_name as Lot, - amount as MontantTotal, - lot.tant_lot_size as tanti, - ROUND( (amount /1000.0 * lot.tant_lot_size) ,preci) as Montant, - - pc.pc_name as Cle from TransactionEntry as te - JOIN Account as ac on (ac.acc_id = te.acc_id) - JOIN PosteCharge as pc on (te.tret_key_id = pc.pc_id) - JOIN (select * FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.`lot_num` = t.`tant_lot_num`) - WHERE lo_owner_id = user_id) as lot on (lot.tant_pc_id = te.tret_key_id) - - JOIN Period AS p on te.entry_date > p.per_begin and te.entry_date < p.per_end and p.per_string = period - where te.acc_id like '6%' and te.debit_credit = 'd' and IF(poste_charge_id != 0, te.tret_key_id = poste_charge_id,'1') - ORDER BY lot.lot_name,te.entry_date,te.acc_id; - -END// - -DROP PROCEDURE IF EXISTS detail_decompte_solde// - -CREATE PROCEDURE detail_decompte_solde( - IN user_id INTEGER, - IN poste_charge_id INTEGER, - IN period VARCHAR(32), - IN preci INTEGER) -BEGIN - -select - sum(amount) as MontantTotal, - ROUND( sum((amount /1000.0 * ( - select sum(t.tant_lot_size) FROM Tantieme as t - JOIN LotsOwners as lo - JOIN Lot as l on ( lo.lo_lot_id = l.lot_id and l.`lot_num` = t.`tant_lot_num`) - WHERE lo_owner_id = user_id and t.tant_pc_id = te.tret_key_id))) ,preci - ) as Montant - from TransactionEntry as te - JOIN Account as ac on (ac.acc_id = te.acc_id) - JOIN PosteCharge as pc on (te.tret_key_id = pc.pc_id) - JOIN Period AS p on te.entry_date > p.per_begin and te.entry_date < p.per_end and p.per_string = period - where te.acc_id like '6%' and te.debit_credit = 'd' and IF (poste_charge_id != 0,te.tret_key_id = poste_charge_id,1) - ORDER BY te.entry_date; - -END// - -delimiter ; - --- Ok, fill in data --- - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone) VALUES - ("CORDIER","Philippe","2 RUE DES ROSSIGNOLS","67114","ECHAU","ma.cordier@orange.fr","philippe.cordier@douane.finances.gouv.fr",""); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (1,450001); -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - ("EBERSOLD","Andre","25 rue Pfeffinger","67100","STRASBOURG","andre.ebersold@gmail.com","0388","0670437380"); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (2,450002); - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone) VALUES - ("FLEURY","Annabelle","25 rue Pfeffinger","67100","STRASBOURG","fleury1@gmail.com",""); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (3,450003); - -INSERT INTO Identity (ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_email2,ident_phone,ident_mobile) VALUES - ("Immoval","Leila Elaillaji","4 rue de l'eglise","67000","STRASBOURG","leila.elailaji@immoval.com","info@immoval.com","0388228822","06"); -INSERT INTO JoinIdentityAccount (jia_ident,jia_acc) VALUE - (4,450004); - --- Les Forunisseurs -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"BOLLOREE","Energie","25 rue Pfeffinger","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Savelys","Energie","","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"EDF","Strasbourg","","67100","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Eau","Strasbourg","","67000","STRASBOURG","","0388",""); - -INSERT INTO Identity (ident_type,ident_name,ident_firstname,ident_address,ident_postalcode,ident_city,ident_email1,ident_phone,ident_mobile) VALUES - (1,"Eau","Strasbourg","","67000","STRASBOURG","","0388",""); - --- --- Insert Lots --- --- lot_floor VARCHAR(8) DEFAULT "RDC", --- lot_area INTEGER DEFAULT 0, --- lot_room INTEGER DEFAULT 0, --- lot_name VARCHAR(32), --- lot_type VARCHAR(32), --- lot_building VARCHAR(32), --- lot_door VARCHAR(32), --- lot_description VARCHAR(256) - -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type,lot_area) VALUES - ("RDC",1,"Lot N1","","Appartement",97.7); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type,lot_area) VALUES - ("1er Etage",2,"Lot N2","Appartement","Appartement",97.7); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type,lot_area) VALUES - ("COMBLES",3,"Lot N3","","Appartement",30); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("COMBLES",4,"Lot N4","","Grenier"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("Sous sol",5,"Lot N5","","Appartement"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("Sous sol",6,"Lot N6","","Garage"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("Sous sol",7,"Lot N7","","Garage"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("exterieur",102,"Lot N102","Jardinet 1","Jardinet"); -INSERT INTO Lot (lot_floor, lot_num,lot_name,lot_description,lot_type) VALUES - ("exterieur",103,"Lot N103","Jardinet 2","Jardinet"); - --- Insert periods --- per_begin DATE, --- per_end DATE, --- per_string VARCHAR(16) -- Example Q1_2012 - - -INSERT INTO Period (per_begin,per_end,per_string) VALUES ("2013-01-01","2013-12-31","2013"); - --- --- Create the account info and accounts --- - --- - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("103000",103, 0.0,"Avances",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("103100",1031, 0.0,"Avances de trésorerie",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450000",450000, 0.0,"Collectivité des Copropriétaire",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450001",450001, 0.0,"Cordier",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450002",450002, 0.0,"Ebersold",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450003",450003, 0.0,"Hentschel",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450004",450004, 0.0,"Immoval",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("450005",450005, 0.0,"Ancien Cordier - Nouv Ebersold",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("400000",400000, 0.0,"Comptes Fournisseurs",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401002",401002, 0.0,"BOLLORE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401003",401003, 0.0,"VEOLIA",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401004",401004, 0.0,"SAVELYS",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401005",401005, 0.0,"EDF",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401006",401006, 0.0,"POSTE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401007",401007, 0.0,"ASSURANCE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401008",401008, 0.0,"RAMONAGE",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401009",401009, 0.0,"EAU",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401010",401010, 0.0,"LEROY MERLIN",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("401011",401011, 0.0,"LIDL meinau",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("461000",461000, 0.0,"Débiteur Divers",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("462000",462000, 0.0,"Crédit Divers",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("512001",512001, 0.0,"BANQUE","La Banque Postale"); --- - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("601000",601000, 0.0,"Eau",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("602000",602000, 0.0,"Eléctricité",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("603000",603000, 0.0,"Chauffage,énergie et combustible",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("604000",604000, 0.0,"Achat produits d'entretien",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("605000",605000, 0.0,"Matériel",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("606000",606000, 0.0,"Fourniture",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("611000",611000, 0.0,"Nettoyage des locaux",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("614000",614000, 0.0,"Control de maintenance",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("615000",615000, 0.0,"Entretien et petites réparation",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("616000",616000, 0.0,"Prime d'assurance",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("620000",620000, 0.0,"Frais d'administration",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("621300",621300, 0.0,"Frais postaux",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("671000",671000, 0.0,"Travaux decides par assemblée générale",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("672000",672000, 0.0,"Travaux urgents",""); - -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("700000",700000, 0.0,"Appels de fond",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("701000",701000, 0.0,"Provision sur opérations courantes",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("702000",702000, 0.0,"Provision sur travaux de l'article 14.2",""); -INSERT INTO Account (acc_id,acc_info_id,acc_balance,acc_name,acc_desc) VALUES ("703000",703000, 0.0,"Avances",""); --- --- Transactions .... --- - - --- trans_entry_id INTEGER PRIMARY KEY, --- trans_id INTEGER, --- entry_date DATE, --- entry_type VARCHAR(32), --- acc_id INTEGER, --- orig_amount REAL, --- amount REAL, --- debit_credit CHARACTER CONSTRAINT IN ('d','c'), --- description VARCHAR(255), --- voucher_ref VARCHAR(255) - --- - diff --git a/app/compta/booking.php b/app/compta/booking.php deleted file mode 100644 index 9cdc659..0000000 --- a/app/compta/booking.php +++ /dev/null @@ -1,70 +0,0 @@ -session = new Session(); - } - /** - * - * - * - */ - function postTransaction($transi,$entries) { - if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { - throw new Exception(_("Only syndic can post a transation in the organisation")); - } - $q = "insert INTO Transactions (voucher_date,act_trans_date) VALUES "; - $qv= "('".$transi['voucher_date']."','".$transi['act_trans_date']."');"; - $res = $this->doQueryI($q.$qv); - $qlid= "select LAST_INSERT_ID();"; - $res = $this->doQueryI($qlid); - $trans_id = $res['records'][0]['0']; - - foreach($entries as $entry) { - $qe = "INSERT INTO TransactionEntry(trans_id,entry_date,acc_id,amount,voucher_ref,debit_credit,description,entry_type) VALUES"; - $qev =" (".$trans_id.",'".$entry['entry_date']."','".$entry['acc_id']."','".$entry['amount']."','"; - $qev = $qev.$entry['voucher_ref']."','".$entry['dc']."','".$entry['desc']."','".$entry['entry_type']."');"; - $res = $this->doQueryI($qe.$qev); - } - return Array('trans_id' => $trans_id); - // INSERT INTO TransactionEntry (trans_id,entry_date,entry_type,acc_id,amount,debit_credit,description) VALUES - // (28,"2012-06-06","","620000",4.78,'d',"Poste Lettre recommand Immoval"); - } - - /** - * - * - */ - function updateEntry($entry) { - if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { - throw new Exception(_("Only syndic can post a transation in the organisation")); - } - $q =<<doQueryI($q); - return array(""); - } - /** - * - */ - function updateTransaction($trans,$entries) { - } -} - - -?> diff --git a/app/compta/budget.js b/app/compta/budget.js deleted file mode 100644 index 60492b5..0000000 --- a/app/compta/budget.js +++ /dev/null @@ -1,302 +0,0 @@ - -AEBW.declare("DlgBudget",AEBW.control.dialogbox ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - //this.load(uipath); - this.tableExercices = function() { - return this._tbe; - }; - - //var spA = new AEBW.control.table('copro_table_decompte'); - //this.TableDecompte = function() {return spA;}; - this.Url = function() {return jurl;}; - this._content = $(div_id).innerHTML; - }, - getBudgets : function() { - var params ={ - }; - var obj = this; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('budget','getBudgets',params, - function(response) {obj.onGetBudgets(response);}, - function() { alert("Failed getBudgets");} - ); - }, - onGetBudgets : function(response) { - var tb = this.tableExercices(); - var Ex = this; - tb.eraseAllRows(); - //alert('ongetAccountist Cleaning before rows: '); - for(var i = 0 ; isession = new Session(); - } - - function getAllAccounts($transInfo,$entries) { - } - - function getBudgets() { - $q ='select bu_id, p.per_string, bu_desc from Budget as b JOIN Period as p on b.bu_period_id = p.per_id; '; - $res = $this->doQueryI($q); - return $res['records']; - } -/** - trans_id INTEGER AUTO_INCREMENT PRIMARY KEY, - voucher_ref VARCHAR(255), - voucher_date DATE, - act_trans_date DATE, - per_id INTEGER - -Transaction Entry - trans_entry_id INTEGER AUTO_INCREMENT PRIMARY KEY, - trans_id INTEGER, - entry_date DATE, - entry_type VARCHAR(2), - acc_id VARCHAR(32), - orig_amount REAL, - amount DOUBLE PRECISION, - debit_credit enum ('d','c'), - description VARCHAR(255), - voucher_ref VARCHAR(255) - */ - function getTransaction($id) { - $q ='select trans_id,voucher_ref,voucher_date from Transaction where trans_id ='.$id.';'; - $transaction = $this->doQueryI($q); - $q ='select trans_entry_id,acc_id,voucher_ref,description,debit_credit,amount from TransactionEntry where trans_id ='.$id.';'; - $entries = $this->doQueryI($q); - return array( 'transaction' => $transaction['records'], 'entries' => $entries['records']); - } - - - - function getBudgetEntries($cls,$anne) { - $q=<<doQueryI($q); - - return $res['records']; - //return array( 'records' => $res['records'] ); - - } - - function getEntriesByAccount($period,$acc) { - $q = 'call detail_compte_sans_solde("'.$period.'",'.$acc.');'; - $res = $this->doQueryI($q); - if ($res['total_matches'] == 0) { - return array('entries'=> array(array(0,0,0,0,0)),'solde' =>array(0,0,0)); - } - // return $res['records']; - $q = 'CALL solde_compte("'.$period.'","'.$acc.'");'; - $res1 = $this->doQueryI($q); - return array('entries' => $res['records'], 'solde' => $res1['records'][0]); - } - - function getSoldeAccount($period,$acc) { - $q = 'CALL solde_compte("'.$period.'","'.$acc.'");'; - $res = $this->doQueryI($q); - return $res['records'][0]; - } - - /** - * \brief I should probably check if the period exists. - * If yes, I can add a new entry. Otherwise, may be ask the user to create - * the period first - */ - function addBudget($anne,$desc) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can add a new Budget")); - } - $q = 'select per_id from Period where per_string = "'.$anne.'";'; - $res = $this->doQueryI($q); - error_log("addBudget Called res= ".$res["records"][0][0]); - if ($res['records'][0][0] > 1) { - $pid = $res['records'][0][0]; - $q = 'INSERT INTO Budget (bu_period_id,bu_desc) VALUES('.$pid.',"'.$desc.'");'; - $res = $this->doQueryI($q); - return array(""); - } else { - // Return failure - error_log("addBudget Failed Budget does not exists"); - throw new Exception(_("Exercice does not exists")); - } - } - function removeBudget($id) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can remove Budget")); - } - $q = 'DELETE FROM Budget WHERE bu_id = '.$id.';'; - $q .= 'DELETE FROM BudgetEntry WHERE buet_budget_id = '.$id.';'; - $res = $this->doQueryI($q); - return array(""); - } - function addBudgetEntry($buet_id,$bu_id,$acc,$amount,$chrg) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can add or replace a Budget entry")); - } - $q = "REPLACE INTO BudgetEntry (buet_id,buet_budget_id,buet_acc_id,buet_amount,buet_pc_id) VALUES (".$buet_id.",".$bu_id.",'".$acc."',".$amount.",".$chrg.");"; - $res = $this->doQueryI($q); - return array(""); - } -} - - -?> diff --git a/app/compta/budget_edit.xml b/app/compta/budget_edit.xml deleted file mode 100644 index 18e0af1..0000000 --- a/app/compta/budget_edit.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - User Managment - - - - - - - - Selection de la classe - -
- - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - -
CompteLibelléN-1N
Total:0.00.0
-
-
- -
-
diff --git a/app/compta/copro.js b/app/compta/copro.js deleted file mode 100644 index 73db506..0000000 --- a/app/compta/copro.js +++ /dev/null @@ -1,760 +0,0 @@ - -AEBW.declare("DlgCoproPaye",AEBW.control.dialogbox ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - - //var spA = new AEBW.control.table('copro_table_decompte'); - //this.TableDecompte = function() {return spA;}; - this.Url = function() {return jurl;}; - }, - doRecord : function() { - var params = { - 'transi' : { 'voucher_date' : $('copro_voucher_date').value, 'act_trans_date' : $('copro_date').value - }, - 'entries' : [ - { 'entry_date' : $('copro_date').value, - 'voucher_ref' : $('copro_voucher_ref').value , - 'acc_id' : $('copro_id').value, - 'amount': $('copro_amount').value, - 'dc':'c', - 'desc':$('copro_desc').value, - 'entry_type': 'BQ'}, - { 'entry_date' : $('copro_date').value, - 'voucher_ref' : $("copro_voucher_ref").value, - 'acc_id' : $('copro_banque').value, - 'amount': $('copro_amount').value, - 'dc':'d','desc':$('copro_desc').value, - 'entry_type' : 'BQ'} - ] - - }; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - var supp = this; - SupplReq.handlefct('booking','postTransaction',params,function(res) {supp.onRecorded(res);}, function () { - alert("Failed booking call by on Failure on url:"+url); - }); - }, - onRecorded: function(response) { - new Effect.Fade('copro_payement',{ - afterFinish: function() { - $('copro_result').innerHTML = "

Le payement a ete enregistre.

"; - } - }); - }, - doAppel: function() { - var params = { - 'transi' : { 'voucher_date' : $('tfDate').value, 'act_trans_date' : $('tfDate').value - }, - 'entries' : [ - { 'entry_date' : $('tfDate').value, - 'voucher_ref' : "" , - 'acc_id' : $('copro_id').value, - 'amount': $('tfMontant').value, - 'dc':'d', - 'desc':$('tfTitle').value, - 'entry_type': 'AF'}, - { 'entry_date' : $('tfDate').value, - 'voucher_ref' : "", - 'acc_id' : "701000", - 'amount': $('tfMontant').value, - 'dc':'c','desc':$('tfTitle').value, - 'entry_type' : 'AF'} - ] - - }; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - var supp = this; - SupplReq.handlefct('booking','postTransaction',params,function(res) {supp.onAppel(res);}, function () { - alert("Failed booking call by on Failure on url:"+url); - }); - }, - onAppel: function(response) { - new Effect.Fade('copro_appel',{ - afterFinish: function() { - $('copro_result').innerHTML = "

L'appel de fond a ete enregistre.

"; - } - }); - }, - getFournisseur: function() { - var params ={ - categorie : '401', - like: "lik" - }; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - var supp = this; - SupplReq.handlefct('pcmn','getAccountList',params,function (res) { - supp.onFournisseur(res); - } ,function() { - alert("Failed getFournisseur"); - }); - }, - onFournisseur: function (response) { - var cb = $('suppl_id'); - cb.options.length = 0; - for(var i = 0; i it[3]) { - row.cells[4].style.color="red"; - } - } - var res= response.result.solde; - $('coproSoldeDebit').innerHTML=res[0]; - $('coproSoldeCredit').innerHTML=res[1]; - $('coproSoldeDecompte').innerHTML="Solde : "+res[2]; - if (parseFloat(res[2]) < 0.0 ) { - $('coproSoldeDecompte').setStyle({color: "#FF0000"}); - } else { - $('coproSoldeDecompte').setStyle({color: "#000000"}); - } - this.getSoldeDecompte(); - }, - - getSoldeDecompte : function() { - var params ={ - period : $('cbCoproExercice').value, - acc_id: $('cbCoproDecompte').value - }; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - var supp = this; - SupplReq.handlefct('retrieve','getSoldeAccount',params,function (res) { - supp.onGetSoldeDecompte(res); - } ,function() { - alert("Failed getSoldeAccount"); - }); - }, - onGetSoldeDecompte : function(response) { - var bilan =""; - var res= response.result.solde; - var detail_charge = response.result.detail_charge; - var total_charge = parseFloat(response.result.total_charge).toFixed(2); - var total_appel = parseFloat(response.result.total_appel).toFixed(2); - var total_ss_af = 0; - if (parseFloat(res[2]) < 0.0 ) { - total_ss_af = parseFloat(res[2]) + parseFloat(total_appel); - } else - total_ss_af = parseFloat(res[2]) - parseFloat(total_appel); - $('coproSoldeDebit').innerHTML=res[0]; - $('coproSoldeCredit').innerHTML=res[1]; - $('coproSoldeDecompte').innerHTML="Solde : "+res[2]+" euros, (Solde sans appel de fonds:"+total_ss_af.toFixed(2)+" euros si non clos)" ; - if (parseFloat(res[2]) < 0.0 ) { - $('coproSoldeDecompte').setStyle({color: "#FF0000"}); - } else { - $('coproSoldeDecompte').setStyle({color: "#000000"}); - } - try { - bilan+="

Total appel de fonds:"+total_appel+" euros, total charges : "+total_charge+" euros

"; - for(var c = 0 ; c < detail_charge.length; c++) { - var i = detail_charge[c]; - bilan += "

"+i[0]+" "+i[1]+" euros

"; - } - $('copro_detail').innerHTML=bilan; - } catch (e) { - alert("Bilan Failed = "+e.message); - } - - }, - cleanTable : function(tb,sz) { - for (var i = 0 ; i < sz; i++) { - tb.delRow(0); - } - } -, - getExercices : function() { - var params =""; - var obj = this; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('syndic','getExercices',params, - function(response) {obj.onGetExercices(response);}, - function() { alert("Failed getExercices");} - ); - }, - onGetExercices : function(response) { - var d = new Date(); - var cb = $('cbCoproExercice'); - cb.options.length = 0; - for(var i = 0; i " + it[4] + " " + it[5]; - //tb.getCell(tb._NbRows-1,4).innerHTML = it[4]; - tb.getCell(tb._NbRows-1,3).innerHTML = it[6]; - tb.getCell(tb._NbRows-1,4).innerHTML = it[7]; - } - }, - addCopro : function (i) { - var params ={'org_id' : 0, // Current one - ident : {'uid':0, - 'name' : i.name, - 'firstname' : i.firstname, - 'address' : i.address, - 'postalcode': i.code, - 'ville' : i.ville, - 'email' : i.email1, - 'mobile' : i.mobile } - }; - var obj = this; - var url = this.Url(); - var Req = new AEBW.Json(url); - Req.handlefct('ident','addUserInOrg',params, - function(response) {obj.onAddCopro(response);}, - function() { alert("Failed addCopro");} - ); - }, - onAddCopro: function(response) { - alert("added"); - }, - onShow: function() { - this._tbe = new AEBW.control.table('copro_users'); - var obj = this; - Event.observe($("btUpdateCoproUser"),"click", function () { - alert("Triggered new updateCopro"); - }); - Event.observe($("btNewCoproIdentity"),"click", function () { - var i = {}; - i.name = $('copro_name').value; - i.firstname = $('copro_firstname').value; - i.address = $('copro_address').value; - i.code = $('copro_code').value; - i.ville = $('copro_ville').value; - i.mobile = $('copro_mobile').value; - i.email1 = $('copro_email1').value; - i.email2 = $('copro_email2').value; - obj.addCopro(i); - - }); - } -}); - -AEBW.declare("DlgCoproRole",AEBW.control.dialogbox ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - this.Url = function() {return jurl;}; - }, - getRoles : function () { - }, - getUsersRole : function(role) { - var params ={'role' : role}; - var obj = this; - var url = this.Url(); - var Req = new AEBW.Json(url); - Req.handlefct('ident','getUsersRole',params, - function(response) {obj.onGetUsersRole(response);}, - function() { alert("Failed getEntetien");} - ); - }, - onGetUsersRole : function(response) { - var tb = this._tbe; - tb.eraseAllRows(); - var entries = response.result; - var obj = this; - for(var i = 0 ; i - - - - - User Managment - - - - -

Décompte de charges

-

- - - - - Information Générales - -
- - -
- - - -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - -
Compte
DateRéfDésignaionDébitCrédit
02/01/201312435Facture fioul100
05/01/201398547Charge Assurance87
06/01/2013d1Virement211
10/01/2013xc1234Charge EDF PC2 178
Solde:0.00.0
-
- - - -
-
-
diff --git a/app/compta/copro_entretien.xml b/app/compta/copro_entretien.xml deleted file mode 100644 index 8da2716..0000000 --- a/app/compta/copro_entretien.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Carnet d'entretien - - - - - - Période d'entretien - -
- - - - -
-
-
- - Saisir - -
- -
-
- -
- -
- - - - - - - - - - diff --git a/app/compta/copro_pay.xml b/app/compta/copro_pay.xml deleted file mode 100644 index cddb8da..0000000 --- a/app/compta/copro_pay.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - User Managment - - - - - - -

Enregistré un payment

- -Versement - -
-
- - - - - - - -
- - - -
- - -
- -
- - - - - - - - -

Enregistré un appel de fond

- - Appel de fond - -
-
- - - - - - - -
- - -
- -
- - - - - - - - - - diff --git a/app/compta/copro_role.xml b/app/compta/copro_role.xml deleted file mode 100644 index 2772843..0000000 --- a/app/compta/copro_role.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - User Managment - - - - - - - - Selection Role - -
- - - - -
-
-
- - - - - - - - - - - - - - - - - -
NomPrénomSel
-
-
- -
-
diff --git a/app/compta/copro_users.xml b/app/compta/copro_users.xml deleted file mode 100644 index 603b5ab..0000000 --- a/app/compta/copro_users.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - User Managment - - - - -

Nouveau copropriétaire

- - Information Copropriétaire - -
- -
- -
- -
- -
-
-
- -
- - - - - - - -

Coordonnées des copropriétaires

- - - - - - - - - - - - - - - - -
Nom / PrénomAdresseTélEmail
-
- - - - diff --git a/app/compta/exercice.js b/app/compta/exercice.js deleted file mode 100644 index 1c6ef03..0000000 --- a/app/compta/exercice.js +++ /dev/null @@ -1,142 +0,0 @@ - -AEBW.declare("DlgExercice",AEBW.control.dialogbox ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - this.tableExercices = function() { - return new AEBW.control.table('table_exercice'); - }; - - //var spA = new AEBW.control.table('copro_table_decompte'); - //this.TableDecompte = function() {return spA;}; - this.Url = function() {return jurl;}; - }, - getExercices : function() { - var params ={ - }; - var obj = this; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('syndic','getExercices',params, - function(response) {obj.onGetExercices(response);}, - function() { alert("Failed getExercices");} - ); - }, - onGetExercices : function(response) { - var tb = this.tableExercices(); - var Ex = this; - //alert('ongetAccountist Cleaning before rows: '); - for(var i = 0 ; i - - - - - Exercice Managment - - - - - - - -Nouvel Exercice - -
-
- -
-
- -
- - - - - - -

Les exerices

- - - - - - - - - - - - - -
ExerciceDate de DébutDate de Fin
-
- -

Cloture de compte

-
- - - - - - diff --git a/app/compta/identity.php b/app/compta/identity.php deleted file mode 100644 index dc4a95a..0000000 --- a/app/compta/identity.php +++ /dev/null @@ -1,193 +0,0 @@ -session = new Session(); - } - - /** - * Check if the organisation exists if not create it. - * Add the current user in the organization as admin or syndic ? - */ - function createOrg( $ident) { - // Check if exists - $q=<<doQueryI($q); - if ($res['records'][0][0] != 0 ) { - throw new Exception(_("create organisation failed. The entry already exists.")); - } - // Create new entry - $q=<<doQueryI($q); - $orgid = $this->insert_id(); - $id = $this->session->id(); - $dbname = "SYNDIC_".$orgid; - $q1 =<<doQueryI($q1); - return array("org_id" => $orgid); - } - /* Basic function that allows the user to work on several accounting systems */ - function switchOrg( $org) { - // Check if the organisation exists and that I'm part of it. - $dbs = $this->getApplicationDbs(); - for ($i = 0 ; $i < count($dbs) ; $i++) { - if ($dbs[$i][0] == $org) { - // Found switch and exit - $_SESSION["compta_db"] = $dbs[$i][2]; - $_SESSION["compta_org"] = $dbs[$i][0]; - $_SESSION["compta_name"] = $dbs[$i][1]; - error_log("switchOrg: Org id :".$dbs[$i][0]." Name=".$dbs[$i][1]." Db Name=".$dbs[$i][2]); - $roles = $this->getUserRolesInOrg( $this->session->id(),$_SESSION['compta_org']); - return $dbs[$i]; - } - } - throw new Exception(_("Unkown organisation for user")); - } - function currentOrg () { - if (isset($_SESSION["compta_org"]) ){ - return array($_SESSION["compta_org"],$_SESSION['compta_name']); - } else { - throw new Exception(_("No organisation defined for you")); - } - } - /** - */ - function addUserInOrg($org_id,$ident) { - $org = $org_id; - if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { - throw new Exception(_("Only syndic can add a user in organisation")); - } - if ($org == 0 ) { - // Check if there is an org in session if not, die - if (isset($_SESSION['compta_org'])) { - $org = $_SESSION['compta_org']; - } else { - error_log("FAILED compta_org is not defined"); - throw new Exception(_("ORGANISATION NOT DEFINED")); - } - } - // Check if exists - $q=<<doQueryI($q); - if ($res['records'][0][0] != 0 ) { - $id = $res['records'][0][0]; - $q1 =<<doQueryI($q1); - throw new Exception(_("User creation failed. The entry already exists.")); - } - // - $q=<<doQueryI($q); - $id = $this->insert_id(); - $q1 =<<doQueryI($q1); - return array(""); - } - - - function removeUserFromOrg($uid,$with_ident= false) { - - - } - - /** - * - */ - function getUsersRole($role) { - $q =<<org} - LEFT JOIN UserRoles as ur on u.ident_id = ur.ur_user_id and ur.ur_role_id = {$role} and ur.ur_org_id ={$this->org} - GROUP BY u.ident_id ; -EOF; - $res = $this->doQueryI($q); - return $res["records"]; - } - - function setUserRole($oid,$uid,$role) { - if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { - throw new Exception(_("Only syndic can change role in organisation")); - } - if (isset($_SESSION['compta_org'])) { - $org = $_SESSION['compta_org']; - } else { - error_log("FAILED compta_org is not defined"); - throw new Exception(_("ORGANISATION NOT DEFINED TO SET ROLE")); - } - if ($uid == 0) { - error_log("FAILED setUserRole : uid is 0"); - throw new Exception(_("Cannot Set role for uid 0")); - } - $q=<<doQueryI($q); - return array(""); - } - - function resetUserRole($oid,$uid,$role) { - if (! $this->session->in_groupe(COMPTA_SYNDIC) ) { - throw new Exception(_("Only syndic can change role in organisation")); - } - if (isset($_SESSION['compta_org'])) { - $org = $_SESSION['compta_org']; - } else { - error_log("FAILED compta_org is not defined"); - throw new Exception(_("ORGANISATION NOT DEFINED TO SET ROLE")); - } - if ($uid == 0) { - error_log("FAILED setUserRole : uid is 0"); - throw new Exception(_("Cannot Set role for uid 0")); - } - $q=<<doQueryI($q); - return array(""); - } -} - -?> diff --git a/app/compta/index.php b/app/compta/index.php deleted file mode 100644 index 809a98e..0000000 --- a/app/compta/index.php +++ /dev/null @@ -1,117 +0,0 @@ -getApplicationDbs(); - $_SESSION["compta_db"] = $dbs[0][2]; - $_SESSION["compta_name"] = $dbs[0][1]; - $_SESSION["compta_org"] = $dbs[0][0]; - error_log("Compta: Org id :".$dbs[0][0]." Name=".$dbs[0][1]." Db Name=".$dbs[0][2]); - $roles = $u->getUserRolesInOrg( $s->id(),$_SESSION['compta_org']); - } - } - function getDb() { - if (isset($_SESSION['compta_db'])) { - return $_SESSION["compta_db"] ; - } else - return 'test'; - } - - function Service($request) { - // return "pcmn"; - return $request['service']; - } -} - -/* - :vim:et:ts=2:sw=2:encoding=utf-8 - */ - - $s = new Session(); - if ($s->is_logged_in() ) { - $p = New Compta("/sql-requests.xml"); - if ($_SERVER['REQUEST_METHOD'] == "POST") { - $request = $p->getContent(); - switch ($p->Service($request)) { - case "pcmn": - require_once(dirname(__FILE__)."/pcmn.php"); - $pcmn = new Pcmn($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], - $p->getDb()); - if ( ! JsonRPCServer::handle($pcmn,$request) ) { - log_error("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); - } - break; - case "identold": - require_once(dirname(__FILE__)."/../member/class.json_db_user.php"); - $u = new JsonUser( $AppDb['host'] , $AppDb['user'], $AppDb['password'],$AppDb['name']); - if ( ! JsonRPCServer::handle($u,$request) ) { - error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); - } - break; - case "ident": - require_once(dirname(__FILE__)."/identity.php"); - $u = new Identity( $AppDb['host'] , $AppDb['user'], $AppDb['password'],$AppDb['name']); - if ( ! JsonRPCServer::handle($u,$request) ) { - error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); - } - break; - break; - case "retrieve": - require_once(dirname(__FILE__)."/retrieve.php"); - $pcmn = new Retrieve($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], - $p->getDb()); - if ( ! JsonRPCServer::handle($pcmn,$request) ) { - error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); - } - break; - case "booking": - require_once(dirname(__FILE__)."/booking.php"); - $pcmn = new Booking($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], - $p->getDb()); - if ( ! JsonRPCServer::handle($pcmn,$request) ) { - error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); - } - break; - case "budget": - require_once(dirname(__FILE__)."/budget.php"); - $pcmn = new Budget($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], - $p->getDb()); - if ( ! JsonRPCServer::handle($pcmn,$request) ) { - error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); - } - break; - case "syndic": - require_once(dirname(__FILE__)."/syndic.php"); - $pcmn = new Syndic($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'], - $p->getDb()); - if ( ! JsonRPCServer::handle($pcmn,$request) ) { - error_log("Request is not Json.". " Content Meth:".$_SERVER['REQUEST_METHOD']." Content Type:".$_SERVER['CONTENT_TYPE']); - } - break; - default: - $res = array('id' => '1','result' => 'failed', 'error' => 'Unkonwn service'); - header('X-JSON: '.json_encode($res)); - } - } else { - $res = array('id' => "1",'result' => 'failed', 'error' => 'Unkonwn service wrong'); - header('X-JSON: '.json_encode($res)); - - } - } else { - $res = array('result' => 'failed', 'reason' => 'Not auth'); - header('X-JSON: '.json_encode($res)); - } - - -?> diff --git a/app/compta/index.xml b/app/compta/index.xml deleted file mode 100644 index 284419e..0000000 --- a/app/compta/index.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - User Managment - - - - -

Administration des utilisateurs

-

-

- -
- - - - - Utilisateur - -
- Her -
- - - Plan Comptable - - 1 Comptes de capitaux - - - 2 Comptes d immobilisation - - - 3 Stock et Command - - - 4 Comptes Tiers - - - 5 Comptes Financiers - - - 6 Comptes Charges - - - 7 Comptes Produits - - - 8 Hors Comptabilite - - - 9 Comptes Analytiques - - -
-
-

Test What happens here

- - System - - - -

- - - Groupes - - simpe test - - - - Frogs - - Ok, - - Info Gen - - Une info: - - - - - - -
-
-
-
- - - - - Groupes - - Strange - - authentication - -

Test Content

- -
-
- - alias - - display boxes : enable - - - - ssl - - display boxes: - enable - disable - - - - - -
-
- - - Eglise - - Page de debug pour web_server. - - Yes - Vide - - - - - - T table - - Test Table Stuff - - - - - - - - - - - -
Titre du tableau
r1r2
Un test pour voird1
Un bouton -
Un test pour voird1
Un bouton -
- End Table - -
-
- - Calendar - - Test12 -
- -
-
-
- -
-
diff --git a/app/compta/journaux.js b/app/compta/journaux.js deleted file mode 100644 index 3d32ec4..0000000 --- a/app/compta/journaux.js +++ /dev/null @@ -1,306 +0,0 @@ - -AEBW.declare("DlgJrnx",Compta.Dialog ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - - this.table = function() { - return new AEBW.control.table('table_jrnx'); - }; - this.Url = function() {return jurl;}; - }, - getJrnxType:function() { - var params ={}; - var obj = this; - var url = this.Url(); - var Req = new AEBW.Json(url); - Req.handlefct('retrieve','getEntryTypes',params, - function(response) {obj.onGetJrnxType(response);}, - function() { alert("Failed getJrnxType");} - ); - }, - onGetJrnxType: function(response) { - var obj = this; - try { - var cb = $('jrnxBook'); - cb.options.length = 0; - for(var i = 0 ; i"; - //tb.getCell(tb._NbRows-1,0).setAttribute('record',it[0]); - //tb.getCell(tb._NbRows-1,0).onclick = function() { alert('Remove '+this.getAttribute('record'));}; - tb.getCell(tb._NbRows-1,0).innerHTML = it['0']; - //tb.getCell(tb._NbRows-1,1).onclick = function() { alert('Cliked ');}; - tb.getCell(tb._NbRows-1,1).innerHTML = it['1']; - tb.getCell(tb._NbRows-1,2).innerHTML = it['2']; - tb.getCell(tb._NbRows-1,3).innerHTML = it['3']; - if (it[4] > 0.0 ) { - tb.getCell(tb._NbRows-1,4).innerHTML = it['4']; - row.cells[4].style.textAlign="right"; - } else { - tb.getCell(tb._NbRows-1,4).innerHTML = ""; - } - if (it[5] > 0.0 ) { - tb.getCell(tb._NbRows-1,5).innerHTML = it['5']; - row.cells[5].style.textAlign="right"; - } else { - tb.getCell(tb._NbRows-1,5).innerHTML = ""; - } - } - $('jrnxSoldeDebit').innerHTML = response.result.solde[0][0]; - $('jrnxSoldeCredit').innerHTML = response.result.solde[0][1]; - }, - - ongetExercices: function(response) { - var d = new Date(); - var cb = $('cbJrnxPeriod'); - cb.options.length = 0; - for(var i = 0; i it[3]) { - row.cells[4].style.color="red"; - } - } - var res= response.result.solde; - $('jrnxSoldeDebit').innerHTML=res[0]; - $('jrnxSoldeCredit').innerHTML=res[1]; - $('jrnxSoldeDecompte').innerHTML="Solde : "+res[2]; - if (parseFloat(res[2]) < 0.0 ) { - $('jrnxSoldeDecompte').setStyle({color: "#FF0000"}); - } else { - $('jrnxSoldeDecompte').setStyle({color: "#000000"}); - } - - }, - ongetListeComptes : function(response) { - var cb = $('cbJrnxCompte'); - cb.options.length = 0; - for(var i = 0; i - - - - - User Managment - - - - -

Administration des utilisateurs

-

-

- -
- - - - - Utilisateur - -
- Her -
- - - Plan Comptable - - 1 Comptes de capitaux - - - 2 Comptes d immobilisation - - - 3 Stock et Command - - - 4 Comptes Tiers - - - 5 Comptes Financiers - - - 6 Comptes Charges - - - 7 Comptes Produits - - - 8 Hors Comptabilite - - - 9 Comptes Analytiques - - -
-
-

Test What happens here

- - System - - - -

- - - Groupes - - simpe test - - - - Frogs - - Ok, - - Info Gen - - Une info: - - - - - - -
-
-
-
- - - - - Groupes - - Strange - - authentication - -

Test Content

- -
-
- - alias - - display boxes : enable - - - - ssl - - display boxes: - enable - disable - - - - - -
-
- - - Eglise - - Page de debug pour web_server. - - Yes - Vide - - - - - - T table - - Test Table Stuff - - - - - - - - - - - -
Titre du tableau
r1r2
Un test pour voird1
Un bouton -
Un test pour voird1
Un bouton -
- End Table - -
-
- - Calendar - - Test12 -
- -
-
-
- -
-
diff --git a/app/compta/jrnx.xml b/app/compta/jrnx.xml deleted file mode 100644 index 6011280..0000000 --- a/app/compta/jrnx.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - User Managment - - - - - - - - Selection du journal - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - -
DateCompteRéfLibelléDébitCrédit
Solde:0.00.0
-
-
- -
-
diff --git a/app/compta/jrnx_detail.xml b/app/compta/jrnx_detail.xml deleted file mode 100644 index 04aa897..0000000 --- a/app/compta/jrnx_detail.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - Détail de compte. - - - - -

Détail de compte

-

- - - - - Compte / Exercice - -
- - -
- - - -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - -
Compte
DateRéfDésignaionDébitCrédit
02/01/201312435Facture fioul100
05/01/201398547Charge Assurance87
06/01/2013d1Virement211
10/01/2013xc1234Charge EDF PC2 178
Solde:0.00.0
-
- -
-
-
diff --git a/app/compta/jrnx_record.xml b/app/compta/jrnx_record.xml deleted file mode 100644 index e255654..0000000 --- a/app/compta/jrnx_record.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - User Managment - - - - - - - - Selection du journal - -
- - - - - - - - - -
-
-
- - -
- - - - -
- - -
-
- - - - - - - - - - - - - - - - - -
DateCompteRéfLibelléDébitCrédit
Solde:0.00.0
-
-
- -
-
diff --git a/app/compta/ledger_church.xml b/app/compta/ledger_church.xml deleted file mode 100644 index 29fc2e6..0000000 --- a/app/compta/ledger_church.xml +++ /dev/null @@ -1,396 +0,0 @@ - - - - - - Gestion comptable - - - - -

Gestion Comptable

-

-

- -
- - - - Organisation - - - - - Organisation - - - - - - - Exercice - - - - - - - - Type de compte - - - - - - - - - - - - - - - Plan - - - - - - Type de comptes - - - - - - - - - - - - - - -

Plan comptable

- - - - - - - - - - - - - - - - - - - - - - - - -
Titre du tableau
classLibelléType
- - Actif - Passif - Produit - Charge - Banque - - - -
1Compte de testActif - -
- -

-
-
-
-
- - - Fournisseurs - - - - - Facture - - - - - - - Gestion - - - - - - - - - - - -Nouvelle Facture - -
-
- - - - - - - -
- - - - - - -
- - -
- -
- - - - - - - - - - - - Membres - - - - - Don - - - - - - Gestion - - - - - - - - - - -Don - -
-
- - - - - - - -
- - - -
- - -
- -
- - - - - - - - - - - - Eglise - - - - - Membres - - - - - - - Gestion - - - - - - - -

Status

-
-
-
-
- - Bilan - - - - Exercice - - - - - - - - - - - - - -
Bilan de L'exercice
CompteLibelleDebitCreditSolde
10Immoblisation000
-
- -
-
- - Trésorier - - -

Information Générales sur le trésorier

-
- - General - -
- -
- - -
- - -
- - -
-
- -
- - - - - - - - - - - - - - - - - - - diff --git a/app/compta/ledger_create.xml b/app/compta/ledger_create.xml deleted file mode 100644 index 4a3cc8b..0000000 --- a/app/compta/ledger_create.xml +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - Wizard pour la creation d'un environnement de compta - - - - -

Création d'une nouvelle organisation

-

-

- -
- - - - - Organisation - - - - - - -

Information sur l'organisation

- - - Organisation - -
-
-
- -
- -
- -
-
- -
-
-

- - - - Syndic - - - Plan comptable - - - - - Coproprietaire - - Ok, - - Info Gen - - Une info: - - - - - - - -
-
-
-
- - - - - Plan Comptable - - Strange - - authentication - -

Test Content

- -
-
- - alias - - display boxes : enable - - - - ssl - - display boxes: - enable - disable - - - - - -
-
- - - Eglise - - Page de debug pour web_server. - - Yes - Vide - - - - - - T table - - Test Table Stuff - - - - - - - - - - - -
Titre du tableau
r1r2
Un test pour voird1
Un bouton -
Un test pour voird1
Un bouton -
- End Table - -
-
- - Calendar - - Test12 -
- -
-
-
- - -
- -
diff --git a/app/compta/ledger_syndic.xml b/app/compta/ledger_syndic.xml deleted file mode 100644 index 9a3adde..0000000 --- a/app/compta/ledger_syndic.xml +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - Gestion comptable - - - - -

Gestion Comptable :

- - - - - Copropriété - - - - - Organisation - - - - - - - Exercice - - - - - - - - Lots - - - - - - - Clé de charges - - - - - - - - - - - - - -

Les organisations dont vous faites partie

-
-
-
-
-
-
- - - - Plan - - - - - Type de comptes - - - - - - - - - - - - -

Plan comptable

- - - - - - - - - - - - - - - - - - - - - - - - -
Titre du tableau
classLibelléType
- - Actif - Passif - Produit - Charge - Banque - - - -
1Compte de testActif - -
- -

-
-
-
-
- - - Fournisseurs - - - - - - - Facture - - - - - - - Gestion - - - - - - - - - - - - - - Nouvelle Facture - -
-
- - - - - - - -
- - - - - - -
- - -
- -
- - - - - - - - - - - - - - Coproprietaires - - - - - Fonds - - - - - - - - Gestion des Tiers - - - - - - - - - - - - -Versement - -
-
- - - - - - - -
- - - -
- - -
- -
- - - - - - - - - - - - - - - - Journaux - - - - - journaux - - - - - - - Détail Comptes - - - - - - - - - - - - - Selection du journal - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - -
DateN° CompteRéfLibelléDébitCrédit
Solde:0.00.0
-
-
- -
-
-
-
- - Bilan - - - - Exercice - - - - - - - - - - - - - - - - - -
Bilan de L'exercice
CompteLibelleDebitCreditSolde
10Immoblisation000
-
- -
-
- - - - Budget - - - - - Budget - - - - - - - - - Nouveau - -
- - -
- - -
- - - - - - - - - - - - - - - - - - - -
AnnéeLibellé
-
- - - - - - - - - - - - - - - - diff --git a/app/compta/lot.xml b/app/compta/lot.xml deleted file mode 100644 index 0fcddc1..0000000 --- a/app/compta/lot.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - User Managment - - - - - - - -Nouveau Lot - -
-
- - - - - - -
- -
- -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
NameBatEtgPorteTypeSurf.
-
- - - - diff --git a/app/compta/lot_attribuer.xml b/app/compta/lot_attribuer.xml deleted file mode 100644 index d4a2809..0000000 --- a/app/compta/lot_attribuer.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - User Managment - - - - - - - - Selection Copropriétaire - -
- - - -
-
-
- - - - - - - - - - - - - - - - - -
NuméroNom du lotSel
-
-
- -
-
diff --git a/app/compta/lot_charge.xml b/app/compta/lot_charge.xml deleted file mode 100644 index f67c29a..0000000 --- a/app/compta/lot_charge.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - User Managment - - - - - - - -

Création d'un nouveau type de charges

- - Nouveau Poste de Charge - -
- - -
- -
- - - - - - - -

Selection du Poste de Charge pour affectation des Tantiemes

- - Selection Poste pour affecation - -
- - - - - - -
-
-
-
- -

Affectation Tantieme

- - - - - - - - - - - - - - - -
N° LotTantieme
Total:
-
- - - - diff --git a/app/compta/lots.js b/app/compta/lots.js deleted file mode 100644 index 02d1a03..0000000 --- a/app/compta/lots.js +++ /dev/null @@ -1,339 +0,0 @@ - -AEBW.declare("DlgLot",Compta.Dialog ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - - this.tableLots = function() { - return new AEBW.control.table('table_lots'); - }; - this.Url = function() {return jurl;}; - }, - - ongetLots : function(response) { - var tb = this.tableLots(); - var obj= this; - this.cleanTable(tb,tb._NbRows); - //alert('ongetAccountist Cleaning before rows: '); - for(var i = 0 ; iupdate"; - tb.getCell(tb._NbRows-1,0).innerHTML = ""; - //tb.getCell(tb._NbRows-1,0).writeAttribute('onclick',"javascript:alert('Remove "+it[0]+"')"); - tb.getCell(tb._NbRows-1,0).setAttribute('record',it[0]); - tb.getCell(tb._NbRows-1,0).onclick = function() { - alert('Remove '+this.getAttribute('record')); - obj.removeLot(this.getAttribute('record')); - }; - tb.getCell(tb._NbRows-1,1).innerHTML = it['0']; - //tb.getCell(tb._NbRows-1,1).writeAttribute('onclick',"javascript:alert('Cliked"+it[0]+"')"); - tb.getCell(tb._NbRows-1,1).onclick = function() { alert('Cliked ');}; - tb.getCell(tb._NbRows-1,2).innerHTML = it['4']; - tb.getCell(tb._NbRows-1,3).innerHTML = it['6']; - tb.getCell(tb._NbRows-1,4).innerHTML = it['1']; - tb.getCell(tb._NbRows-1,5).innerHTML = it['7']; /* porte */ - tb.getCell(tb._NbRows-1,6).innerHTML = it['5']; - tb.getCell(tb._NbRows-1,7).innerHTML = it['2']; - // tb.getCell(tb._NbRows-1,8).innerHTML = it['7']; - } - }, - - addLot : function() { - var params = { - 'number' : $('lot_number').value, - 'type' : $('lot_type').value, - 'building' : $('lot_building').value , - 'floor' : $('lot_floor').value , - 'door' : $('lot_door').value, - 'size' : $('lot_size').value, - 'name' : $('lot_name').value, - 'desc' : $('lot_desc').value - } ; - var obj = this; - var url = this.Url(); - var Req = new AEBW.Json(url); - Req.handlefct('syndic','addLot',params, - function(response) {obj.onaddLot(response);}, - function() { alert("Failed addLot");} - ); - }, - onaddLot: function (response) { - this.getLots(); - }, - removeLot : function(lotnum) { - var params = { - 'number' : lotnum - }; - var obj = this; - var url = this.Url(); - var Req = new AEBW.Json(url); - Req.handlefct('syndic','removeLot',params, - function(response) {obj.onremoveLot(response);}, - function() { alert("Failed removeLot");} - ); - - }, - onremoveLot : function(response) { - this.getLots(); - }, - cleanTable : function(tb,sz) { - for (var i = 0 ; i < sz; i++) { - tb.delRow(0); - } - } - -}); - - -AEBW.declare("DlgLotCharge",Compta.Dialog ,{ - constructor : function(div_id,uipath,jurl ) { - this.tableLots = function() { - return this._tbe; - }; - }, - - ongetKeysCharge : function(response) { - var cb = $('lot_charge_sel'); - cb.options.length = 0; - for(var i = 0; i Creer Poste Charge -*/ -Event.observe($("btParamPosteChargeCreate"),"click", function () { - LotsCharge.show(); - LotsCharge.getKeysCharge(); - LotsCharge.getLotsTantieme($('lot_charge_sel').value); - // Event.observe($('btLotsAdd'), "click", function () { - // alert("Add Lot to be code"); - // Lots.getLots(); - // } - // ); - $('panel-charge-nouveau').removeClassName("hidden"); - //$('group-charge-selection').addClassName("hidden"); - $('panel-charge-selection').addClassName("hidden"); - $('panel-charge-attribuer').addClassName("hidden"); - }); - -Event.observe($("btParamPosteChargeAttribute"),"click", function () { - LotsCharge.show(); - LotsCharge.getKeysCharge(); - LotsCharge.getLotsTantieme($('lot_charge_sel').value); - $("panel-charge-nouveau").addClassName("hidden"); -}); -Event.observe($("btParamPosteChargeRemove"),"click", function () { - LotsCharge.show(); - LotsCharge.getKeysCharge(); - LotsCharge.getLotsTantieme($('lot_charge_sel').value); - $("panel-charge-nouveau").addClassName("hidden"); - $('panel-charge-attribuer').addClassName("hidden"); -}); - diff --git a/app/compta/parametre.js b/app/compta/parametre.js deleted file mode 100644 index 2367d12..0000000 --- a/app/compta/parametre.js +++ /dev/null @@ -1,188 +0,0 @@ - -AEBW.declare("DlgParameter",AEBW.control.dialogbox ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - this.Url = function() {return jurl;}; - this.Current = 0; - }, - getAccountInfo: function () { - var params= { - identity : "" - }; - var obj = this; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('pcmn','getAccountInfo',params, - function(response) {obj.ongetAccountInfo(response);}, - function() { alert("Failed getAccountInfo");} - ); - }, - ongetAccountInfo: function(response) { - var result = response.result; - //alert("Ok, got Answer :"+result); - $('addr').value = result.addr; - $('act').value = result.act; - $('ville').value = result.ville; - $('cp').value = result.cp; - }, - getDossiers : function() { - var params= { - identity : "" - }; - var obj = this; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('ident','getApplicationDbs',params, - function(response) {obj.ongetDossiers(response);}, - function() { alert("Failed getDossiers");} - ); - }, - ongetDossiers : function(response) { - var res = response.result; - var sum ="
    "; - try { - for (var i = 0 ; i < res.length ; i++) { - var row = res[i]; - // if (this.Current ==0 ) this.Current = row[0]; - if (this.Current == row[0]) { - sum += "
  • En cours d'utilisation "+row[1]+" voir ("; - sum += "detail)"; - sum +="
  • "; - } else { - sum += "
  • "+row[1]+""; - sum +="
  • "; - } - } - sum+="
"; - $('parameters-list').innerHTML = sum; - } catch (e) { - alert("Failed"+e.message); - } - }, - - switchDossier: function(dossier) { - var params= { - "org" : dossier - }; - var obj = this; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('ident','switchOrg',params, - function(response) {obj.onswitchDossier(response);}, - function() { alert("Failed getDossiers");} - ); - }, - onswitchDossier: function(response) { - this.Current = response.result[0]; - $('gestion-compta').innerHTML = response.result[1]; - this.getDossiers(); - }, - getCurrentOrg : function() { - var params= { - }; - var obj = this; - var url = this.Url(); - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('ident','currentOrg',params, - function(response) {obj.ongetCurrentOrg(response);}, - function() { alert("Failed getCurrentOrg");} - ); - }, - ongetCurrentOrg: function(response) { - this.Current = response.result[0]; - $('gestion-compta').innerHTML = response.result[1]; - }, - showList:function() { - this.show(); - $("parameters").addClassName("hidden"); - this.getCurrentOrg(); - this.getDossiers(); - }, - showDetail:function() { - this.show(); - $("parameters-summary").addClassName("hidden"); - this.getAccountInfo(); - }, - onShow : function () { -// if (this.Current == 0 ) this.getCurrentOrg(); - } - -}); - -AEBW.declare("DlgWizard",AEBW.control.dialogbox, { -constructor: function (div_id,uipath,jurl) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - this._wizard = null; - this.Url = function() {return jurl;}; - } , - onShow : function() { - this._wizard = new AEBW.control.Wizard('wizard',['wp1','wp2','wp3','wp4','wp6']); - AEBW.mixin(this._wizard,this); - }, - onNext : function(curr_id) { - switch(curr_id) { - case "wp1" : /*Register Organisation then Create DB then Add User in ORG */ - this.createOrg(); - break; - case "wp2" : - break; - case "wp3" : - break; - case "wp4" : - break; - } - }, - onPrev: function(curr_id) { - }, - uploadCsv: function (name, obj) { - var req = AEBW.HTTPRequest(); - try { - var data = new FormData(); - data.append(name,obj); // The file to be uploadrd and add some aditionnal attributes - req.open("POST",alias+"/app/compta/upload.php",true); - req.send(data); - } catch (e) { - alert("uploadCsv Failed:"+e.message); - } - }, - createOrg : function() { - alert("Launch create Org"); -  }, - onCreateOrg : function(response) { - } -}); - -var Params = new DlgParameter("parameter", - "./basic.php?app=compta&panel=parameter", - alias+"/app/compta/index.php"); -Params.getCurrentOrg(); -var Wizard = new DlgWizard("parameter", - "./basic.php?app=compta&panel=wizard", - alias+"/app/compta/index.php"); - - -if ($('btOrgList') != null) { -Event.observe($("btOrgList"),"click", function () { - Params.showList(); - }); - -} - -var myWizard = null; - -Event.observe($("btOrgNew"),"click", function () { - Wizard.show(); - }); - - - -/* -*/ -setTimeout(function() { - Params.showList(); - if ($("btNewIdentity") != null) - Event.observe($("btNewIdentity"),"click", function () {alert("to be coded 2");}); - -},2000); diff --git a/app/compta/parametre.xml b/app/compta/parametre.xml deleted file mode 100644 index f79e69d..0000000 --- a/app/compta/parametre.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Exercice Managment - - - - - - -

Information Générales

- - Idendité - -
-
-
- -
- -
- -
-
- -
- - - - - - - - Devises - -
- - - - - -
- -
-
-
- - Copropriété Lots - -
- -
-
-
- - - -

Les organisations dont vous faites partie

-
-
- - diff --git a/app/compta/pcmn.js b/app/compta/pcmn.js deleted file mode 100644 index 390889d..0000000 --- a/app/compta/pcmn.js +++ /dev/null @@ -1,321 +0,0 @@ -/** - * Here goes all the code that will control the - * view. - * - Creation of the social reason, - * - Creation, update of the Plan Comptable - * - Creation of Journals, - * - - */ -AEBW.require('xgui_dialogbox'); -AEBW.require('xgui_json'); -AEBW.declare("Compta.pcmn",AEBW.Json, { - constructor: function(url) { - this.url = url; - var myPcmn = new AEBW.control.table('pcmn'); - var myBilan = new AEBW.control.table('bilan'); - this.myPcmn = function () {return myPcmn;}; - this.TableBilan = function() { return myBilan; }; - - }, - getPcmn: function() { - }, - addAccount: function() { - params = { - num : $("class").value, - libelle : $("lib").value - }; - this.handle('pcmn','addAccount',params); - }, - onaddAccount:function (response) { - var myPcmn= this.myPcmn(); - myPcmn.addRow(); - - myPcmn.getCell(myPcmn._NbRows-1,0).innerHTML = $("class").value; - myPcmn.getCell(myPcmn._NbRows-1,1).innerHTML = $("lib").value; - //myPcmn.getCell(myPcmn._NbRows-1,2).innerHTML = $("parent").value; - myPcmn.getCell(myPcmn._NbRows-1,3).innerHTML = "delete"; - /* Does not work properly when deleting rows ... - * I need another way to get the row number. */ - var de = $("pcmn_del"+myPcmn._NbRows); - Event.observe(de,"click",function() { - var id=this.id.replace(new RegExp("[a-z_]*"),""); - myPcmn.delRow(id-1); - }); - - }, - getAccount:function() { - this.handle('pcmn','getAccount',''); - }, - ongetAccount:function(response) { - alert('Yes ongetAccount'); - }, - - getAccountList:function(nm) { - var params ={ - categorie : nm, - like: "lik" - }; - this.handle('pcmn','getAccountList',params); - }, - ongetAccountList:function (response) { - //alert('Yes ongetAccountist '+response.result[0].acc_id+" sz="+response.result.length); - var tb = this.myPcmn(); - //alert('ongetAccountist Cleaning before rows: '+tb._NbRows); - this.cleanTable(tb,tb._NbRows); - // alert('ongetAccountist Cleaning After rows: '+tb._NbRows); - for(var i = 0 ; idelete"; - } - }, - cleanTable : function(tb,sz) { - //var tb = this.myPcmn(); - for (var i = 0 ; i < sz; i++) { - tb.delRow(0); - } - }, - getBilan : function (period) { - var params ={ - 'period': period - }; - this.handle('pcmn','getBilan',params); - }, - ongetBilan : function(response) { - var tb = this.TableBilan(); - this.cleanTable(tb,tb._NbRows); - for(var i = 0 ; i parseFloat(it[3])) { - row.cells[4].style.color="red"; - } else { - row.cells[4].style.color="black"; - } - } - }, - getExercices : function() { - var params ={ - }; - var obj = this; - var url = this.url; - var SupplReq = new AEBW.Json(url); - SupplReq.handlefct('syndic','getExercices',params, - function(response) {obj.ongetExercices(response);}, - function() { alert("Failed getExercices");} - ); - }, - ongetExercices : function(response) { - var ct = new Date(); - var cb = $('cbBilanExercice'); - cb.options.length = 0; - for(var i = 0; i doQueryI($q.$w); - return array('acc_id' => $num,'acc_desc' =>'Added '.$libelle); - } - /** - * - */ - function getAccount() { - return array( - 'acc_id' => '401001', - 'acc_desc' => 'test', - 'acc_type' => 'Charge', - ); - } - /** - * - */ - function deleteAccount($num,$libelle,$type) { - return array('acc_id' => $num,'acc_desc' =>'Deleted '.$libelle); - } - /** - * - */ - function getAccountInfo($identity) { - global $AppDb; - if (isset($_SESSION['compta_org'])) { - require_once(dirname(__FILE__)."/../member/class.json_db_user.php"); - $u = new JsonUser( $AppDb['host'] , $AppDb['user'], $AppDb['password'],$AppDb['name']); - $res = $u->getOrg($_SESSION["compta_org"]); - $q = $res[0]; - return array('act' => $q[0] , - 'addr' => $q[1], - 'cp' => $q[2], - 'ville' => $q[3] , - 'region' => '', - 'pays' => '', - 'siret' => '0', - 'ape' => '0', - 'actv' => 'SYNDIC 25 RUE PFEFFINFER' - ); - } else - return array('act' => 'Not Found', - 'addr' => 'Not Defined', - 'cp' => '', - 'ville' => '', - 'region' => '', - 'pays' => '', - 'siret' => '0', - 'ape' => '0', - 'actv' => '' - ); - } - function getAccountList($category) { - $q="select a.acc_id ,a.acc_name from Account as a "; - $w=" WHERE a.acc_id LIKE '".$category."%';"; - $res = $this->doQueryI($q.$w); - $ident = $res['records']; - $arr = array(); - foreach ($ident as $row) - { - array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); - } - return $arr; - } - function getBilan($period) { - $q="CALL bilan('".$period."');"; - $res = $this->doQueryI($q); - return $res['records']; - - } - /** - * - */ - function initDatabase() { - } -} - -?> diff --git a/app/compta/pcmn.xml b/app/compta/pcmn.xml deleted file mode 100644 index 8db16cb..0000000 --- a/app/compta/pcmn.xml +++ /dev/null @@ -1,395 +0,0 @@ - - - - - - Gestion comptable - - - - -

Gestion Comptable

- -
- - - - Société - - - - - Organisation - - - - - - - Exercice - - - - - - - - Lots - - - - -

-
-
- - Type de compte - - - - -

-
-
- -
- -

Information generales

- -
- -
-
-
- - - - Plan - - - - - - Type de comptes - - - - - - - - - - - - - - -

Plan comptable

- - - - - - - - - - - - - - - - - - - - - - - - -
Titre du tableau
classLibelléType
- - Actif - Passif - Produit - Charge - Banque - - - -
1Compte de testActif - -
- -

-
-
-
-
- - - Fournisseurs - - - - - Facture - - - - - - - Gestion - - - - - - - - - - - Nouvelle Facture - -
- - - - - - - - -
- -
-
-
-
-
-
-
- - - Coproprietaires - - - - - Facture - - - - - - Gestion - - - - - - - - - - Vide - - - - - - - Eglise - - - - - Membres - - - - - - - Gestion - - - - - - - -

Status

-
-
-
-
- - Bilan - - - - Exercice - - - - - - - - - - - - - -
Bilan de L'exercice
CompteLibelleDebitCreditSolde
10Immoblisation000
- End Table -
- -
-
- - Syndic - - -

Information General du syndic

-
- - General - -
- -
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - diff --git a/app/compta/reports/decompte_charge.php b/app/compta/reports/decompte_charge.php deleted file mode 100644 index 7885389..0000000 --- a/app/compta/reports/decompte_charge.php +++ /dev/null @@ -1,158 +0,0 @@ -SetFillColor(255); - $this->SetFont('Arial','',10); - $this->Cell(50,5,"SYNDIC de Copropriete Fleury & Ebersold"); - $this->Ln(); - $this->Cell(50,5,"25 Rue Pfeffinger"); - $this->Ln(); - $this->Cell(50,5,"67100 STRASBOURG"); - $this->Ln(); - $this->Cell(50,5,"Tel: 06 70 43 73 80"); - - $this->SetFont('Arial','',14); - $this->SetFillColor(200); - $this->RoundedRect(120,10,75,10,5,"1234","DF"); - $this->Text(125,17,"Decompte de Charges"); - - } - - // Better table - function ImprovedTable($header, $data) - { - $i = 0; - // Column widths - $w = array(20, 35, 70, 30,30); - // Header - for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); - $this->Ln(); - // Data - foreach($data as $row) - { - $this->Cell($w[0],6,$row[0],'LR'); - $this->Cell($w[1],6,$row[1],'LR'); - $this->Cell($w[2],6,$row[2],'LR',0,'R'); - if ($row[3] == 0.0 ) { - $this->Cell($w[3],6,'','LR',0,'R'); - } else - $this->Cell($w[3],6,number_format($row[3],2),'LR',0,'R'); - if ($row[4] == 0.0) { - $this->Cell($w[4],6,'','LR',0,'R'); - } else - $this->Cell($w[4],6,number_format($row[4],2),'LR',0,'R'); - $this->Ln(); - if ($i++ > 30) - { - $i = 0; - $this->AddPage(); - $this->Ln(); - } - } - // Closing line - $this->Cell(array_sum($w),0,'','T'); - } - // - - function Solde($period,$compte) { - $w = array(125, 30,30); - $header = array('Solde','Debit','Credit'); - $q = 'CALL solde_compte_ss_af("'.$period.'","'.$compte.'",2);'; - $this->Ln(); - // Header -// for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); -// $this->Ln(); - - $res = $this->doQueryImpr($q); - if ($res['records'] != "Failed") { - $fields = $res['records'][0]; - $this->Cell($w[0],6,'Total','LR'); - $this->Cell($w[1],6,$fields[0],'LR',0,'R'); - $this->Cell($w[2],6,$fields[1],'LR',0,'R'); - $this->Ln(); - } else { - $this->Cell($w[0],6,'Total','LR'); - $this->Cell($w[1],6,'0','LR',0,'R'); - $this->Cell($w[2],6,'0','LR',0,'R'); - $this->Ln(); - } - $this->Cell(array_sum($w),0,'','T'); - $this->Ln(); - $this->Ln(); - if ($res['records'][0][2] > 0.0) { - $this->Cell(50,5,"Votre compte presente un solde crediteur de ".$res['records'][0][2]." euros"); - } else { - $this->Cell(50,5,"Votre compte presente un solde debiteur de ".abs($res['records'][0][2])." euros"); - } - - } - - function Copro($compte) { - $x = 120; - $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; - $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; - $res = $this->doQueryImpr($q.$qj); - $ident = $res['records'][0]; - $this->Text($x,40,"".$ident[0]." ".$ident[1] ); - $this->Text($x,46,"".$ident[2]); - $this->Text($x,52,"".$ident[3]." ".$ident[4]); - $this->setY(60); - } - - function Decompte($period,$compte) { - $header = array('Date','Reference','Designation','Debit','Credit'); - $q = 'CALL detail_compte_sans_solde_ss_af("'.$period.'","'.$compte.'",2);'; - //$q = 'select * from TransactionEntry;'; - $res = $this->doQueryImpr($q); - - //echo "

".$q."

"; - //print_r($res); - $this->SetFont('Arial','',10); - $this->AddPage(); - //$this->Cell(40,10,$q." Size of records:".sizeof($res['total_matches'])); - $this->Ln(); - $this->Ln(); - $this->Copro($compte); - $this->Ln(); - $this->ImprovedTable( $header,$res['records']); - //$this->AddPage(); - $this->Solde($period,$compte); - $this->Output(); - } -} - -$ldb =""; -if (isset($_SESSION['compta_db'])) { - $ldb = $_SESSION["compta_db"] ; -} else - $ldb = 'test'; -$p = new DecompteCharge($conf['auth']['mysql']['host'], - $conf['auth']['mysql']['user'], - $conf['auth']['mysql']['password'], - $ldb); - -if (isset($_GET['compte']) && isset($_GET['period'])) { - $p->Decompte($_GET['period'],$_GET['compte']); -} else { - $p->Decompte("2013","450001"); -} - -?> - diff --git a/app/compta/reports/recu_taxe.php b/app/compta/reports/recu_taxe.php deleted file mode 100644 index ff8827a..0000000 --- a/app/compta/reports/recu_taxe.php +++ /dev/null @@ -1,195 +0,0 @@ -SetFillColor(255); - $this->SetFont('Arial','',10); - $this->Cell(50,5,"CERFA N 11580*02 "); - $this->Text(140,14," Numéro d'ordre du reçu : "); - $this->Ln(); - $this->Cell(50,5,"Assiciation TICOS"); - $this->Ln(); - $this->Cell(50,5,"16 rue St Louis ..."); - $this->Ln(); - $this->Cell(50,5,"60100 STRASBOURG"); - $this->Ln(); - $this->Ln(); - $this->Ln(); - - $this->SetFont('Arial','',14); - $this->SetFillColor(220); - $this->RoundedRect(80,20,95,20,5,"1234","DF"); - $this->Text(85,27,"Reçu au titre de dons au oeuvres"); - $this->SetFont('Arial','',10); - $this->Text(85,32,"(Article 200 et 238 bis du Code Général des impôts)"); - - } - - // Better table - function ImprovedTable($header, $data) - { - $i = 0; - // Column widths - $w = array(20, 35, 70, 30,30); - // Header - for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); - $this->Ln(); - // Data - foreach($data as $row) - { - $this->Cell($w[0],6,$row[0],'LR'); - $this->Cell($w[1],6,$row[1],'LR'); - $this->Cell($w[2],6,$row[2],'LR',0,'R'); - if ($row[3] == 0.0 ) { - $this->Cell($w[3],6,'','LR',0,'R'); - } else - $this->Cell($w[3],6,number_format($row[3],2),'LR',0,'R'); - if ($row[4] == 0.0) { - $this->Cell($w[4],6,'','LR',0,'R'); - } else - $this->Cell($w[4],6,number_format($row[4],2),'LR',0,'R'); - $this->Ln(); - if ($i++ > 30) - { - $i = 0; - $this->AddPage(); - $this->Ln(); - } - } - // Closing line - $this->Cell(array_sum($w),0,'','T'); - } - // - - function Solde($period,$compte) { - $w = array(125, 30,30); - $header = array('Solde','Debit','Credit'); - $q = 'CALL solde_compte("'.$period.'","'.$compte.'");'; - $this->Ln(); - - $res = $this->doQueryImpr($q); - $this->Cell(array_sum($w),0,'','T'); - $this->Ln(); - $this->Ln(); - $c = new chiffreEnLettre(); - - $v = $res['records'][0][2]; - $this->Cell(10,5,"Le bénéficiaire reconnait avoir reçu au titre des dons et versements ouvrant droit à réduction d'impôt,"); - $this->Ln(); - $this->Cell(10,5,"la somme de :".$res['records'][0][2]." euros"); - $this->Ln(); - $this->Cell(50,5,"Somme en toutes lettres: ".$c->ConvNumberLetter($v,1,0)); - $this->Ln(); - $this->Cell(10,6,"Date du versement :"); - $this->Ln(); - $this->Cell(10,6,"Mode du versement :"); - - } - function Beneficiaire($compte) { - $x = 10; - $this->SetFont('Arial','',12); - $this->Cell(10,6,"Bénéficiaire des dons"); - $this->SetFont('Arial','',10); - $this->Ln(); - $this->Ln(); - $y = $this->getY(); - $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; - $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; - $res = $this->doQueryImpr($q.$qj); - $ident = $res['records'][0]; - $this->Text($x,$y ,"Nom : "); - $this->Text($x+25,$y,"".$ident[0]." ".$ident[1] ); - $this->Text($x,$y+6 ,"Adresse : "); - $this->Text($x+25,$y+6,"".$ident[2]); - $this->Text($x,$y +12,"Code Postal : "); - $this->Text($x+25,$y +12,"".$ident[3]." ".$ident[4]); - $this->setY($y+18); - } - - - function Donateur($compte) { - $x = 10; - $this->SetFont('Arial','',12); - $this->Cell(10,6,"Donateur"); - $this->SetFont('Arial','',10); - $this->Ln(); - $this->Ln(); - $y = $this->getY(); - $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; - $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; - $res = $this->doQueryImpr($q.$qj); - $ident = $res['records'][0]; - $this->Text($x,$y ,"Nom : "); - $this->Text($x+25,$y,"".$ident[0]." ".$ident[1] ); - $this->Text($x,$y+6 ,"Adresse : "); - $this->Text($x+25,$y+6,"".$ident[2]); - $this->Text($x,$y +12,"Code Postal : "); - $this->Text($x+25,$y +12,"".$ident[3]." ".$ident[4]); - $this->setY($y+18); - } - - - function Copro($compte) { - $x = 120; - $y = 60; - $q = 'select ident_name,ident_firstname,ident_address,ident_postalcode,ident_city from Identity as i '; - $qj= 'JOIN JoinIdentityAccount as j on j.jia_ident = i.ident_id and j.jia_acc ='.$compte.';'; - $res = $this->doQueryImpr($q.$qj); - $ident = $res['records'][0]; - $this->Text($x,$y,"".$ident[0]." ".$ident[1] ); - $this->Text($x,$y+6,"".$ident[2]); - $this->Text($x,$y +12,"".$ident[3]." ".$ident[4]); - $this->setY($y+18); - } - - function Decompte($period,$compte) { - $header = array('Date','Reference','Designation','Debit','Credit'); - $q = 'CALL detail_compte_sans_solde("'.$period.'","'.$compte.'");'; - //$q = 'select * from TransactionEntry;'; - $res = $this->doQueryImpr($q); - - //echo "

".$q."

"; - //print_r($res); - $this->SetFont('Arial','',10); - $this->AddPage(); - //$this->Cell(40,10,$q." Size of records:".sizeof($res['total_matches'])); - $this->Ln(); - $this->Ln(); - $this->Copro($compte); - $this->Ln(); - $this->Beneficiaire($compte); - $this->Donateur($compte); - //$this->ImprovedTable( $header,$res['records']); - //$this->AddPage(); - $this->Solde($period,$compte); - $this->Output(); - } -} - -//$p = new DecompteCharge('localhost','root','admin','test'); -$p = new DecompteCharge($conf['auth']['mysql']['host'],$conf['auth']['mysql']['user'],$conf['auth']['mysql']['password'],'test'); - -if (isset($_GET['compte']) && isset($_GET['period'])) { - $p->Decompte($_GET['period'],$_GET['compte']); -} else { - $p->Decompte("2013","450001"); -} - -?> - diff --git a/app/compta/reports/syndic_annexe1.php b/app/compta/reports/syndic_annexe1.php deleted file mode 100644 index eb0e821..0000000 --- a/app/compta/reports/syndic_annexe1.php +++ /dev/null @@ -1,689 +0,0 @@ -pdf = new TCPDF('L',PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); - $this->period = date("Y"); - } - function __destruct() { - } - - function getAccountList($category) { - $q="select a.acc_id ,a.acc_name from Account as a "; - $w=" WHERE a.acc_id LIKE '".$category."%' and not a.acc_id='450000';"; - $res = $this->doQueryI($q.$w); - $ident = $res['records']; - $arr = array(); - foreach ($ident as $row) - { - array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); - } - return $arr; - } - function getAccountListWhere($where) { - $q="select a.acc_id ,a.acc_name from Account as a "; - $w=" WHERE ".$where.";"; - $res = $this->doQueryI($q.$w); - $ident = $res['records']; - $arr = array(); - foreach ($ident as $row) - { - array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); - } - return $arr; - } - - function fillTresorerie($period,&$total) - { - $cpts = array('50','51','53'); - // Retrieve banque accounts - $result = array(); - foreach($cpts as $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; - $res = $this->doQueryI($q); - $result[$compte] = $res['records'][0][2]; - $total += ($result[$compte]*-1); - } - $str = ($result['50'])."

".number_format(($result['51']*-1),2)."


".$result['53']; - return $str; - // Retrieve Caisse - // - } - function fillProvision($period) { - $cpts = array('102','103','1031','1032','1033','131','12'); - $result = array(); - foreach($cpts as $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; - $res = $this->doQueryI($q); - $result[$compte] = $res['records'][0][2]; - } - $str = $result['102']."
".$result['103']."
".$result['1031']."
".$result['1032']."
".$result['1033']."
"; - $str= $str.$result['131']."
".$result[12]; - return $str; - - } - function fillCopro(&$copro,$period,$key) { - foreach($copro as $k => $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; - $res = $this->doQueryI($q); - $copro[$k][$key] = $res['records'][0][2]; - } - } - function fillTier(&$cpts,$period,$key) { - foreach($cpts as $k => $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$k."%\"');"; - $res = $this->doQueryI($q); - $cpts[$k][$key] = $res['records'][0][2]; - } - } - function fillAccounts(&$cpts,$period,$key) { - foreach($cpts as $k => $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; - $res = $this->doQueryI($q); - $cpts[$k][$key] = $res['records'][0][2]; - $cpts[$k][$key."_debit"] = $res['records'][0][0]; - $cpts[$k][$key."_credit"] = $res['records'][0][1]; - } - } - - function tableau() { - $tiers = array("40" => array('acc_id' => 40), - '42' => array('acc_id' => 42), - '43' => array('acc_id' => 43), - '44' => array('acc_id' => 44), - '46' => array('acc_id' => 46), - '47' => array('acc_id' => 47), - '48' => array('acc_id' => 48), - '49' => array('acc_id' => 49) - ); - $pdf = $this->pdf; - $total_tresorerie = 0.0; - $total_tresorerie_clos = 0.0; - $tresorerie = $this->fillTresorerie($this->period-1,$total_tresorerie); - $tresorerie_clos = $this->fillTresorerie($this->period,$total_tresorerie_clos ); - $prov = $this->fillProvision($this->period-1); - $prov_clos = $this->fillProvision($this->period); - $copro = $this->getAccountList("45"); - $this->fillCopro($copro,$this->period-1,"solde"); - $this->fillCopro($copro,$this->period,"solde_clos"); - $this->fillTier($tiers,$this->period-1,"solde"); - $this->fillTier($tiers,$this->period,"solde_clos"); - $copro_str = ""; - $copro_creance = ""; - $copro_dette = ""; - $copro_creance_clos = ""; - $copro_dette_clos = ""; - $tiers_creance =""; - $tiers_creance_clos =""; - $tiers_dette =""; - $tiers_dette_clos =""; - $total_creance = 0.0; - $total_creance_clos = 0.0; - $total_dette =0.0; - $total_dette_clos =0.0; - foreach($copro as $item) { - $copro_str = $copro_str.$item['acc_id']." ".$item['acc_desc']."
"; - if ($item['solde'] > 0 ) { - $copro_creance = $copro_creance."0.0"."
"; - $copro_dette = $copro_dette.number_format($item['solde'],2)."
"; - $total_dette += $item['solde']; - } else { - $copro_creance = $copro_creance.number_format($item['solde']*-1,2)."
"; - $total_creance += $item['solde']*-1; - $copro_dette = $copro_dette."0.0"."
"; - } - if ($item['solde_clos'] > 0 ) { - $copro_creance_clos = $copro_creance_clos."0.0"."
"; - $copro_dette_clos = $copro_dette_clos.number_format($item['solde_clos'],2)."
"; - $total_dette_clos += $item['solde_clos']; - } else { - $copro_creance_clos = $copro_creance_clos.number_format($item['solde_clos']*-1,2)."
"; - $total_creance_clos += $item['solde_clos']*-1; - $copro_dette_clos = $copro_dette_clos."0.0"."
"; - } - - } - // Fill Comtpes de tiers - foreach ($tiers as $k => $compte) { - if ($compte['solde'] > 0.0 ) { - $tiers[$k]['solde_str'] = $compte["solde"]; - $total_dette += $compte['solde']; - } else { - $tiers[$k]['solde_str'] = "0.0"; - $total_creance += $compte['solde']*-1; - } - } - foreach ($tiers as $k => $compte) { - if ($compte['solde_clos'] > 0.0 ) { - $tiers[$k]['dette_clos_str'] = $compte["solde_clos"]; - $tiers[$k]['creance_clos_str'] = "0.0"; - $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; - $total_dette_clos += $compte['solde_clos']; - } else { - $tiers[$k]['dette_clos_str'] = "0.0"; - $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; - $total_creance_clos += $compte['solde_clos']*-1; - } - } - $total_g_creance = $total_creance + $total_tresorerie; - $total_g_creance_clos = $total_creance_clos + $total_tresorerie_clos; - $tbl = << - I- SITUATION FINANCIERE ET TRESORERIE -  
Trésorerie
- 50 Fonds placés
-
- 51 Banques ou fonds disponibles en banque
-
-
- 53 Caisse
-
- - Exercice prédédent approuvé - Exercice Clos -  
Provisions et avances
- 102 Provisions pour travaux
- 103 Avances
- 1031 Avances de trésorerie
- 1032 Avances travaux
- 1033 Autres avances
- 131 Subventions et instance d'affectation
- 12 Solde en attente sur travaux ou opérations exceptionnel -
- - Exercice prédédent approuvé - Exercice Clos - -  
- $tresorerie - - -  
- $tresorerie_clos - -  
- $prov
-
- -  
- $prov_clos
-
- Trésorerie disponible total{$total_tresorerie}{$total_tresorerie_clos}Total - II - CREANCESDETTES - -  
- - 45 Coproriétaires - sommes exigibles restant à recevoir
- $copro_str -
- Comptes de Tiers
- 42 Autres créances
- 43 Autres créances
- 44 Autres créances
- 46 Débiteurs divers
- 47 Comptes d'attente
- 48 Comptes de régularisation
-
- - Exercice prédédent approuvé - Exercice Clos -  
- - 45 Copropriétaires - excédents versés
- $copro_str -
- Comptes de Tiers
- 40 fournisseurs
- 42 Autres dettes
- 43 Autres dettes
- 44 Autres dettes
- 46 Créditeurs divers
- 47 Compte d'attentes
- 48 Comptes de régularisation
- 49 Dépréciation des comptes de tiers
-
- - Exercice prédédent approuvé - Exercice Clos - - - - - -
- $copro_creance -

- {$tiers[42]["solde_str"]}
- {$tiers[43]["solde_str"]}
- {$tiers[44]["solde_str"]}
- {$tiers[46]["solde_str"]}
- {$tiers[47]["solde_str"]}
- {$tiers[48]["solde_str"]}
-
- -
- $copro_creance_clos -

- {$tiers[42]["creance_clos_str"]}
- {$tiers[43]["creance_clos_str"]}
- {$tiers[44]["creance_clos_str"]}
- {$tiers[46]["creance_clos_str"]}
- {$tiers[47]["creance_clos_str"]}
- {$tiers[48]["creance_clos_str"]}
-
- -
- $copro_dette -

- {$tiers[40]["solde_str"]}
- {$tiers[42]["solde_str"]}
- {$tiers[43]["solde_str"]}
- {$tiers[44]["solde_str"]}
- {$tiers[46]["solde_str"]}
- {$tiers[47]["solde_str"]}
- {$tiers[48]["solde_str"]}
- {$tiers[49]["solde_str"]}
- -
- -
- $copro_dette_clos -

- {$tiers[40]["dette_clos_str"]}
- {$tiers[42]["dette_clos_str"]}
- {$tiers[43]["dette_clos_str"]}
- {$tiers[44]["dette_clos_str"]}
- {$tiers[46]["dette_clos_str"]}
- {$tiers[47]["dette_clos_str"]}
- {$tiers[48]["dette_clos_str"]}
- {$tiers[49]["dette_clos_str"]}
-
- Total II{$total_creance}{$total_creance_clos}Total II - {$total_dette}{$total_dette_clos} - Total général (I) + (II) - {$total_g_creance}{$total_g_creance_clos}Total général (I) + (II)0.00.0 - Emprunt: montant restant du - -EOF; - $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $tbl, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); - } - - function annexe2() { - $width = 160; - $pdf = $this->pdf; - $charge_str =""; - $charge_exercice_str = ""; - $charge_exercice_clos_str = ""; - - $chgr_str =""; - $prod_str =""; - $prod_exercice_str = ""; - $prod_exercice_clos_str = ""; - $st = array(); - $charge = $this->getAccountListWhere("a.acc_id like '60%' or a.acc_id like '61%' or a.acc_id like '62%' or a.acc_id like '63%'" ); - $this->fillAccounts($charge,$this->period-1,"solde"); - $this->fillAccounts($charge,$this->period,"solde_clos"); - // Handler charges - foreach( $charge as $k => $cpt) { - $charge_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,32)."
"; - $charge_exercice_str .= number_format($cpt["solde_debit"],2)."
"; - $st['charge'] += $cpt["solde_debit"]; - $charge_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; - $st['charge_clos'] += $cpt["solde_clos_debit"]; - } - // Handle Charge exceptionnel - $chrg_exp = $this->getAccountListWhere("a.acc_id REGEXP '(661.*|671.*|672.*)'"); - $this->fillAccounts($chrg_exp,$this->period-1,"solde"); - $this->fillAccounts($chrg_exp,$this->period,"solde_clos"); - foreach( $chrg_exp as $k => $cpt) { - $chrg_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,31)."
"; - $chrg_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; - //$st['charge'] += $cpt["solde_debit"]; - $charge_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; - //$st['charge_clos'] += $cpt["solde_clos_debit"]; - } - - // Handler produit - $prod = $this->getAccountListWhere("a.acc_id REGEXP '(^701.*|^71.*)'"); - $this->fillAccounts($prod,$this->period-1,"solde"); - $this->fillAccounts($prod,$this->period,"solde_clos"); - foreach( $prod as $k => $cpt) { - $prod_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,32)."
"; - $prod_exercice_str .= number_format($cpt["solde_debit"],2)."
"; - $prod_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; - } - - // Handle produit exceptionnel - $prod_exp = $this->getAccountListWhere("a.acc_id REGEXP '(^70[234].*|^71[123468].*|^78.*)'"); - $this->fillAccounts($prod_exp,$this->period-1,"solde"); - $this->fillAccounts($prod_exp,$this->period,"solde_clos"); - foreach( $prod_exp as $k => $cpt) { - $prod_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,32)."
"; - $prod_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; - $prod_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; - } -$html =<<Comptes de gestion général de l'exercice clos réalisé (N) du .... au .... -

et budget prévisionnel de l'exercice (N+2) du .... au ....

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CHARGES POUR OPERATIONS COURANTESPRODUITS POUR OPERATIONS COURANTES
Pour Approbation des comptesPour le vote du budget prévisonnelPour Approbation des comptesPour le vote du budget prévisonnel
Exercice précédent
approuvé
N-1
Exercice clos
Budge voté
N
Exercice Clos réalisé
à approuver
N
Budget prévisionnel
en cours voté
N+1
Budget prévisonneel
à voter
N+2
Exercice
Precedent
N-1
Exercice
clos budge
N
Exercice clos
réaliser à
N
Budget
Prévisionnel en
N+1
Budget prévisionnel
à voter
N+2

- 60 Achats de matières et fournitures
- {$charge_str} -
-

-
- {$charge_exercice_str} -

-
-

-
- {$charge_exercice_clos_str} -
- -
- {$prod_str} -

- {$prod_exercice_str} -
-
- {$prod_exercice_clos_str} -
- -
Sous-total - - - {$st['charge']} - - - {$st['charge_clos']} - Sous-total
Solde(excèdent s opérations courantes affecté au - coprorpiétaires) - - - N/C - - N/CN/CSolde(insuffisance s/opérations courantes affectée aux corpropriétaires)N/CN/CN/C
Total I - - - - - Total I
- CHARGES POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES - - - - PRODUITS POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES -

- {$chrg_exp_str} -
-

-

-

-

- {$prod_exp_str}

- {$prod_exp_exercice_clos_str} -
Solde(excédent) - - - - - Solde(insuffisant)
Total II - - - - - Total II
- -EOF; - $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); - } - /** - * - */ - function test() { - $pdf = $this->pdf; - $pdf->SetCreator(PDF_CREATOR); - $pdf->SetAuthor('EBERSOLD André'); - $pdf->SetTitle('ANNEXE N 1'); - $pdf->SetSubject('Etat Financier après répartition au'); - $pdf->SetKeywords('TCPDF, PDF, example, test, guide'); - - // set default header data - $h = "SYNDIC 25 RUE PFEFFINGER \n67100 STRASBOURG"; - $pdf->SetHeaderData(/*PDF_HEADER_LOGO*/"", 0, 'SYNDICAT DES COPRORPIETAIRES ANNEXE 1', $h, array(0,64,255), array(0,64,128)); - $pdf->setFooterData($tc=array(0,64,0), $lc=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 - //$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(); -$html = <<Etat financier après répartition au (date de clôture de l'exercice) -EOD; - $pdf->setHeaderTemplateAutoreset(true); -// Print text using writeHTMLCell() - $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); - $pdf->SetFont('dejavusans', '', 8, '', true); - $this->tableau() ; - $pdf->SetHeaderData(/*PDF_HEADER_LOGO*/"", 0, 'SYNDICAT DES COPRORPIETAIRES ANNEXE 2', $h, array(0,64,255), array(0,64,128)); - $pdf->AddPage(); - $this->annexe2() ; - } - - function Output($fn,$m) { - $this->pdf->Output($fn,$m); - } -} -/** - * For test purpose - */ -$ldb =""; -if (isset($_SESSION['compta_db'])) { - $ldb = $_SESSION["compta_db"] ; -} else - $ldb = 'test'; -$t = new annexe1($conf['auth']['mysql']['host'], - $conf['auth']['mysql']['user'], - $conf['auth']['mysql']['password'], - $ldb); - -$t->test(); -$t->Output('annexe1.pdf', 'I'); - -/** - vim:et:sw=2:ts=2:fileencoding=utf-8 -*/ -?> diff --git a/app/compta/reports/syndic_annexes.php b/app/compta/reports/syndic_annexes.php deleted file mode 100644 index c0e65e6..0000000 --- a/app/compta/reports/syndic_annexes.php +++ /dev/null @@ -1,1124 +0,0 @@ -pdf = new TCPDF('P',PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); - $this->period = date("Y"); - } - function __destruct() { - } - - function getPeriod($per) { - $q = "SELECT per_begin,per_end FROM Period where per_string ='".$per."';"; - $r = $this->doQueryI($q.$w); - $this->per_begin = $r['records'][0][0]; - $this->per_end = $r['records'][0][1]; - } - - function getAccountList($category) { - $q="select a.acc_id ,a.acc_name from Account as a "; - $w=" WHERE a.acc_id LIKE '".$category."%' and not a.acc_id='450000';"; - $res = $this->doQueryI($q.$w); - $ident = $res['records']; - $arr = array(); - foreach ($ident as $row) - { - array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); - } - return $arr; - } - function getAccountListWhere($where) { - $q="select a.acc_id ,a.acc_name from Account as a "; - $w=" WHERE ".$where.";"; - $res = $this->doQueryI($q.$w); - $ident = $res['records']; - $arr = array(); - foreach ($ident as $row) - { - array_push($arr,array('acc_id' => $row[0], 'acc_desc' => $row[1])); - } - return $arr; - } - function getBudgetListWhere($anne,$where) { - $q=<<doQueryI($q); - - return $res['records']; - } - - function fillTresorerie($period,&$total) - { - $cpts = array('50','51','53'); - // Retrieve banque accounts - $result = array(); - foreach($cpts as $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; - $res = $this->doQueryI($q); - $result[$compte] = $res['records'][0][2]; - $total += ($result[$compte]*-1); - } - $str = ($result['50'])."

".number_format(($result['51']*-1),2)."


".$result['53']; - return $str; - // Retrieve Caisse - // - } - function fillProvision($period) { - $cpts = array('102','103','1031','1032','1033','131','12'); - $result = array(); - foreach($cpts as $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte."%\"');"; - $res = $this->doQueryI($q); - $result[$compte] = $res['records'][0][2]; - } - $str = $result['102']."
".$result['103']."
".$result['1031']."
".$result['1032']."
".$result['1033']."
"; - $str= $str.$result['131']."
".$result[12]; - return $str; - - } - function fillCopro(&$copro,$period,$key) { - foreach($copro as $k => $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; - $res = $this->doQueryI($q); - $copro[$k][$key] = $res['records'][0][2]; - } - } - function fillTier(&$cpts,$period,$key) { - foreach($cpts as $k => $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$k."%\"');"; - $res = $this->doQueryI($q); - $cpts[$k][$key] = $res['records'][0][2]; - } - } - function fillAccounts(&$cpts,$period,$key) { - foreach($cpts as $k => $compte) { - $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; - $res = $this->doQueryI($q); - $cpts[$k][$key] = $res['records'][0][2]; - $cpts[$k][$key."_debit"] = $res['records'][0][0]; - $cpts[$k][$key."_credit"] = $res['records'][0][1]; - } - } - function fillAccountsWhere (&$cpts,$period,$where,$res_key) { - $q =<<doQueryI($q); - foreach ($res['records'] as $line) { - $cpts[$line[0]][$res_key] = $line[2]; - $cpts[$line[0]]['name'] = $line[1]; - $cpts[$line[0]][$period]['name'] = $line[1]; - $cpts[$line[0]][$period]['pc'] = $line[3]; - $cpts[$line[0]][$period.$line[3].$res_key] = $line[2]; - } - //WHERE a.acc_id REGEXP '(^6.*)' - } - function fillBudget(&$cpts,$period,$key) { - foreach($cpts as $k => $compte) { - // $q = "call solde_compte_where('".$period."','t.acc_id like \"".$compte['acc_id']."%\"');"; - $q=<<doQueryI($q); - $cpts[$k][$key] = $res['records'][0][0]; - } - } - function fillBudgetListWhere(&$cpts,$period,$where,$key) { - $q=<<doQueryI($q); - - foreach ($res['records'] as $b) { - $acc = $b[0]; - $e = $period.$b[3].$key; - error_log("SET: ".$b[0]." ".$period.$b[3].$key." =".$b[2]); - $cpts[$acc][$e] = $b[2]; - $cpts[$acc][$period][$key.'_pc'] = $b[3]; - // $cpts["".$b[0]][$period][$b[3]][$key] = $b[2]; - } - - } - - function annexe1() { - $width = 420; - $tiers = array("40" => array('acc_id' => 40), - '42' => array('acc_id' => 42), - '43' => array('acc_id' => 43), - '44' => array('acc_id' => 44), - '46' => array('acc_id' => 46), - '47' => array('acc_id' => 47), - '48' => array('acc_id' => 48), - '49' => array('acc_id' => 49) - ); - $pdf = $this->pdf; - $total_tresorerie = 0.0; - $total_tresorerie_clos = 0.0; - $tresorerie = $this->fillTresorerie($this->period-1,$total_tresorerie); - $tresorerie_clos = $this->fillTresorerie($this->period,$total_tresorerie_clos ); - $prov = $this->fillProvision($this->period-1); - $prov_clos = $this->fillProvision($this->period); - $copro = $this->getAccountList("45"); - $this->fillCopro($copro,$this->period-1,"solde"); - $this->fillCopro($copro,$this->period,"solde_clos"); - $this->fillTier($tiers,$this->period-1,"solde"); - $this->fillTier($tiers,$this->period,"solde_clos"); - $copro_str = ""; - $copro_creance = ""; - $copro_dette = ""; - $copro_creance_clos = ""; - $copro_dette_clos = ""; - $tiers_creance =""; - $tiers_creance_clos =""; - $tiers_dette =""; - $tiers_dette_clos =""; - $total_creance = 0.0; - $total_creance_clos = 0.0; - $total_dette =0.0; - $total_dette_clos =0.0; - foreach($copro as $item) { - $copro_str = $copro_str.$item['acc_id']." ".$item['acc_desc']."
"; - if ($item['solde'] > 0 ) { - $copro_creance = $copro_creance."0.0"."
"; - $copro_dette = $copro_dette.number_format($item['solde'],2)."
"; - $total_dette += $item['solde']; - } else { - $copro_creance = $copro_creance.number_format($item['solde']*-1,2)."
"; - $total_creance += $item['solde']*-1; - $copro_dette = $copro_dette."0.0"."
"; - } - if ($item['solde_clos'] > 0 ) { - $copro_creance_clos = $copro_creance_clos."0.0"."
"; - $copro_dette_clos = $copro_dette_clos.number_format($item['solde_clos'],2)."
"; - $total_dette_clos += $item['solde_clos']; - } else { - $copro_creance_clos = $copro_creance_clos.number_format($item['solde_clos']*-1,2)."
"; - $total_creance_clos += $item['solde_clos']*-1; - $copro_dette_clos = $copro_dette_clos."0.0"."
"; - } - - } - // Fill Comtpes de tiers - foreach ($tiers as $k => $compte) { - if ($compte['solde'] > 0.0 ) { - $tiers[$k]['solde_str'] = $compte["solde"]; - $total_dette += $compte['solde']; - } else { - $tiers[$k]['solde_str'] = "0.0"; - $total_creance += $compte['solde']*-1; - } - } - foreach ($tiers as $k => $compte) { - if ($compte['solde_clos'] > 0.0 ) { - $tiers[$k]['dette_clos_str'] = $compte["solde_clos"]; - $tiers[$k]['creance_clos_str'] = "0.0"; - $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; - $total_dette_clos += $compte['solde_clos']; - } else { - $tiers[$k]['dette_clos_str'] = "0.0"; - $tiers[$k]['creance_clos_str'] = $compte["solde_clos"]; - $total_creance_clos += $compte['solde_clos']*-1; - } - } - $total_g_creance = $total_creance + $total_tresorerie; - $total_g_creance_clos = $total_creance_clos + $total_tresorerie_clos; - $tbl = << - I- SITUATION FINANCIERE ET TRESORERIE -  
Trésorerie
- 50 Fonds places
-
- 51 Banques ou fonds disponibles en banque
-
-
- 53 Caisse
-

- - Exercice précédent approuvé - Exercice Clos - -  
- $tresorerie -
-
-
-
- - -  
- $tresorerie_clos -
-
-
-
- - - Trésorerie disponible total{$total_tresorerie}{$total_tresorerie_clos} - -  
Provisions et avances
- 102 Provisions pour travaux
- 103 Avances
- 1031 Avances de trésorerie
- 1032 Avances travaux
- 1033 Autres avances
- 131 Subventions et instance d'affectation
- 12 Solde en attente sur travaux ou opérations exceptionnel -
- - Exercice précédent approuvé - Exercice Clos - -   -
- {$prov}
-
- -   -
- {$prov_clos}
-
- - - Total II - II - CREANCES -  
- - 45 Copropriétaires - sommes exigibles restant percevoir
- $copro_str -
- Comptes de Tiers
- 42 Autres créances
- 43 Autres créances
- 44 Autres créances
- 46 Dbiteurs divers
- 47 Comptes d'attente
- 48 Comptes de régularisation
-
- - Exercice précédent approuvé - Exercice Clos - - - - -
- $copro_creance -

- {$tiers[42]["solde_str"]}
- {$tiers[43]["solde_str"]}
- {$tiers[44]["solde_str"]}
- {$tiers[46]["solde_str"]}
- {$tiers[47]["solde_str"]}
- {$tiers[48]["solde_str"]}
-
- - -
- $copro_creance_clos -

- {$tiers[42]["creance_clos_str"]}
- {$tiers[43]["creance_clos_str"]}
- {$tiers[44]["creance_clos_str"]}
- {$tiers[46]["creance_clos_str"]}
- {$tiers[47]["creance_clos_str"]}
- {$tiers[48]["creance_clos_str"]}
-
- - Total III{$total_creance}{$total_creance_clos} - - - - - DETTES - - -  
- - 45 Copropriétaires - éxcédents versés
- $copro_str -
- Comptes de Tiers
- 40 fournisseurs
- 42 Autres dettes
- 43 Autres dettes
- 44 Autres dettes
- 46 Créditeurs divers
- 47 Compte d'attentes
- 48 Comptes de régularisation
- 49 Dépréciation des comptes de tiers
-
- - Exercice précédent approuvé - Exercice Clos - - - -
- $copro_dette -

- {$tiers[40]["solde_str"]}
- {$tiers[42]["solde_str"]}
- {$tiers[43]["solde_str"]}
- {$tiers[44]["solde_str"]}
- {$tiers[46]["solde_str"]}
- {$tiers[47]["solde_str"]}
- {$tiers[48]["solde_str"]}
- {$tiers[49]["solde_str"]}
- -
- -
- $copro_dette_clos -

- {$tiers[40]["dette_clos_str"]}
- {$tiers[42]["dette_clos_str"]}
- {$tiers[43]["dette_clos_str"]}
- {$tiers[44]["dette_clos_str"]}
- {$tiers[46]["dette_clos_str"]}
- {$tiers[47]["dette_clos_str"]}
- {$tiers[48]["dette_clos_str"]}
- {$tiers[49]["dette_clos_str"]}
-
- - - Total IV - {$total_dette}{$total_dette_clos} - - Total général (I) + (III) - {$total_g_creance}{$total_g_creance_clos} - Total général (II) + (IV)0.00.0 - - Emprunt: montant restant du - -EOF; - $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $tbl, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); - } - - function annexe2() { - $sl = 60; - $width = 320; - $pdf = $this->pdf; - $charge_str =""; - $charge_exercice_str = ""; - $charge_exercice_clos_str = ""; - - $chgr_str =""; - $prod_str =""; - $prod_exercice_str = ""; - $prod_exercice_clos_str = ""; - $st = array('charge' => 0.0 , 'charge_clos' => 0.0, - 'chrg_exp' => 0.0 , 'chrg_exp_clos' => 0.0 ,'chrg_exp_budget' => 0.0, - 'poc' => 0.0 , 'poc_clos' => 0.0 , 'poc_budget' => 0.0 ,'poc_budget_n1' => 0.0 , 'poc_budget_n2' => 0.0 - ); - $charge = $this->getAccountListWhere("a.acc_id like '60%' or a.acc_id like '61%' or a.acc_id like '62%' or a.acc_id like '63%'" ); - $this->fillAccounts($charge,$this->period-1,"solde"); - $this->fillAccounts($charge,$this->period,"solde_clos"); - // Handler charges - foreach( $charge as $k => $cpt) { - $charge_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; - $charge_exercice_str .= number_format($cpt["solde_debit"],2)."
"; - $st['charge'] += $cpt["solde_debit"]; - $charge_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; - $st['charge_clos'] += $cpt["solde_clos_debit"]; - } - // Handle Charge exceptionnel - $chrg_exp = $this->getAccountListWhere("a.acc_id REGEXP '(^661.*|^671.*|^673.*|^672.*|^677.*|^68.*)'"); - $this->fillAccounts($chrg_exp,$this->period-1,"solde"); - $this->fillAccounts($chrg_exp,$this->period,"solde_clos"); - $this->fillBudget($chrg_exp,$this->period,"budget"); - $chrg_exp_str =""; - $chrg_exp_exercice_str =""; - $chrg_exp_exercice_clos_str =""; - $chrg_exp_exercice_budget =""; - foreach( $chrg_exp as $k => $cpt) { - $chrg_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; - $chrg_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; - $chrg_exp_exercice_budget .= number_format($cpt["budget"],2)."
"; - $st['chrg_exp_budget'] += $cpt["budget"]; - $st['chrg_exp'] += $cpt["solde_debit"]; - $chrg_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; - $st['chrg_exp_clos'] += $cpt["solde_clos_debit"]; - } - - // Handler produit - $prod = $this->getAccountListWhere("a.acc_id REGEXP '(^701.*|^71.*)'"); - $prod_str =""; - $prod_exercice_str =""; - $prod_exercice_budget =""; - $prod_exercice_budget_n1 =""; - $prod_exercice_budget_n2 =""; - $prod_exercice_clos_str =""; - - $this->fillAccounts($prod,$this->period-1,"solde"); - $this->fillAccounts($prod,$this->period,"solde_clos"); - $this->fillBudget($prod,$this->period,"budget"); - $this->fillBudget($prod,$this->period+1,"budget_n1"); - $this->fillBudget($prod,$this->period+2,"budget_n2"); - foreach( $prod as $k => $cpt) { - $prod_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; - $prod_exercice_str .= number_format($cpt["solde_credit"],2)."
"; - $st['poc'] += $cpt["solde_credit"]; - $prod_exercice_budget .= number_format($cpt["budget"],2)."
"; - $st['poc_budget'] += $cpt["budget"]; - $prod_exercice_budget_n1 .= number_format($cpt["budget_n1"],2)."
"; - $st['poc_budget_n1'] += $cpt["budget_n1"]; - $prod_exercice_budget_n2 .= number_format($cpt["budget_n2"],2)."
"; - $st['poc_budget_n2'] += $cpt["budget_n2"]; - $prod_exercice_clos_str .= number_format($cpt["solde_clos_credit"],2)."
"; - $st['poc_clos'] += $cpt["solde_clos_credit"]; - } - - // Handle produit exceptionnel - $prod_exp = $this->getAccountListWhere("a.acc_id REGEXP '(^70[234].*|^71[123468].*|^78.*)'"); - $prod_exp_str = ""; - $prod_exp_exercice_str = ""; - $prod_exp_exercice_clos_str = ""; - $prod_exp_exercice_budget = ""; - $this->fillAccounts($prod_exp,$this->period-1,"solde"); - $this->fillAccounts($prod_exp,$this->period,"solde_clos"); - $this->fillBudget($prod_exp,$this->period,"budget"); - foreach( $prod_exp as $k => $cpt) { - $prod_exp_str .= $cpt["acc_id"]." ".substr($cpt['acc_desc'],0,$sl)."
"; - $prod_exp_exercice_str .= number_format($cpt["solde_debit"],2)."
"; - $prod_exp_exercice_budget .= number_format($cpt["budget"],2)."
"; - $prod_exp_exercice_clos_str .= number_format($cpt["solde_clos_debit"],2)."
"; - } - // Handler Budget Charge N - $budget_n_str = ""; - $budget_n_amount = ""; - $budget_n_total = 0.0; - $budget_n = $this->getBudgetListWhere($this->period,"a.acc_id REGEXP '(^60[123456].*|^61.*|^62.*)'"); - foreach ($budget_n as $k => $v) { - $budget_n_str .= $v[0]."
"; - $budget_n_amount .= number_format($v[2],2)."
"; - $budget_n_total += $v[2]; - } - $budget_n_total = number_format($budget_n_total,2); - // Handler Budget Charge N 1 - $budget_n1_str = ""; - $budget_n1_amount = ""; - $budget_n1_total = 0.0; - $budget_n1 = $this->getBudgetListWhere($this->period+1,"a.acc_id REGEXP '(^60[123456].*|^61.*|^62.*)'"); - foreach ($budget_n1 as $k => $v) { - $budget_n1_str .= $v[0]."
"; - $budget_n1_amount .= number_format($v[2],2)."
"; - $budget_n1_total += $v[2]; - } - $budget_n1_total = number_format($budget_n1_total,2); - // Handler Budget Charge N 1 - $budget_n2_str = ""; - $budget_n2_amount = ""; - $budget_n2_total = 0.0; - $budget_n2 = $this->getBudgetListWhere($this->period+2,"a.acc_id REGEXP '(^60[123456].*|^61.*|^62.*)'"); - foreach ($budget_n2 as $k => $v) { - $budget_n2_str .= $v[0]."
"; - $budget_n2_amount .= number_format($v[2],2)."
"; - $budget_n2_total += $v[2]; - } - $budget_n2_total = number_format($budget_n2_total,2); - - - -$html =<<Annexe 2 -

Comptes de gestion général de l'exercice clos réalisé (N) du {$this->per_begin} au {$this->per_end}

-

et budget previsionnel de l'exercice (N+2) du .... au ....

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CHARGES POUR OPERATIONS COURANTES
Pour Approbation des comptesPour le vote du budget prévisionnel
Exercice précédent
approuvé
N-1
Exercice clos
Budge vote
N
Exercice Clos réalisé
approuver
N
Budget prévisionnel
en cours vote
N+1
Budget prévisionnel
voter
N+2

- 60 Achats de matières et fournitures
- {$charge_str} -
-

-
- {$charge_exercice_str} -

-
- {$budget_n_amount} -

-
- {$charge_exercice_clos_str} -
-

- {$budget_n1_amount} -
-

- {$budget_n2_amount} -
Sous-total - - - {$st['charge']} - - {$budget_n_total} - - {$st['charge_clos']} - - {$budget_n1_total} - - {$budget_n2_total} -
Solde(exécédent s opérations courantes affect au - copropriétaires) - - - N/C - - N/CN/C
Total I - - - - -
- CHARGES POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES - - -

- {$chrg_exp_str} -
-

- {$chrg_exp_exercice_str} -

- {$chrg_exp_exercice_budget} -

- {$chrg_exp_exercice_clos_str} -
Solde(excedent) - - - - -
Total II - - - {$st['chrg_exp']} - - {$st['chrg_exp_budget']} - - {$st['chrg_exp_clos']} -
PRODUITS POUR OPERATIONS COURANTES
Pour Approbation des comptesPour le vote du budget prévisionnel
Exercice
Précédent
N-1
Exercice
clos budge
N
Exercice clos
réaliser
N
Budget
Prévisionnel en
N+1
Budget prévisionnel
à voter
N+2

- {$prod_str} -

- {$prod_exercice_str} -

- {$prod_exercice_budget} -

- {$prod_exercice_clos_str} -

- {$prod_exercice_budget_n1} -

- {$prod_exercice_budget_n2} -
Sous-total - {$st['poc']} - - {$st['poc_budget']} - - {$st['poc_clos']} - - {$st['poc_budget_n1']} - - {$st['poc_budget_n2']} -
Solde(insuffisance s/oprations courantes affecté aux copropriétaires)N/CN/CN/C
Total I
- PRODUITS POUR TRAVAUX ET AUTRES OPERATIONS EXCEPTIONNELLES -

- {$prod_exp_str}

- {$prod_exp_exercice_str} -

- {$prod_exp_exercice_budget} -

- {$prod_exp_exercice_clos_str} -
Solde(insuffisant)
Total II
-EOF; - $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); - } - - /** - * - */ - function annexe3() { - $q = "select pc_id,pc_name from PosteCharge;"; - $pc = $this->doQueryI($q); - $st = array('exercice' => 0, 'exercice_nm1' => 0,'budget' => 0 , 'budgetn1' => 0,'budgetn2' => 0); - $entries = ""; - $accounts = array(); - $pdf = $this->pdf; - $this->fillAccountsWhere($accounts,$this->period,"a.acc_id REGEXP '(^6.*)'","amount"); - $this->fillAccountsWhere($accounts,$this->period-1,"a.acc_id REGEXP '(^6.*)'","am1"); - //$bu = $this->getBudgetListWhere($this->period,"a.acc_id REGEXP '(^6.*)'"); - $this->fillBudgetListWhere($accounts,$this->period,"a.acc_id REGEXP '(^6.*)'","bu"); - $this->fillBudgetListWhere($accounts,$this->period+1,"a.acc_id REGEXP '(^6.*)'","bu1"); - $this->fillBudgetListWhere($accounts,$this->period+2,"a.acc_id REGEXP '(^6.*)'","bu2"); - $bu1 = $this->getBudgetListWhere($this->period+1,"a.acc_id REGEXP '(^6.*)'"); - $bu2 = $this->getBudgetListWhere($this->period+2,"a.acc_id REGEXP '(^6.*)'"); - - $pm1 = $this->period - 1; - foreach ($pc['records'] as $ch) { - $entries.="".$ch[1].""; - $entries.=""; - // Handler Budget - // First Col 1 - $entries.=""; - foreach($accounts as $k => $c) { - if ( ($c[$this->period]['pc'] == $ch[0] ) - ||( $c[$pm1]['pc'] == $ch[0] ) - || $c[$this->period]['bu_pc'] == $ch[0] - || $c[$this->period+1]['bu1_pc'] == $ch[0] - ) - $entries.="".$k.' - '.$c['name']."
"; - - } - $entries.=""; - // First Col 2 - $entries.=''; - foreach($accounts as $k => $c) { - if ( ($c[$this->period]['pc'] == $ch[0] ) - || ($c[$pm1]['pc'] == $ch[0] ) - || $c[$this->period-1]['pc'] == $ch[0] - || $c[$this->period]['bu_pc'] == $ch[0] - || $c[$this->period+1]['bu1_pc'] == $ch[0] - ) { - if ($c[$pm1]['pc'] == $ch[0]) { - $entries.="".$c['am1']."
"; - $st['exercice_nm1'] += $c['am1']; - } else - $entries.="-
"; - } - } - $entries.=""; - // First Col 3 - $entries.=''; - foreach($accounts as $k => $c) { - $e = $this->period.$ch[0]."bu"; - if ($c[$this->period]['pc'] == $ch[0] - || $c[$this->period-1]['pc'] == $ch[0] - || $c[$this->period]['bu_pc'] == $ch[0] - || $c[$this->period+1]['bu1_pc'] == $ch[0] - ) { - if ($c[$this->period]['bu_pc'] == $ch[0] ) { - $entries.=$c[$e].""."
"; - $st['budget'] += $c[$e]; - } else - $entries.="-
"; - } - } - $entries.=""; - // First Col 4 - $entries.=''; - foreach($accounts as $k => $c) { - if ($c[$this->period]['pc'] == $ch[0] - || $c[$this->period-1]['pc'] == $ch[0] - || $c[$this->period]['bu_pc'] == $ch[0] - || $c[$this->period+1]['bu1_pc'] == $ch[0] - ) { - if ($c[$this->period]['pc'] == $ch[0]) { - $entries.=$c['amount']."
"; - $st['exercice'] += $c['amount']; - } else - $entries.="-
"; - } - } - $entries.=""; - // First Col 5 - $entries.=''; - foreach($accounts as $k => $c) { - $e = ($this->period+1).$ch[0]."bu1"; - if ($c[$this->period]['pc'] == $ch[0] - || $c[$this->period-1]['pc'] == $ch[0] - || $c[$this->period]['bu_pc'] == $ch[0] - || $c[$this->period+1]['bu1_pc'] == $ch[0] - ) { - if ($c[$this->period+1]['bu1_pc'] == $ch[0] ) { - $entries.=$c[$e].""."
"; - $st['budget_n1'] += $c[$e]; - } else - $entries.="-
"; - } - } - $entries.=""; - // First Col 6 - $entries.=''; - foreach($accounts as $k => $c) { - $e = ($this->period+2).$ch[0]."bu2"; - if ($c[$this->period]['pc'] == $ch[0] - || $c[$this->period-1]['pc'] == $ch[0] - || $c[$this->period]['bu_pc'] == $ch[0] - || $c[$this->period+1]['bu1_pc'] == $ch[0] - ) { - if ($c[$this->period+2]['bu2_pc'] == $ch[0] ) { - $entries.=$c[$e].""."
"; - $st['budget_n2'] += $c[$e]; - } else - $entries.="-
"; - } - } - $entries.=""; - - $entries.=""; - } - $html =<<Annexe 3 -

Comptes de gestion pour opérations courantes de l'exercice clos réalise (N {$this->period}) du {$this->per_begin} au {$this->per_end}

-

et budget previsionnel de l'exercice (N+2) du .... au ....

-
- - - - - - - - - - - - - - - - - - - - - {$entries} - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CHARGES POUR OPERATIONS COURANTES
 Pour approbation des comptesPour le vote du budget prévisionnel
Exercice précédent approuvéExercice clos budget voteExercice clos réalise à approuverBudget prévisionnel en coursBudget prévisionnel à voter
N-1NNN+1 N+2
TOTAL CHARGES NETTES{$st['exercice_nm1']}{$st['budget']}{$st['exercice']}{$st['budget_n1']}{$st['budget_n2']}
Provision coproprietaires
Solde (excedent ou insuffisance s/opérations courantes affecte aux copropriétaires
- -EOF; - $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); - } - /** - * - */ - function test( $p) { - $this->period = $p; - $this->getPeriod($p); - $pdf = $this->pdf; - $pdf->SetCreator(PDF_CREATOR); - $pdf->SetAuthor('EBERSOLD Andrz'); - $pdf->SetTitle('ANNEXE N'); - $pdf->SetSubject('Etat Financier apres repartition au '); - $pdf->SetKeywords('TCPDF, PDF, example, test, guide'); - - // set default header data - $h = "SYNDIC 25 RUE PFEFFINGER \n67100 STRASBOURG"; - $pdf->SetHeaderData(/*PDF_HEADER_LOGO*/"", 0, 'SYNDICAT DES COPROPRIETAIRES ANNEXES' , $h, array(64,64,64), array(0,64,128)); - $pdf->setFooterData($tc=array(0,64,0), $lc=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 - //$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', '', 8, '', true); - -// Add a page -// This method has several options, check the source code documentation for more information. - $pdf->AddPage(); - $html = <<Annexe 1 -

Etat financier après répartition du {$this->per_begin} au {$this->per_end} (Exercice {$this->period})

-EOD; - $pdf->setHeaderTemplateAutoreset(true); -// Print text using writeHTMLCell() - $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true); - $pdf->SetFont('dejavusans', '', 8, '', true); - $this->annexe1() ; - $pdf->AddPage(); - $this->annexe2() ; - $pdf->AddPage(); - $this->annexe3() ; - } - - function Output($fn,$m) { - $this->pdf->Output($fn,$m); - } -} -/** - * For test purpose - */ -$ldb =""; -$period = ""; -if (isset($_GET['period'])) { $period = $_GET['period'];} else { $period = Date('Y');}; -if (isset($_SESSION['compta_db'])) { - $ldb = $_SESSION["compta_db"] ; -} else - $ldb = 'test'; -$t = new annexe1($conf['auth']['mysql']['host'], - $conf['auth']['mysql']['user'], - $conf['auth']['mysql']['password'], - $ldb); - -$t->test( $period); - -$t->Output('annexe1.pdf', 'I'); - -/** - vim:et:sw=2:ts=2:fileencoding=utf-8:encoding=utf-8 -*/ -?> diff --git a/app/compta/retrieve.php b/app/compta/retrieve.php deleted file mode 100644 index 674e022..0000000 --- a/app/compta/retrieve.php +++ /dev/null @@ -1,136 +0,0 @@ -doQueryI($q); - $q ='select trans_entry_id,acc_id,voucher_ref,description,debit_credit,amount from TransactionEntry where trans_id ='.$id.';'; - $entries = $this->doQueryI($q); - return array( 'transaction' => $transaction['records'], 'entries' => $entries['records']); - } - function getTransactionInfoSummary($begin,$end) { - $q ='select trans_id,voucher_ref,voucher_date,act_trans_date,trans_label,trans_file from Transaction where act_trans_date BETWEEN "'.$gebin.'" AND "'.$end.'";'; - $transaction = $this->doQueryI($q); - if (count($transaction['records']) < 1) { - return array(""); - } else - return $transaction['records']; - } - - function getTransactionsByDate($date) { - $q ='select trans_id,voucher_ref,voucher_date,act_trans_date,trans_label,trans_file from Transaction where act_trans_date ='.$date.';'; - $transaction = $this->doQueryI($q); - $q ='select trans_entry_id,acc_id,voucher_ref,description,debit_credit,amount from TransactionEntry where trans_id ='.$id.';'; - $entries = $this->doQueryI($q); - return array( 'transaction' => $transaction['records'], 'entries' => $entries['records']); - } - - function getTransactionsByIds() { - } - - function getEntriesByType($period,$type) { - $q = 'call journal("'.$period.'","'.$type.'",2);'; - $res = $this->doQueryI($q); - - $q = 'call journal_solde("'.$period.'","'.$type.'",2);'; - $res_solde = $this->doQueryI($q); - - return array( 'records' => $res['records'], 'solde' => $res_solde['records']); - - } - - function getEntriesByAccount($period,$acc) { - $q = 'call detail_compte_sans_solde("'.$period.'",'.$acc.');'; - $res = $this->doQueryI($q); - if ($res['total_matches'] == 0) { - return array('entries'=> array(array(0,0,0,0,0)),'solde' =>array(0,0,0)); - } - // return $res['records']; - $q = 'CALL solde_compte("'.$period.'","'.$acc.'");'; - $res1 = $this->doQueryI($q); - return array('entries' => $res['records'], 'solde' => $res1['records'][0]); - } - - function getSoldeAccount($period,$acc, $preci = 2) { - $q = 'CALL solde_compte("'.$period.'","'.$acc.'");'; - $res = $this->doQueryI($q); - // Get Total Appel de fonds : - $q=<<doQueryI($q); - // Get Total Charge - $q=<< 0 - GROUP BY tret_key_id; -EOF; - $dc = $this->doQueryI($q); - // Total Charge - $q=<< 0 - ; -EOF; - $tc = $this->doQueryI($q); - $result = array( 'solde' => $res['records'][0], - 'detail_charge' => $dc['records'], - 'total_charge' => $tc['records'][0][0], - 'total_appel' => $af['records'][0][0] - ); - return $result; - //return $res['records'][0]; - //$a =explode(",", $res['records'][0][1]); - } - // CREATE TABLE IF NOT EXISTS TransactionEntryType ( - // type_id INTEGER AUTO_INCREMENT PRIMARY KEY, - // type_code VARCHAR(2), -- BQ, VT, OD - // type_desc VARCHAR(255) - function getEntryTypes() { - $q =<<doQueryI($q); - return $r['records']; - } -} - - -?> diff --git a/app/compta/supplier.js b/app/compta/supplier.js deleted file mode 100644 index 8c68c50..0000000 --- a/app/compta/supplier.js +++ /dev/null @@ -1,450 +0,0 @@ - -AEBW.declare("DlgSupplierBill",Compta.Dialog ,{ - constructor : function(div_id,uipath,jurl ) { - AEBW.control.dialogbox(div_id); - this.load(uipath); - this.Url = function() {return jurl;}; - }, - ongetKeysCharge : function(response) { - var cb = $('suppl_charge_key'); - cb.options.length = 0; - for(var i = 0; i it[3]) { - row.cells[4].style.color="red"; - } - } - var solde = response.result.solde; - $('supplierSoldeDebit').innerHTML = solde[0]; - $('supplierSoldeCredit').innerHTML = solde[1]; - - $('supplierSoldeCompte').innerHTML = 'Solde : '+solde[2]; - - }, - onShow : function() { - this.getFournisseur(); - this.getExercices(); - var obj = this; - Event.observe($('btSupplierVoir'), "click", function () { - obj.getAccount(); - } - ); - Event.observe($('cbSupplierExercice'), "change", function () { - obj.getAccount(); - } - ); - Event.observe($('cbSupplierAccount'), "change", function () { - obj.getAccount(); - } - ); - setTimeout(function() { - obj.getAccount(); - },500); - }, - - cleanTable : function(tb,sz) { - for (var i = 0 ; i < sz; i++) { - tb.delRow(0); - } - } -}); - - -/** - * Main entry - */ - -var spA = null; -var Supplier = new AEBW.control.dialogbox("supplier"); -var SupplierBill = new DlgSupplierBill("supplier", - "./basic.php?app=compta&panel=supplier_bill", - alias+"/app/compta/index.php"); - -var SupplierPayer = new DlgSupplierPay("supplier", - "./basic.php?app=compta&panel=supplier_pay", - alias+"/app/compta/index.php"); - -var SupplierAccount = new DlgSupplierAccount("supplier", - "./basic.php?app=compta&panel=supplier_account", - alias+"/app/compta/index.php"); - -Supplier.load('./basic.php?app=compta&panel=supplier_add'); - -Event.observe($("btFFNew"),"click", function () { - SupplierBill.show(); - SupplierBill.getFournisseur(); - SupplierBill.getCharge(); - }); - -Event.observe($("btFFPayer"),"click", function () { - SupplierPayer.show(); - SupplierPayer.getFournisseur(); - }); -// Compte fournisseur Gestion -Event.observe($("btFGCompte"),"click", function () { - SupplierAccount.show(); - }); - -Event.observe($("btFGNew"),"click", function () { - Supplier.show(); -} -); -/* - * vim:encoding=utf-8:fileencoding=utf-8 - */ diff --git a/app/compta/supplier_account.xml b/app/compta/supplier_account.xml deleted file mode 100644 index 6210db0..0000000 --- a/app/compta/supplier_account.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - User Managment - - - - -

Compte fournisseur

-

- - - - - Information Generales - -
- - - - - -
- - - -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Compte
DateRéfDésignaionDébitCrédit
02/01/201312435Facture fioul100
05/01/201398547Charge Assurance87
06/01/2013d1Virement211
10/01/2013xc1234Charge EDF PC2 178
Solde:0.00.0
-
- - - - diff --git a/app/compta/supplier_add.xml b/app/compta/supplier_add.xml deleted file mode 100644 index 2b42e38..0000000 --- a/app/compta/supplier_add.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - User Managment - - - -

Ajouter un fournisseur

- - - - - Idendité - -
-
-
- -
- -
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
NomPrénomAdresseC.P.TélEmail
-
- - - diff --git a/app/compta/supplier_bill.xml b/app/compta/supplier_bill.xml deleted file mode 100644 index fa13a16..0000000 --- a/app/compta/supplier_bill.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - User Managment - - - - - - - -Nouvelle Facture - -
-
- - - - - - - -
- - - - - -
- -
- - - - - - - - -
- -
- -
- - -
-
-
- -
- - - -
-
diff --git a/app/compta/supplier_pay.xml b/app/compta/supplier_pay.xml deleted file mode 100644 index c4a8b61..0000000 --- a/app/compta/supplier_pay.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - User Managment - - - - - - - -Payer Facture - -
-
- - - - - - - -
- - - -
- - -
- -
- - - - - - - - - - - - diff --git a/app/compta/supplier_remove.xml b/app/compta/supplier_remove.xml deleted file mode 100644 index 284419e..0000000 --- a/app/compta/supplier_remove.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - User Managment - - - - -

Administration des utilisateurs

-

-

- -
- - - - - Utilisateur - -
- Her -
- - - Plan Comptable - - 1 Comptes de capitaux - - - 2 Comptes d immobilisation - - - 3 Stock et Command - - - 4 Comptes Tiers - - - 5 Comptes Financiers - - - 6 Comptes Charges - - - 7 Comptes Produits - - - 8 Hors Comptabilite - - - 9 Comptes Analytiques - - -
-
-

Test What happens here

- - System - - - -

- - - Groupes - - simpe test - - - - Frogs - - Ok, - - Info Gen - - Une info: - - - - - - -
-
-
-
- - - - - Groupes - - Strange - - authentication - -

Test Content

- -
-
- - alias - - display boxes : enable - - - - ssl - - display boxes: - enable - disable - - - - - -
-
- - - Eglise - - Page de debug pour web_server. - - Yes - Vide - - - - - - T table - - Test Table Stuff - - - - - - - - - - - -
Titre du tableau
r1r2
Un test pour voird1
Un bouton -
Un test pour voird1
Un bouton -
- End Table - -
-
- - Calendar - - Test12 -
- -
-
-
- -
-
diff --git a/app/compta/syndic.php b/app/compta/syndic.php deleted file mode 100644 index d841a93..0000000 --- a/app/compta/syndic.php +++ /dev/null @@ -1,274 +0,0 @@ -session = new Session(); - } -/** --- lot_floor VARCHAR(8) DEFAULT "RDC", --- lot_area INTEGER DEFAULT 0, --- lot_room INTEGER DEFAULT 0, --- lot_name VARCHAR(32), --- lot_type VARCHAR(32), --- lot_building VARCHAR(32), --- lot_door VARCHAR(32), --- lot_description VARCHAR(256) - */ - function getLots() { - $q = "select lot_num,lot_floor,lot_area,lot_room,lot_name,lot_type,lot_building,lot_door,lot_description,lot_id from Lot; "; - $res = $this->doQueryI($q.$qv); - $entries = $res['records']; - if (count($entries) == 0 ) { - error_log("Syndic::getLots Failed number of elements is 0"); - return Array(""); - } - return $entries; - } - - function addLot($number,$tp,$building,$floor,$door,$size,$name,$desc) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can add lots")); - } - $q = "INSERT INTO Lot (lot_num,lot_name,lot_description,lot_floor,lot_area,lot_building,lot_door,lot_type) VALUES( "; - $qv= $number.',"'.$name.'","'.$desc.'","'.$floor.'",'.$size.',"'.$building.'","'.$door.'","'.$tp.'");'; - $res = $this->doQueryI($q.$qv); - return Array(""); - } - - function removeLot($number) - { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can remove lots")); - } - error_log("removeLot: "); - $q = "DELETE FROM Lot WHERE lot_num = ".$number.";"; - $res = $this->doQueryI($q); - return Array(""); - } - - function getLotsUser($uid) { - $q =<<doQueryI($q); - if (count($res['records'] )== 0) { - error_log("getLotsUser: no record found"); - throw new Exception(_("No records found for this user")); - return array(""); - } else - return $res['records']; - } - - function assignLotToUser($lo_id,$lot_id,$uid) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can assign lots")); - } - $q =<<doQueryI($q); - } - - function getExercices() { - // period_id | per_begin | per_end | per_string - $q = "select per_id,per_begin,per_end,per_string from Period; "; - $res = $this->doQueryI($q); - $entries = $res['records']; - if (count($entries) == 0 ) { - error_log("getLots Failed number of elements is 0"); - } - return $entries; - } - - function addExercice($desc,$begin,$end) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can add an exercice")); - } - $q = "INSERT INTO Period (per_string,per_begin,per_end) VALUES( "; - $qv= '"'.$desc.'","'.$begin.'","'.$end.'");'; - $res = $this->doQueryI($q.$qv); - $entries = $res['records']; - if (count($entries) == 0 ) { - error_log("Syndic::addExercice Failed number of elements is 0"); - return Array(""); - } - return $entries; - } - function removeExercice($desc) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can remove an exercice")); - } - error_log("removeExercice ".$desc); - $q = "DELETE FROM Period WHERE per_string = "; - $qv= '"'.$desc.'";'; - $res = $this->doQueryI($q.$qv); - $entries = $res['records']; - if (count($entries) == 0 ) { - error_log("removeExercice Failed number of elements is 0"); - } - return Array(""); - } - - /** - * - * - Only syndic can close and open an exercice. - * - The exercice must be in state open. - * - * Action : Calls are reemboursed. - */ - function closeExercice($ex,$cpt="701000") { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can close an exercice")); - } - $d = date("Y-m-d"); -//CALL rembourse_appel_fonds("2011-12-30","2011","701000","Remboursement appels de fonds"); - $q=<<doQueryI($q); - } - - function updateLot($id,$fields) { - } - - function assignLot($lot_id,$user ) { - } - - function getKeysCharge() { - $q = "select pc_id,pc_name,pc_comment FROM PosteCharge;"; - $keys = $this->doQueryI($q); - return $keys['records']; - } - function updateKeyCharge($id,$name,$desc) { - $q=<<doQueryI($q); - return array(""); - } - - function getTantieme($charge_id) { - // $q = "select tant_pc_id, tant_lot_num, tant_lot_size FROM Tantieme where tant_pc_id=".$charge_id.";"; - $q=<<doQueryI($q); - if (count($keys['records']) == 0 ) { - return array(""); - } - return $keys['records']; - } - - function setTantieme($t_id,$charge_id,$lot,$tant) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can set tantieme")); - } - $q=<<doQueryI($q); - return array(""); - } - - /** - * Function related to maintenance - */ - function getEntretien($period) { - $q = "SELECT entr_date,entr_title,entr_description,entr_id FROM Entretien as e "; - $j = "JOIN Period as p on p.per_string ='".$period."'"; - $w = " WHERE entr_date BETWEEN p.per_begin and p.per_end;"; - error_log("getentretien : ".$q.$j.$w); - $keys = $this->doQueryI($q.$j.$w); - if (count($keys['records']) == 0 ) { - return array(""); - } - return $keys['records']; - } - - function newEntretien($dt,$title,$description) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can add or update an maintainence entry")); - } - $des = $this->escape($description); - $t = $this->escape($title); - $q = "INSERT INTO Entretien (entr_date,entr_title,entr_description) VALUES ("; - $qv = '"'.$dt.'",'.$t.','.$des.');'; - $keys = $this->doQueryI($q.$qv); - if (count($keys['records']) == 0 ) { - return array(""); - } - return $keys['records']; - } - - function updateEntretien($id,$title,$description) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can add or update an maintainence entry")); - } - $des = $this->escape($description); - $t = $this->escape($title); - $q = 'UPDATE Entretien SET entr_title='.$t.' ,entr_description = '.$des.' WHERE '; - $qv = 'entr_id = '.$id.';'; - $keys = $this->doQueryI($q.$qv); - if (count($keys['records']) == 0 ) { - return array(""); - } - return $keys['records']; - } - - function removeEntretien($id) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can remove an maintainence entry")); - } - $des = $this->escape($description); - $t = $this->escape($title); - $q = 'DELETE FROM Entretien WHERE '; - $qv = 'entr_id = '.$id.';'; - $keys = $this->doQueryI($q.$qv); - if (count($keys['records']) == 0 ) { - return array(""); - } - return $keys['records']; - } -/** -CREATE PROCEDURE repartir_charge( IN trans_id INTEGER, - IN chrg VARCHAR(32), - IN ed DATE, - IN vouch ref VARCHAR(32), - in am DOUBLE, - in cle INTEGER, - in des VARCHAR(256) - **/ - function repartirCharge($chg,$dt,$v,$amount,$cle,$des) { - if (!$this->session->in_groupe(COMPTA_SYNDIC)) { - throw new Exception(_("Only Syndic can distribute charges")); - } - error_log("Call repartir charge:".$chg." ".$dt); - $q=<<doQueryI($q); - $qlid= "select LAST_INSERT_ID();"; - $res = $this->doQueryI($qlid); - $trans_id = $res['records'][0]['0']; - error_log("Call repartir charge got id:".$tran_id); - $q=<<doQueryI($q); - return array(""); - } -} - - -?> diff --git a/app/compta/upload.php b/app/compta/upload.php deleted file mode 100644 index 49fed12..0000000 --- a/app/compta/upload.php +++ /dev/null @@ -1,30 +0,0 @@ - diff --git a/app/compta/users.xml b/app/compta/users.xml deleted file mode 100644 index 284419e..0000000 --- a/app/compta/users.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - User Managment - - - - -

Administration des utilisateurs

-

-

- -
- - - - - Utilisateur - -
- Her -
- - - Plan Comptable - - 1 Comptes de capitaux - - - 2 Comptes d immobilisation - - - 3 Stock et Command - - - 4 Comptes Tiers - - - 5 Comptes Financiers - - - 6 Comptes Charges - - - 7 Comptes Produits - - - 8 Hors Comptabilite - - - 9 Comptes Analytiques - - -
-
-

Test What happens here

- - System - - - -

- - - Groupes - - simpe test - - - - Frogs - - Ok, - - Info Gen - - Une info: - - - - - - -
-
-
-
- - - - - Groupes - - Strange - - authentication - -

Test Content

- -
-
- - alias - - display boxes : enable - - - - ssl - - display boxes: - enable - disable - - - - - -
-
- - - Eglise - - Page de debug pour web_server. - - Yes - Vide - - - - - - T table - - Test Table Stuff - - - - - - - - - - - -
Titre du tableau
r1r2
Un test pour voird1
Un bouton -
Un test pour voird1
Un bouton -
- End Table - -
-
- - Calendar - - Test12 -
- -
-
-
- -
-
diff --git a/app/config/analystictracking_syndic.php b/app/config/analystictracking_syndic.php deleted file mode 100644 index 1f0ac0c..0000000 --- a/app/config/analystictracking_syndic.php +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/app/config/andre.php b/app/config/andre.php index 9f08cca..39fa788 100644 --- a/app/config/andre.php +++ b/app/config/andre.php @@ -95,6 +95,7 @@ class loginLayoutTrinity { class AppPage extends Page { var $alias = "/andre/"; var $topic; + var $xml = null; var $session = null; var $vmenu; var $directory; @@ -121,15 +122,13 @@ class AppPage extends Page { * */ function generate_links() { - error_log("generate_links servername".$_SERVER["SERVER_NAME"] ); $css =""; if ( ($_SERVER["SERVER_NAME"] == "palawan" ) || ($_SERVER["SERVER_NAME"] == "syndic.dyndns.biz" ) || ($_SERVER["SERVER_NAME"] == "syndic.no-ip.org" ) - || ($_SERVER["SERVER_NAME"] == "192.168.1.18" ) ) { $css = $this->alias."/css/andre/theme-syndic.css"; - echo "alias."/css/andre/theme-andre.css\" media=\"screen\" title=\"syndic\"/>\n"; + echo "alias."/css/andre/theme-syndic.css\" media=\"screen\" title=\"syndic\"/>\n"; } else { $css = $this->alias."/css/andre/default.css"; echo "alias."/css/andre/default.css\" media=\"screen\" title=\"andre\"/>\n"; @@ -153,7 +152,7 @@ class AppPage extends Page { - + @@ -133,7 +126,6 @@ if( isset($_POST['submit'])) { if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) { global $AppDb; // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. - error_log("register.php "); $register->registerOk(1); $user = new DbUser($AppDb); $ident = $user->fromEmail($_POST['email']); diff --git a/app/xsl/generate_html.xsl b/app/xsl/generate_html.xsl index 981c6b8..0dee248 100644 --- a/app/xsl/generate_html.xsl +++ b/app/xsl/generate_html.xsl @@ -50,7 +50,7 @@ - lg= site= alias= + lg= site= diff --git a/app/xsl/gui-wizard.xsl b/app/xsl/gui-wizard.xsl deleted file mode 100644 index dd748ef..0000000 --- a/app/xsl/gui-wizard.xsl +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - wizard - - - - - px; - px; - border:solid 1px; - - - - - - - - - - - width:100%; - border-top: solid 1px #555555; - - - - float:left; - - - - - - button - - - float:left; - - - - - Prev - - - - button - - - float:left; - - - - - Next - - - - - - - - - - - - page - pageHidden - - - - border:solid 1px #0000FF; - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/xsl/gui.xsl b/app/xsl/gui.xsl index 38b3ef1..2a1c417 100644 --- a/app/xsl/gui.xsl +++ b/app/xsl/gui.xsl @@ -6,21 +6,18 @@ - _xgui standalone - + no - + @@ -98,36 +95,11 @@ width:px; height:; - overflow:auto; panel - - - - - - - - width:px; - height:; - overflow:auto; - - panel - - - - - 75 - - - - - - - @@ -162,7 +134,6 @@ form - @@ -203,13 +174,10 @@ - width:px; - - button + button - @@ -223,37 +191,6 @@ - - - - - - - - - - - - width:px; - - button - - - - - - - - - - - - - - - - - @@ -272,7 +209,7 @@ - width:px; + width:; ; ; @@ -294,7 +231,7 @@ - width:px; + width:; ; ; @@ -311,50 +248,15 @@ - + - radio - - - - - - - - - - - - - - - - - - - 75 - - - - - radio - - - - - @@ -369,26 +271,6 @@ - - - - - - - - - 75 - - - - - checkbox - - - - - - @@ -412,7 +294,7 @@ - + @@ -423,390 +305,53 @@ - - - - - - 75 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - Begin - - grouptitle - - - End - - - - - - 75 - - - - - - input - - - - - - text - - - - - - - - - - - - ; - ; - ; - - - - - 75 - - - - - - fileinputs - - - - - - - - input file - - - - - - text - - - - - - - - - - - - ; - ; - ; - - - - fakefile - - - - - - - - - - - - - - input - - - - - - text - - - - - - - - - - - - ; - ; - ; - - - - - - - + table - - - - - - - - - - - - border-collapse:collapse; - - - - - - - - - - - overflow:auto; - - - - - - table - margin: 0 0 0 0;border-collapse:collapse; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - + + width:px; + - - - width:16px; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -914,7 +459,7 @@ row - width:px; + width:; @@ -926,7 +471,7 @@ cell - width:px; + width:; @@ -942,8 +487,7 @@ notebook - width:; - + width:; nbleft width:px; @@ -963,8 +507,7 @@ notebook-pages - width:px; height:px; - + width:px; height:px; @@ -1135,16 +678,14 @@ - group - + group - group - + group @@ -1190,13 +731,11 @@ - T2 group width:px; - @@ -1228,7 +767,7 @@ groupcontent - display:block;padding-top:8px; + display:bock;padding-top:8px; width:px; height:px; diff --git a/article.xsl b/article.xsl new file mode 100644 index 0000000..9f24cd3 --- /dev/null +++ b/article.xsl @@ -0,0 +1,75 @@ + + + + + + + + + Ayellow + + + + + + + + + + + + + + t-article + + tarticle + + article + + + + + + + + + + + + + + + + + a-content + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blog/2011/06/06_asn1_sans_craintes.fr_FR.UTF-8.xml b/blog/2011/06/06_asn1_sans_craintes.fr_FR.UTF-8.xml index dd48920..1d0ff81 100644 --- a/blog/2011/06/06_asn1_sans_craintes.fr_FR.UTF-8.xml +++ b/blog/2011/06/06_asn1_sans_craintes.fr_FR.UTF-8.xml @@ -3,7 +3,7 @@

ASN.1 sans craintes

ASN1 comme son nom l'indique (Abstract Syntaxe Notation) est un language de description de donné abstrait. C'est à dire, qu'il décrit un modèle de donné sans préciser son encodage ni le language de programmation dans lequel il sera utilisé.

Ce language est principalement utilisé dans le monde des télécoms. Il suffit de se rendre sur le site de l'ITU pour s'en rendre compte. Il est également fait usage de cette notation pour décrire le modèle de donné du le protocol ldap, celui des certificats et bien d'autres.

-

Les premières versions du protocol CSTA ont été entièrement décrites en language ASN1. Aujourd'hui, dans le domaine du CSTA, la notation ASN1 est petit à petit abandonnée au profit d'une description XML/WSDL (Un autre language dédié initialement au application web). Ceci ne veut pas dire pour autant que l'ASN1 est mort, loin de là. Il existe des outils qui permettent de passer d'une notation XML vers une notation ASN1 et vise versa.

-

Le principal intéret d'un language abstrait est sa neutralité vis à vis de l'implémentation. En effet, la spécification ASN1 ne dit pas comment représenté dans un language tel que C ou java les types de donnés qui sont modélisés. Cette initiative est laissée à ceux qui vont implémenter le modèle.

+

Les premières versions du protocol CSTA ont été entièrement décrites en language ASN1. Aujourd'hui, dans le domaine du CSTA, la notation ASN1 est petit à petit abandonnée au profit d'une description XML/WSDL (Un autre language dédié initialement aux applications web). Ceci ne veut pas dire pour autant que l'ASN1 est mort, loin de là. Il existe des outils qui permettent de passer d'une notation XML vers une notation ASN1 et vise versa.

+

Le principal intéret d'un language abstrait est sa neutralité vis à vis de l'implémentation. En effet, la spécification ASN1 ne dit pas comment représenter dans un language tel que C ou java les types de donnés qui sont modélisés. Cette initiative est laissée à ceux qui vont implémenter le modèle.

Il existe bien sûr sur le marché des outils qui permettent de transformer un modèle abstrait dans des structures de données d'un language de développement. cette tranformation s'accompagne généralement d'une bibliothèque qui vous offre des fonctions de codage et de décodage pour transporter les données sur un réseau.

-

Les méthodes d'encodage ne font pas parti de la spécification ASN1. Rien ne vous empêche de définir vos propre règles d'encodage et de décodage.

+

Les méthodes d'encodage ne font pas parti de la spécification ASN1. Rien ne vous empêche de définir vos propre règles d'encodage et de décodage. Les compilateurs du marche vous offre généralement des fonctions pour les encodages normalisés à savoir : BER (Basic Encoding Rule), DER (Ditinguished Encoding Rule), CER (Canonical Encoding Rule), PER (Packet Encoding Rule).

diff --git a/blog/2011/06/06_eloise_blog_page.en_US.UTF-8.xml b/blog/2011/06/06_eloise_blog_page.en_US.UTF-8.xml index 16e4cbf..15888d0 100644 --- a/blog/2011/06/06_eloise_blog_page.en_US.UTF-8.xml +++ b/blog/2011/06/06_eloise_blog_page.en_US.UTF-8.xml @@ -1,9 +1,11 @@ eloise_blog_pageFamily,EloiseThis is a page that can be edited by my wife -

Sample Page.

+

Family time

-

H1 Title

+

Family

+

I used to play music, bike, and dance. But since the arival of my second child, most of my time is now dedicated to the family.

+

Once home, I have the joy to feed my little boy, change the diapers, read children stories before putting them to bed. It's a realy joy to have them.

H3 Title

H4 Title

-

Paragraph as an example But does it work ?

+

Paragraph as an example

diff --git a/c2xmi/c2xmi.en_US.UTF-8.xml b/c2xmi/c2xmi.en_US.UTF-8.xml new file mode 100644 index 0000000..fe0f357 --- /dev/null +++ b/c2xmi/c2xmi.en_US.UTF-8.xml @@ -0,0 +1,69 @@ + + + + + + C2XMI Tool + Andre,EBERSOLD,AEB,Strasbourg,C++,XMI,UML,XSL + + + + + + + + + + + + + + + Cette article décrit un procéder qui permet de + convertir un header C/C++ en une description UML au format XMI. Cette + description va être réutilisé pour générer du code. + + $Date: 2010/08/25 15:10:02 $ + $Id: accueil.fr_FR.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ + +

C2XMI

+

Introduction

+

+

As part of a project, it was necessary to develop an application that functions to generate a "swap" on the fly data type such as "WORD, DWORD"

+

It is within this context that this utility that transforms the structures from a C header file into a description format XMI.

+

XMI is an OMG standard XML that is used in UML. Its role is to enable exchange of models between applications.

+

The model description in XML format also has the advantage of being easily reused. You can quickly write tools for model transformation to generate code in compiled or interpreted language. In our case example, we generate processing routines on its structures.

+

To begin, define the transformation rules that will allow to pass from C to the XMI.

+

+

Transformation Rules

+

Simple Datatypes

+

The number of base types which need management was relatively small. These were char, int, short, BYTE, SByte, WORD, DWORD, SWORD, unsigned char, unsigned short. All of these types will be DataTypes in the XML file.

+

Definition of type (typedef)

+

The definition of a new type can isolate the code on the target system. We can redefine the basic types but also assign types to anonymous structures (typedef struct {st1};). Finally, we can redefine an existing type (typedef nt2 st1;).

+

Redefinition of base types

+

This function is not properly supported by the program. Data types are redefined under new UML DataType.

+

Redefinition of allready defined types

+

+

These types are modeled as a legacy of the base type. This solution was chosen to ensure the generation of a treatment for this new type. This treatment is identical to that of the base type. It is true that at this stage optimizations are possible. Maybe in the future if people express interest in this work.

+

+

Anonymous structure

+

As its name suggests it is a structure that is directly associated with an attribute of a structure or a data. The principle is to take the name of the variable and to add a suffix "_type" to build the name of the UML class will be generated.

+
+

Type definition with anonymous strucuture

+

These are the most frequent case in C. Often, developers define the structures in this way (typedef struct {..} STD1;)

+

Structures

+

It is natural to make the relationship between a structure and a class C UML.

+

Arrays

+

There are several ways to describe an array of one type in UML / XMI. If one stays close to the programming language, one can settle for field Multiplicity. Unfortunately, there are limitations to this approach! How to represent multidimensional arrays arrayOfString char * [10] [20] or int Matrix [10] [10]?

+

One solution is to define a new class with the stereotype "anonymousArray. This class inherits the base type and contains many attribute indexX "as dimensions. The initial value of each index is the size of the table.

+

Conclusion

+

In a future article I will describe how, using this description XMI, we can write a generator ASN1 in less than one day.

+ + + diff --git a/c2xmi/c2xmi.fr_FR.UTF-8.xml b/c2xmi/c2xmi.fr_FR.UTF-8.xml new file mode 100644 index 0000000..c45a109 --- /dev/null +++ b/c2xmi/c2xmi.fr_FR.UTF-8.xml @@ -0,0 +1,69 @@ + + + + + + La page d'accueil d'Andre EBERSOLD + About + Willkommen + Andre,EBERSOLD,AEB,Strasbourg,C++,XMI,UML,XSL + + + + + + + + + + + + + + + + Cette article décrit un procéder qui permet de + convertir un header C/C++ en une description UML au format XMI. Cette + description va être réutilisé pour générer du code. + + $Date: 2010/08/25 15:10:02 $ + $Id: accueil.fr_FR.UTF-8.xml,v 1.3 2010/08/25 15:10:02 aebersol Exp $ + +

C2XMI

+

Introduction

+

Dans le cadre d'un projet, il fallait développer une application qui génèrerait des fonctions permettant de «swapper» à la volé des types de données tel que des «WORD, DWORD»

+

C'est dans ce contexte qu'intervient cet utilitaire C2XMI qui transforme des structures C venant d'un fichier d'entête en une description au format XMI.

+

XMI est un standard XML de l'OMG qui est utilisé dans la modélisation UML. Sont rôle est de permettre l'échange de modèles entre applications.

+

La description de modèles au format XML présente aussi l'avantage de pouvoir être réutilisé facilement.On peut rapidement écrire des outils de transformation de modèles pour générer du code dans des langages compilables ou interprétables. Dans nôtre cas par exemple, nous générerons des routines de traitement sur ces structures.

+

Pour commencer, définissons les règles de transformation qui permettront de passer du C vers de l'XMI.

+

Règles de transformations

+

Les types de données simples

+

Le nombre de types de base qu'il fallait gérer était relativement restreint. Il s'agissait des char, int, short, BYTE, SBYTE, WORD, DWORD, SWORD, unsigned char, unsigned short. L'ensemble de ces types seront des DataTypes dans le fichier XML.

+

La définition de type (typedef)

+

La définition d'un nouveau type permet d'isoler le code du système cible. On peut redéfinir les types de base mais également attribuer des types à des structures anonymes (typedef struct {}st1;). Enfin, on peut redéfinir un type déjà existant (typedef nt2 st1;). Chaque cas est différent et il faut les traiter séparément.

+

Redéfinition des types de bases

+

Cette fonction n'est pas correctement supporté par notre programme. Les types de base redéfinis sont de nouveaux DataTypes au sens UML. Ces "DataType" sont graphiquement représenté par des classes avec le stéréotype DataType.

+
<UML:DataType xmi.id="UID-0000000" name="int" visibility="public" isRoot="false" isLeaf="true" isAbstract="false"/>
+

Redéfinition des types déjà existants

+

Ces types sont modélisés comme étant un héritage du type de base. Cette solution a été retenu pour garantir la génération d'un traitement pour ce nouveau type. Ce traitement est celui du type de base. Il est vrai qu'à ce stade des optimisations sont possible. Peut-être dans le future si des personnes manifestes un intérêt à ce travail.

+

Les structures anonymes

+

Comme son nom l'indique c'est une structure qui est directement associée à un attribut d'une structure ou d'une donnée. Le principe et de reprendre le nom de la variable et lui adjoindre un suffixe «_type» pour construire le nom de la class UML qui va être généré.

+

Les types à structure anonymes

+

Ce sont les cas les plus fréquent en C. Souvent, les développeurs définissent les structures de cette manière (typedef struct {..} std1;)

+

Les structures

+

Il est naturel de faire la relation entre une structure C et une class UML.

+

Les tableaux

+

Il existe plusieurs manière de décrire un tableau d'un type en UML/XMI. Si l'on reste proche du langage de programmation, on peut se contenter du champ Multiplicité. Malheureusement, il y a des limitation à cette approche! Comment représenter des tableaux à plusieurs dimensions char *arrayOfString[10][20] ou encore int Matrix[10][10]?

+

Une solution est de définir une nouvelle class avec le stéréotype «anonymousArray». Cette class hérite du type de base et contient autant d'attribut «indexX» que de dimensions. La valeur initial de chaque index étant le dimensions du tableau.

+

+

Conclusion

+

Dans un prochain article je vais décrire comment, à l'aide de cette description XMI on peut écrire un générateur ASN1 en moins d'une journée seulement.

+
+ +
diff --git a/c2xmi/news.xml b/c2xmi/news.xml new file mode 100644 index 0000000..09b7935 --- /dev/null +++ b/c2xmi/news.xml @@ -0,0 +1,35 @@ + + + + 16 Feb 2010 + Amélioration du rendu + Unification of the design + + -Integration d'un méchanism de login type + MD5. + + + en ligne. + + + EBERSOLD André + + + 29 Jan 2008 + Contenu + Content + + + + + + + + EBERSOLD Andre + + + diff --git a/calendar.en_US.UTF-8.xml b/calendar.en_US.UTF-8.xml index 24520a1..93778ee 100644 --- a/calendar.en_US.UTF-8.xml +++ b/calendar.en_US.UTF-8.xml @@ -11,11 +11,14 @@ $Id: calendar.en_US.UTF-8.xml,v 1.1 2010/08/25 14:32:59 aebersol Exp $

Calendar

-

A view on my public calendar.

-
- - - +

Introduction

+

This was my first development in Javascript. The feature is interesting and starts to work fine.

+

Plans

+

There is still a bit work to complete the component.

+
    +
  • Dynamic call of the calendar
  • +
  • Callback functions
  • +
diff --git a/calendar.fr_FR.UTF-8.xml b/calendar.fr_FR.UTF-8.xml index ae79e20..d9a143e 100644 --- a/calendar.fr_FR.UTF-8.xml +++ b/calendar.fr_FR.UTF-8.xml @@ -10,13 +10,14 @@ $Date: 2010/08/25 14:33:02 $ $Id: calendar.fr_FR.UTF-8.xml,v 1.1 2010/08/25 14:33:02 aebersol Exp $ - -

Calendrier

-

Une vue sur mon calendrier public google.

-
- - - +

Calendrier

+

Introduction

+

Pour l'instant, c'est un composant Javascript qui affiche la date du jour. Il permet de naviguer à travers les différents mois de l'année.

+

Futur

+

Il y a encore un peu de travail pour exploiter pleinement les services de ce composant. Tout d'abord, la possibilité d'ajouter des liens sur des dates données. Enfin, rendre le calendrier dynamique.C'est à dire visible et invisible.

+

+

+

diff --git a/calendar_doc.xml b/calendar_doc.xml index 8e855e0..ac9bb59 100644 --- a/calendar_doc.xml +++ b/calendar_doc.xml @@ -1,40 +1,25 @@ - - - - - - 16 Feb 2010 - Amélioration du rendu - Unification of the design - - -Integration d'un méchanism de login type - MD5. - - - - Utilisation des lib prototype, scriptaculous, leightway. - L'objectif étant d'avoir une album photo et de permettre l'edition - en ligne. - - - EBERSOLD André - - - Calendrier - Calendar - Willkommen + + + + + Calendrier + Calendar + Willkommen Informatique, Calendrier, Calendar, Javascript, CSS, Web2.0, Ingénieur, engineer $Date: 2008/03/06 18:11:27 $ $Id: calendar_doc.xml,v 1.3 2008/03/06 18:11:27 aebersol Exp $ - -

Description ofthe API of the calandar

+ Documentation Calendrier +

Calendrier

+

Calendar

-

Documentation Calendrier

-

Calendrier

En cours de réalisation.
-

Calendar

In progess.
diff --git a/contact.en_US.UTF-8.xml b/contact.en_US.UTF-8.xml index dbcae01..c4b5917 100644 --- a/contact.en_US.UTF-8.xml +++ b/contact.en_US.UTF-8.xml @@ -12,7 +12,7 @@

Feel free to leave a message or comments.

Comments:
-
Security
+ Security
-After including the library file, we create an FPDF object. -The FPDF() constructor is used here with the default values: pages are in A4 portrait and -the measure unit is millimeter. It could have been specified explicitly with: -
-
$pdf=new FPDF('P','mm','A4');
-
-
-It is possible to use landscape (L), other page formats (such as Letter and -Legal) and measure units (pt, cm, in). -
-
-There is no page for the moment, so we have to add one with AddPage(). The origin -is at the upper-left corner and the current position is by default placed at 1 cm from the -borders; the margins can be changed with SetMargins(). -
-
-Before we can print text, it is mandatory to select a font with SetFont(), otherwise the -document would be invalid. We choose Arial bold 16: -
-
$pdf->SetFont('Arial','B',16);
-
-
-We could have specified italics with I, underlined with U or a regular font with an empty string -(or any combination). Note that the font size is given in points, not millimeters (or another -user unit); it is the only exception. The other standard fonts are Times, Courier, Symbol and -ZapfDingbats. -
-
-We can now print a cell with Cell(). A cell is a rectangular area, possibly framed, -which contains some text. It is output at the current position. We specify its dimensions, -its text (centered or aligned), if borders should be drawn, and where the current position -moves after it (to the right, below or to the beginning of the next line). To add a frame, we would do this: -
-
$pdf->Cell(40,10,'Hello World !',1);
-
-
-To add a new cell next to it with centered text and go to the next line, we would do: -
-
$pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');
-
-
-Remark : the line break can also be done with Ln(). This method allows to specify -in addition the height of the break. -
-
-Finally, the document is closed and sent to the browser with Output(). We could have saved -it in a file by passing the desired file name. -
-
-Caution: in case when the PDF is sent to the browser, nothing else must be output, not before -nor after (the least space or carriage return matters). If you send some data before, you will -get the error message: "Some data has already been output to browser, can't send PDF file". If -you send after, your browser may display a blank page. - - + + + + +Minimal example + + + +

Minimal example

+Let's start with the classic example: +
+
<?php
+require('fpdf.php');
+
+$pdf = new FPDF();
+$pdf->AddPage();
+$pdf->SetFont('Arial','B',16);
+$pdf->Cell(40,10,'Hello World!');
+$pdf->Output();
+?>
+
+

[Demo]

+After including the library file, we create an FPDF object. +The constructor is used here with the default values: pages are in A4 portrait and +the unit of measure is millimeter. It could have been specified explicitly with: +
+
$pdf = new FPDF('P','mm','A4');
+
+
+It's possible to use landscape (L), other page sizes (such as Letter and +Legal) and units (pt, cm, in). +
+
+There's no page at the moment, so we have to add one with AddPage(). The origin +is at the upper-left corner and the current position is by default set at 1 cm from the +borders; the margins can be changed with SetMargins(). +
+
+Before we can print text, it's mandatory to select a font with SetFont(). +We choose Arial bold 16: +
+
$pdf->SetFont('Arial','B',16);
+
+
+We could have specified italics with I, underlined with U or a regular font with an empty string +(or any combination). Note that the font size is given in points, not millimeters (or another user +unit); it's the only exception. The other standard fonts are Times, Courier, Symbol and ZapfDingbats. +
+
+We can now print a cell with Cell(). A cell is a rectangular area, possibly framed, +which contains a line of text. It is output at the current position. We specify its dimensions, +its text (centered or aligned), if borders should be drawn, and where the current position +moves after it (to the right, below or to the beginning of the next line). To add a frame, we would do this: +
+
$pdf->Cell(40,10,'Hello World !',1);
+
+
+To add a new cell next to it with centered text and go to the next line, we would do: +
+
$pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');
+
+
+Remark: the line break can also be done with Ln(). This method additionnaly allows to specify +the height of the break. +
+
+Finally, the document is closed and sent to the browser with Output(). We could have saved +it to a file by passing the appropriate parameters. +
+
+Caution: in case when the PDF is sent to the browser, nothing else must be output by the +script, neither before nor after (no HTML, not even a space or a carriage return). If you send something +before, you will get the error message: "Some data has already been output, can't send PDF file". If you +send something after, the document might not display. + + diff --git a/phplib/fpdf/tutorial/tuto1.php b/phplib/fpdf/tutorial/tuto1.php old mode 100644 new mode 100755 index 4166cca..14a0504 --- a/phplib/fpdf/tutorial/tuto1.php +++ b/phplib/fpdf/tutorial/tuto1.php @@ -1,9 +1,9 @@ -AddPage(); -$pdf->SetFont('Arial','B',16); -$pdf->Cell(40,10,'Hello World!'); -$pdf->Output(); -?> +AddPage(); +$pdf->SetFont('Arial','B',16); +$pdf->Cell(40,10,'Hello World!'); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto2.htm b/phplib/fpdf/tutorial/tuto2.htm old mode 100644 new mode 100755 index 9eea36d..b892d1d --- a/phplib/fpdf/tutorial/tuto2.htm +++ b/phplib/fpdf/tutorial/tuto2.htm @@ -1,87 +1,80 @@ - - - - -Header, footer, page break and image - - - -

Header, footer, page break and image

-Here is a two page example with header, footer and logo: -
-
<?php
-require('fpdf.php');
-
-class PDF extends FPDF
-{
-//Page header
-function Header()
-{
-    //Logo
-    $this->Image('logo_pb.png',10,8,33);
-    //Arial bold 15
-    $this->SetFont('Arial','B',15);
-    //Move to the right
-    $this->Cell(80);
-    //Title
-    $this->Cell(30,10,'Title',1,0,'C');
-    //Line break
-    $this->Ln(20);
-}
-
-//Page footer
-function Footer()
-{
-    //Position at 1.5 cm from bottom
-    $this->SetY(-15);
-    //Arial italic 8
-    $this->SetFont('Arial','I',8);
-    //Page number
-    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
-}
-}
-
-//Instanciation of inherited class
-$pdf=new PDF();
-$pdf->AliasNbPages();
-$pdf->AddPage();
-$pdf->SetFont('Times','',12);
-for($i=1;$i<=40;$i++)
-    $pdf->Cell(0,10,'Printing line number '.$i,0,1);
-$pdf->Output();
-?>
-
- -This example makes use of the Header() and Footer() methods to process page headers and -footers. They are called automatically. They already exist in the FPDF class but do nothing, -therefore we have to extend the class and override them. -
-
-The logo is printed with the Image() method by specifying its upper-left corner and -its width. The height is calculated automatically to respect the image proportions. -
-
-To print the page number, a null value is passed as the cell width. It means that the cell -should extend up to the right margin of the page; it is handy to center text. The current page -number is returned by the PageNo() method; as for the total number of pages, it is obtained -by means of the special value {nb} which will be substituted on document closure -(provided you first called AliasNbPages()). -
-Note the use of the SetY() method which allows to set position at an absolute location in -the page, starting from the top or the bottom. -
-
-Another interesting feature is used here: the automatic page breaking. As soon as a cell would -cross a limit in the page (at 2 centimeters from the bottom by default), a break is performed -and the font restored. Although the header and footer select their own font (Arial), the body -continues with Times. This mechanism of automatic restoration also applies to colors and line -width. The limit which triggers page breaks can be set with SetAutoPageBreak(). - - + + + + +Header, footer, page break and image + + + +

Header, footer, page break and image

+Here's a two page example with header, footer and logo: +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+// Page header
+function Header()
+{
+    // Logo
+    $this->Image('logo.png',10,6,30);
+    // Arial bold 15
+    $this->SetFont('Arial','B',15);
+    // Move to the right
+    $this->Cell(80);
+    // Title
+    $this->Cell(30,10,'Title',1,0,'C');
+    // Line break
+    $this->Ln(20);
+}
+
+// Page footer
+function Footer()
+{
+    // Position at 1.5 cm from bottom
+    $this->SetY(-15);
+    // Arial italic 8
+    $this->SetFont('Arial','I',8);
+    // Page number
+    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
+}
+}
+
+// Instanciation of inherited class
+$pdf = new PDF();
+$pdf->AliasNbPages();
+$pdf->AddPage();
+$pdf->SetFont('Times','',12);
+for($i=1;$i<=40;$i++)
+    $pdf->Cell(0,10,'Printing line number '.$i,0,1);
+$pdf->Output();
+?>
+
+

[Demo]

+This example makes use of the Header() and Footer() methods to process page headers and +footers. They are called automatically. They already exist in the FPDF class but do nothing, +therefore we have to extend the class and override them. +
+
+The logo is printed with the Image() method by specifying its upper-left corner and +its width. The height is calculated automatically to respect the image proportions. +
+
+To print the page number, a null value is passed as the cell width. It means that the cell +should extend up to the right margin of the page; this is handy to center text. The current page +number is returned by the PageNo() method; as for the total number of pages, it's obtained +via the special value {nb} which is substituted when the document is finished +(provided you first called AliasNbPages()). +
+Note the use of the SetY() method which allows to set position at an absolute location in +the page, starting from the top or the bottom. +
+
+Another interesting feature is used here: the automatic page breaking. As soon as a cell would +cross a limit in the page (at 2 centimeters from the bottom by default), a break is issued +and the font restored. Although the header and footer select their own font (Arial), the body +continues with Times. This mechanism of automatic restoration also applies to colors and line +width. The limit which triggers page breaks can be set with SetAutoPageBreak(). + + diff --git a/phplib/fpdf/tutorial/tuto2.php b/phplib/fpdf/tutorial/tuto2.php old mode 100644 new mode 100755 index 9737526..cc7d51c --- a/phplib/fpdf/tutorial/tuto2.php +++ b/phplib/fpdf/tutorial/tuto2.php @@ -1,41 +1,41 @@ -Image('logo_pb.png',10,8,33); - //Arial bold 15 - $this->SetFont('Arial','B',15); - //Move to the right - $this->Cell(80); - //Title - $this->Cell(30,10,'Title',1,0,'C'); - //Line break - $this->Ln(20); -} - -//Page footer -function Footer() -{ - //Position at 1.5 cm from bottom - $this->SetY(-15); - //Arial italic 8 - $this->SetFont('Arial','I',8); - //Page number - $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); -} -} - -//Instanciation of inherited class -$pdf=new PDF(); -$pdf->AliasNbPages(); -$pdf->AddPage(); -$pdf->SetFont('Times','',12); -for($i=1;$i<=40;$i++) - $pdf->Cell(0,10,'Printing line number '.$i,0,1); -$pdf->Output(); -?> +Image('logo.png',10,6,30); + // Arial bold 15 + $this->SetFont('Arial','B',15); + // Move to the right + $this->Cell(80); + // Title + $this->Cell(30,10,'Title',1,0,'C'); + // Line break + $this->Ln(20); +} + +// Page footer +function Footer() +{ + // Position at 1.5 cm from bottom + $this->SetY(-15); + // Arial italic 8 + $this->SetFont('Arial','I',8); + // Page number + $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); +} +} + +// Instanciation of inherited class +$pdf = new PDF(); +$pdf->AliasNbPages(); +$pdf->AddPage(); +$pdf->SetFont('Times','',12); +for($i=1;$i<=40;$i++) + $pdf->Cell(0,10,'Printing line number '.$i,0,1); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto3.htm b/phplib/fpdf/tutorial/tuto3.htm old mode 100644 new mode 100755 index 7119544..fa58307 --- a/phplib/fpdf/tutorial/tuto3.htm +++ b/phplib/fpdf/tutorial/tuto3.htm @@ -1,122 +1,115 @@ - - - - -Line breaks and colors - - - -

Line breaks and colors

-Let's continue with an example which prints justified paragraphs. It also illustrates the use -of colors. -
-
<?php
-require('fpdf.php');
-
-class PDF extends FPDF
-{
-function Header()
-{
-    global $title;
-
-    //Arial bold 15
-    $this->SetFont('Arial','B',15);
-    //Calculate width of title and position
-    $w=$this->GetStringWidth($title)+6;
-    $this->SetX((210-$w)/2);
-    //Colors of frame, background and text
-    $this->SetDrawColor(0,80,180);
-    $this->SetFillColor(230,230,0);
-    $this->SetTextColor(220,50,50);
-    //Thickness of frame (1 mm)
-    $this->SetLineWidth(1);
-    //Title
-    $this->Cell($w,9,$title,1,1,'C',1);
-    //Line break
-    $this->Ln(10);
-}
-
-function Footer()
-{
-    //Position at 1.5 cm from bottom
-    $this->SetY(-15);
-    //Arial italic 8
-    $this->SetFont('Arial','I',8);
-    //Text color in gray
-    $this->SetTextColor(128);
-    //Page number
-    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
-}
-
-function ChapterTitle($num,$label)
-{
-    //Arial 12
-    $this->SetFont('Arial','',12);
-    //Background color
-    $this->SetFillColor(200,220,255);
-    //Title
-    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1);
-    //Line break
-    $this->Ln(4);
-}
-
-function ChapterBody($file)
-{
-    //Read text file
-    $f=fopen($file,'r');
-    $txt=fread($f,filesize($file));
-    fclose($f);
-    //Times 12
-    $this->SetFont('Times','',12);
-    //Output justified text
-    $this->MultiCell(0,5,$txt);
-    //Line break
-    $this->Ln();
-    //Mention in italics
-    $this->SetFont('','I');
-    $this->Cell(0,5,'(end of excerpt)');
-}
-
-function PrintChapter($num,$title,$file)
-{
-    $this->AddPage();
-    $this->ChapterTitle($num,$title);
-    $this->ChapterBody($file);
-}
-}
-
-$pdf=new PDF();
-$title='20000 Leagues Under the Seas';
-$pdf->SetTitle($title);
-$pdf->SetAuthor('Jules Verne');
-$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
-$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
-$pdf->Output();
-?>
-
- -The GetStringWidth() method allows to determine the length of a string in the current font, -which is used here to calculate the position and the width of the frame surrounding the title. -Then colors are set (via SetDrawColor(), SetFillColor() and SetTextColor()) and the -thickness of the line is set to 1 mm (against 0.2 by default) with SetLineWidth(). Finally, -we output the cell (the last parameter to 1 indicates that the background must be filled). -
-
-The method used to print the paragraphs is MultiCell(). Each time a line reaches the -right extremity of the cell or a carriage-return character is met, a line break is issued -and a new cell automatically created under the current one. Text is justified by default. -
-
-Two document properties are defined: title (SetTitle()) and author (SetAuthor()). -Properties can be viewed by two means. First is open the document directly with Acrobat Reader, -go to the File menu, Document info, General. Second, also available from the plug-in, is click -on the triangle just above the right scrollbar and choose Document info. - - + + + + +Line breaks and colors + + + +

Line breaks and colors

+Let's continue with an example which prints justified paragraphs. It also illustrates the use +of colors. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+function Header()
+{
+    global $title;
+
+    // Arial bold 15
+    $this->SetFont('Arial','B',15);
+    // Calculate width of title and position
+    $w = $this->GetStringWidth($title)+6;
+    $this->SetX((210-$w)/2);
+    // Colors of frame, background and text
+    $this->SetDrawColor(0,80,180);
+    $this->SetFillColor(230,230,0);
+    $this->SetTextColor(220,50,50);
+    // Thickness of frame (1 mm)
+    $this->SetLineWidth(1);
+    // Title
+    $this->Cell($w,9,$title,1,1,'C',true);
+    // Line break
+    $this->Ln(10);
+}
+
+function Footer()
+{
+    // Position at 1.5 cm from bottom
+    $this->SetY(-15);
+    // Arial italic 8
+    $this->SetFont('Arial','I',8);
+    // Text color in gray
+    $this->SetTextColor(128);
+    // Page number
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+
+function ChapterTitle($num, $label)
+{
+    // Arial 12
+    $this->SetFont('Arial','',12);
+    // Background color
+    $this->SetFillColor(200,220,255);
+    // Title
+    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true);
+    // Line break
+    $this->Ln(4);
+}
+
+function ChapterBody($file)
+{
+    // Read text file
+    $txt = file_get_contents($file);
+    // Times 12
+    $this->SetFont('Times','',12);
+    // Output justified text
+    $this->MultiCell(0,5,$txt);
+    // Line break
+    $this->Ln();
+    // Mention in italics
+    $this->SetFont('','I');
+    $this->Cell(0,5,'(end of excerpt)');
+}
+
+function PrintChapter($num, $title, $file)
+{
+    $this->AddPage();
+    $this->ChapterTitle($num,$title);
+    $this->ChapterBody($file);
+}
+}
+
+$pdf = new PDF();
+$title = '20000 Leagues Under the Seas';
+$pdf->SetTitle($title);
+$pdf->SetAuthor('Jules Verne');
+$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
+$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
+$pdf->Output();
+?>
+
+

[Demo]

+The GetStringWidth() method allows to determine the length of a string in the current font, +which is used here to calculate the position and the width of the frame surrounding the title. +Then colors are set (via SetDrawColor(), SetFillColor() and SetTextColor()) and the +thickness of the line is set to 1 mm (instead of 0.2 by default) with SetLineWidth(). Finally, +we output the cell (the last parameter true indicates that the background must +be filled). +
+
+The method used to print the paragraphs is MultiCell(). Each time a line reaches the +right extremity of the cell or a carriage return character is met, a line break is issued +and a new cell automatically created under the current one. Text is justified by default. +
+
+Two document properties are defined: the title (SetTitle()) and the author (SetAuthor()). +There are several ways to view them in Adobe Reader. The first one is to open the file directly with +the reader, go to the File menu and choose the Properties option. The second one, also available from +the plug-in, is to right-click and select Document Properties. The third method is to type the Ctrl+D +key combination. + + diff --git a/phplib/fpdf/tutorial/tuto3.php b/phplib/fpdf/tutorial/tuto3.php old mode 100644 new mode 100755 index 660a00d..eade51c --- a/phplib/fpdf/tutorial/tuto3.php +++ b/phplib/fpdf/tutorial/tuto3.php @@ -1,83 +1,81 @@ -SetFont('Arial','B',15); - //Calculate width of title and position - $w=$this->GetStringWidth($title)+6; - $this->SetX((210-$w)/2); - //Colors of frame, background and text - $this->SetDrawColor(0,80,180); - $this->SetFillColor(230,230,0); - $this->SetTextColor(220,50,50); - //Thickness of frame (1 mm) - $this->SetLineWidth(1); - //Title - $this->Cell($w,9,$title,1,1,'C',1); - //Line break - $this->Ln(10); -} - -function Footer() -{ - //Position at 1.5 cm from bottom - $this->SetY(-15); - //Arial italic 8 - $this->SetFont('Arial','I',8); - //Text color in gray - $this->SetTextColor(128); - //Page number - $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); -} - -function ChapterTitle($num,$label) -{ - //Arial 12 - $this->SetFont('Arial','',12); - //Background color - $this->SetFillColor(200,220,255); - //Title - $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1); - //Line break - $this->Ln(4); -} - -function ChapterBody($file) -{ - //Read text file - $f=fopen($file,'r'); - $txt=fread($f,filesize($file)); - fclose($f); - //Times 12 - $this->SetFont('Times','',12); - //Output justified text - $this->MultiCell(0,5,$txt); - //Line break - $this->Ln(); - //Mention in italics - $this->SetFont('','I'); - $this->Cell(0,5,'(end of excerpt)'); -} - -function PrintChapter($num,$title,$file) -{ - $this->AddPage(); - $this->ChapterTitle($num,$title); - $this->ChapterBody($file); -} -} - -$pdf=new PDF(); -$title='20000 Leagues Under the Seas'; -$pdf->SetTitle($title); -$pdf->SetAuthor('Jules Verne'); -$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); -$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); -$pdf->Output(); -?> +SetFont('Arial','B',15); + // Calculate width of title and position + $w = $this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + // Colors of frame, background and text + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + // Thickness of frame (1 mm) + $this->SetLineWidth(1); + // Title + $this->Cell($w,9,$title,1,1,'C',true); + // Line break + $this->Ln(10); +} + +function Footer() +{ + // Position at 1.5 cm from bottom + $this->SetY(-15); + // Arial italic 8 + $this->SetFont('Arial','I',8); + // Text color in gray + $this->SetTextColor(128); + // Page number + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function ChapterTitle($num, $label) +{ + // Arial 12 + $this->SetFont('Arial','',12); + // Background color + $this->SetFillColor(200,220,255); + // Title + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true); + // Line break + $this->Ln(4); +} + +function ChapterBody($file) +{ + // Read text file + $txt = file_get_contents($file); + // Times 12 + $this->SetFont('Times','',12); + // Output justified text + $this->MultiCell(0,5,$txt); + // Line break + $this->Ln(); + // Mention in italics + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); +} + +function PrintChapter($num, $title, $file) +{ + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf = new PDF(); +$title = '20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto4.htm b/phplib/fpdf/tutorial/tuto4.htm old mode 100644 new mode 100755 index 586630e..7af730f --- a/phplib/fpdf/tutorial/tuto4.htm +++ b/phplib/fpdf/tutorial/tuto4.htm @@ -1,143 +1,132 @@ - - - - -Multi-columns - - - -

Multi-columns

-This example is a variant of the previous one showing how to lay the text across multiple -columns. -
-
<?php
-require('fpdf.php');
-
-class PDF extends FPDF
-{
-//Current column
-var $col=0;
-//Ordinate of column start
-var $y0;
-
-function Header()
-{
-    //Page header
-    global $title;
-
-    $this->SetFont('Arial','B',15);
-    $w=$this->GetStringWidth($title)+6;
-    $this->SetX((210-$w)/2);
-    $this->SetDrawColor(0,80,180);
-    $this->SetFillColor(230,230,0);
-    $this->SetTextColor(220,50,50);
-    $this->SetLineWidth(1);
-    $this->Cell($w,9,$title,1,1,'C',1);
-    $this->Ln(10);
-    //Save ordinate
-    $this->y0=$this->GetY();
-}
-
-function Footer()
-{
-    //Page footer
-    $this->SetY(-15);
-    $this->SetFont('Arial','I',8);
-    $this->SetTextColor(128);
-    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
-}
-
-function SetCol($col)
-{
-    //Set position at a given column
-    $this->col=$col;
-    $x=10+$col*65;
-    $this->SetLeftMargin($x);
-    $this->SetX($x);
-}
-
-function AcceptPageBreak()
-{
-    //Method accepting or not automatic page break
-    if($this->col<2)
-    {
-        //Go to next column
-        $this->SetCol($this->col+1);
-        //Set ordinate to top
-        $this->SetY($this->y0);
-        //Keep on page
-        return false;
-    }
-    else
-    {
-        //Go back to first column
-        $this->SetCol(0);
-        //Page break
-        return true;
-    }
-}
-
-function ChapterTitle($num,$label)
-{
-    //Title
-    $this->SetFont('Arial','',12);
-    $this->SetFillColor(200,220,255);
-    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1);
-    $this->Ln(4);
-    //Save ordinate
-    $this->y0=$this->GetY();
-}
-
-function ChapterBody($file)
-{
-    //Read text file
-    $f=fopen($file,'r');
-    $txt=fread($f,filesize($file));
-    fclose($f);
-    //Font
-    $this->SetFont('Times','',12);
-    //Output text in a 6 cm width column
-    $this->MultiCell(60,5,$txt);
-    $this->Ln();
-    //Mention
-    $this->SetFont('','I');
-    $this->Cell(0,5,'(end of excerpt)');
-    //Go back to first column
-    $this->SetCol(0);
-}
-
-function PrintChapter($num,$title,$file)
-{
-    //Add chapter
-    $this->AddPage();
-    $this->ChapterTitle($num,$title);
-    $this->ChapterBody($file);
-}
-}
-
-$pdf=new PDF();
-$title='20000 Leagues Under the Seas';
-$pdf->SetTitle($title);
-$pdf->SetAuthor('Jules Verne');
-$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
-$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
-$pdf->Output();
-?>
-
- -The key method used is AcceptPageBreak(). It allows to accept or not an automatic page -break. By refusing it and altering the margin and current position, the desired column layout -is achieved. -
-For the rest, not much change; two properties have been added to the class to save the current -column number and the position where columns begin, and the MultiCell() call specifies a -6 centimeter width. - - + + + + +Multi-columns + + + +

Multi-columns

+This example is a variant of the previous one showing how to lay the text across multiple +columns. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+protected $col = 0; // Current column
+protected $y0;      // Ordinate of column start
+
+function Header()
+{
+    // Page header
+    global $title;
+
+    $this->SetFont('Arial','B',15);
+    $w = $this->GetStringWidth($title)+6;
+    $this->SetX((210-$w)/2);
+    $this->SetDrawColor(0,80,180);
+    $this->SetFillColor(230,230,0);
+    $this->SetTextColor(220,50,50);
+    $this->SetLineWidth(1);
+    $this->Cell($w,9,$title,1,1,'C',true);
+    $this->Ln(10);
+    // Save ordinate
+    $this->y0 = $this->GetY();
+}
+
+function Footer()
+{
+    // Page footer
+    $this->SetY(-15);
+    $this->SetFont('Arial','I',8);
+    $this->SetTextColor(128);
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+
+function SetCol($col)
+{
+    // Set position at a given column
+    $this->col = $col;
+    $x = 10+$col*65;
+    $this->SetLeftMargin($x);
+    $this->SetX($x);
+}
+
+function AcceptPageBreak()
+{
+    // Method accepting or not automatic page break
+    if($this->col<2)
+    {
+        // Go to next column
+        $this->SetCol($this->col+1);
+        // Set ordinate to top
+        $this->SetY($this->y0);
+        // Keep on page
+        return false;
+    }
+    else
+    {
+        // Go back to first column
+        $this->SetCol(0);
+        // Page break
+        return true;
+    }
+}
+
+function ChapterTitle($num, $label)
+{
+    // Title
+    $this->SetFont('Arial','',12);
+    $this->SetFillColor(200,220,255);
+    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true);
+    $this->Ln(4);
+    // Save ordinate
+    $this->y0 = $this->GetY();
+}
+
+function ChapterBody($file)
+{
+    // Read text file
+    $txt = file_get_contents($file);
+    // Font
+    $this->SetFont('Times','',12);
+    // Output text in a 6 cm width column
+    $this->MultiCell(60,5,$txt);
+    $this->Ln();
+    // Mention
+    $this->SetFont('','I');
+    $this->Cell(0,5,'(end of excerpt)');
+    // Go back to first column
+    $this->SetCol(0);
+}
+
+function PrintChapter($num, $title, $file)
+{
+    // Add chapter
+    $this->AddPage();
+    $this->ChapterTitle($num,$title);
+    $this->ChapterBody($file);
+}
+}
+
+$pdf = new PDF();
+$title = '20000 Leagues Under the Seas';
+$pdf->SetTitle($title);
+$pdf->SetAuthor('Jules Verne');
+$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
+$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
+$pdf->Output();
+?>
+
+

[Demo]

+The key method used is AcceptPageBreak(). It allows to accept or not an automatic page +break. By refusing it and altering the margin and current position, the desired column layout +is achieved. +
+For the rest, not many changes; two properties have been added to the class to save the current +column number and the position where columns begin, and the MultiCell() call specifies a +6 centimeter width. + + diff --git a/phplib/fpdf/tutorial/tuto4.php b/phplib/fpdf/tutorial/tuto4.php old mode 100644 new mode 100755 index 4c1d75a..f5f4fa8 --- a/phplib/fpdf/tutorial/tuto4.php +++ b/phplib/fpdf/tutorial/tuto4.php @@ -1,113 +1,109 @@ -SetFont('Arial','B',15); - $w=$this->GetStringWidth($title)+6; - $this->SetX((210-$w)/2); - $this->SetDrawColor(0,80,180); - $this->SetFillColor(230,230,0); - $this->SetTextColor(220,50,50); - $this->SetLineWidth(1); - $this->Cell($w,9,$title,1,1,'C',1); - $this->Ln(10); - //Save ordinate - $this->y0=$this->GetY(); -} - -function Footer() -{ - //Page footer - $this->SetY(-15); - $this->SetFont('Arial','I',8); - $this->SetTextColor(128); - $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); -} - -function SetCol($col) -{ - //Set position at a given column - $this->col=$col; - $x=10+$col*65; - $this->SetLeftMargin($x); - $this->SetX($x); -} - -function AcceptPageBreak() -{ - //Method accepting or not automatic page break - if($this->col<2) - { - //Go to next column - $this->SetCol($this->col+1); - //Set ordinate to top - $this->SetY($this->y0); - //Keep on page - return false; - } - else - { - //Go back to first column - $this->SetCol(0); - //Page break - return true; - } -} - -function ChapterTitle($num,$label) -{ - //Title - $this->SetFont('Arial','',12); - $this->SetFillColor(200,220,255); - $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1); - $this->Ln(4); - //Save ordinate - $this->y0=$this->GetY(); -} - -function ChapterBody($file) -{ - //Read text file - $f=fopen($file,'r'); - $txt=fread($f,filesize($file)); - fclose($f); - //Font - $this->SetFont('Times','',12); - //Output text in a 6 cm width column - $this->MultiCell(60,5,$txt); - $this->Ln(); - //Mention - $this->SetFont('','I'); - $this->Cell(0,5,'(end of excerpt)'); - //Go back to first column - $this->SetCol(0); -} - -function PrintChapter($num,$title,$file) -{ - //Add chapter - $this->AddPage(); - $this->ChapterTitle($num,$title); - $this->ChapterBody($file); -} -} - -$pdf=new PDF(); -$title='20000 Leagues Under the Seas'; -$pdf->SetTitle($title); -$pdf->SetAuthor('Jules Verne'); -$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); -$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); -$pdf->Output(); -?> +SetFont('Arial','B',15); + $w = $this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + $this->SetLineWidth(1); + $this->Cell($w,9,$title,1,1,'C',true); + $this->Ln(10); + // Save ordinate + $this->y0 = $this->GetY(); +} + +function Footer() +{ + // Page footer + $this->SetY(-15); + $this->SetFont('Arial','I',8); + $this->SetTextColor(128); + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function SetCol($col) +{ + // Set position at a given column + $this->col = $col; + $x = 10+$col*65; + $this->SetLeftMargin($x); + $this->SetX($x); +} + +function AcceptPageBreak() +{ + // Method accepting or not automatic page break + if($this->col<2) + { + // Go to next column + $this->SetCol($this->col+1); + // Set ordinate to top + $this->SetY($this->y0); + // Keep on page + return false; + } + else + { + // Go back to first column + $this->SetCol(0); + // Page break + return true; + } +} + +function ChapterTitle($num, $label) +{ + // Title + $this->SetFont('Arial','',12); + $this->SetFillColor(200,220,255); + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true); + $this->Ln(4); + // Save ordinate + $this->y0 = $this->GetY(); +} + +function ChapterBody($file) +{ + // Read text file + $txt = file_get_contents($file); + // Font + $this->SetFont('Times','',12); + // Output text in a 6 cm width column + $this->MultiCell(60,5,$txt); + $this->Ln(); + // Mention + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); + // Go back to first column + $this->SetCol(0); +} + +function PrintChapter($num, $title, $file) +{ + // Add chapter + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf = new PDF(); +$title = '20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto5.htm b/phplib/fpdf/tutorial/tuto5.htm old mode 100644 new mode 100755 index c2403ec..03fdd54 --- a/phplib/fpdf/tutorial/tuto5.htm +++ b/phplib/fpdf/tutorial/tuto5.htm @@ -1,140 +1,134 @@ - - - - -Tables - - - -

Tables

-This tutorial shows how to make tables easily. -
-
<?php
-require('fpdf.php');
-
-class PDF extends FPDF
-{
-//Load data
-function LoadData($file)
-{
-    //Read file lines
-    $lines=file($file);
-    $data=array();
-    foreach($lines as $line)
-        $data[]=explode(';',chop($line));
-    return $data;
-}
-
-//Simple table
-function BasicTable($header,$data)
-{
-    //Header
-    foreach($header as $col)
-        $this->Cell(40,7,$col,1);
-    $this->Ln();
-    //Data
-    foreach($data as $row)
-    {
-        foreach($row as $col)
-            $this->Cell(40,6,$col,1);
-        $this->Ln();
-    }
-}
-
-//Better table
-function ImprovedTable($header,$data)
-{
-    //Column widths
-    $w=array(40,35,40,45);
-    //Header
-    for($i=0;$i<count($header);$i++)
-        $this->Cell($w[$i],7,$header[$i],1,0,'C');
-    $this->Ln();
-    //Data
-    foreach($data as $row)
-    {
-        $this->Cell($w[0],6,$row[0],'LR');
-        $this->Cell($w[1],6,$row[1],'LR');
-        $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');
-        $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');
-        $this->Ln();
-    }
-    //Closure line
-    $this->Cell(array_sum($w),0,'','T');
-}
-
-//Colored table
-function FancyTable($header,$data)
-{
-    //Colors, line width and bold font
-    $this->SetFillColor(255,0,0);
-    $this->SetTextColor(255);
-    $this->SetDrawColor(128,0,0);
-    $this->SetLineWidth(.3);
-    $this->SetFont('','B');
-    //Header
-    $w=array(40,35,40,45);
-    for($i=0;$i<count($header);$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');
-}
-}
-
-$pdf=new PDF();
-//Column titles
-$header=array('Country','Capital','Area (sq km)','Pop. (thousands)');
-//Data loading
-$data=$pdf->LoadData('countries.txt');
-$pdf->SetFont('Arial','',14);
-$pdf->AddPage();
-$pdf->BasicTable($header,$data);
-$pdf->AddPage();
-$pdf->ImprovedTable($header,$data);
-$pdf->AddPage();
-$pdf->FancyTable($header,$data);
-$pdf->Output();
-?>
-
- -A table being just a collection of cells, it is natural to build one from them. The first -example is achieved in the most basic way possible: simple framed cells, all of the same size -and left aligned. The result is rudimentary but very quick to obtain. -
-
-The second table brings some improvements: each column has its own width, titles are centered -and figures right aligned. Moreover, horizontal lines have been removed. This is done by means -of the border parameter of the Cell() method, which specifies which sides of the -cell must be drawn. Here we want the left (L) and right (R) ones. It remains -the problem of the horizontal line to finish the table. There are two possibilities: either -check for the last line in the loop, in which case we use LRB for the border -parameter; or, as done here, add the line once the loop is over. -
-
-The third table is similar to the second one but uses colors. Fill, text and line colors are -simply specified. Alternate coloring for rows is obtained by using alternatively transparent -and filled cells. - - + + + + +Tables + + + +

Tables

+This tutorial shows different ways to make tables. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+// Load data
+function LoadData($file)
+{
+    // Read file lines
+    $lines = file($file);
+    $data = array();
+    foreach($lines as $line)
+        $data[] = explode(';',trim($line));
+    return $data;
+}
+
+// Simple table
+function BasicTable($header, $data)
+{
+    // Header
+    foreach($header as $col)
+        $this->Cell(40,7,$col,1);
+    $this->Ln();
+    // Data
+    foreach($data as $row)
+    {
+        foreach($row as $col)
+            $this->Cell(40,6,$col,1);
+        $this->Ln();
+    }
+}
+
+// Better table
+function ImprovedTable($header, $data)
+{
+    // Column widths
+    $w = array(40, 35, 40, 45);
+    // Header
+    for($i=0;$i<count($header);$i++)
+        $this->Cell($w[$i],7,$header[$i],1,0,'C');
+    $this->Ln();
+    // Data
+    foreach($data as $row)
+    {
+        $this->Cell($w[0],6,$row[0],'LR');
+        $this->Cell($w[1],6,$row[1],'LR');
+        $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');
+        $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');
+        $this->Ln();
+    }
+    // Closing line
+    $this->Cell(array_sum($w),0,'','T');
+}
+
+// Colored table
+function FancyTable($header, $data)
+{
+    // Colors, line width and bold font
+    $this->SetFillColor(255,0,0);
+    $this->SetTextColor(255);
+    $this->SetDrawColor(128,0,0);
+    $this->SetLineWidth(.3);
+    $this->SetFont('','B');
+    // Header
+    $w = array(40, 35, 40, 45);
+    for($i=0;$i<count($header);$i++)
+        $this->Cell($w[$i],7,$header[$i],1,0,'C',true);
+    $this->Ln();
+    // Color and font restoration
+    $this->SetFillColor(224,235,255);
+    $this->SetTextColor(0);
+    $this->SetFont('');
+    // Data
+    $fill = false;
+    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;
+    }
+    // Closing line
+    $this->Cell(array_sum($w),0,'','T');
+}
+}
+
+$pdf = new PDF();
+// Column headings
+$header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)');
+// Data loading
+$data = $pdf->LoadData('countries.txt');
+$pdf->SetFont('Arial','',14);
+$pdf->AddPage();
+$pdf->BasicTable($header,$data);
+$pdf->AddPage();
+$pdf->ImprovedTable($header,$data);
+$pdf->AddPage();
+$pdf->FancyTable($header,$data);
+$pdf->Output();
+?>
+
+

[Demo]

+A table being just a collection of cells, it's natural to build one from them. The first +example is achieved in the most basic way possible: simple framed cells, all of the same size +and left aligned. The result is rudimentary but very quick to obtain. +
+
+The second table brings some improvements: each column has its own width, headings are centered, +and numbers right aligned. Moreover, horizontal lines have been removed. This is done by means +of the border parameter of the Cell() method, which specifies which sides of the +cell must be drawn. Here we want the left (L) and right (R) ones. It remains +the problem of the horizontal line to finish the table. There are two possibilities: either +check for the last line in the loop, in which case we use LRB for the border +parameter; or, as done here, add the line once the loop is over. +
+
+The third table is similar to the second one but uses colors. Fill, text and line colors are +simply specified. Alternate coloring for rows is obtained by using alternatively transparent +and filled cells. + + diff --git a/phplib/fpdf/tutorial/tuto5.php b/phplib/fpdf/tutorial/tuto5.php old mode 100644 new mode 100755 index 4a1fbfc..f1b64a2 --- a/phplib/fpdf/tutorial/tuto5.php +++ b/phplib/fpdf/tutorial/tuto5.php @@ -1,101 +1,102 @@ -Cell(40,7,$col,1); - $this->Ln(); - //Data - foreach($data as $row) - { - foreach($row as $col) - $this->Cell(40,6,$col,1); - $this->Ln(); - } -} - -//Better table -function ImprovedTable($header,$data) -{ - //Column widths - $w=array(40,35,40,45); - //Header - for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); - $this->Ln(); - //Data - foreach($data as $row) - { - $this->Cell($w[0],6,$row[0],'LR'); - $this->Cell($w[1],6,$row[1],'LR'); - $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R'); - $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R'); - $this->Ln(); - } - //Closure line - $this->Cell(array_sum($w),0,'','T'); -} - -//Colored table -function FancyTable($header,$data) -{ - //Colors, line width and bold font - $this->SetFillColor(255,0,0); - $this->SetTextColor(255); - $this->SetDrawColor(128,0,0); - $this->SetLineWidth(.3); - $this->SetFont('','B'); - //Header - $w=array(40,35,40,45); - for($i=0;$iCell($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'); -} -} - -$pdf=new PDF(); -//Column titles -$header=array('Country','Capital','Area (sq km)','Pop. (thousands)'); -//Data loading -$data=$pdf->LoadData('countries.txt'); -$pdf->SetFont('Arial','',14); -$pdf->AddPage(); -$pdf->BasicTable($header,$data); -$pdf->AddPage(); -$pdf->ImprovedTable($header,$data); -$pdf->AddPage(); -$pdf->FancyTable($header,$data); -$pdf->Output(); -?> +Cell(40,7,$col,1); + $this->Ln(); + // Data + foreach($data as $row) + { + foreach($row as $col) + $this->Cell(40,6,$col,1); + $this->Ln(); + } +} + +// Better table +function ImprovedTable($header, $data) +{ + // Column widths + $w = array(40, 35, 40, 45); + // Header + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); + $this->Ln(); + // Data + foreach($data as $row) + { + $this->Cell($w[0],6,$row[0],'LR'); + $this->Cell($w[1],6,$row[1],'LR'); + $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R'); + $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R'); + $this->Ln(); + } + // Closing line + $this->Cell(array_sum($w),0,'','T'); +} + +// Colored table +function FancyTable($header, $data) +{ + // Colors, line width and bold font + $this->SetFillColor(255,0,0); + $this->SetTextColor(255); + $this->SetDrawColor(128,0,0); + $this->SetLineWidth(.3); + $this->SetFont('','B'); + // Header + $w = array(40, 35, 40, 45); + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C',true); + $this->Ln(); + // Color and font restoration + $this->SetFillColor(224,235,255); + $this->SetTextColor(0); + $this->SetFont(''); + // Data + $fill = false; + 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; + } + // Closing line + $this->Cell(array_sum($w),0,'','T'); +} +} + +$pdf = new PDF(); +// Column headings +$header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)'); +// Data loading +$data = $pdf->LoadData('countries.txt'); +$pdf->SetFont('Arial','',14); +$pdf->AddPage(); +$pdf->BasicTable($header,$data); +$pdf->AddPage(); +$pdf->ImprovedTable($header,$data); +$pdf->AddPage(); +$pdf->FancyTable($header,$data); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto6.htm b/phplib/fpdf/tutorial/tuto6.htm old mode 100644 new mode 100755 index 9496a3d..24516e6 --- a/phplib/fpdf/tutorial/tuto6.htm +++ b/phplib/fpdf/tutorial/tuto6.htm @@ -1,183 +1,154 @@ - - - - -Links and flowing text - - - -

Links and flowing text

-This tutorial explains how to insert links (internal and external) and shows a new text writing -mode. It also contains a rudimentary HTML parser. -
-
<?php
-require('fpdf.php');
-
-class PDF extends FPDF
-{
-var $B;
-var $I;
-var $U;
-var $HREF;
-
-function PDF($orientation='P',$unit='mm',$format='A4')
-{
-    //Call parent constructor
-    $this->FPDF($orientation,$unit,$format);
-    //Initialization
-    $this->B=0;
-    $this->I=0;
-    $this->U=0;
-    $this->HREF='';
-}
-
-function WriteHTML($html)
-{
-    //HTML parser
-    $html=str_replace("\n",' ',$html);
-    $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
-    foreach($a as $i=>$e)
-    {
-        if($i%2==0)
-        {
-            //Text
-            if($this->HREF)
-                $this->PutLink($this->HREF,$e);
-            else
-                $this->Write(5,$e);
-        }
-        else
-        {
-            //Tag
-            if($e{0}=='/')
-                $this->CloseTag(strtoupper(substr($e,1)));
-            else
-            {
-                //Extract attributes
-                $a2=explode(' ',$e);
-                $tag=strtoupper(array_shift($a2));
-                $attr=array();
-                foreach($a2 as $v)
-                    if(ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3))
-                        $attr[strtoupper($a3[1])]=$a3[2];
-                $this->OpenTag($tag,$attr);
-            }
-        }
-    }
-}
-
-function OpenTag($tag,$attr)
-{
-    //Opening tag
-    if($tag=='B' or $tag=='I' or $tag=='U')
-        $this->SetStyle($tag,true);
-    if($tag=='A')
-        $this->HREF=$attr['HREF'];
-    if($tag=='BR')
-        $this->Ln(5);
-}
-
-function CloseTag($tag)
-{
-    //Closing tag
-    if($tag=='B' or $tag=='I' or $tag=='U')
-        $this->SetStyle($tag,false);
-    if($tag=='A')
-        $this->HREF='';
-}
-
-function SetStyle($tag,$enable)
-{
-    //Modify style and select corresponding font
-    $this->$tag+=($enable ? 1 : -1);
-    $style='';
-    foreach(array('B','I','U') as $s)
-        if($this->$s>0)
-            $style.=$s;
-    $this->SetFont('',$style);
-}
-
-function PutLink($URL,$txt)
-{
-    //Put a hyperlink
-    $this->SetTextColor(0,0,255);
-    $this->SetStyle('U',true);
-    $this->Write(5,$txt,$URL);
-    $this->SetStyle('U',false);
-    $this->SetTextColor(0);
-}
-}
-
-$html='You can now easily print text mixing different
-styles : <B>bold</B>, <I>italic</I>, <U>underlined</U>, or
-<B><I><U>all at once</U></I></B>!<BR>You can also insert links
-on text, such as <A HREF="http://www.fpdf.org">www.fpdf.org</A>,
-or on an image: click on the logo.';
-
-$pdf=new PDF();
-//First page
-$pdf->AddPage();
-$pdf->SetFont('Arial','',20);
-$pdf->Write(5,'To find out what\'s new in this tutorial, click ');
-$pdf->SetFont('','U');
-$link=$pdf->AddLink();
-$pdf->Write(5,'here',$link);
-$pdf->SetFont('');
-//Second page
-$pdf->AddPage();
-$pdf->SetLink($link);
-$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org');
-$pdf->SetLeftMargin(45);
-$pdf->SetFontSize(14);
-$pdf->WriteHTML($html);
-$pdf->Output();
-?>
-
- -The new method to print text is Write(). It is very close to MultiCell(); the differences -are: -
    -
  • The end of line is at the right margin and the next line begins at the left one -
  • The current position moves at the end of the text -
-So it allows to write a chunk of text, alter the font style, then continue from the exact -place we left it. On the other hand, you cannot full justify it. -
-
-The method is used on the first page to put a link pointing to the second one. The beginning of -the sentence is written in regular style, then we switch to underline and finish it. The link -is created with AddLink(), which returns a link identifier. The identifier is -passed as third parameter of Write(). Once the second page is created, we use SetLink() to -make the link point to the beginning of the current page. -
-
-Then we put an image with a link on it. An external link points to an URL (HTTP, mailto...). -The URL is simply passed as last parameter of Image(). -Note that external links do not work when the PDF is displayed inside Netscape's plug-in. -
-
-Finally, the left margin is moved after the image with SetLeftMargin() and some text in -HTML format is output. An HTML parser is used for this, based on the regular expression splitting -function preg_split() and the option PREG_SPLIT_DELIM_CAPTURE (introduced in PHP 4.0.5) which -allows to fetch the separators as well (in this case the tags). If you use an older version of -PHP, replace the line with this one: -
-
$a=preg_split('/[<>]/',$html);
-
-
-which is less strict but gives the same results with valid HTML. -
-Recognized tags are <B>, <I>, <U>, <A> and <BR>; the others are -ignored. The parser also makes use of the Write() method. An external link is put the same way as -an internal one (third parameter of Write()). -
-Note that Cell() also allows to put links. - - + + + + +Links and flowing text + + + +

Links and flowing text

+This tutorial explains how to insert links (internal and external) and shows a new text writing +mode. It also contains a basic HTML parser. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+protected $B = 0;
+protected $I = 0;
+protected $U = 0;
+protected $HREF = '';
+
+function WriteHTML($html)
+{
+    // HTML parser
+    $html = str_replace("\n",' ',$html);
+    $a = preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
+    foreach($a as $i=>$e)
+    {
+        if($i%2==0)
+        {
+            // Text
+            if($this->HREF)
+                $this->PutLink($this->HREF,$e);
+            else
+                $this->Write(5,$e);
+        }
+        else
+        {
+            // Tag
+            if($e[0]=='/')
+                $this->CloseTag(strtoupper(substr($e,1)));
+            else
+            {
+                // Extract attributes
+                $a2 = explode(' ',$e);
+                $tag = strtoupper(array_shift($a2));
+                $attr = array();
+                foreach($a2 as $v)
+                {
+                    if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3))
+                        $attr[strtoupper($a3[1])] = $a3[2];
+                }
+                $this->OpenTag($tag,$attr);
+            }
+        }
+    }
+}
+
+function OpenTag($tag, $attr)
+{
+    // Opening tag
+    if($tag=='B' || $tag=='I' || $tag=='U')
+        $this->SetStyle($tag,true);
+    if($tag=='A')
+        $this->HREF = $attr['HREF'];
+    if($tag=='BR')
+        $this->Ln(5);
+}
+
+function CloseTag($tag)
+{
+    // Closing tag
+    if($tag=='B' || $tag=='I' || $tag=='U')
+        $this->SetStyle($tag,false);
+    if($tag=='A')
+        $this->HREF = '';
+}
+
+function SetStyle($tag, $enable)
+{
+    // Modify style and select corresponding font
+    $this->$tag += ($enable ? 1 : -1);
+    $style = '';
+    foreach(array('B', 'I', 'U') as $s)
+    {
+        if($this->$s>0)
+            $style .= $s;
+    }
+    $this->SetFont('',$style);
+}
+
+function PutLink($URL, $txt)
+{
+    // Put a hyperlink
+    $this->SetTextColor(0,0,255);
+    $this->SetStyle('U',true);
+    $this->Write(5,$txt,$URL);
+    $this->SetStyle('U',false);
+    $this->SetTextColor(0);
+}
+}
+
+$html = 'You can now easily print text mixing different styles: <b>bold</b>, <i>italic</i>,
+<u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>You can also insert links on
+text, such as <a href="http://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.';
+
+$pdf = new PDF();
+// First page
+$pdf->AddPage();
+$pdf->SetFont('Arial','',20);
+$pdf->Write(5,"To find out what's new in this tutorial, click ");
+$pdf->SetFont('','U');
+$link = $pdf->AddLink();
+$pdf->Write(5,'here',$link);
+$pdf->SetFont('');
+// Second page
+$pdf->AddPage();
+$pdf->SetLink($link);
+$pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org');
+$pdf->SetLeftMargin(45);
+$pdf->SetFontSize(14);
+$pdf->WriteHTML($html);
+$pdf->Output();
+?>
+
+

[Demo]

+The new method to print text is Write(). It's very close to MultiCell(); the differences are: +
    +
  • The end of line is at the right margin and the next line begins at the left one
  • +
  • The current position moves at the end of the text
  • +
+So it allows to write a chunk of text, alter the font style, then continue from the exact +place we left it. On the other hand, you cannot justify it. +
+
+The method is used on the first page to put a link pointing to the second one. The beginning of +the sentence is written in regular style, then we switch to underline and finish it. The link +is created with AddLink(), which returns a link identifier. The identifier is +passed as third parameter of Write(). Once the second page is created, we use SetLink() to +make the link point to the beginning of the current page. +
+
+Then we put an image with an external link on it. An external link is just a URL. It's passed as +last parameter of Image(). +
+
+Finally, the left margin is moved after the image with SetLeftMargin() and some text in +HTML format is output. A very simple HTML parser is used for this, based on regular expressions. +Recognized tags are <b>, <i>, <u>, <a> and <br>; the others are +ignored. The parser also makes use of the Write() method. An external link is put the same way as +an internal one (third parameter of Write()). Note that Cell() also allows to put links. + + diff --git a/phplib/fpdf/tutorial/tuto6.php b/phplib/fpdf/tutorial/tuto6.php old mode 100644 new mode 100755 index 706cbd9..66580e9 --- a/phplib/fpdf/tutorial/tuto6.php +++ b/phplib/fpdf/tutorial/tuto6.php @@ -1,122 +1,113 @@ -FPDF($orientation,$unit,$format); - //Initialization - $this->B=0; - $this->I=0; - $this->U=0; - $this->HREF=''; -} - -function WriteHTML($html) -{ - //HTML parser - $html=str_replace("\n",' ',$html); - $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); - foreach($a as $i=>$e) - { - if($i%2==0) - { - //Text - if($this->HREF) - $this->PutLink($this->HREF,$e); - else - $this->Write(5,$e); - } - else - { - //Tag - if($e{0}=='/') - $this->CloseTag(strtoupper(substr($e,1))); - else - { - //Extract attributes - $a2=explode(' ',$e); - $tag=strtoupper(array_shift($a2)); - $attr=array(); - foreach($a2 as $v) - if(ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3)) - $attr[strtoupper($a3[1])]=$a3[2]; - $this->OpenTag($tag,$attr); - } - } - } -} - -function OpenTag($tag,$attr) -{ - //Opening tag - if($tag=='B' or $tag=='I' or $tag=='U') - $this->SetStyle($tag,true); - if($tag=='A') - $this->HREF=$attr['HREF']; - if($tag=='BR') - $this->Ln(5); -} - -function CloseTag($tag) -{ - //Closing tag - if($tag=='B' or $tag=='I' or $tag=='U') - $this->SetStyle($tag,false); - if($tag=='A') - $this->HREF=''; -} - -function SetStyle($tag,$enable) -{ - //Modify style and select corresponding font - $this->$tag+=($enable ? 1 : -1); - $style=''; - foreach(array('B','I','U') as $s) - if($this->$s>0) - $style.=$s; - $this->SetFont('',$style); -} - -function PutLink($URL,$txt) -{ - //Put a hyperlink - $this->SetTextColor(0,0,255); - $this->SetStyle('U',true); - $this->Write(5,$txt,$URL); - $this->SetStyle('U',false); - $this->SetTextColor(0); -} -} - -$html='You can now easily print text mixing different -styles : bold, italic, underlined, or -all at once!
You can also insert links -on text, such as www.fpdf.org, -or on an image: click on the logo.'; - -$pdf=new PDF(); -//First page -$pdf->AddPage(); -$pdf->SetFont('Arial','',20); -$pdf->Write(5,'To find out what\'s new in this tutorial, click '); -$pdf->SetFont('','U'); -$link=$pdf->AddLink(); -$pdf->Write(5,'here',$link); -$pdf->SetFont(''); -//Second page -$pdf->AddPage(); -$pdf->SetLink($link); -$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org'); -$pdf->SetLeftMargin(45); -$pdf->SetFontSize(14); -$pdf->WriteHTML($html); -$pdf->Output(); -?> +/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); + foreach($a as $i=>$e) + { + if($i%2==0) + { + // Text + if($this->HREF) + $this->PutLink($this->HREF,$e); + else + $this->Write(5,$e); + } + else + { + // Tag + if($e[0]=='/') + $this->CloseTag(strtoupper(substr($e,1))); + else + { + // Extract attributes + $a2 = explode(' ',$e); + $tag = strtoupper(array_shift($a2)); + $attr = array(); + foreach($a2 as $v) + { + if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3)) + $attr[strtoupper($a3[1])] = $a3[2]; + } + $this->OpenTag($tag,$attr); + } + } + } +} + +function OpenTag($tag, $attr) +{ + // Opening tag + if($tag=='B' || $tag=='I' || $tag=='U') + $this->SetStyle($tag,true); + if($tag=='A') + $this->HREF = $attr['HREF']; + if($tag=='BR') + $this->Ln(5); +} + +function CloseTag($tag) +{ + // Closing tag + if($tag=='B' || $tag=='I' || $tag=='U') + $this->SetStyle($tag,false); + if($tag=='A') + $this->HREF = ''; +} + +function SetStyle($tag, $enable) +{ + // Modify style and select corresponding font + $this->$tag += ($enable ? 1 : -1); + $style = ''; + foreach(array('B', 'I', 'U') as $s) + { + if($this->$s>0) + $style .= $s; + } + $this->SetFont('',$style); +} + +function PutLink($URL, $txt) +{ + // Put a hyperlink + $this->SetTextColor(0,0,255); + $this->SetStyle('U',true); + $this->Write(5,$txt,$URL); + $this->SetStyle('U',false); + $this->SetTextColor(0); +} +} + +$html = 'You can now easily print text mixing different styles: bold, italic, +underlined, or all at once!

You can also insert links on +text, such as www.fpdf.org, or on an image: click on the logo.'; + +$pdf = new PDF(); +// First page +$pdf->AddPage(); +$pdf->SetFont('Arial','',20); +$pdf->Write(5,"To find out what's new in this tutorial, click "); +$pdf->SetFont('','U'); +$link = $pdf->AddLink(); +$pdf->Write(5,'here',$link); +$pdf->SetFont(''); +// Second page +$pdf->AddPage(); +$pdf->SetLink($link); +$pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org'); +$pdf->SetLeftMargin(45); +$pdf->SetFontSize(14); +$pdf->WriteHTML($html); +$pdf->Output(); +?> diff --git a/phplib/fpdf/tutorial/tuto7.htm b/phplib/fpdf/tutorial/tuto7.htm old mode 100644 new mode 100755 index 92c132b..b42e552 --- a/phplib/fpdf/tutorial/tuto7.htm +++ b/phplib/fpdf/tutorial/tuto7.htm @@ -1,310 +1,187 @@ - - - - -Adding new fonts and encoding support - - - - -

Adding new fonts and encoding support

-This tutorial explains how to use TrueType or Type1 fonts so that you are not limited to the standard -fonts any more. The other interest is that you can choose the font encoding, which allows you to -use other languages than the Western ones (the standard fonts having too few available characters). -
-
-There are two ways to use a new font: embedding it in the PDF or not. When a font is not -embedded, it is sought in the system. The advantage is that the PDF file is lighter; on the other -hand, if it is not available, a substitution font is used. So it is preferable to ensure that the -needed font is installed on the client systems. If the file is to be viewed by a large audience, -it is better to embed. -
-
-Adding a new font requires three steps for TrueTypes: -
    -
  • Generation of the metric file (.afm) -
  • Generation of the font definition file (.php) -
  • Declaration of the font in the script -
-For Type1, the first one is theoretically not necessary because the AFM file is usually shipped -with the font. In case you have only a metric file in PFM format, use the convertor available -here. -

Generation of the metric file

-The first step for a TrueType consists in generating the AFM file. A utility exists to do this -task: ttf2pt1. The Windows binary -is available here. The command line to use is -the following: -
-
-ttf2pt1 -a font.ttf font -
-
-For example, for Comic Sans MS Regular: -
-
-ttf2pt1 -a c:\windows\fonts\comic.ttf comic -
-
-Two files are created; the one we are interested in is comic.afm. -

Generation of the font definition file

-The second step consists in generating a PHP file containing all the information needed by FPDF; -in addition, the font file is compressed. To do this, a helper script is provided in the font/makefont/ -directory of the package: makefont.php. It contains the following function: -
-
-MakeFont(string fontfile, string afmfile [, string enc [, array patch [, string type]]]) -
-
fontfile
-
-

Path to the .ttf or .pfb file.

-
-
afmfile
-
-

Path to the .afm file.

-
-
enc
-
-

Name of the encoding to use. Default value: cp1252.

-
-
patch
-
-

Optional modification of the encoding. Empty by default.

-
-
type
-
-

Type of the font (TrueType or Type1). Default value: TrueType.

-
-
-The first parameter is the name of the font file. The extension must be either .ttf or .pfb and -determines the font type. If you own a Type1 font in ASCII format (.pfa), you can convert it to -binary format with t1utils. -
-If you don't want to embed the font, pass an empty string. In this case, type is given by the -type parameter. -
-Note: in the case of a font with the same name as a standard one, for instance arial.ttf, it is -recommended to embed. If you don't, some versions of Acrobat will use their own fonts. -
-
-The AFM file is the one previously generated. -
-
-The encoding defines the association between a code (from 0 to 255) and a character. The first -128 are fixed and correspond to ASCII; the following are variable. The encodings are stored in -.map files. Those available are: -
    -
  • cp1250 (Central Europe) -
  • cp1251 (Cyrillic) -
  • cp1252 (Western Europe) -
  • cp1253 (Greek) -
  • cp1254 (Turkish) -
  • cp1255 (Hebrew) -
  • cp1257 (Baltic) -
  • cp1258 (Vietnamese) -
  • cp874 (Thai) -
  • ISO-8859-1 (Western Europe) -
  • ISO-8859-2 (Central Europe) -
  • ISO-8859-4 (Baltic) -
  • ISO-8859-5 (Cyrillic) -
  • ISO-8859-7 (Greek) -
  • ISO-8859-9 (Turkish) -
  • ISO-8859-11 (Thai) -
  • ISO-8859-15 (Western Europe) -
  • ISO-8859-16 (Central Europe) -
  • KOI8-R (Russian) -
  • KOI8-U (Ukrainian) -
-Of course, the font must contain the characters corresponding to the chosen encoding. -
-In the particular case of a symbolic font (that is to say which does not contain letters, such -as Symbol or ZapfDingbats), pass an empty string. -
-The encodings which begin with cp are those used by Windows; Linux systems usually use ISO. -
-Remark: the standard fonts use cp1252. -
-
-The fourth parameter gives the possibility to alter the encoding. Sometimes you may want to add -some characters. For instance, ISO-8859-1 does not contain the euro symbol. To add it at position -164, pass array(164=>'Euro'). -
-
-The last parameter is used to give the type of the font in case it is not embedded (that is to -say the first parameter is empty). -
-
-After you have called the function (create a new file for this and include makefont.php, or -simply add the call directly inside), a .php file is created, with the same name as the .afm one. -You may rename it if you wish. If the case of embedding, the font file is compressed and gives a -second file with .z as extension (except if the compression function is not available, it -requires zlib). You may rename it too, but in this case you have to alter the variable $file -in the .php file accordingly. -
-
-Example: -
-
MakeFont('c:\\windows\\fonts\\comic.ttf','comic.afm','cp1252');
-
-
-which gives the files comic.php and comic.z. -
-
-Then you have to copy the generated file(s) to the font directory. If the font file -could not be compressed, copy the .ttf or .pfb instead of the .z. -
-
-Remark: for TTF fonts, you can generate the files online here -instead of doing it manually. -

Declaration of the font in the script

-The last step is the most simple. You just need to call the AddFont() method. For instance: -
-
$pdf->AddFont('Comic','','comic.php');
-
-
-or simply: -
-
$pdf->AddFont('Comic');
-
-
-And the font is now available (in regular and underlined styles), usable like the others. If we -had worked with Comic Sans MS Bold (comicbd.ttf), we would have put: -
-
$pdf->AddFont('Comic','B','comicbd.php');
-
-
-

Example

-Let's now see a small complete example. The font used is Calligrapher, available at -www.abstractfonts.com (a site -offering numerous free TrueType fonts). The first step is the generation of the AFM file: -
-
-ttf2pt1 -a calligra.ttf calligra -
-
-which gives calligra.afm (and calligra.t1a that we can delete). Then we generate the definition -file: -
-
<?php
-require('font/makefont/makefont.php');
-
-MakeFont('calligra.ttf','calligra.afm');
-?>
-
-The function call gives the following report: -
-
-Warning: character Euro is missing
-Warning: character Zcaron is missing
-Warning: character zcaron is missing
-Warning: character eth is missing
-Font file compressed (calligra.z)
-Font definition file generated (calligra.php)
-
-The euro character is not present in the font (it is too old). Three other characters are missing -too, but we are not interested in them anyway. -
-We can now copy the two files to the font directory and write the script: -
-
<?php
-require('fpdf.php');
-
-$pdf=new FPDF();
-$pdf->AddFont('Calligrapher','','calligra.php');
-
-$pdf->AddPage();
-$pdf->SetFont('Calligrapher','',35);
-$pdf->Cell(0,10,'Enjoy new fonts with FPDF!');
-$pdf->Output();
-?>
-
- -

About the euro symbol

-The euro character is not present in all encodings, and is not always placed at the same position: - - - - - - - - - - - - - - - - - - - - - - -
EncodingPosition
cp1250128
cp1251136
cp1252128
cp1253128
cp1254128
cp1255128
cp1257128
cp1258128
cp874128
ISO-8859-1absent
ISO-8859-2absent
ISO-8859-4absent
ISO-8859-5absent
ISO-8859-7absent
ISO-8859-9absent
ISO-8859-11absent
ISO-8859-15164
ISO-8859-16164
KOI8-Rabsent
KOI8-Uabsent
-ISO-8859-1 is widespread but does not include the euro sign. If you need it, the simplest thing -to do is using cp1252 or ISO-8859-15 instead, which are nearly identical but contain the precious -symbol. -
-As for ISO-8859-2, it is possible to use ISO-8859-16 instead, but it contains many differences. -It is therefore simpler to patch the encoding to add the symbol to it, as explained above. The -same is true for the other encodings. -

Font synthesis under Windows

-When a TrueType font is not available in a given style, Windows is able to synthesize it from the -regular version. For instance, there is no Comic Sans MS Italic, but it can be built from Comic -Sans MS Regular. This feature can be used in a PDF file, but unfortunately requires that the -regular font be present in the system (you must not embed it). Here is how to do it: -
    -
  • Generate the definition file for the regular font without embedding (you may rename it to -reflect the desired style) -
  • Open it and append to the variable $name a comma followed by the desired style -(Italic, Bold or BoldItalic) -
-For instance, for the file comici.php: -
-
-$name='ComicSansMS,Italic'; -
-
-It can then be used normally: -
-
$pdf->AddFont('Comic','I','comici.php');
-
-
-

Reducing the size of TrueType fonts

-Font files are often quite voluminous (more than 100, even 200KB); this is due to the fact that -they contain the characters corresponding to many encodings. zlib compression reduces them but -they remain fairly big. A technique exists to reduce them further. It consists in converting the -font to the Type1 format with ttf2pt1 by specifying the encoding you are interested in; all other -characters will be discarded. -
-For instance, the arial.ttf font shipped with Windows 98 is 267KB (it contains 1296 characters). -After compression it gives 147. Let's convert it to Type1 by keeping only cp1250 characters: -
-
-ttf2pt1 -b -L cp1250.map c:\windows\fonts\arial.ttf arial -
-
-The .map files are located in the font/makefont/ directory of the package. The command produces -arial.pfb and arial.afm. The arial.pfb file is only 35KB, and 30KB after compression. -
-
-It is possible to go even further. If you are interested only by a subset of the encoding (you -probably don't need all 217 characters), you can open the .map file and remove the lines you are -not interested in. This will reduce the file size accordingly. - - + + + + +Adding new fonts and encodings + + + +

Adding new fonts and encodings

+This tutorial explains how to use TrueType, OpenType and Type1 fonts so that you are not limited to the +standard fonts anymore. The other benefit is that you can choose the text encoding, which allows you to +use other languages than the Western ones (the standard fonts support only cp1252 aka windows-1252). +
+
+For OpenType, only the format based on TrueType is supported (not the one based on Type1).
+For Type1, you will need the corresponding AFM file (it is usually provided with the font). +
+
+Adding a new font requires two steps: +
    +
  • Generation of the font definition file
  • +
  • Declaration of the font in the script
  • +
+ +

Generation of the font definition file

+The first step consists in generating a PHP file containing all the information needed by FPDF; +in addition, the font file is compressed. To do this, a helper script is provided in the makefont +directory of the package: makefont.php. It contains the following function: +
+
+MakeFont(string fontfile [, string enc [, boolean embed [, boolean subset]]]) +
+
fontfile
+
+

Path to the .ttf, .otf or .pfb file.

+
+
enc
+
+

Name of the encoding to use. Default value: cp1252.

+
+
embed
+
+

Whether to embed the font or not. Default value: true.

+
+
subset
+
+

Whether to subset the font or not. Default value: true.

+
+
+The first parameter is the name of the font file. The extension must be either .ttf, .otf or .pfb and +determines the font type. If your Type1 font is in ASCII format (.pfa), you can convert it to binary +(.pfb) with the help of t1utils. +
+
+For Type1 fonts, the corresponding .afm file must be present in the same directory. +
+
+The encoding defines the association between a code (from 0 to 255) and a character. The first 128 are +always the same and correspond to ASCII; the following are variable. Encodings are stored in .map +files. The available ones are: +
    +
  • cp1250 (Central Europe)
  • +
  • cp1251 (Cyrillic)
  • +
  • cp1252 (Western Europe)
  • +
  • cp1253 (Greek)
  • +
  • cp1254 (Turkish)
  • +
  • cp1255 (Hebrew)
  • +
  • cp1257 (Baltic)
  • +
  • cp1258 (Vietnamese)
  • +
  • cp874 (Thai)
  • +
  • ISO-8859-1 (Western Europe)
  • +
  • ISO-8859-2 (Central Europe)
  • +
  • ISO-8859-4 (Baltic)
  • +
  • ISO-8859-5 (Cyrillic)
  • +
  • ISO-8859-7 (Greek)
  • +
  • ISO-8859-9 (Turkish)
  • +
  • ISO-8859-11 (Thai)
  • +
  • ISO-8859-15 (Western Europe)
  • +
  • ISO-8859-16 (Central Europe)
  • +
  • KOI8-R (Russian)
  • +
  • KOI8-U (Ukrainian)
  • +
+Of course, the font must contain the characters corresponding to the selected encoding. +
+
+The third parameter indicates whether the font should be embedded in the PDF or not. When a font is +not embedded, it is searched in the system. The advantage is that the PDF file is smaller; on the +other hand, if it is not available, then a substitution font is used. So you should ensure that the +needed font is installed on the client systems. Embedding is the recommended option to guarantee a +correct rendering. +
+
+The last parameter indicates whether subsetting should be used, that is to say, whether only +the characters from the selected encoding should be kept in the embedded font. As a result, +the size of the PDF file can be greatly reduced, especially if the original font was big. +
+
+After you have called the function (create a new file for this and include makefont.php), a .php file +is created, with the same name as the font file. You may rename it if you wish. If the case of embedding, +the font file is compressed and gives a second file with .z as extension (except if the compression +function is not available, it requires Zlib). You may rename it too, but in this case you have to change +the variable $file in the .php file accordingly. +
+
+Example: +
+
<?php
+require('makefont/makefont.php');
+
+MakeFont('C:\\Windows\\Fonts\\comic.ttf','cp1252');
+?>
+
+which gives the files comic.php and comic.z. +
+
+Then copy the generated files to the font directory. If the font file could not be compressed, copy +it directly instead of the .z version. +
+
+Another way to call MakeFont() is through the command line: +
+
+php makefont\makefont.php C:\Windows\Fonts\comic.ttf cp1252 +
+
+Finally, for TrueType and OpenType fonts, you can also generate the files +online instead of doing it manually. + +

Declaration of the font in the script

+The second step is simple. You just need to call the AddFont() method: +
+
$pdf->AddFont('Comic','','comic.php');
+
+
+And the font is now available (in regular and underlined styles), usable like the others. If we +had worked with Comic Sans MS Bold (comicbd.ttf), we would have written: +
+
$pdf->AddFont('Comic','B','comicbd.php');
+
+
+ +

Example

+Let's now see a complete example. We will use the font Calligrapher. +The first step is the generation of the font files: +
+
<?php
+require('makefont/makefont.php');
+
+MakeFont('calligra.ttf','cp1252');
+?>
+
+The script gives the following report: +
+
+Warning: character Euro is missing
+Warning: character zcaron is missing
+Font file compressed: calligra.z
+Font definition file generated: calligra.php
+
+The euro character is not present in the font (it's too old). Another character is missing too. +
+
+Alternatively we could have used the command line: +
+
+php makefont\makefont.php calligra.ttf cp1252 +
+
+or used the online generator. +
+
+We can now copy the two generated files to the font directory and write the script: +
+
<?php
+require('fpdf.php');
+
+$pdf = new FPDF();
+$pdf->AddFont('Calligrapher','','calligra.php');
+$pdf->AddPage();
+$pdf->SetFont('Calligrapher','',35);
+$pdf->Write(10,'Enjoy new fonts with FPDF!');
+$pdf->Output();
+?>
+
+

[Demo]

+ + diff --git a/phplib/fpdf/tutorial/tuto7.php b/phplib/fpdf/tutorial/tuto7.php old mode 100644 new mode 100755 index e61078e..d1127f3 --- a/phplib/fpdf/tutorial/tuto7.php +++ b/phplib/fpdf/tutorial/tuto7.php @@ -1,11 +1,11 @@ -AddFont('Calligrapher','','calligra.php'); -$pdf->AddPage(); -$pdf->SetFont('Calligrapher','',35); -$pdf->Cell(0,10,'Enjoy new fonts with FPDF!'); -$pdf->Output(); -?> +AddFont('Calligrapher','','calligra.php'); +$pdf->AddPage(); +$pdf->SetFont('Calligrapher','',35); +$pdf->Cell(0,10,'Enjoy new fonts with FPDF!'); +$pdf->Output(); +?> diff --git a/phplib/fpdf153/FAQ.htm b/phplib/fpdf153/FAQ.htm new file mode 100644 index 0000000..ede1608 --- /dev/null +++ b/phplib/fpdf153/FAQ.htm @@ -0,0 +1,284 @@ + + + + +FAQ + + + + +

FAQ

+ +
    + +
  • +

    1. What's exactly the license of FPDF? Are there any usage restrictions?

    +FPDF is Freeware (it is stated at the beginning of the source file). There is no usage +restriction. You may embed it freely in your application (commercial or not), with or +without modification. You may redistribute it, too. +
  • + +
  • +

    2. When I try to create a PDF, a lot of weird characters show on the screen. Why?

    +These "weird" characters are in fact the actual content of your PDF. This behavior is a bug of +IE6. When it first receives an HTML page, then a PDF from the same URL, it displays it directly +without launching Acrobat. This happens frequently during the development stage: on the least +script error, an HTML page is sent, and after correction, the PDF arrives. +
    +To solve the problem, simply quit and restart IE. You can also go to another URL and come +back. +
    +To avoid this kind of inconvenience during the development, you can generate the PDF directly +to a file and open it through the explorer. +
  • + +
  • +

    3. I try to generate a PDF and IE displays a blank page. What happens?

    +First of all, check that you send nothing to the browser after the PDF (not even a space or a +carriage return). You can put an exit statement just after the call to the Output() method to +be sure. +
    +If it still doesn't work, it means you're a victim of the "blank page syndrome". IE used in +conjunction with the Acrobat plug-in suffers from numerous bugs, in all versions. You should +test your application with as many IE versions as possible (at least if you're on the Internet). +The problem occurs mostly with the POST method, so it is strongly advised to avoid it (all the +more that it causes other problems, see the next question). The GET works better but may fail +when the URL becomes too long: don't use a query string with more than 45 characters. However, a +tip exists to exceed this limit: end the URL with .pdf, which tricks IE. If you use a form, you +can add a hidden field at the last position: +
    +
    <input type="HIDDEN" name="ext" value=".pdf">
    +
    +The usage of PHP sessions also often causes trouble (avoid using HTTP headers preventing caching). +See question 5 for a workaround. +
    +
    +To avoid all these problems in a reliable manner, two main techniques exist: +
    +
    +- Disable the plug-in and use Acrobat as a helper application. To do this, launch Acrobat; in +the File menu, Preferences, General, uncheck the option "Web Browser Integration" (for Acrobat +5: Edit, Preferences, Options, "Display PDF in Browser"). Then, the next time you load a PDF in +IE, it displays the dialog box "Open it" or "Save it to disk". Uncheck the option "Always ask +before opening this type of file" and choose Open. From now on, PDF files will open +automatically in an external Acrobat window. +
    +The drawback of the method is that you need to alter the client configuration, which you can do +in an intranet environment but not for the Internet. +
    +
    +- Use a redirection technique. It consists in generating the PDF in a temporary file on the server +and redirect the client to it. For instance, at the end of the script, you can put the following: +
    +
    //Determine a temporary file name in the current directory
    +$file=basename(tempnam('.','tmp'));
    +rename($file,$file.'.pdf');
    +$file.='.pdf';
    +//Save PDF to file
    +$pdf->Output($file);
    +//JavaScript redirection
    +echo "<html><head><script>document.location='$file';</script></head></html>";
    +
    +This method turns the dynamic PDF into a static one and avoids all troubles. But you have to do +some cleaning in order to delete the temporary files. For instance: +
    +
    function CleanFiles($dir)
    +{
    +    //Delete temporary files
    +    $t=time();
    +    $h=opendir($dir);
    +    while($file=readdir($h))
    +    {
    +        if(substr($file,0,3)=='tmp' and substr($file,-4)=='.pdf')
    +        {
    +            $path=$dir.'/'.$file;
    +            if($t-filemtime($path)>3600)
    +                @unlink($path);
    +        }
    +    }
    +    closedir($h);
    +}
    +
    +This function deletes all files of the form tmp*.pdf older than an hour in the specified +directory. You may call it where you want, for instance in the script which generates the PDF. +
    +
    +Remark: it is necessary to open the PDF in a new window, as you can't go backwards due to the +redirection. +
  • + +
  • +

    4. I send parameters using the POST method and the values don't appear in the PDF.

    +It's a problem affecting some versions of IE (especially the first 5.5). See the previous +question for the ways to work around it. +
  • + +
  • +

    5. When I use a PHP session, IE doesn't display my PDF any more but asks me to download it.

    +It's a problem affecting some versions of IE. To work around it, add the following line before +session_start(): +
    +
    session_cache_limiter('private');
    +
    +or do a redirection as explained in question 3. +
  • + +
  • +

    6. When I'm on SSL, IE can't open the PDF.

    +The problem may be fixed by adding this line: +
    +
    Header('Pragma: public');
    +
    +
  • + +
  • +

    7. Accented characters are replaced by some strange characters like é.

    +Don't use UTF-8 encoding. Standard FPDF fonts use ISO-8859-1 or Windows-1252. +It is possible to perform a conversion to ISO-8859-1 with utf8_decode(): +
    +
    $str = utf8_decode($str);
    +
    +But some characters such as Euro won't be translated correctly. If the iconv extension is available, the +right way to do it is the following: +
    +
    $str = iconv('UTF-8', 'windows-1252', $str);
    +
    +
  • + +
  • +

    8. How can I put a background in my PDF?

    +For a picture, call Image() in the Header() method, before any other output. To set a background color, use Rect(). +
  • + +
  • +

    9. I encounter the following error when I try to generate a PDF: Warning: Cannot add header information - headers already sent by (output started at script.php:X)

    +You must send nothing to the browser except the PDF itself: no HTML, no space, no carriage return, +neither before nor after. The script outputs something at line X. +
  • + +
  • +

    10. I try to display a variable in the Header method but nothing prints.

    +You have to use the global keyword, for instance: +
    +
    function Header()
    +{
    +    global $title;
    +
    +    $this->SetFont('Arial','B',15);
    +    $this->Cell(0,10,$title,1,1,'C');
    +}
    +
    +
  • + +
  • +

    11. I defined the Header and Footer methods in my PDF class but nothing appears.

    +You have to create an object from the PDF class, not FPDF: +
    +
    $pdf = new PDF();
    +
    +
  • + +
  • +

    12. I can't make line breaks work. I put \n in the string printed by MultiCell but it doesn't work.

    +You have to enclose your string with double quotes, not single ones. +
  • + +
  • +

    13. I try to display the Euro symbol but it doesn't work.

    +The standard fonts have the Euro character at position 128. You can define a constant like this +for convenience: +
    +
    define('EURO', chr(128));
    +
    +
  • + +
  • +

    14. I draw a frame with very precise dimensions, but when printed I notice some differences.

    +To respect dimensions, you have to uncheck the option "Fit to page" in the print dialog box. +
  • + +
  • +

    15. I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?

    +All printers have physical margins (different depending on the model), it is therefore impossible +to remove them and print on the totality of the paper. +
  • + +
  • +

    16. What's the limit of the file sizes I can generate with FPDF?

    +There is no particular limit. There are some constraints however: +
    +
    +- The maximum memory size allocated to PHP scripts defaults to 8MB. For very big documents, +especially with images, this limit may be reached (the file being built into memory). The +parameter is configured in the php.ini file. +
    +
    +- The maximum execution time allocated defaults to 30 seconds. This limit can of course be easily +reached. It is configured in php.ini and may be altered dynamically with set_time_limit(). +
    +
    +- Browsers generally have a 5 minute time-out. If you send the PDF directly to the browser and +reach the limit, it will be lost. It is therefore advised for very big documents to +generate them in a file, and to send some data to the browser from time to time (for instance +page 1, page 2... with flush() to force the output). When the document is finished, you can send +a redirection on it with JavaScript or create a link. +
    +Remark: even when the browser goes in time-out, the script may continue to run on the server. +
  • + +
  • +

    17. Can I modify a PDF with FPDF?

    +You can import an existing PDF document thanks to the FPDI extension:
    +
    +http://www.setasign.de/products/pdf-php-solutions/fpdi/ +
  • + +
  • +

    18. I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?

    +No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from +a PDF. It is provided with the Xpdf package:
    +
    +http://www.foolabs.com/xpdf/ +
  • + +
  • +

    19. Can I convert an HTML page to PDF with FPDF?

    +Not real-world pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:
    +
    +http://www.htmldoc.org +
  • + +
  • +

    20. Can I concatenate PDF files with FPDF?

    +No. But some free tools exist to perform this task:
    +
    +mbtPdfAsm
    +pdftk +
  • +
+ + diff --git a/phplib/fpdf153/doc/acceptpagebreak.htm b/phplib/fpdf153/doc/acceptpagebreak.htm new file mode 100644 index 0000000..314548f --- /dev/null +++ b/phplib/fpdf153/doc/acceptpagebreak.htm @@ -0,0 +1,69 @@ + + + + +AcceptPageBreak + + + +

AcceptPageBreak

+boolean AcceptPageBreak() +

Version

+1.4 +

Description

+Whenever a page break condition is met, the method is called, and the break is issued or not +depending on the returned value. The default implementation returns a value according to the +mode selected by SetAutoPageBreak(). +
+This method is called automatically and should not be called directly by the application. +

Example

+The method is overriden in an inherited class in order to obtain a 3 column layout: +
+
+
+ +class PDF extends FPDF
+{
+var $col=0;
+
+function SetCol($col)
+{
+    //Move position to a column
+    $this->col=$col;
+    $x=10+$col*65;
+    $this->SetLeftMargin($x);
+    $this->SetX($x);
+}
+
+function AcceptPageBreak()
+{
+    if($this->col<2)
+    {
+        //Go to next column
+        $this->SetCol($this->col+1);
+        $this->SetY(10);
+        return false;
+    }
+    else
+    {
+        //Go back to first column and issue page break
+        $this->SetCol(0);
+        return true;
+    }
+}
+}
+
+$pdf=new PDF();
+$pdf->AddPage();
+$pdf->SetFont('Arial','',12);
+for($i=1;$i<=300;$i++)
+    $pdf->Cell(0,5,"Line $i",0,1);
+$pdf->Output(); +
+

+

See also

+SetAutoPageBreak(). +
+ + + diff --git a/phplib/fpdf153/doc/addfont.htm b/phplib/fpdf153/doc/addfont.htm new file mode 100644 index 0000000..d6ba4ae --- /dev/null +++ b/phplib/fpdf153/doc/addfont.htm @@ -0,0 +1,61 @@ + + + + +AddFont + + + +

AddFont

+AddFont(string family [, string style [, string file]]) +

Version

+1.5 +

Description

+Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font +definition file first with the makefont.php utility. +
+The definition file (and the font file itself when embedding) must be present in the font directory. +If it is not found, the error "Could not include font definition file" is generated. +

Parameters

+family +
+Font family. The name can be chosen arbitrarily. If it is a standard family name, it will +override the corresponding font. +
+style +
+Font style. Possible values are (case insensitive): +
    +
  • empty string: regular +
  • B: bold +
  • I: italic +
  • BI or IB: bold italic +
+The default value is regular. +
+file +
+The font definition file. +
+By default, the name is built from the family and style, in lower case with no space. +
+

Example

+
+ +$pdf->AddFont('Comic','I'); + +

+is equivalent to: +
+
+
+ +$pdf->AddFont('Comic','I','comici.php'); + +

+

See also

+SetFont(). +
+ + + diff --git a/phplib/fpdf153/doc/addlink.htm b/phplib/fpdf153/doc/addlink.htm new file mode 100644 index 0000000..6df100a --- /dev/null +++ b/phplib/fpdf153/doc/addlink.htm @@ -0,0 +1,28 @@ + + + + +AddLink + + + +

AddLink

+int AddLink() +

Version

+1.5 +

Description

+Creates a new internal link and returns its identifier. An internal link is a clickable area +which directs to another place within the document. +
+The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is +defined with SetLink(). +

See also

+Cell(), +Write(), +Image(), +Link(), +SetLink(). +
+ + + diff --git a/phplib/fpdf153/doc/addpage.htm b/phplib/fpdf153/doc/addpage.htm new file mode 100644 index 0000000..c233498 --- /dev/null +++ b/phplib/fpdf153/doc/addpage.htm @@ -0,0 +1,42 @@ + + + + +AddPage + + + +

AddPage

+AddPage([string orientation]) +

Version

+1.0 +

Description

+Adds a new page to the document. If a page is already present, the Footer() method is called +first to output the footer. Then the page is added, the current position set to the top-left +corner according to the left and top margins, and Header() is called to display the header. +
+The font which was set before calling is automatically restored. There is no need to call +SetFont() again if you want to continue with the same font. The same is true for colors and +line width. +
+The origin of the coordinate system is at the top-left corner and increasing ordinates go +downwards. +

Parameters

+orientation +
+Page orientation. Possible values are (case insensitive): +
    +
  • P or Portrait +
  • L or Landscape +
+The default value is the one passed to the constructor. +
+

See also

+FPDF(), +Header(), +Footer(), +SetMargins(). +
+ + + diff --git a/phplib/fpdf153/doc/aliasnbpages.htm b/phplib/fpdf153/doc/aliasnbpages.htm new file mode 100644 index 0000000..804f4a4 --- /dev/null +++ b/phplib/fpdf153/doc/aliasnbpages.htm @@ -0,0 +1,47 @@ + + + + +AliasNbPages + + + +

AliasNbPages

+AliasNbPages([string alias]) +

Version

+1.4 +

Description

+Defines an alias for the total number of pages. It will be substituted as the document is +closed. +

Parameters

+alias +
+The alias. Default value: {nb}. +
+

Example

+
+ +class PDF extends FPDF
+{
+function Footer()
+{
+    //Go to 1.5 cm from bottom
+    $this->SetY(-15);
+    //Select Arial italic 8
+    $this->SetFont('Arial','I',8);
+    //Print current and total page numbers
+    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
+}
+}
+
+$pdf=new PDF();
+$pdf->AliasNbPages(); +
+

+

See also

+PageNo(), +Footer(). +
+ + + diff --git a/phplib/fpdf153/doc/cell.htm b/phplib/fpdf153/doc/cell.htm new file mode 100644 index 0000000..518e603 --- /dev/null +++ b/phplib/fpdf153/doc/cell.htm @@ -0,0 +1,106 @@ + + + + +Cell + + + +

Cell

+Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, int fill [, mixed link]]]]]]]) +

Version

+1.0 +

Description

+Prints a cell (rectangular area) with optional borders, background color and character string. +The upper-left corner of the cell corresponds to the current position. The text can be aligned +or centered. After the call, the current position moves to the right or to the next line. It is +possible to put a link on the text. +
+If automatic page breaking is enabled and the cell goes beyond the limit, a page break is +done before outputting. +

Parameters

+w +
+Cell width. If 0, the cell extends up to the right margin. +
+h +
+Cell height. +Default value: 0. +
+txt +
+String to print. +Default value: empty string. +
+border +
+Indicates if borders must be drawn around the cell. The value can be either a number: +
    +
  • 0: no border +
  • 1: frame +
+or a string containing some or all of the following characters (in any order): +
    +
  • L: left +
  • T: top +
  • R: right +
  • B: bottom +
+Default value: 0. +
+ln +
+Indicates where the current position should go after the call. Possible values are: +
    +
  • 0: to the right +
  • 1: to the beginning of the next line +
  • 2: below +
+Putting 1 is equivalent to putting 0 and calling Ln() just after. +Default value: 0. +
+align +
+Allows to center or align the text. Possible values are: +
    +
  • L or empty string: left align (default value) +
  • C: center +
  • R: right align +
+
+fill +
+Indicates if the cell background must be painted (1) or transparent (0). +Default value: 0. +
+link +
+URL or identifier returned by AddLink(). +
+

Example

+
+ +//Set font
+$pdf->SetFont('Arial','B',16);
+//Move to 8 cm to the right
+$pdf->Cell(80);
+//Centered text in a framed 20*10 mm cell and line break
+$pdf->Cell(20,10,'Title',1,1,'C'); +
+

+

See also

+SetFont(), +SetDrawColor(), +SetFillColor(), +SetTextColor(), +SetLineWidth(), +AddLink(), +Ln(), +MultiCell(), +Write(), +SetAutoPageBreak(). +
+ + + diff --git a/phplib/fpdf153/doc/close.htm b/phplib/fpdf153/doc/close.htm new file mode 100644 index 0000000..e4c2e0b --- /dev/null +++ b/phplib/fpdf153/doc/close.htm @@ -0,0 +1,23 @@ + + + + +Close + + + +

Close

+Close() +

Version

+1.0 +

Description

+Terminates the PDF document. It is not necessary to call this method explicitly because Output() +does it automatically. +
+If the document contains no page, AddPage() is called to prevent from getting an invalid document. +

See also

+Output(). +
+ + + diff --git a/phplib/fpdf153/doc/error.htm b/phplib/fpdf153/doc/error.htm new file mode 100644 index 0000000..aea97d0 --- /dev/null +++ b/phplib/fpdf153/doc/error.htm @@ -0,0 +1,25 @@ + + + + +Error + + + +

Error

+Error(string msg) +

Version

+1.0 +

Description

+This method is automatically called in case of fatal error; it simply outputs the message +and halts the execution. An inherited class may override it to customize the error handling +but should always halt the script, or the resulting document would probably be invalid. +

Parameters

+msg +
+The error message. +
+
+ + + diff --git a/phplib/fpdf153/doc/footer.htm b/phplib/fpdf153/doc/footer.htm new file mode 100644 index 0000000..dae62ee --- /dev/null +++ b/phplib/fpdf153/doc/footer.htm @@ -0,0 +1,39 @@ + + + + +Footer + + + +

Footer

+Footer() +

Version

+1.0 +

Description

+This method is used to render the page footer. It is automatically called by AddPage() and +Close() and should not be called directly by the application. The implementation in FPDF is +empty, so you have to subclass it and override the method if you want a specific processing. +

Example

+
+ +class PDF extends FPDF
+{
+function Footer()
+{
+    //Go to 1.5 cm from bottom
+    $this->SetY(-15);
+    //Select Arial italic 8
+    $this->SetFont('Arial','I',8);
+    //Print centered page number
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+} +
+

+

See also

+Header(). +
+ + + diff --git a/phplib/fpdf/doc/fpdf.htm b/phplib/fpdf153/doc/fpdf.htm similarity index 100% rename from phplib/fpdf/doc/fpdf.htm rename to phplib/fpdf153/doc/fpdf.htm diff --git a/phplib/fpdf153/doc/getstringwidth.htm b/phplib/fpdf153/doc/getstringwidth.htm new file mode 100644 index 0000000..f3cdfdd --- /dev/null +++ b/phplib/fpdf153/doc/getstringwidth.htm @@ -0,0 +1,23 @@ + + + + +GetStringWidth + + + +

GetStringWidth

+float GetStringWidth(string s) +

Version

+1.2 +

Description

+Returns the length of a string in user unit. A font must be selected. +

Parameters

+s +
+The string whose length is to be computed. +
+
+ + + diff --git a/phplib/fpdf153/doc/getx.htm b/phplib/fpdf153/doc/getx.htm new file mode 100644 index 0000000..eb28efa --- /dev/null +++ b/phplib/fpdf153/doc/getx.htm @@ -0,0 +1,22 @@ + + + + +GetX + + + +

GetX

+float GetX() +

Version

+1.2 +

Description

+Returns the abscissa of the current position. +

See also

+SetX(), +GetY(), +SetY(). +
+ + + diff --git a/phplib/fpdf153/doc/gety.htm b/phplib/fpdf153/doc/gety.htm new file mode 100644 index 0000000..e4a99cd --- /dev/null +++ b/phplib/fpdf153/doc/gety.htm @@ -0,0 +1,22 @@ + + + + +GetY + + + +

GetY

+float GetY() +

Version

+1.0 +

Description

+Returns the ordinate of the current position. +

See also

+SetY(), +GetX(), +SetX(). +
+ + + diff --git a/phplib/fpdf153/doc/header.htm b/phplib/fpdf153/doc/header.htm new file mode 100644 index 0000000..e1da3c6 --- /dev/null +++ b/phplib/fpdf153/doc/header.htm @@ -0,0 +1,41 @@ + + + + +Header + + + +

Header

+Header() +

Version

+1.0 +

Description

+This method is used to render the page header. It is automatically called by AddPage() and +should not be called directly by the application. The implementation in FPDF is empty, so +you have to subclass it and override the method if you want a specific processing. +

Example

+
+ +class PDF extends FPDF
+{
+function Header()
+{
+    //Select Arial bold 15
+    $this->SetFont('Arial','B',15);
+    //Move to the right
+    $this->Cell(80);
+    //Framed title
+    $this->Cell(30,10,'Title',1,0,'C');
+    //Line break
+    $this->Ln(20);
+}
+} +
+

+

See also

+Footer(). +
+ + + diff --git a/phplib/fpdf153/doc/image.htm b/phplib/fpdf153/doc/image.htm new file mode 100644 index 0000000..0644e5d --- /dev/null +++ b/phplib/fpdf153/doc/image.htm @@ -0,0 +1,88 @@ + + + + +Image + + + +

Image

+Image(string file, float x, float y [, float w [, float h [, string type [, mixed link]]]]) +

Version

+1.1 +

Description

+Puts an image in the page. The upper-left corner must be given. The dimensions can be specified +in different ways: +
    +
  • explicit width and height (expressed in user unit) +
  • one explicit dimension, the other being calculated automatically in order to keep the original +proportions +
  • no explicit dimension, in which case the image is put at 72 dpi +
+Supported formats are JPEG and PNG. +
+
+For JPEG, all flavors are allowed: +
    +
  • gray scales +
  • true colors (24 bits) +
  • CMYK (32 bits) +
+For PNG, are allowed: +
    +
  • gray scales on at most 8 bits (256 levels) +
  • indexed colors +
  • true colors (24 bits) +
+but are not supported: +
    +
  • Interlacing +
  • Alpha channel +
+If a transparent color is defined, it will be taken into account (but will be only interpreted +by Acrobat 4 and above). +
+The format can be specified explicitly or inferred from the file extension. +
+It is possible to put a link on the image. +
+
+Remark: if an image is used several times, only one copy will be embedded in the file. +

Parameters

+file +
+Name of the file containing the image. +
+x +
+Abscissa of the upper-left corner. +
+y +
+Ordinate of the upper-left corner. +
+w +
+Width of the image in the page. If not specified or equal to zero, it is automatically +calculated. +
+h +
+Height of the image in the page. If not specified or equal to zero, it is automatically +calculated. +
+type +
+Image format. Possible values are (case insensitive): JPG, JPEG, PNG. +If not specified, the type is inferred from the file extension. +
+link +
+URL or identifier returned by AddLink(). +
+

See also

+AddLink(). +
+ + + diff --git a/phplib/fpdf153/doc/index.htm b/phplib/fpdf153/doc/index.htm new file mode 100644 index 0000000..3167d0b --- /dev/null +++ b/phplib/fpdf153/doc/index.htm @@ -0,0 +1,57 @@ + + + + +FPDF 1.53 Reference Manual + + + +

FPDF 1.53 Reference Manual

+AcceptPageBreak - accept or not automatic page break
+AddFont - add a new font
+AddLink - create an internal link
+AddPage - add a new page
+AliasNbPages - define an alias for number of pages
+Cell - print a cell
+Close - terminate the document
+Error - fatal error
+Footer - page footer
+FPDF - constructor
+GetStringWidth - compute string length
+GetX - get current x position
+GetY - get current y position
+Header - page header
+Image - output an image
+Line - draw a line
+Link - put a link
+Ln - line break
+MultiCell - print text with line breaks
+Output - save or send the document
+PageNo - page number
+Rect - draw a rectangle
+SetAuthor - set the document author
+SetAutoPageBreak - set the automatic page breaking mode
+SetCompression - turn compression on or off
+SetCreator - set document creator
+SetDisplayMode - set display mode
+SetDrawColor - set drawing color
+SetFillColor - set filling color
+SetFont - set font
+SetFontSize - set font size
+SetKeywords - associate keywords with document
+SetLeftMargin - set left margin
+SetLineWidth - set line width
+SetLink - set internal link destination
+SetMargins - set margins
+SetRightMargin - set right margin
+SetSubject - set document subject
+SetTextColor - set text color
+SetTitle - set document title
+SetTopMargin - set top margin
+SetX - set current x position
+SetXY - set current x and y positions
+SetY - set current y position
+Text - print a string
+Write - print flowing text
+ + diff --git a/phplib/fpdf153/doc/line.htm b/phplib/fpdf153/doc/line.htm new file mode 100644 index 0000000..fe2d267 --- /dev/null +++ b/phplib/fpdf153/doc/line.htm @@ -0,0 +1,38 @@ + + + + +Line + + + +

Line

+Line(float x1, float y1, float x2, float y2) +

Version

+1.0 +

Description

+Draws a line between two points. +

Parameters

+x1 +
+Abscissa of first point. +
+y1 +
+Ordinate of first point. +
+x2 +
+Abscissa of second point. +
+y2 +
+Ordinate of second point. +
+

See also

+SetLineWidth(), +SetDrawColor(). +
+ + + diff --git a/phplib/fpdf153/doc/link.htm b/phplib/fpdf153/doc/link.htm new file mode 100644 index 0000000..0d91003 --- /dev/null +++ b/phplib/fpdf153/doc/link.htm @@ -0,0 +1,46 @@ + + + + +Link + + + +

Link

+Link(float x, float y, float w, float h, mixed link) +

Version

+1.5 +

Description

+Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(), +Write() or Image(), but this method can be useful for instance to define a clickable area inside +an image. +

Parameters

+x +
+Abscissa of the upper-left corner of the rectangle. +
+y +
+Ordinate of the upper-left corner of the rectangle. +
+w +
+Width of the rectangle. +
+h +
+Height of the rectangle. +
+link +
+URL or identifier returned by AddLink(). +
+

See also

+AddLink(), +Cell(), +Write(), +Image(). +
+ + + diff --git a/phplib/fpdf153/doc/ln.htm b/phplib/fpdf153/doc/ln.htm new file mode 100644 index 0000000..a8f371f --- /dev/null +++ b/phplib/fpdf153/doc/ln.htm @@ -0,0 +1,28 @@ + + + + +Ln + + + +

Ln

+Ln([float h]) +

Version

+1.0 +

Description

+Performs a line break. The current abscissa goes back to the left margin and the ordinate +increases by the amount passed in parameter. +

Parameters

+h +
+The height of the break. +
+By default, the value equals the height of the last printed cell. +
+

See also

+Cell(). +
+ + + diff --git a/phplib/fpdf153/doc/multicell.htm b/phplib/fpdf153/doc/multicell.htm new file mode 100644 index 0000000..3c39a3e --- /dev/null +++ b/phplib/fpdf153/doc/multicell.htm @@ -0,0 +1,76 @@ + + + + +MultiCell + + + +

MultiCell

+MultiCell(float w, float h, string txt [, mixed border [, string align [, int fill]]]) +

Version

+1.3 +

Description

+This method allows printing text with line breaks. They can be automatic (as soon as the +text reaches the right border of the cell) or explicit (via the \n character). As many cells +as necessary are output, one below the other. +
+Text can be aligned, centered or justified. The cell block can be framed and the background +painted. +

Parameters

+w +
+Width of cells. If 0, they extend up to the right margin of the page. +
+h +
+Height of cells. +
+txt +
+String to print. +
+border +
+Indicates if borders must be drawn around the cell block. The value can be either a number: +
    +
  • 0: no border +
  • 1: frame +
+or a string containing some or all of the following characters (in any order): +
    +
  • L: left +
  • T: top +
  • R: right +
  • B: bottom +
+Default value: 0. +
+align +
+Sets the text alignment. Possible values are: +
    +
  • L: left alignment +
  • C: center +
  • R: right alignment +
  • J: justification (default value) +
+
+fill +
+Indicates if the cell background must be painted (1) or transparent (0). +Default value: 0. +
+

See also

+SetFont(), +SetDrawColor(), +SetFillColor(), +SetTextColor(), +SetLineWidth(), +Cell(), +Write(), +SetAutoPageBreak(). +
+ + + diff --git a/phplib/fpdf153/doc/output.htm b/phplib/fpdf153/doc/output.htm new file mode 100644 index 0000000..56f194d --- /dev/null +++ b/phplib/fpdf153/doc/output.htm @@ -0,0 +1,47 @@ + + + + +Output + + + +

Output

+string Output([string name [, string dest]]) +

Version

+1.0 +

Description

+Send the document to a given destination: string, local file or browser. In the last case, the +plug-in may be used (if present) or a download ("Save as" dialog box) may be forced. +
+The method first calls Close() if necessary to terminate the document. +

Parameters

+name +
+The name of the file. If not given, the document will be sent to the browser +(destination I) with the name doc.pdf. +
+dest +
+Destination where to send the document. It can take one of the following values: +
    +
  • I: send the file inline to the browser. The plug-in is used if available. +The name given by name is used when one selects the "Save as" option on the +link generating the PDF. +
  • D: send to the browser and force a file download with the name given by +name. +
  • F: save to a local file with the name given by name. +
  • S: return the document as a string. name is ignored. +
+If the parameter is not specified but a name is given, destination is F. If no +parameter is specified at all, destination is I.
+
+Note: for compatibility with previous versions, a boolean value is also accepted +(false for F and true for D). +
+

See also

+Close(). +
+ + + diff --git a/phplib/fpdf153/doc/pageno.htm b/phplib/fpdf153/doc/pageno.htm new file mode 100644 index 0000000..53a9fbc --- /dev/null +++ b/phplib/fpdf153/doc/pageno.htm @@ -0,0 +1,20 @@ + + + + +PageNo + + + +

PageNo

+int PageNo() +

Version

+1.0 +

Description

+Returns the current page number. +

See also

+AliasNbPages(). +
+ + + diff --git a/phplib/fpdf153/doc/rect.htm b/phplib/fpdf153/doc/rect.htm new file mode 100644 index 0000000..2c19a92 --- /dev/null +++ b/phplib/fpdf153/doc/rect.htm @@ -0,0 +1,48 @@ + + + + +Rect + + + +

Rect

+Rect(float x, float y, float w, float h [, string style]) +

Version

+1.0 +

Description

+Outputs a rectangle. It can be drawn (border only), filled (with no border) or both. +

Parameters

+x +
+Abscissa of upper-left corner. +
+y +
+Ordinate of upper-left corner. +
+w +
+Width. +
+h +
+Height. +
+style +
+Style of rendering. Possible values are: +
    +
  • D or empty string: draw. This is the default value. +
  • F: fill +
  • DF or FD: draw and fill +
+
+

See also

+SetLineWidth(), +SetDrawColor(), +SetFillColor(). +
+ + + diff --git a/phplib/fpdf153/doc/setauthor.htm b/phplib/fpdf153/doc/setauthor.htm new file mode 100644 index 0000000..d20aeb1 --- /dev/null +++ b/phplib/fpdf153/doc/setauthor.htm @@ -0,0 +1,28 @@ + + + + +SetAuthor + + + +

SetAuthor

+SetAuthor(string author) +

Version

+1.2 +

Description

+Defines the author of the document. +

Parameters

+author +
+The name of the author. +
+

See also

+SetCreator(), +SetKeywords(), +SetSubject(), +SetTitle(). +
+ + + diff --git a/phplib/fpdf153/doc/setautopagebreak.htm b/phplib/fpdf153/doc/setautopagebreak.htm new file mode 100644 index 0000000..e3cb1eb --- /dev/null +++ b/phplib/fpdf153/doc/setautopagebreak.htm @@ -0,0 +1,33 @@ + + + + +SetAutoPageBreak + + + +

SetAutoPageBreak

+SetAutoPageBreak(boolean auto [, float margin]) +

Version

+1.0 +

Description

+Enables or disables the automatic page breaking mode. When enabling, the second parameter is +the distance from the bottom of the page that defines the triggering limit. By default, the +mode is on and the margin is 2 cm. +

Parameters

+auto +
+Boolean indicating if mode should be on or off. +
+margin +
+Distance from the bottom of the page. +
+

See also

+Cell(), +MultiCell(), +AcceptPageBreak(). +
+ + + diff --git a/phplib/fpdf153/doc/setcompression.htm b/phplib/fpdf153/doc/setcompression.htm new file mode 100644 index 0000000..5e45e85 --- /dev/null +++ b/phplib/fpdf153/doc/setcompression.htm @@ -0,0 +1,31 @@ + + + + +SetCompression + + + +

SetCompression

+SetCompression(boolean compress) +

Version

+1.4 +

Description

+Activates or deactivates page compression. When activated, the internal representation of +each page is compressed, which leads to a compression ratio of about 2 for the resulting +document. +
+Compression is on by default. +
+
+Note: the Zlib extension is required for this feature. If not present, compression +will be turned off. +

Parameters

+compress +
+Boolean indicating if compression must be enabled. +
+
+ + + diff --git a/phplib/fpdf153/doc/setcreator.htm b/phplib/fpdf153/doc/setcreator.htm new file mode 100644 index 0000000..e1ace72 --- /dev/null +++ b/phplib/fpdf153/doc/setcreator.htm @@ -0,0 +1,29 @@ + + + + +SetCreator + + + +

SetCreator

+SetCreator(string creator) +

Version

+1.2 +

Description

+Defines the creator of the document. This is typically the name of the application that +generates the PDF. +

Parameters

+creator +
+The name of the creator. +
+

See also

+SetAuthor(), +SetKeywords(), +SetSubject(), +SetTitle(). +
+ + + diff --git a/phplib/fpdf153/doc/setdisplaymode.htm b/phplib/fpdf153/doc/setdisplaymode.htm new file mode 100644 index 0000000..e363ccf --- /dev/null +++ b/phplib/fpdf153/doc/setdisplaymode.htm @@ -0,0 +1,47 @@ + + + + +SetDisplayMode + + + +

SetDisplayMode

+SetDisplayMode(mixed zoom [, string layout]) +

Version

+1.2 +

Description

+Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be +displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a +specific zooming factor or use viewer default (configured in the Preferences menu of Acrobat). +The page layout can be specified too: single at once, continuous display, two columns or viewer +default. +
+By default, documents use the full width mode with continuous display. +

Parameters

+zoom +
+The zoom to use. It can be one of the following string values: +
    +
  • fullpage: displays the entire page on screen +
  • fullwidth: uses maximum width of window +
  • real: uses real size (equivalent to 100% zoom) +
  • default: uses viewer default mode +
+or a number indicating the zooming factor to use. +
+layout +
+The page layout. Possible values are: +
    +
  • single: displays one page at once +
  • continuous: displays pages continuously +
  • two: displays two pages on two columns +
  • default: uses viewer default mode +
+Default value is continuous. +
+
+ + + diff --git a/phplib/fpdf153/doc/setdrawcolor.htm b/phplib/fpdf153/doc/setdrawcolor.htm new file mode 100644 index 0000000..b028cd2 --- /dev/null +++ b/phplib/fpdf153/doc/setdrawcolor.htm @@ -0,0 +1,41 @@ + + + + +SetDrawColor + + + +

SetDrawColor

+SetDrawColor(int r [, int g, int b]) +

Version

+1.3 +

Description

+Defines the color used for all drawing operations (lines, rectangles and cell borders). It +can be expressed in RGB components or gray scale. The method can be called before the first +page is created and the value is retained from page to page. +

Parameters

+r +
+If g et b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
+g +
+Green component (between 0 and 255). +
+b +
+Blue component (between 0 and 255). +
+

See also

+SetFillColor(), +SetTextColor(), +Line(), +Rect(), +Cell(), +MultiCell(). +
+ + + diff --git a/phplib/fpdf153/doc/setfillcolor.htm b/phplib/fpdf153/doc/setfillcolor.htm new file mode 100644 index 0000000..8440e4d --- /dev/null +++ b/phplib/fpdf153/doc/setfillcolor.htm @@ -0,0 +1,40 @@ + + + + +SetFillColor + + + +

SetFillColor

+SetFillColor(int r [, int g, int b]) +

Version

+1.3 +

Description

+Defines the color used for all filling operations (filled rectangles and cell backgrounds). +It can be expressed in RGB components or gray scale. The method can be called before the first +page is created and the value is retained from page to page. +

Parameters

+r +
+If g and b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
+g +
+Green component (between 0 and 255). +
+b +
+Blue component (between 0 and 255). +
+

See also

+SetDrawColor(), +SetTextColor(), +Rect(), +Cell(), +MultiCell(). +
+ + + diff --git a/phplib/fpdf153/doc/setfont.htm b/phplib/fpdf153/doc/setfont.htm new file mode 100644 index 0000000..e17c850 --- /dev/null +++ b/phplib/fpdf153/doc/setfont.htm @@ -0,0 +1,98 @@ + + + + +SetFont + + + +

SetFont

+SetFont(string family [, string style [, float size]]) +

Version

+1.0 +

Description

+Sets the font used to print character strings. It is mandatory to call this method +at least once before printing text or the resulting document would not be valid. +
+The font can be either a standard one or a font added via the AddFont() method. Standard fonts +use Windows encoding cp1252 (Western Europe). +
+The method can be called before the first page is created and the font is retained from page +to page. +
+If you just wish to change the current font size, it is simpler to call SetFontSize(). +
+
+Note: the font metric files must be accessible. They are searched successively in: +
    +
  • The directory defined by the FPDF_FONTPATH constant (if this constant is defined) +
  • The font directory located in the directory containing fpdf.php (if it exists) +
  • The directories accessible through include() +
+Example defining FPDF_FONTPATH (note the mandatory trailing slash): +
+
+
+ +define('FPDF_FONTPATH','/home/www/font/');
+require('fpdf.php'); +
+

+If the file corresponding to the requested font is not found, the error "Could not include +font metric file" is issued. +

Parameters

+family +
+Family font. It can be either a name defined by AddFont() or one of the standard families (case +insensitive): +
    +
  • Courier (fixed-width) +
  • Helvetica or Arial (synonymous; sans serif) +
  • Times (serif) +
  • Symbol (symbolic) +
  • ZapfDingbats (symbolic) +
+It is also possible to pass an empty string. In that case, the current family is retained. +
+style +
+Font style. Possible values are (case insensitive): +
    +
  • empty string: regular +
  • B: bold +
  • I: italic +
  • U: underline +
+or any combination. The default value is regular. +Bold and italic styles do not apply to Symbol and ZapfDingbats. +
+size +
+Font size in points. +
+The default value is the current size. If no size has been specified since the beginning of +the document, the value taken is 12. +
+

Example

+
+ +//Times regular 12
+$pdf->SetFont('Times');
+//Arial bold 14
+$pdf->SetFont('Arial','B',14);
+//Removes bold
+$pdf->SetFont('');
+//Times bold, italic and underlined 14
+$pdf->SetFont('Times','BIU'); +
+

+

See also

+AddFont(), +SetFontSize(), +Cell(), +MultiCell(), +Write(). +
+ + + diff --git a/phplib/fpdf153/doc/setfontsize.htm b/phplib/fpdf153/doc/setfontsize.htm new file mode 100644 index 0000000..73e1600 --- /dev/null +++ b/phplib/fpdf153/doc/setfontsize.htm @@ -0,0 +1,25 @@ + + + + +SetFontSize + + + +

SetFontSize

+SetFontSize(float size) +

Version

+1.0 +

Description

+Defines the size of the current font. +

Parameters

+size +
+The size (in points). +
+

See also

+SetFont(). +
+ + + diff --git a/phplib/fpdf153/doc/setkeywords.htm b/phplib/fpdf153/doc/setkeywords.htm new file mode 100644 index 0000000..b73b791 --- /dev/null +++ b/phplib/fpdf153/doc/setkeywords.htm @@ -0,0 +1,28 @@ + + + + +SetKeywords + + + +

SetKeywords

+SetKeywords(string keywords) +

Version

+1.2 +

Description

+Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'. +

Parameters

+keywords +
+The list of keywords. +
+

See also

+SetAuthor(), +SetCreator(), +SetSubject(), +SetTitle(). +
+ + + diff --git a/phplib/fpdf153/doc/setleftmargin.htm b/phplib/fpdf153/doc/setleftmargin.htm new file mode 100644 index 0000000..c43edb5 --- /dev/null +++ b/phplib/fpdf153/doc/setleftmargin.htm @@ -0,0 +1,30 @@ + + + + +SetLeftMargin + + + +

SetLeftMargin

+SetLeftMargin(float margin) +

Version

+1.4 +

Description

+Defines the left margin. The method can be called before creating the first page. +
+If the current abscissa gets out of page, it is brought back to the margin. +

Parameters

+margin +
+The margin. +
+

See also

+SetTopMargin(), +SetRightMargin(), +SetAutoPageBreak(), +SetMargins(). +
+ + + diff --git a/phplib/fpdf153/doc/setlinewidth.htm b/phplib/fpdf153/doc/setlinewidth.htm new file mode 100644 index 0000000..04af112 --- /dev/null +++ b/phplib/fpdf153/doc/setlinewidth.htm @@ -0,0 +1,29 @@ + + + + +SetLineWidth + + + +

SetLineWidth

+SetLineWidth(float width) +

Version

+1.0 +

Description

+Defines the line width. By default, the value equals 0.2 mm. The method can be called before +the first page is created and the value is retained from page to page. +

Parameters

+width +
+The width. +
+

See also

+Line(), +Rect(), +Cell(), +MultiCell(). +
+ + + diff --git a/phplib/fpdf153/doc/setlink.htm b/phplib/fpdf153/doc/setlink.htm new file mode 100644 index 0000000..720bcea --- /dev/null +++ b/phplib/fpdf153/doc/setlink.htm @@ -0,0 +1,34 @@ + + + + +SetLink + + + +

SetLink

+SetLink(int link [, float y [, int page]]) +

Version

+1.5 +

Description

+Defines the page and position a link points to. +

Parameters

+link +
+The link identifier returned by AddLink(). +
+y +
+Ordinate of target position; -1 indicates the current position. +The default value is 0 (top of page). +
+page +
+Number of target page; -1 indicates the current page. This is the default value. +
+

See also

+AddLink(). +
+ + + diff --git a/phplib/fpdf153/doc/setmargins.htm b/phplib/fpdf153/doc/setmargins.htm new file mode 100644 index 0000000..17c2376 --- /dev/null +++ b/phplib/fpdf153/doc/setmargins.htm @@ -0,0 +1,37 @@ + + + + +SetMargins + + + +

SetMargins

+SetMargins(float left, float top [, float right]) +

Version

+1.0 +

Description

+Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change +them. +

Parameters

+left +
+Left margin. +
+top +
+Top margin. +
+right +
+Right margin. Default value is the left one. +
+

See also

+SetLeftMargin(), +SetTopMargin(), +SetRightMargin(), +SetAutoPageBreak(). +
+ + + diff --git a/phplib/fpdf153/doc/setrightmargin.htm b/phplib/fpdf153/doc/setrightmargin.htm new file mode 100644 index 0000000..6af0dbe --- /dev/null +++ b/phplib/fpdf153/doc/setrightmargin.htm @@ -0,0 +1,28 @@ + + + + +SetRightMargin + + + +

SetRightMargin

+SetRightMargin(float margin) +

Version

+1.5 +

Description

+Defines the right margin. The method can be called before creating the first page. +

Parameters

+margin +
+The margin. +
+

See also

+SetLeftMargin(), +SetTopMargin(), +SetAutoPageBreak(), +SetMargins(). +
+ + + diff --git a/phplib/fpdf153/doc/setsubject.htm b/phplib/fpdf153/doc/setsubject.htm new file mode 100644 index 0000000..fc8b868 --- /dev/null +++ b/phplib/fpdf153/doc/setsubject.htm @@ -0,0 +1,28 @@ + + + + +SetSubject + + + +

SetSubject

+SetSubject(string subject) +

Version

+1.2 +

Description

+Defines the subject of the document. +

Parameters

+subject +
+The subject. +
+

See also

+SetAuthor(), +SetCreator(), +SetKeywords(), +SetTitle(). +
+ + + diff --git a/phplib/fpdf153/doc/settextcolor.htm b/phplib/fpdf153/doc/settextcolor.htm new file mode 100644 index 0000000..d642c51 --- /dev/null +++ b/phplib/fpdf153/doc/settextcolor.htm @@ -0,0 +1,40 @@ + + + + +SetTextColor + + + +

SetTextColor

+SetTextColor(int r [, int g, int b]) +

Version

+1.3 +

Description

+Defines the color used for text. It can be expressed in RGB components or gray scale. The +method can be called before the first page is created and the value is retained from page to +page. +

Parameters

+r +
+If g et b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
+g +
+Green component (between 0 and 255). +
+b +
+Blue component (between 0 and 255). +
+

See also

+SetDrawColor(), +SetFillColor(), +Text(), +Cell(), +MultiCell(). +
+ + + diff --git a/phplib/fpdf153/doc/settitle.htm b/phplib/fpdf153/doc/settitle.htm new file mode 100644 index 0000000..0ea5f10 --- /dev/null +++ b/phplib/fpdf153/doc/settitle.htm @@ -0,0 +1,28 @@ + + + + +SetTitle + + + +

SetTitle

+SetTitle(string title) +

Version

+1.2 +

Description

+Defines the title of the document. +

Parameters

+title +
+The title. +
+

See also

+SetAuthor(), +SetCreator(), +SetKeywords(), +SetSubject(). +
+ + + diff --git a/phplib/fpdf153/doc/settopmargin.htm b/phplib/fpdf153/doc/settopmargin.htm new file mode 100644 index 0000000..bdab97d --- /dev/null +++ b/phplib/fpdf153/doc/settopmargin.htm @@ -0,0 +1,28 @@ + + + + +SetTopMargin + + + +

SetTopMargin

+SetTopMargin(float margin) +

Version

+1.5 +

Description

+Defines the top margin. The method can be called before creating the first page. +

Parameters

+margin +
+The margin. +
+

See also

+SetLeftMargin(), +SetRightMargin(), +SetAutoPageBreak(), +SetMargins(). +
+ + + diff --git a/phplib/fpdf153/doc/setx.htm b/phplib/fpdf153/doc/setx.htm new file mode 100644 index 0000000..3b1722d --- /dev/null +++ b/phplib/fpdf153/doc/setx.htm @@ -0,0 +1,29 @@ + + + + +SetX + + + +

SetX

+SetX(float x) +

Version

+1.2 +

Description

+Defines the abscissa of the current position. If the passed value is negative, it is relative +to the right of the page. +

Parameters

+x +
+The value of the abscissa. +
+

See also

+GetX(), +GetY(), +SetY(), +SetXY(). +
+ + + diff --git a/phplib/fpdf153/doc/setxy.htm b/phplib/fpdf153/doc/setxy.htm new file mode 100644 index 0000000..22fe246 --- /dev/null +++ b/phplib/fpdf153/doc/setxy.htm @@ -0,0 +1,31 @@ + + + + +SetXY + + + +

SetXY

+SetXY(float x, float y) +

Version

+1.2 +

Description

+Defines the abscissa and ordinate of the current position. If the passed values are negative, +they are relative respectively to the right and bottom of the page. +

Parameters

+x +
+The value of the abscissa. +
+y +
+The value of the ordinate. +
+

See also

+SetX(), +SetY(). +
+ + + diff --git a/phplib/fpdf153/doc/sety.htm b/phplib/fpdf153/doc/sety.htm new file mode 100644 index 0000000..a1560e0 --- /dev/null +++ b/phplib/fpdf153/doc/sety.htm @@ -0,0 +1,29 @@ + + + + +SetY + + + +

SetY

+SetY(float y) +

Version

+1.0 +

Description

+Moves the current abscissa back to the left margin and sets the ordinate. If the passed value +is negative, it is relative to the bottom of the page. +

Parameters

+y +
+The value of the ordinate. +
+

See also

+GetX(), +GetY(), +SetX(), +SetXY(). +
+ + + diff --git a/phplib/fpdf153/doc/text.htm b/phplib/fpdf153/doc/text.htm new file mode 100644 index 0000000..87c594a --- /dev/null +++ b/phplib/fpdf153/doc/text.htm @@ -0,0 +1,39 @@ + + + + +Text + + + +

Text

+Text(float x, float y, string txt) +

Version

+1.0 +

Description

+Prints a character string. The origin is on the left of the first character, on the baseline. +This method allows to place a string precisely on the page, but it is usually easier to use +Cell(), MultiCell() or Write() which are the standard methods to print text. +

Parameters

+x +
+Abscissa of the origin. +
+y +
+Ordinate of the origin. +
+txt +
+String to print. +
+

See also

+SetFont(), +SetTextColor(), +Cell(), +MultiCell(), +Write(). +
+ + + diff --git a/phplib/fpdf153/doc/write.htm b/phplib/fpdf153/doc/write.htm new file mode 100644 index 0000000..2a56d04 --- /dev/null +++ b/phplib/fpdf153/doc/write.htm @@ -0,0 +1,53 @@ + + + + +Write + + + +

Write

+Write(float h, string txt [, mixed link]) +

Version

+1.5 +

Description

+This method prints text from the current position. When the right margin is reached (or the \n +character is met) a line break occurs and text continues from the left margin. Upon method exit, +the current position is left just at the end of the text. +
+It is possible to put a link on the text. +

Parameters

+h +
+Line height. +
+txt +
+String to print. +
+link +
+URL or identifier returned by AddLink(). +
+

Example

+
+ +//Begin with regular font
+$pdf->SetFont('Arial','',14);
+$pdf->Write(5,'Visit ');
+//Then put a blue underlined link
+$pdf->SetTextColor(0,0,255);
+$pdf->SetFont('','U');
+$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org'); +
+

+

See also

+SetFont(), +SetTextColor(), +AddLink(), +MultiCell(), +SetAutoPageBreak(). +
+ + + diff --git a/phplib/fpdf153/font/courier.php b/phplib/fpdf153/font/courier.php new file mode 100644 index 0000000..4c009f3 --- /dev/null +++ b/phplib/fpdf153/font/courier.php @@ -0,0 +1,7 @@ + diff --git a/phplib/fpdf153/font/helvetica.php b/phplib/fpdf153/font/helvetica.php new file mode 100644 index 0000000..8fa7683 --- /dev/null +++ b/phplib/fpdf153/font/helvetica.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, + 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, + chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +?> diff --git a/phplib/fpdf153/font/helveticab.php b/phplib/fpdf153/font/helveticab.php new file mode 100644 index 0000000..a8473c9 --- /dev/null +++ b/phplib/fpdf153/font/helveticab.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, + chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, + chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); +?> diff --git a/phplib/fpdf153/font/helveticabi.php b/phplib/fpdf153/font/helveticabi.php new file mode 100644 index 0000000..4137953 --- /dev/null +++ b/phplib/fpdf153/font/helveticabi.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, + chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, + chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); +?> diff --git a/phplib/fpdf153/font/helveticai.php b/phplib/fpdf153/font/helveticai.php new file mode 100644 index 0000000..d5bb6e0 --- /dev/null +++ b/phplib/fpdf153/font/helveticai.php @@ -0,0 +1,15 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, + 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, + chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +?> diff --git a/phplib/fpdf153/font/makefont/cp1250.map b/phplib/fpdf153/font/makefont/cp1250.map new file mode 100644 index 0000000..ec110af --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1250.map @@ -0,0 +1,251 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+015A Sacute +!8D U+0164 Tcaron +!8E U+017D Zcaron +!8F U+0179 Zacute +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+015B sacute +!9D U+0165 tcaron +!9E U+017E zcaron +!9F U+017A zacute +!A0 U+00A0 space +!A1 U+02C7 caron +!A2 U+02D8 breve +!A3 U+0141 Lslash +!A4 U+00A4 currency +!A5 U+0104 Aogonek +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+015E Scedilla +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+02DB ogonek +!B3 U+0142 lslash +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+0105 aogonek +!BA U+015F scedilla +!BB U+00BB guillemotright +!BC U+013D Lcaron +!BD U+02DD hungarumlaut +!BE U+013E lcaron +!BF U+017C zdotaccent +!C0 U+0154 Racute +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0139 Lacute +!C6 U+0106 Cacute +!C7 U+00C7 Ccedilla +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+011A Ecaron +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+010E Dcaron +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+0147 Ncaron +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0158 Rcaron +!D9 U+016E Uring +!DA U+00DA Uacute +!DB U+0170 Uhungarumlaut +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+0162 Tcommaaccent +!DF U+00DF germandbls +!E0 U+0155 racute +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+013A lacute +!E6 U+0107 cacute +!E7 U+00E7 ccedilla +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+011B ecaron +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+010F dcaron +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+0148 ncaron +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0159 rcaron +!F9 U+016F uring +!FA U+00FA uacute +!FB U+0171 uhungarumlaut +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+0163 tcommaaccent +!FF U+02D9 dotaccent diff --git a/phplib/fpdf153/font/makefont/cp1251.map b/phplib/fpdf153/font/makefont/cp1251.map new file mode 100644 index 0000000..de6a198 --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1251.map @@ -0,0 +1,255 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0402 afii10051 +!81 U+0403 afii10052 +!82 U+201A quotesinglbase +!83 U+0453 afii10100 +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+20AC Euro +!89 U+2030 perthousand +!8A U+0409 afii10058 +!8B U+2039 guilsinglleft +!8C U+040A afii10059 +!8D U+040C afii10061 +!8E U+040B afii10060 +!8F U+040F afii10145 +!90 U+0452 afii10099 +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9A U+0459 afii10106 +!9B U+203A guilsinglright +!9C U+045A afii10107 +!9D U+045C afii10109 +!9E U+045B afii10108 +!9F U+045F afii10193 +!A0 U+00A0 space +!A1 U+040E afii10062 +!A2 U+045E afii10110 +!A3 U+0408 afii10057 +!A4 U+00A4 currency +!A5 U+0490 afii10050 +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+0401 afii10023 +!A9 U+00A9 copyright +!AA U+0404 afii10053 +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+0407 afii10056 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+0406 afii10055 +!B3 U+0456 afii10103 +!B4 U+0491 afii10098 +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+0451 afii10071 +!B9 U+2116 afii61352 +!BA U+0454 afii10101 +!BB U+00BB guillemotright +!BC U+0458 afii10105 +!BD U+0405 afii10054 +!BE U+0455 afii10102 +!BF U+0457 afii10104 +!C0 U+0410 afii10017 +!C1 U+0411 afii10018 +!C2 U+0412 afii10019 +!C3 U+0413 afii10020 +!C4 U+0414 afii10021 +!C5 U+0415 afii10022 +!C6 U+0416 afii10024 +!C7 U+0417 afii10025 +!C8 U+0418 afii10026 +!C9 U+0419 afii10027 +!CA U+041A afii10028 +!CB U+041B afii10029 +!CC U+041C afii10030 +!CD U+041D afii10031 +!CE U+041E afii10032 +!CF U+041F afii10033 +!D0 U+0420 afii10034 +!D1 U+0421 afii10035 +!D2 U+0422 afii10036 +!D3 U+0423 afii10037 +!D4 U+0424 afii10038 +!D5 U+0425 afii10039 +!D6 U+0426 afii10040 +!D7 U+0427 afii10041 +!D8 U+0428 afii10042 +!D9 U+0429 afii10043 +!DA U+042A afii10044 +!DB U+042B afii10045 +!DC U+042C afii10046 +!DD U+042D afii10047 +!DE U+042E afii10048 +!DF U+042F afii10049 +!E0 U+0430 afii10065 +!E1 U+0431 afii10066 +!E2 U+0432 afii10067 +!E3 U+0433 afii10068 +!E4 U+0434 afii10069 +!E5 U+0435 afii10070 +!E6 U+0436 afii10072 +!E7 U+0437 afii10073 +!E8 U+0438 afii10074 +!E9 U+0439 afii10075 +!EA U+043A afii10076 +!EB U+043B afii10077 +!EC U+043C afii10078 +!ED U+043D afii10079 +!EE U+043E afii10080 +!EF U+043F afii10081 +!F0 U+0440 afii10082 +!F1 U+0441 afii10083 +!F2 U+0442 afii10084 +!F3 U+0443 afii10085 +!F4 U+0444 afii10086 +!F5 U+0445 afii10087 +!F6 U+0446 afii10088 +!F7 U+0447 afii10089 +!F8 U+0448 afii10090 +!F9 U+0449 afii10091 +!FA U+044A afii10092 +!FB U+044B afii10093 +!FC U+044C afii10094 +!FD U+044D afii10095 +!FE U+044E afii10096 +!FF U+044F afii10097 diff --git a/phplib/fpdf153/font/makefont/cp1252.map b/phplib/fpdf153/font/makefont/cp1252.map new file mode 100644 index 0000000..dd490e5 --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1252.map @@ -0,0 +1,251 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+0152 OE +!8E U+017D Zcaron +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+0153 oe +!9E U+017E zcaron +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf153/font/makefont/cp1253.map b/phplib/fpdf153/font/makefont/cp1253.map new file mode 100644 index 0000000..4bd826f --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1253.map @@ -0,0 +1,239 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9B U+203A guilsinglright +!A0 U+00A0 space +!A1 U+0385 dieresistonos +!A2 U+0386 Alphatonos +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+2015 afii00208 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+0384 tonos +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+0388 Epsilontonos +!B9 U+0389 Etatonos +!BA U+038A Iotatonos +!BB U+00BB guillemotright +!BC U+038C Omicrontonos +!BD U+00BD onehalf +!BE U+038E Upsilontonos +!BF U+038F Omegatonos +!C0 U+0390 iotadieresistonos +!C1 U+0391 Alpha +!C2 U+0392 Beta +!C3 U+0393 Gamma +!C4 U+0394 Delta +!C5 U+0395 Epsilon +!C6 U+0396 Zeta +!C7 U+0397 Eta +!C8 U+0398 Theta +!C9 U+0399 Iota +!CA U+039A Kappa +!CB U+039B Lambda +!CC U+039C Mu +!CD U+039D Nu +!CE U+039E Xi +!CF U+039F Omicron +!D0 U+03A0 Pi +!D1 U+03A1 Rho +!D3 U+03A3 Sigma +!D4 U+03A4 Tau +!D5 U+03A5 Upsilon +!D6 U+03A6 Phi +!D7 U+03A7 Chi +!D8 U+03A8 Psi +!D9 U+03A9 Omega +!DA U+03AA Iotadieresis +!DB U+03AB Upsilondieresis +!DC U+03AC alphatonos +!DD U+03AD epsilontonos +!DE U+03AE etatonos +!DF U+03AF iotatonos +!E0 U+03B0 upsilondieresistonos +!E1 U+03B1 alpha +!E2 U+03B2 beta +!E3 U+03B3 gamma +!E4 U+03B4 delta +!E5 U+03B5 epsilon +!E6 U+03B6 zeta +!E7 U+03B7 eta +!E8 U+03B8 theta +!E9 U+03B9 iota +!EA U+03BA kappa +!EB U+03BB lambda +!EC U+03BC mu +!ED U+03BD nu +!EE U+03BE xi +!EF U+03BF omicron +!F0 U+03C0 pi +!F1 U+03C1 rho +!F2 U+03C2 sigma1 +!F3 U+03C3 sigma +!F4 U+03C4 tau +!F5 U+03C5 upsilon +!F6 U+03C6 phi +!F7 U+03C7 chi +!F8 U+03C8 psi +!F9 U+03C9 omega +!FA U+03CA iotadieresis +!FB U+03CB upsilondieresis +!FC U+03CC omicrontonos +!FD U+03CD upsilontonos +!FE U+03CE omegatonos diff --git a/phplib/fpdf153/font/makefont/cp1254.map b/phplib/fpdf153/font/makefont/cp1254.map new file mode 100644 index 0000000..829473b --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1254.map @@ -0,0 +1,249 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+0152 OE +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+0153 oe +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+011E Gbreve +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0130 Idotaccent +!DE U+015E Scedilla +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+011F gbreve +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0131 dotlessi +!FE U+015F scedilla +!FF U+00FF ydieresis diff --git a/phplib/fpdf153/font/makefont/cp1255.map b/phplib/fpdf153/font/makefont/cp1255.map new file mode 100644 index 0000000..079e10c --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1255.map @@ -0,0 +1,233 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9B U+203A guilsinglright +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+20AA afii57636 +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00D7 multiply +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD sfthyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 middot +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00F7 divide +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+05B0 afii57799 +!C1 U+05B1 afii57801 +!C2 U+05B2 afii57800 +!C3 U+05B3 afii57802 +!C4 U+05B4 afii57793 +!C5 U+05B5 afii57794 +!C6 U+05B6 afii57795 +!C7 U+05B7 afii57798 +!C8 U+05B8 afii57797 +!C9 U+05B9 afii57806 +!CB U+05BB afii57796 +!CC U+05BC afii57807 +!CD U+05BD afii57839 +!CE U+05BE afii57645 +!CF U+05BF afii57841 +!D0 U+05C0 afii57842 +!D1 U+05C1 afii57804 +!D2 U+05C2 afii57803 +!D3 U+05C3 afii57658 +!D4 U+05F0 afii57716 +!D5 U+05F1 afii57717 +!D6 U+05F2 afii57718 +!D7 U+05F3 gereshhebrew +!D8 U+05F4 gershayimhebrew +!E0 U+05D0 afii57664 +!E1 U+05D1 afii57665 +!E2 U+05D2 afii57666 +!E3 U+05D3 afii57667 +!E4 U+05D4 afii57668 +!E5 U+05D5 afii57669 +!E6 U+05D6 afii57670 +!E7 U+05D7 afii57671 +!E8 U+05D8 afii57672 +!E9 U+05D9 afii57673 +!EA U+05DA afii57674 +!EB U+05DB afii57675 +!EC U+05DC afii57676 +!ED U+05DD afii57677 +!EE U+05DE afii57678 +!EF U+05DF afii57679 +!F0 U+05E0 afii57680 +!F1 U+05E1 afii57681 +!F2 U+05E2 afii57682 +!F3 U+05E3 afii57683 +!F4 U+05E4 afii57684 +!F5 U+05E5 afii57685 +!F6 U+05E6 afii57686 +!F7 U+05E7 afii57687 +!F8 U+05E8 afii57688 +!F9 U+05E9 afii57689 +!FA U+05EA afii57690 +!FD U+200E afii299 +!FE U+200F afii300 diff --git a/phplib/fpdf153/font/makefont/cp1257.map b/phplib/fpdf153/font/makefont/cp1257.map new file mode 100644 index 0000000..2f2ecfa --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1257.map @@ -0,0 +1,244 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!8D U+00A8 dieresis +!8E U+02C7 caron +!8F U+00B8 cedilla +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9B U+203A guilsinglright +!9D U+00AF macron +!9E U+02DB ogonek +!A0 U+00A0 space +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00D8 Oslash +!A9 U+00A9 copyright +!AA U+0156 Rcommaaccent +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00C6 AE +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00F8 oslash +!B9 U+00B9 onesuperior +!BA U+0157 rcommaaccent +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00E6 ae +!C0 U+0104 Aogonek +!C1 U+012E Iogonek +!C2 U+0100 Amacron +!C3 U+0106 Cacute +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+0118 Eogonek +!C7 U+0112 Emacron +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0179 Zacute +!CB U+0116 Edotaccent +!CC U+0122 Gcommaaccent +!CD U+0136 Kcommaaccent +!CE U+012A Imacron +!CF U+013B Lcommaaccent +!D0 U+0160 Scaron +!D1 U+0143 Nacute +!D2 U+0145 Ncommaaccent +!D3 U+00D3 Oacute +!D4 U+014C Omacron +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0172 Uogonek +!D9 U+0141 Lslash +!DA U+015A Sacute +!DB U+016A Umacron +!DC U+00DC Udieresis +!DD U+017B Zdotaccent +!DE U+017D Zcaron +!DF U+00DF germandbls +!E0 U+0105 aogonek +!E1 U+012F iogonek +!E2 U+0101 amacron +!E3 U+0107 cacute +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+0119 eogonek +!E7 U+0113 emacron +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+017A zacute +!EB U+0117 edotaccent +!EC U+0123 gcommaaccent +!ED U+0137 kcommaaccent +!EE U+012B imacron +!EF U+013C lcommaaccent +!F0 U+0161 scaron +!F1 U+0144 nacute +!F2 U+0146 ncommaaccent +!F3 U+00F3 oacute +!F4 U+014D omacron +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0173 uogonek +!F9 U+0142 lslash +!FA U+015B sacute +!FB U+016B umacron +!FC U+00FC udieresis +!FD U+017C zdotaccent +!FE U+017E zcaron +!FF U+02D9 dotaccent diff --git a/phplib/fpdf153/font/makefont/cp1258.map b/phplib/fpdf153/font/makefont/cp1258.map new file mode 100644 index 0000000..fed915f --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp1258.map @@ -0,0 +1,247 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!8C U+0152 OE +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9B U+203A guilsinglright +!9C U+0153 oe +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+0300 gravecomb +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+0110 Dcroat +!D1 U+00D1 Ntilde +!D2 U+0309 hookabovecomb +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+01A0 Ohorn +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+01AF Uhorn +!DE U+0303 tildecomb +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+0301 acutecomb +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+0111 dcroat +!F1 U+00F1 ntilde +!F2 U+0323 dotbelowcomb +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+01A1 ohorn +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+01B0 uhorn +!FE U+20AB dong +!FF U+00FF ydieresis diff --git a/phplib/fpdf153/font/makefont/cp874.map b/phplib/fpdf153/font/makefont/cp874.map new file mode 100644 index 0000000..1006e6b --- /dev/null +++ b/phplib/fpdf153/font/makefont/cp874.map @@ -0,0 +1,225 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!85 U+2026 ellipsis +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!A0 U+00A0 space +!A1 U+0E01 kokaithai +!A2 U+0E02 khokhaithai +!A3 U+0E03 khokhuatthai +!A4 U+0E04 khokhwaithai +!A5 U+0E05 khokhonthai +!A6 U+0E06 khorakhangthai +!A7 U+0E07 ngonguthai +!A8 U+0E08 chochanthai +!A9 U+0E09 chochingthai +!AA U+0E0A chochangthai +!AB U+0E0B sosothai +!AC U+0E0C chochoethai +!AD U+0E0D yoyingthai +!AE U+0E0E dochadathai +!AF U+0E0F topatakthai +!B0 U+0E10 thothanthai +!B1 U+0E11 thonangmonthothai +!B2 U+0E12 thophuthaothai +!B3 U+0E13 nonenthai +!B4 U+0E14 dodekthai +!B5 U+0E15 totaothai +!B6 U+0E16 thothungthai +!B7 U+0E17 thothahanthai +!B8 U+0E18 thothongthai +!B9 U+0E19 nonuthai +!BA U+0E1A bobaimaithai +!BB U+0E1B poplathai +!BC U+0E1C phophungthai +!BD U+0E1D fofathai +!BE U+0E1E phophanthai +!BF U+0E1F fofanthai +!C0 U+0E20 phosamphaothai +!C1 U+0E21 momathai +!C2 U+0E22 yoyakthai +!C3 U+0E23 roruathai +!C4 U+0E24 ruthai +!C5 U+0E25 lolingthai +!C6 U+0E26 luthai +!C7 U+0E27 wowaenthai +!C8 U+0E28 sosalathai +!C9 U+0E29 sorusithai +!CA U+0E2A sosuathai +!CB U+0E2B hohipthai +!CC U+0E2C lochulathai +!CD U+0E2D oangthai +!CE U+0E2E honokhukthai +!CF U+0E2F paiyannoithai +!D0 U+0E30 saraathai +!D1 U+0E31 maihanakatthai +!D2 U+0E32 saraaathai +!D3 U+0E33 saraamthai +!D4 U+0E34 saraithai +!D5 U+0E35 saraiithai +!D6 U+0E36 sarauethai +!D7 U+0E37 saraueethai +!D8 U+0E38 sarauthai +!D9 U+0E39 sarauuthai +!DA U+0E3A phinthuthai +!DF U+0E3F bahtthai +!E0 U+0E40 saraethai +!E1 U+0E41 saraaethai +!E2 U+0E42 saraothai +!E3 U+0E43 saraaimaimuanthai +!E4 U+0E44 saraaimaimalaithai +!E5 U+0E45 lakkhangyaothai +!E6 U+0E46 maiyamokthai +!E7 U+0E47 maitaikhuthai +!E8 U+0E48 maiekthai +!E9 U+0E49 maithothai +!EA U+0E4A maitrithai +!EB U+0E4B maichattawathai +!EC U+0E4C thanthakhatthai +!ED U+0E4D nikhahitthai +!EE U+0E4E yamakkanthai +!EF U+0E4F fongmanthai +!F0 U+0E50 zerothai +!F1 U+0E51 onethai +!F2 U+0E52 twothai +!F3 U+0E53 threethai +!F4 U+0E54 fourthai +!F5 U+0E55 fivethai +!F6 U+0E56 sixthai +!F7 U+0E57 seventhai +!F8 U+0E58 eightthai +!F9 U+0E59 ninethai +!FA U+0E5A angkhankhuthai +!FB U+0E5B khomutthai diff --git a/phplib/fpdf153/font/makefont/iso-8859-1.map b/phplib/fpdf153/font/makefont/iso-8859-1.map new file mode 100644 index 0000000..61740a3 --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-1.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf153/font/makefont/iso-8859-11.map b/phplib/fpdf153/font/makefont/iso-8859-11.map new file mode 100644 index 0000000..9168812 --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-11.map @@ -0,0 +1,248 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0E01 kokaithai +!A2 U+0E02 khokhaithai +!A3 U+0E03 khokhuatthai +!A4 U+0E04 khokhwaithai +!A5 U+0E05 khokhonthai +!A6 U+0E06 khorakhangthai +!A7 U+0E07 ngonguthai +!A8 U+0E08 chochanthai +!A9 U+0E09 chochingthai +!AA U+0E0A chochangthai +!AB U+0E0B sosothai +!AC U+0E0C chochoethai +!AD U+0E0D yoyingthai +!AE U+0E0E dochadathai +!AF U+0E0F topatakthai +!B0 U+0E10 thothanthai +!B1 U+0E11 thonangmonthothai +!B2 U+0E12 thophuthaothai +!B3 U+0E13 nonenthai +!B4 U+0E14 dodekthai +!B5 U+0E15 totaothai +!B6 U+0E16 thothungthai +!B7 U+0E17 thothahanthai +!B8 U+0E18 thothongthai +!B9 U+0E19 nonuthai +!BA U+0E1A bobaimaithai +!BB U+0E1B poplathai +!BC U+0E1C phophungthai +!BD U+0E1D fofathai +!BE U+0E1E phophanthai +!BF U+0E1F fofanthai +!C0 U+0E20 phosamphaothai +!C1 U+0E21 momathai +!C2 U+0E22 yoyakthai +!C3 U+0E23 roruathai +!C4 U+0E24 ruthai +!C5 U+0E25 lolingthai +!C6 U+0E26 luthai +!C7 U+0E27 wowaenthai +!C8 U+0E28 sosalathai +!C9 U+0E29 sorusithai +!CA U+0E2A sosuathai +!CB U+0E2B hohipthai +!CC U+0E2C lochulathai +!CD U+0E2D oangthai +!CE U+0E2E honokhukthai +!CF U+0E2F paiyannoithai +!D0 U+0E30 saraathai +!D1 U+0E31 maihanakatthai +!D2 U+0E32 saraaathai +!D3 U+0E33 saraamthai +!D4 U+0E34 saraithai +!D5 U+0E35 saraiithai +!D6 U+0E36 sarauethai +!D7 U+0E37 saraueethai +!D8 U+0E38 sarauthai +!D9 U+0E39 sarauuthai +!DA U+0E3A phinthuthai +!DF U+0E3F bahtthai +!E0 U+0E40 saraethai +!E1 U+0E41 saraaethai +!E2 U+0E42 saraothai +!E3 U+0E43 saraaimaimuanthai +!E4 U+0E44 saraaimaimalaithai +!E5 U+0E45 lakkhangyaothai +!E6 U+0E46 maiyamokthai +!E7 U+0E47 maitaikhuthai +!E8 U+0E48 maiekthai +!E9 U+0E49 maithothai +!EA U+0E4A maitrithai +!EB U+0E4B maichattawathai +!EC U+0E4C thanthakhatthai +!ED U+0E4D nikhahitthai +!EE U+0E4E yamakkanthai +!EF U+0E4F fongmanthai +!F0 U+0E50 zerothai +!F1 U+0E51 onethai +!F2 U+0E52 twothai +!F3 U+0E53 threethai +!F4 U+0E54 fourthai +!F5 U+0E55 fivethai +!F6 U+0E56 sixthai +!F7 U+0E57 seventhai +!F8 U+0E58 eightthai +!F9 U+0E59 ninethai +!FA U+0E5A angkhankhuthai +!FB U+0E5B khomutthai diff --git a/phplib/fpdf153/font/makefont/iso-8859-15.map b/phplib/fpdf153/font/makefont/iso-8859-15.map new file mode 100644 index 0000000..6c2b571 --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-15.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+20AC Euro +!A5 U+00A5 yen +!A6 U+0160 Scaron +!A7 U+00A7 section +!A8 U+0161 scaron +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+017D Zcaron +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+017E zcaron +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+0152 OE +!BD U+0153 oe +!BE U+0178 Ydieresis +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf153/font/makefont/iso-8859-16.map b/phplib/fpdf153/font/makefont/iso-8859-16.map new file mode 100644 index 0000000..202c8fe --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-16.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+0105 aogonek +!A3 U+0141 Lslash +!A4 U+20AC Euro +!A5 U+201E quotedblbase +!A6 U+0160 Scaron +!A7 U+00A7 section +!A8 U+0161 scaron +!A9 U+00A9 copyright +!AA U+0218 Scommaaccent +!AB U+00AB guillemotleft +!AC U+0179 Zacute +!AD U+00AD hyphen +!AE U+017A zacute +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+010C Ccaron +!B3 U+0142 lslash +!B4 U+017D Zcaron +!B5 U+201D quotedblright +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+017E zcaron +!B9 U+010D ccaron +!BA U+0219 scommaaccent +!BB U+00BB guillemotright +!BC U+0152 OE +!BD U+0153 oe +!BE U+0178 Ydieresis +!BF U+017C zdotaccent +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0106 Cacute +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+015A Sacute +!D8 U+0170 Uhungarumlaut +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0118 Eogonek +!DE U+021A Tcommaaccent +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+0107 cacute +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+015B sacute +!F8 U+0171 uhungarumlaut +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0119 eogonek +!FE U+021B tcommaaccent +!FF U+00FF ydieresis diff --git a/phplib/fpdf/font/makefont/iso-8859-2.map b/phplib/fpdf153/font/makefont/iso-8859-2.map similarity index 100% rename from phplib/fpdf/font/makefont/iso-8859-2.map rename to phplib/fpdf153/font/makefont/iso-8859-2.map diff --git a/phplib/fpdf153/font/makefont/iso-8859-4.map b/phplib/fpdf153/font/makefont/iso-8859-4.map new file mode 100644 index 0000000..a7d87bf --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-4.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+0138 kgreenlandic +!A3 U+0156 Rcommaaccent +!A4 U+00A4 currency +!A5 U+0128 Itilde +!A6 U+013B Lcommaaccent +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+0160 Scaron +!AA U+0112 Emacron +!AB U+0122 Gcommaaccent +!AC U+0166 Tbar +!AD U+00AD hyphen +!AE U+017D Zcaron +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+0105 aogonek +!B2 U+02DB ogonek +!B3 U+0157 rcommaaccent +!B4 U+00B4 acute +!B5 U+0129 itilde +!B6 U+013C lcommaaccent +!B7 U+02C7 caron +!B8 U+00B8 cedilla +!B9 U+0161 scaron +!BA U+0113 emacron +!BB U+0123 gcommaaccent +!BC U+0167 tbar +!BD U+014A Eng +!BE U+017E zcaron +!BF U+014B eng +!C0 U+0100 Amacron +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+012E Iogonek +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+0116 Edotaccent +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+012A Imacron +!D0 U+0110 Dcroat +!D1 U+0145 Ncommaaccent +!D2 U+014C Omacron +!D3 U+0136 Kcommaaccent +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+0172 Uogonek +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0168 Utilde +!DE U+016A Umacron +!DF U+00DF germandbls +!E0 U+0101 amacron +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+012F iogonek +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+0117 edotaccent +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+012B imacron +!F0 U+0111 dcroat +!F1 U+0146 ncommaaccent +!F2 U+014D omacron +!F3 U+0137 kcommaaccent +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+0173 uogonek +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0169 utilde +!FE U+016B umacron +!FF U+02D9 dotaccent diff --git a/phplib/fpdf153/font/makefont/iso-8859-5.map b/phplib/fpdf153/font/makefont/iso-8859-5.map new file mode 100644 index 0000000..f9cd4ed --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-5.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0401 afii10023 +!A2 U+0402 afii10051 +!A3 U+0403 afii10052 +!A4 U+0404 afii10053 +!A5 U+0405 afii10054 +!A6 U+0406 afii10055 +!A7 U+0407 afii10056 +!A8 U+0408 afii10057 +!A9 U+0409 afii10058 +!AA U+040A afii10059 +!AB U+040B afii10060 +!AC U+040C afii10061 +!AD U+00AD hyphen +!AE U+040E afii10062 +!AF U+040F afii10145 +!B0 U+0410 afii10017 +!B1 U+0411 afii10018 +!B2 U+0412 afii10019 +!B3 U+0413 afii10020 +!B4 U+0414 afii10021 +!B5 U+0415 afii10022 +!B6 U+0416 afii10024 +!B7 U+0417 afii10025 +!B8 U+0418 afii10026 +!B9 U+0419 afii10027 +!BA U+041A afii10028 +!BB U+041B afii10029 +!BC U+041C afii10030 +!BD U+041D afii10031 +!BE U+041E afii10032 +!BF U+041F afii10033 +!C0 U+0420 afii10034 +!C1 U+0421 afii10035 +!C2 U+0422 afii10036 +!C3 U+0423 afii10037 +!C4 U+0424 afii10038 +!C5 U+0425 afii10039 +!C6 U+0426 afii10040 +!C7 U+0427 afii10041 +!C8 U+0428 afii10042 +!C9 U+0429 afii10043 +!CA U+042A afii10044 +!CB U+042B afii10045 +!CC U+042C afii10046 +!CD U+042D afii10047 +!CE U+042E afii10048 +!CF U+042F afii10049 +!D0 U+0430 afii10065 +!D1 U+0431 afii10066 +!D2 U+0432 afii10067 +!D3 U+0433 afii10068 +!D4 U+0434 afii10069 +!D5 U+0435 afii10070 +!D6 U+0436 afii10072 +!D7 U+0437 afii10073 +!D8 U+0438 afii10074 +!D9 U+0439 afii10075 +!DA U+043A afii10076 +!DB U+043B afii10077 +!DC U+043C afii10078 +!DD U+043D afii10079 +!DE U+043E afii10080 +!DF U+043F afii10081 +!E0 U+0440 afii10082 +!E1 U+0441 afii10083 +!E2 U+0442 afii10084 +!E3 U+0443 afii10085 +!E4 U+0444 afii10086 +!E5 U+0445 afii10087 +!E6 U+0446 afii10088 +!E7 U+0447 afii10089 +!E8 U+0448 afii10090 +!E9 U+0449 afii10091 +!EA U+044A afii10092 +!EB U+044B afii10093 +!EC U+044C afii10094 +!ED U+044D afii10095 +!EE U+044E afii10096 +!EF U+044F afii10097 +!F0 U+2116 afii61352 +!F1 U+0451 afii10071 +!F2 U+0452 afii10099 +!F3 U+0453 afii10100 +!F4 U+0454 afii10101 +!F5 U+0455 afii10102 +!F6 U+0456 afii10103 +!F7 U+0457 afii10104 +!F8 U+0458 afii10105 +!F9 U+0459 afii10106 +!FA U+045A afii10107 +!FB U+045B afii10108 +!FC U+045C afii10109 +!FD U+00A7 section +!FE U+045E afii10110 +!FF U+045F afii10193 diff --git a/phplib/fpdf153/font/makefont/iso-8859-7.map b/phplib/fpdf153/font/makefont/iso-8859-7.map new file mode 100644 index 0000000..e163796 --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-7.map @@ -0,0 +1,250 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+2018 quoteleft +!A2 U+2019 quoteright +!A3 U+00A3 sterling +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AF U+2015 afii00208 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+0384 tonos +!B5 U+0385 dieresistonos +!B6 U+0386 Alphatonos +!B7 U+00B7 periodcentered +!B8 U+0388 Epsilontonos +!B9 U+0389 Etatonos +!BA U+038A Iotatonos +!BB U+00BB guillemotright +!BC U+038C Omicrontonos +!BD U+00BD onehalf +!BE U+038E Upsilontonos +!BF U+038F Omegatonos +!C0 U+0390 iotadieresistonos +!C1 U+0391 Alpha +!C2 U+0392 Beta +!C3 U+0393 Gamma +!C4 U+0394 Delta +!C5 U+0395 Epsilon +!C6 U+0396 Zeta +!C7 U+0397 Eta +!C8 U+0398 Theta +!C9 U+0399 Iota +!CA U+039A Kappa +!CB U+039B Lambda +!CC U+039C Mu +!CD U+039D Nu +!CE U+039E Xi +!CF U+039F Omicron +!D0 U+03A0 Pi +!D1 U+03A1 Rho +!D3 U+03A3 Sigma +!D4 U+03A4 Tau +!D5 U+03A5 Upsilon +!D6 U+03A6 Phi +!D7 U+03A7 Chi +!D8 U+03A8 Psi +!D9 U+03A9 Omega +!DA U+03AA Iotadieresis +!DB U+03AB Upsilondieresis +!DC U+03AC alphatonos +!DD U+03AD epsilontonos +!DE U+03AE etatonos +!DF U+03AF iotatonos +!E0 U+03B0 upsilondieresistonos +!E1 U+03B1 alpha +!E2 U+03B2 beta +!E3 U+03B3 gamma +!E4 U+03B4 delta +!E5 U+03B5 epsilon +!E6 U+03B6 zeta +!E7 U+03B7 eta +!E8 U+03B8 theta +!E9 U+03B9 iota +!EA U+03BA kappa +!EB U+03BB lambda +!EC U+03BC mu +!ED U+03BD nu +!EE U+03BE xi +!EF U+03BF omicron +!F0 U+03C0 pi +!F1 U+03C1 rho +!F2 U+03C2 sigma1 +!F3 U+03C3 sigma +!F4 U+03C4 tau +!F5 U+03C5 upsilon +!F6 U+03C6 phi +!F7 U+03C7 chi +!F8 U+03C8 psi +!F9 U+03C9 omega +!FA U+03CA iotadieresis +!FB U+03CB upsilondieresis +!FC U+03CC omicrontonos +!FD U+03CD upsilontonos +!FE U+03CE omegatonos diff --git a/phplib/fpdf153/font/makefont/iso-8859-9.map b/phplib/fpdf153/font/makefont/iso-8859-9.map new file mode 100644 index 0000000..48c123a --- /dev/null +++ b/phplib/fpdf153/font/makefont/iso-8859-9.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+011E Gbreve +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0130 Idotaccent +!DE U+015E Scedilla +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+011F gbreve +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0131 dotlessi +!FE U+015F scedilla +!FF U+00FF ydieresis diff --git a/phplib/fpdf153/font/makefont/koi8-r.map b/phplib/fpdf153/font/makefont/koi8-r.map new file mode 100644 index 0000000..6ad5d05 --- /dev/null +++ b/phplib/fpdf153/font/makefont/koi8-r.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+2500 SF100000 +!81 U+2502 SF110000 +!82 U+250C SF010000 +!83 U+2510 SF030000 +!84 U+2514 SF020000 +!85 U+2518 SF040000 +!86 U+251C SF080000 +!87 U+2524 SF090000 +!88 U+252C SF060000 +!89 U+2534 SF070000 +!8A U+253C SF050000 +!8B U+2580 upblock +!8C U+2584 dnblock +!8D U+2588 block +!8E U+258C lfblock +!8F U+2590 rtblock +!90 U+2591 ltshade +!91 U+2592 shade +!92 U+2593 dkshade +!93 U+2320 integraltp +!94 U+25A0 filledbox +!95 U+2219 periodcentered +!96 U+221A radical +!97 U+2248 approxequal +!98 U+2264 lessequal +!99 U+2265 greaterequal +!9A U+00A0 space +!9B U+2321 integralbt +!9C U+00B0 degree +!9D U+00B2 twosuperior +!9E U+00B7 periodcentered +!9F U+00F7 divide +!A0 U+2550 SF430000 +!A1 U+2551 SF240000 +!A2 U+2552 SF510000 +!A3 U+0451 afii10071 +!A4 U+2553 SF520000 +!A5 U+2554 SF390000 +!A6 U+2555 SF220000 +!A7 U+2556 SF210000 +!A8 U+2557 SF250000 +!A9 U+2558 SF500000 +!AA U+2559 SF490000 +!AB U+255A SF380000 +!AC U+255B SF280000 +!AD U+255C SF270000 +!AE U+255D SF260000 +!AF U+255E SF360000 +!B0 U+255F SF370000 +!B1 U+2560 SF420000 +!B2 U+2561 SF190000 +!B3 U+0401 afii10023 +!B4 U+2562 SF200000 +!B5 U+2563 SF230000 +!B6 U+2564 SF470000 +!B7 U+2565 SF480000 +!B8 U+2566 SF410000 +!B9 U+2567 SF450000 +!BA U+2568 SF460000 +!BB U+2569 SF400000 +!BC U+256A SF540000 +!BD U+256B SF530000 +!BE U+256C SF440000 +!BF U+00A9 copyright +!C0 U+044E afii10096 +!C1 U+0430 afii10065 +!C2 U+0431 afii10066 +!C3 U+0446 afii10088 +!C4 U+0434 afii10069 +!C5 U+0435 afii10070 +!C6 U+0444 afii10086 +!C7 U+0433 afii10068 +!C8 U+0445 afii10087 +!C9 U+0438 afii10074 +!CA U+0439 afii10075 +!CB U+043A afii10076 +!CC U+043B afii10077 +!CD U+043C afii10078 +!CE U+043D afii10079 +!CF U+043E afii10080 +!D0 U+043F afii10081 +!D1 U+044F afii10097 +!D2 U+0440 afii10082 +!D3 U+0441 afii10083 +!D4 U+0442 afii10084 +!D5 U+0443 afii10085 +!D6 U+0436 afii10072 +!D7 U+0432 afii10067 +!D8 U+044C afii10094 +!D9 U+044B afii10093 +!DA U+0437 afii10073 +!DB U+0448 afii10090 +!DC U+044D afii10095 +!DD U+0449 afii10091 +!DE U+0447 afii10089 +!DF U+044A afii10092 +!E0 U+042E afii10048 +!E1 U+0410 afii10017 +!E2 U+0411 afii10018 +!E3 U+0426 afii10040 +!E4 U+0414 afii10021 +!E5 U+0415 afii10022 +!E6 U+0424 afii10038 +!E7 U+0413 afii10020 +!E8 U+0425 afii10039 +!E9 U+0418 afii10026 +!EA U+0419 afii10027 +!EB U+041A afii10028 +!EC U+041B afii10029 +!ED U+041C afii10030 +!EE U+041D afii10031 +!EF U+041E afii10032 +!F0 U+041F afii10033 +!F1 U+042F afii10049 +!F2 U+0420 afii10034 +!F3 U+0421 afii10035 +!F4 U+0422 afii10036 +!F5 U+0423 afii10037 +!F6 U+0416 afii10024 +!F7 U+0412 afii10019 +!F8 U+042C afii10046 +!F9 U+042B afii10045 +!FA U+0417 afii10025 +!FB U+0428 afii10042 +!FC U+042D afii10047 +!FD U+0429 afii10043 +!FE U+0427 afii10041 +!FF U+042A afii10044 diff --git a/phplib/fpdf153/font/makefont/koi8-u.map b/phplib/fpdf153/font/makefont/koi8-u.map new file mode 100644 index 0000000..40a7e4f --- /dev/null +++ b/phplib/fpdf153/font/makefont/koi8-u.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+2500 SF100000 +!81 U+2502 SF110000 +!82 U+250C SF010000 +!83 U+2510 SF030000 +!84 U+2514 SF020000 +!85 U+2518 SF040000 +!86 U+251C SF080000 +!87 U+2524 SF090000 +!88 U+252C SF060000 +!89 U+2534 SF070000 +!8A U+253C SF050000 +!8B U+2580 upblock +!8C U+2584 dnblock +!8D U+2588 block +!8E U+258C lfblock +!8F U+2590 rtblock +!90 U+2591 ltshade +!91 U+2592 shade +!92 U+2593 dkshade +!93 U+2320 integraltp +!94 U+25A0 filledbox +!95 U+2022 bullet +!96 U+221A radical +!97 U+2248 approxequal +!98 U+2264 lessequal +!99 U+2265 greaterequal +!9A U+00A0 space +!9B U+2321 integralbt +!9C U+00B0 degree +!9D U+00B2 twosuperior +!9E U+00B7 periodcentered +!9F U+00F7 divide +!A0 U+2550 SF430000 +!A1 U+2551 SF240000 +!A2 U+2552 SF510000 +!A3 U+0451 afii10071 +!A4 U+0454 afii10101 +!A5 U+2554 SF390000 +!A6 U+0456 afii10103 +!A7 U+0457 afii10104 +!A8 U+2557 SF250000 +!A9 U+2558 SF500000 +!AA U+2559 SF490000 +!AB U+255A SF380000 +!AC U+255B SF280000 +!AD U+0491 afii10098 +!AE U+255D SF260000 +!AF U+255E SF360000 +!B0 U+255F SF370000 +!B1 U+2560 SF420000 +!B2 U+2561 SF190000 +!B3 U+0401 afii10023 +!B4 U+0404 afii10053 +!B5 U+2563 SF230000 +!B6 U+0406 afii10055 +!B7 U+0407 afii10056 +!B8 U+2566 SF410000 +!B9 U+2567 SF450000 +!BA U+2568 SF460000 +!BB U+2569 SF400000 +!BC U+256A SF540000 +!BD U+0490 afii10050 +!BE U+256C SF440000 +!BF U+00A9 copyright +!C0 U+044E afii10096 +!C1 U+0430 afii10065 +!C2 U+0431 afii10066 +!C3 U+0446 afii10088 +!C4 U+0434 afii10069 +!C5 U+0435 afii10070 +!C6 U+0444 afii10086 +!C7 U+0433 afii10068 +!C8 U+0445 afii10087 +!C9 U+0438 afii10074 +!CA U+0439 afii10075 +!CB U+043A afii10076 +!CC U+043B afii10077 +!CD U+043C afii10078 +!CE U+043D afii10079 +!CF U+043E afii10080 +!D0 U+043F afii10081 +!D1 U+044F afii10097 +!D2 U+0440 afii10082 +!D3 U+0441 afii10083 +!D4 U+0442 afii10084 +!D5 U+0443 afii10085 +!D6 U+0436 afii10072 +!D7 U+0432 afii10067 +!D8 U+044C afii10094 +!D9 U+044B afii10093 +!DA U+0437 afii10073 +!DB U+0448 afii10090 +!DC U+044D afii10095 +!DD U+0449 afii10091 +!DE U+0447 afii10089 +!DF U+044A afii10092 +!E0 U+042E afii10048 +!E1 U+0410 afii10017 +!E2 U+0411 afii10018 +!E3 U+0426 afii10040 +!E4 U+0414 afii10021 +!E5 U+0415 afii10022 +!E6 U+0424 afii10038 +!E7 U+0413 afii10020 +!E8 U+0425 afii10039 +!E9 U+0418 afii10026 +!EA U+0419 afii10027 +!EB U+041A afii10028 +!EC U+041B afii10029 +!ED U+041C afii10030 +!EE U+041D afii10031 +!EF U+041E afii10032 +!F0 U+041F afii10033 +!F1 U+042F afii10049 +!F2 U+0420 afii10034 +!F3 U+0421 afii10035 +!F4 U+0422 afii10036 +!F5 U+0423 afii10037 +!F6 U+0416 afii10024 +!F7 U+0412 afii10019 +!F8 U+042C afii10046 +!F9 U+042B afii10045 +!FA U+0417 afii10025 +!FB U+0428 afii10042 +!FC U+042D afii10047 +!FD U+0429 afii10043 +!FE U+0427 afii10041 +!FF U+042A afii10044 diff --git a/phplib/fpdf/font/makefont/makefont.php b/phplib/fpdf153/font/makefont/makefont.php similarity index 100% rename from phplib/fpdf/font/makefont/makefont.php rename to phplib/fpdf153/font/makefont/makefont.php diff --git a/phplib/fpdf153/font/symbol.php b/phplib/fpdf153/font/symbol.php new file mode 100644 index 0000000..b556ed8 --- /dev/null +++ b/phplib/fpdf153/font/symbol.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549, + ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722, + 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768, + 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576, + 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0, + chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, + chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603, + chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768, + chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042, + chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329, + chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0); +?> diff --git a/phplib/fpdf153/font/times.php b/phplib/fpdf153/font/times.php new file mode 100644 index 0000000..b9be1b2 --- /dev/null +++ b/phplib/fpdf153/font/times.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722, + 'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944, + 'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, + 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333, + chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500); +?> diff --git a/phplib/fpdf153/font/timesb.php b/phplib/fpdf153/font/timesb.php new file mode 100644 index 0000000..c3eb9fa --- /dev/null +++ b/phplib/fpdf153/font/timesb.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, + 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, + 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, + chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +?> diff --git a/phplib/fpdf153/font/timesbi.php b/phplib/fpdf153/font/timesbi.php new file mode 100644 index 0000000..161f630 --- /dev/null +++ b/phplib/fpdf153/font/timesbi.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667, + 'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889, + 'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, + 'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333, + chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444); +?> diff --git a/phplib/fpdf153/font/timesi.php b/phplib/fpdf153/font/timesi.php new file mode 100644 index 0000000..de171fd --- /dev/null +++ b/phplib/fpdf153/font/timesi.php @@ -0,0 +1,15 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611, + 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833, + 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722, + 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980, + chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333, + chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611, + chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444); +?> diff --git a/phplib/fpdf153/font/zapfdingbats.php b/phplib/fpdf153/font/zapfdingbats.php new file mode 100644 index 0000000..f2bdfd5 --- /dev/null +++ b/phplib/fpdf153/font/zapfdingbats.php @@ -0,0 +1,15 @@ +0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0, + chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939, + ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692, + 'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776, + 'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873, + 'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317, + chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, + chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788, + chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788, + chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918, + chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874, + chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0); +?> diff --git a/phplib/fpdf153/fpdf.css b/phplib/fpdf153/fpdf.css new file mode 100644 index 0000000..f3d9a35 --- /dev/null +++ b/phplib/fpdf153/fpdf.css @@ -0,0 +1,23 @@ +body {font-family:"Times New Roman",serif} +h1 {font-size:150%; color:#4000A0} +h2 {color:#4000A0} +h3 {font-size:100%; margin-top:1.2em} +dl.param dt {text-decoration:underline} +dl.param dd {margin-top:1em; margin-bottom:1em} +dl.param ul {margin-top:1em; margin-bottom:1em} +tt, code, kbd {font-family:"Courier New",Courier,monospace; font-size:82%} +div.source {margin-top:1.4em; margin-bottom:1.3em} +div.source pre {display:table; border:1px solid #24246A; width:100%; margin:0em; font-family:inherit; font-size:100%} +div.source code {display:block; border:1px solid #C5C5EC; background-color:#F0F5FF; padding:6px; color:#000000} +div.doc-source {margin-top:1.4em; margin-bottom:1.3em} +div.doc-source pre {display:table; width:100%; margin:0em; font-family:inherit; font-size:100%} +div.doc-source code {display:block; background-color:#E0E0E0; padding:4px} +.st {font-weight:bold; color:#900000} +.kw {color:#000080; font-weight:bold} +.str {color:#CC0000} +.cmt {color:#008000} +p.demo {text-align:center; margin-top:-0.9em} +a.demo {text-decoration:none; font-weight:bold; color:#0000CC} +a.demo:link {text-decoration:none; font-weight:bold; color:#0000CC} +a.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF} +a.demo:active {text-decoration:none; font-weight:bold; color:#0000FF} diff --git a/phplib/fpdf153/fpdf.php b/phplib/fpdf153/fpdf.php new file mode 100644 index 0000000..5fbf585 --- /dev/null +++ b/phplib/fpdf153/fpdf.php @@ -0,0 +1,1647 @@ +_dochecks(); + //Initialization of properties + $this->page=0; + $this->n=2; + $this->buffer=''; + $this->pages=array(); + $this->OrientationChanges=array(); + $this->state=0; + $this->fonts=array(); + $this->FontFiles=array(); + $this->diffs=array(); + $this->images=array(); + $this->links=array(); + $this->InFooter=false; + $this->lasth=0; + $this->FontFamily=''; + $this->FontStyle=''; + $this->FontSizePt=12; + $this->underline=false; + $this->DrawColor='0 G'; + $this->FillColor='0 g'; + $this->TextColor='0 g'; + $this->ColorFlag=false; + $this->ws=0; + //Standard fonts + $this->CoreFonts=array('courier'=>'Courier','courierB'=>'Courier-Bold','courierI'=>'Courier-Oblique','courierBI'=>'Courier-BoldOblique', + 'helvetica'=>'Helvetica','helveticaB'=>'Helvetica-Bold','helveticaI'=>'Helvetica-Oblique','helveticaBI'=>'Helvetica-BoldOblique', + 'times'=>'Times-Roman','timesB'=>'Times-Bold','timesI'=>'Times-Italic','timesBI'=>'Times-BoldItalic', + 'symbol'=>'Symbol','zapfdingbats'=>'ZapfDingbats'); + //Scale factor + if($unit=='pt') + $this->k=1; + elseif($unit=='mm') + $this->k=72/25.4; + elseif($unit=='cm') + $this->k=72/2.54; + elseif($unit=='in') + $this->k=72; + else + $this->Error('Incorrect unit: '.$unit); + //Page format + if(is_string($format)) + { + $format=strtolower($format); + if($format=='a3') + $format=array(841.89,1190.55); + elseif($format=='a4') + $format=array(595.28,841.89); + elseif($format=='a5') + $format=array(420.94,595.28); + elseif($format=='letter') + $format=array(612,792); + elseif($format=='legal') + $format=array(612,1008); + else + $this->Error('Unknown page format: '.$format); + $this->fwPt=$format[0]; + $this->fhPt=$format[1]; + } + else + { + $this->fwPt=$format[0]*$this->k; + $this->fhPt=$format[1]*$this->k; + } + $this->fw=$this->fwPt/$this->k; + $this->fh=$this->fhPt/$this->k; + //Page orientation + $orientation=strtolower($orientation); + if($orientation=='p' || $orientation=='portrait') + { + $this->DefOrientation='P'; + $this->wPt=$this->fwPt; + $this->hPt=$this->fhPt; + } + elseif($orientation=='l' || $orientation=='landscape') + { + $this->DefOrientation='L'; + $this->wPt=$this->fhPt; + $this->hPt=$this->fwPt; + } + else + $this->Error('Incorrect orientation: '.$orientation); + $this->CurOrientation=$this->DefOrientation; + $this->w=$this->wPt/$this->k; + $this->h=$this->hPt/$this->k; + //Page margins (1 cm) + $margin=28.35/$this->k; + $this->SetMargins($margin,$margin); + //Interior cell margin (1 mm) + $this->cMargin=$margin/10; + //Line width (0.2 mm) + $this->LineWidth=.567/$this->k; + //Automatic page break + $this->SetAutoPageBreak(true,2*$margin); + //Full width display mode + $this->SetDisplayMode('fullwidth'); + //Enable compression + $this->SetCompression(true); + //Set default PDF version number + $this->PDFVersion='1.3'; +} + +function SetMargins($left,$top,$right=-1) +{ + //Set left, top and right margins + $this->lMargin=$left; + $this->tMargin=$top; + if($right==-1) + $right=$left; + $this->rMargin=$right; +} + +function SetLeftMargin($margin) +{ + //Set left margin + $this->lMargin=$margin; + if($this->page>0 && $this->x<$margin) + $this->x=$margin; +} + +function SetTopMargin($margin) +{ + //Set top margin + $this->tMargin=$margin; +} + +function SetRightMargin($margin) +{ + //Set right margin + $this->rMargin=$margin; +} + +function SetAutoPageBreak($auto,$margin=0) +{ + //Set auto page break mode and triggering margin + $this->AutoPageBreak=$auto; + $this->bMargin=$margin; + $this->PageBreakTrigger=$this->h-$margin; +} + +function SetDisplayMode($zoom,$layout='continuous') +{ + //Set display mode in viewer + if($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom)) + $this->ZoomMode=$zoom; + else + $this->Error('Incorrect zoom display mode: '.$zoom); + if($layout=='single' || $layout=='continuous' || $layout=='two' || $layout=='default') + $this->LayoutMode=$layout; + else + $this->Error('Incorrect layout display mode: '.$layout); +} + +function SetCompression($compress) +{ + //Set page compression + if(function_exists('gzcompress')) + $this->compress=$compress; + else + $this->compress=false; +} + +function SetTitle($title) +{ + //Title of document + $this->title=$title; +} + +function SetSubject($subject) +{ + //Subject of document + $this->subject=$subject; +} + +function SetAuthor($author) +{ + //Author of document + $this->author=$author; +} + +function SetKeywords($keywords) +{ + //Keywords of document + $this->keywords=$keywords; +} + +function SetCreator($creator) +{ + //Creator of document + $this->creator=$creator; +} + +function AliasNbPages($alias='{nb}') +{ + //Define an alias for total number of pages + $this->AliasNbPages=$alias; +} + +function Error($msg) +{ + //Fatal error + die('FPDF error: '.$msg); +} + +function Open() +{ + //Begin document + $this->state=1; +} + +function Close() +{ + //Terminate document + if($this->state==3) + return; + if($this->page==0) + $this->AddPage(); + //Page footer + $this->InFooter=true; + $this->Footer(); + $this->InFooter=false; + //Close page + $this->_endpage(); + //Close document + $this->_enddoc(); +} + +function AddPage($orientation='') +{ + //Start a new page + if($this->state==0) + $this->Open(); + $family=$this->FontFamily; + $style=$this->FontStyle.($this->underline ? 'U' : ''); + $size=$this->FontSizePt; + $lw=$this->LineWidth; + $dc=$this->DrawColor; + $fc=$this->FillColor; + $tc=$this->TextColor; + $cf=$this->ColorFlag; + if($this->page>0) + { + //Page footer + $this->InFooter=true; + $this->Footer(); + $this->InFooter=false; + //Close page + $this->_endpage(); + } + //Start new page + $this->_beginpage($orientation); + //Set line cap style to square + $this->_out('2 J'); + //Set line width + $this->LineWidth=$lw; + $this->_out(sprintf('%.2f w',$lw*$this->k)); + //Set font + if($family) + $this->SetFont($family,$style,$size); + //Set colors + $this->DrawColor=$dc; + if($dc!='0 G') + $this->_out($dc); + $this->FillColor=$fc; + if($fc!='0 g') + $this->_out($fc); + $this->TextColor=$tc; + $this->ColorFlag=$cf; + //Page header + $this->Header(); + //Restore line width + if($this->LineWidth!=$lw) + { + $this->LineWidth=$lw; + $this->_out(sprintf('%.2f w',$lw*$this->k)); + } + //Restore font + if($family) + $this->SetFont($family,$style,$size); + //Restore colors + if($this->DrawColor!=$dc) + { + $this->DrawColor=$dc; + $this->_out($dc); + } + if($this->FillColor!=$fc) + { + $this->FillColor=$fc; + $this->_out($fc); + } + $this->TextColor=$tc; + $this->ColorFlag=$cf; +} + +function Header() +{ + //To be implemented in your own inherited class +} + +function Footer() +{ + //To be implemented in your own inherited class +} + +function PageNo() +{ + //Get current page number + return $this->page; +} + +function SetDrawColor($r,$g=-1,$b=-1) +{ + //Set color for all stroking operations + if(($r==0 && $g==0 && $b==0) || $g==-1) + $this->DrawColor=sprintf('%.3f G',$r/255); + else + $this->DrawColor=sprintf('%.3f %.3f %.3f RG',$r/255,$g/255,$b/255); + if($this->page>0) + $this->_out($this->DrawColor); +} + +function SetFillColor($r,$g=-1,$b=-1) +{ + //Set color for all filling operations + if(($r==0 && $g==0 && $b==0) || $g==-1) + $this->FillColor=sprintf('%.3f g',$r/255); + else + $this->FillColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255); + $this->ColorFlag=($this->FillColor!=$this->TextColor); + if($this->page>0) + $this->_out($this->FillColor); +} + +function SetTextColor($r,$g=-1,$b=-1) +{ + //Set color for text + if(($r==0 && $g==0 && $b==0) || $g==-1) + $this->TextColor=sprintf('%.3f g',$r/255); + else + $this->TextColor=sprintf('%.3f %.3f %.3f rg',$r/255,$g/255,$b/255); + $this->ColorFlag=($this->FillColor!=$this->TextColor); +} + +function GetStringWidth($s) +{ + //Get width of a string in the current font + $s=(string)$s; + $cw=&$this->CurrentFont['cw']; + $w=0; + $l=strlen($s); + for($i=0;$i<$l;$i++) + $w+=$cw[$s{$i}]; + return $w*$this->FontSize/1000; +} + +function SetLineWidth($width) +{ + //Set line width + $this->LineWidth=$width; + if($this->page>0) + $this->_out(sprintf('%.2f w',$width*$this->k)); +} + +function Line($x1,$y1,$x2,$y2) +{ + //Draw a line + $this->_out(sprintf('%.2f %.2f m %.2f %.2f l S',$x1*$this->k,($this->h-$y1)*$this->k,$x2*$this->k,($this->h-$y2)*$this->k)); +} + +function Rect($x,$y,$w,$h,$style='') +{ + //Draw a rectangle + if($style=='F') + $op='f'; + elseif($style=='FD' || $style=='DF') + $op='B'; + else + $op='S'; + $this->_out(sprintf('%.2f %.2f %.2f %.2f re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op)); +} + +function AddFont($family,$style='',$file='') +{ + //Add a TrueType or Type1 font + $family=strtolower($family); + if($file=='') + $file=str_replace(' ','',$family).strtolower($style).'.php'; + if($family=='arial') + $family='helvetica'; + $style=strtoupper($style); + if($style=='IB') + $style='BI'; + $fontkey=$family.$style; + if(isset($this->fonts[$fontkey])) + $this->Error('Font already added: '.$family.' '.$style); + include($this->_getfontpath().$file); + if(!isset($name)) + $this->Error('Could not include font definition file'); + $i=count($this->fonts)+1; + $this->fonts[$fontkey]=array('i'=>$i,'type'=>$type,'name'=>$name,'desc'=>$desc,'up'=>$up,'ut'=>$ut,'cw'=>$cw,'enc'=>$enc,'file'=>$file); + if($diff) + { + //Search existing encodings + $d=0; + $nb=count($this->diffs); + for($i=1;$i<=$nb;$i++) + { + if($this->diffs[$i]==$diff) + { + $d=$i; + break; + } + } + if($d==0) + { + $d=$nb+1; + $this->diffs[$d]=$diff; + } + $this->fonts[$fontkey]['diff']=$d; + } + if($file) + { + if($type=='TrueType') + $this->FontFiles[$file]=array('length1'=>$originalsize); + else + $this->FontFiles[$file]=array('length1'=>$size1,'length2'=>$size2); + } +} + +function SetFont($family,$style='',$size=0) +{ + //Select a font; size given in points + global $fpdf_charwidths; + + $family=strtolower($family); + if($family=='') + $family=$this->FontFamily; + if($family=='arial') + $family='helvetica'; + elseif($family=='symbol' || $family=='zapfdingbats') + $style=''; + $style=strtoupper($style); + if(strpos($style,'U')!==false) + { + $this->underline=true; + $style=str_replace('U','',$style); + } + else + $this->underline=false; + if($style=='IB') + $style='BI'; + if($size==0) + $size=$this->FontSizePt; + //Test if font is already selected + if($this->FontFamily==$family && $this->FontStyle==$style && $this->FontSizePt==$size) + return; + //Test if used for the first time + $fontkey=$family.$style; + if(!isset($this->fonts[$fontkey])) + { + //Check if one of the standard fonts + if(isset($this->CoreFonts[$fontkey])) + { + if(!isset($fpdf_charwidths[$fontkey])) + { + //Load metric file + $file=$family; + if($family=='times' || $family=='helvetica') + $file.=strtolower($style); + include($this->_getfontpath().$file.'.php'); + if(!isset($fpdf_charwidths[$fontkey])) + $this->Error('Could not include font metric file'); + } + $i=count($this->fonts)+1; + $this->fonts[$fontkey]=array('i'=>$i,'type'=>'core','name'=>$this->CoreFonts[$fontkey],'up'=>-100,'ut'=>50,'cw'=>$fpdf_charwidths[$fontkey]); + } + else + $this->Error('Undefined font: '.$family.' '.$style); + } + //Select it + $this->FontFamily=$family; + $this->FontStyle=$style; + $this->FontSizePt=$size; + $this->FontSize=$size/$this->k; + $this->CurrentFont=&$this->fonts[$fontkey]; + if($this->page>0) + $this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt)); +} + +function SetFontSize($size) +{ + //Set font size in points + if($this->FontSizePt==$size) + return; + $this->FontSizePt=$size; + $this->FontSize=$size/$this->k; + if($this->page>0) + $this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt)); +} + +function AddLink() +{ + //Create a new internal link + $n=count($this->links)+1; + $this->links[$n]=array(0,0); + return $n; +} + +function SetLink($link,$y=0,$page=-1) +{ + //Set destination of internal link + if($y==-1) + $y=$this->y; + if($page==-1) + $page=$this->page; + $this->links[$link]=array($page,$y); +} + +function Link($x,$y,$w,$h,$link) +{ + //Put a link on the page + $this->PageLinks[$this->page][]=array($x*$this->k,$this->hPt-$y*$this->k,$w*$this->k,$h*$this->k,$link); +} + +function Text($x,$y,$txt) +{ + //Output a string + $s=sprintf('BT %.2f %.2f Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); + if($this->underline && $txt!='') + $s.=' '.$this->_dounderline($x,$y,$txt); + if($this->ColorFlag) + $s='q '.$this->TextColor.' '.$s.' Q'; + $this->_out($s); +} + +function AcceptPageBreak() +{ + //Accept automatic page break or not + return $this->AutoPageBreak; +} + +function Cell($w,$h=0,$txt='',$border=0,$ln=0,$align='',$fill=0,$link='') +{ + //Output a cell + $k=$this->k; + if($this->y+$h>$this->PageBreakTrigger && !$this->InFooter && $this->AcceptPageBreak()) + { + //Automatic page break + $x=$this->x; + $ws=$this->ws; + if($ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + $this->AddPage($this->CurOrientation); + $this->x=$x; + if($ws>0) + { + $this->ws=$ws; + $this->_out(sprintf('%.3f Tw',$ws*$k)); + } + } + if($w==0) + $w=$this->w-$this->rMargin-$this->x; + $s=''; + if($fill==1 || $border==1) + { + if($fill==1) + $op=($border==1) ? 'B' : 'f'; + else + $op='S'; + $s=sprintf('%.2f %.2f %.2f %.2f re %s ',$this->x*$k,($this->h-$this->y)*$k,$w*$k,-$h*$k,$op); + } + if(is_string($border)) + { + $x=$this->x; + $y=$this->y; + if(strpos($border,'L')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,$x*$k,($this->h-($y+$h))*$k); + if(strpos($border,'T')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-$y)*$k); + if(strpos($border,'R')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',($x+$w)*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-($y+$h))*$k); + if(strpos($border,'B')!==false) + $s.=sprintf('%.2f %.2f m %.2f %.2f l S ',$x*$k,($this->h-($y+$h))*$k,($x+$w)*$k,($this->h-($y+$h))*$k); + } + if($txt!=='') + { + if($align=='R') + $dx=$w-$this->cMargin-$this->GetStringWidth($txt); + elseif($align=='C') + $dx=($w-$this->GetStringWidth($txt))/2; + else + $dx=$this->cMargin; + if($this->ColorFlag) + $s.='q '.$this->TextColor.' '; + $txt2=str_replace(')','\\)',str_replace('(','\\(',str_replace('\\','\\\\',$txt))); + $s.=sprintf('BT %.2f %.2f Td (%s) Tj ET',($this->x+$dx)*$k,($this->h-($this->y+.5*$h+.3*$this->FontSize))*$k,$txt2); + if($this->underline) + $s.=' '.$this->_dounderline($this->x+$dx,$this->y+.5*$h+.3*$this->FontSize,$txt); + if($this->ColorFlag) + $s.=' Q'; + if($link) + $this->Link($this->x+$dx,$this->y+.5*$h-.5*$this->FontSize,$this->GetStringWidth($txt),$this->FontSize,$link); + } + if($s) + $this->_out($s); + $this->lasth=$h; + if($ln>0) + { + //Go to next line + $this->y+=$h; + if($ln==1) + $this->x=$this->lMargin; + } + else + $this->x+=$w; +} + +function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0) +{ + //Output text with automatic or explicit line breaks + $cw=&$this->CurrentFont['cw']; + if($w==0) + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + $s=str_replace("\r",'',$txt); + $nb=strlen($s); + if($nb>0 && $s[$nb-1]=="\n") + $nb--; + $b=0; + if($border) + { + if($border==1) + { + $border='LTRB'; + $b='LRT'; + $b2='LR'; + } + else + { + $b2=''; + if(strpos($border,'L')!==false) + $b2.='L'; + if(strpos($border,'R')!==false) + $b2.='R'; + $b=(strpos($border,'T')!==false) ? $b2.'T' : $b2; + } + } + $sep=-1; + $i=0; + $j=0; + $l=0; + $ns=0; + $nl=1; + while($i<$nb) + { + //Get next character + $c=$s{$i}; + if($c=="\n") + { + //Explicit line break + if($this->ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + $i++; + $sep=-1; + $j=$i; + $l=0; + $ns=0; + $nl++; + if($border && $nl==2) + $b=$b2; + continue; + } + if($c==' ') + { + $sep=$i; + $ls=$l; + $ns++; + } + $l+=$cw[$c]; + if($l>$wmax) + { + //Automatic line break + if($sep==-1) + { + if($i==$j) + $i++; + if($this->ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + } + else + { + if($align=='J') + { + $this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0; + $this->_out(sprintf('%.3f Tw',$this->ws*$this->k)); + } + $this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill); + $i=$sep+1; + } + $sep=-1; + $j=$i; + $l=0; + $ns=0; + $nl++; + if($border && $nl==2) + $b=$b2; + } + else + $i++; + } + //Last chunk + if($this->ws>0) + { + $this->ws=0; + $this->_out('0 Tw'); + } + if($border && strpos($border,'B')!==false) + $b.='B'; + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + $this->x=$this->lMargin; +} + +function Write($h,$txt,$link='') +{ + //Output text in flowing mode + $cw=&$this->CurrentFont['cw']; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + $s=str_replace("\r",'',$txt); + $nb=strlen($s); + $sep=-1; + $i=0; + $j=0; + $l=0; + $nl=1; + while($i<$nb) + { + //Get next character + $c=$s{$i}; + if($c=="\n") + { + //Explicit line break + $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); + $i++; + $sep=-1; + $j=$i; + $l=0; + if($nl==1) + { + $this->x=$this->lMargin; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + } + $nl++; + continue; + } + if($c==' ') + $sep=$i; + $l+=$cw[$c]; + if($l>$wmax) + { + //Automatic line break + if($sep==-1) + { + if($this->x>$this->lMargin) + { + //Move to next line + $this->x=$this->lMargin; + $this->y+=$h; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + $i++; + $nl++; + continue; + } + if($i==$j) + $i++; + $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); + } + else + { + $this->Cell($w,$h,substr($s,$j,$sep-$j),0,2,'',0,$link); + $i=$sep+1; + } + $sep=-1; + $j=$i; + $l=0; + if($nl==1) + { + $this->x=$this->lMargin; + $w=$this->w-$this->rMargin-$this->x; + $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; + } + $nl++; + } + else + $i++; + } + //Last chunk + if($i!=$j) + $this->Cell($l/1000*$this->FontSize,$h,substr($s,$j),0,0,'',0,$link); +} + +function Image($file,$x,$y,$w=0,$h=0,$type='',$link='') +{ + //Put an image on the page + if(!isset($this->images[$file])) + { + //First use of image, get info + if($type=='') + { + $pos=strrpos($file,'.'); + if(!$pos) + $this->Error('Image file has no extension and no type was specified: '.$file); + $type=substr($file,$pos+1); + } + $type=strtolower($type); + $mqr=get_magic_quotes_runtime(); + set_magic_quotes_runtime(0); + if($type=='jpg' || $type=='jpeg') + $info=$this->_parsejpg($file); + elseif($type=='png') + $info=$this->_parsepng($file); + else + { + //Allow for additional formats + $mtd='_parse'.$type; + if(!method_exists($this,$mtd)) + $this->Error('Unsupported image type: '.$type); + $info=$this->$mtd($file); + } + set_magic_quotes_runtime($mqr); + $info['i']=count($this->images)+1; + $this->images[$file]=$info; + } + else + $info=$this->images[$file]; + //Automatic width and height calculation if needed + if($w==0 && $h==0) + { + //Put image at 72 dpi + $w=$info['w']/$this->k; + $h=$info['h']/$this->k; + } + if($w==0) + $w=$h*$info['w']/$info['h']; + if($h==0) + $h=$w*$info['h']/$info['w']; + $this->_out(sprintf('q %.2f 0 0 %.2f %.2f %.2f cm /I%d Do Q',$w*$this->k,$h*$this->k,$x*$this->k,($this->h-($y+$h))*$this->k,$info['i'])); + if($link) + $this->Link($x,$y,$w,$h,$link); +} + +function Ln($h='') +{ + //Line feed; default value is last cell height + $this->x=$this->lMargin; + if(is_string($h)) + $this->y+=$this->lasth; + else + $this->y+=$h; +} + +function GetX() +{ + //Get x position + return $this->x; +} + +function SetX($x) +{ + //Set x position + if($x>=0) + $this->x=$x; + else + $this->x=$this->w+$x; +} + +function GetY() +{ + //Get y position + return $this->y; +} + +function SetY($y) +{ + //Set y position and reset x + $this->x=$this->lMargin; + if($y>=0) + $this->y=$y; + else + $this->y=$this->h+$y; +} + +function SetXY($x,$y) +{ + //Set x and y positions + $this->SetY($y); + $this->SetX($x); +} + +function Output($name='',$dest='') +{ + //Output PDF to some destination + //Finish document if necessary + if($this->state<3) + $this->Close(); + //Normalize parameters + if(is_bool($dest)) + $dest=$dest ? 'D' : 'F'; + $dest=strtoupper($dest); + if($dest=='') + { + if($name=='') + { + $name='doc.pdf'; + $dest='I'; + } + else + $dest='F'; + } + switch($dest) + { + case 'I': + //Send to standard output + if(ob_get_contents()) + $this->Error('Some data has already been output, can\'t send PDF file'); + if(php_sapi_name()!='cli') + { + //We send to a browser + header('Content-Type: application/pdf'); + if(headers_sent()) + $this->Error('Some data has already been output to browser, can\'t send PDF file'); + header('Content-Length: '.strlen($this->buffer)); + header('Content-disposition: inline; filename="'.$name.'"'); + } + echo $this->buffer; + break; + case 'D': + //Download file + if(ob_get_contents()) + $this->Error('Some data has already been output, can\'t send PDF file'); + if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) + header('Content-Type: application/force-download'); + else + header('Content-Type: application/octet-stream'); + if(headers_sent()) + $this->Error('Some data has already been output to browser, can\'t send PDF file'); + header('Content-Length: '.strlen($this->buffer)); + header('Content-disposition: attachment; filename="'.$name.'"'); + echo $this->buffer; + break; + case 'F': + //Save to local file + $f=fopen($name,'wb'); + if(!$f) + $this->Error('Unable to create output file: '.$name); + fwrite($f,$this->buffer,strlen($this->buffer)); + fclose($f); + break; + case 'S': + //Return as a string + return $this->buffer; + default: + $this->Error('Incorrect output destination: '.$dest); + } + return ''; +} + +/******************************************************************************* +* * +* Protected methods * +* * +*******************************************************************************/ +function _dochecks() +{ + //Check for locale-related bug + if(1.1==1) + $this->Error('Don\'t alter the locale before including class file'); + //Check for decimal separator + if(sprintf('%.1f',1.0)!='1.0') + setlocale(LC_NUMERIC,'C'); +} + +function _getfontpath() +{ + if(!defined('FPDF_FONTPATH') && is_dir(dirname(__FILE__).'/font')) + define('FPDF_FONTPATH',dirname(__FILE__).'/font/'); + return defined('FPDF_FONTPATH') ? FPDF_FONTPATH : ''; +} + +function _putpages() +{ + $nb=$this->page; + if(!empty($this->AliasNbPages)) + { + //Replace number of pages + for($n=1;$n<=$nb;$n++) + $this->pages[$n]=str_replace($this->AliasNbPages,$nb,$this->pages[$n]); + } + if($this->DefOrientation=='P') + { + $wPt=$this->fwPt; + $hPt=$this->fhPt; + } + else + { + $wPt=$this->fhPt; + $hPt=$this->fwPt; + } + $filter=($this->compress) ? '/Filter /FlateDecode ' : ''; + for($n=1;$n<=$nb;$n++) + { + //Page + $this->_newobj(); + $this->_out('<_out('/Parent 1 0 R'); + if(isset($this->OrientationChanges[$n])) + $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$hPt,$wPt)); + $this->_out('/Resources 2 0 R'); + if(isset($this->PageLinks[$n])) + { + //Links + $annots='/Annots ['; + foreach($this->PageLinks[$n] as $pl) + { + $rect=sprintf('%.2f %.2f %.2f %.2f',$pl[0],$pl[1],$pl[0]+$pl[2],$pl[1]-$pl[3]); + $annots.='<_textstring($pl[4]).'>>>>'; + else + { + $l=$this->links[$pl[4]]; + $h=isset($this->OrientationChanges[$l[0]]) ? $wPt : $hPt; + $annots.=sprintf('/Dest [%d 0 R /XYZ 0 %.2f null]>>',1+2*$l[0],$h-$l[1]*$this->k); + } + } + $this->_out($annots.']'); + } + $this->_out('/Contents '.($this->n+1).' 0 R>>'); + $this->_out('endobj'); + //Page content + $p=($this->compress) ? gzcompress($this->pages[$n]) : $this->pages[$n]; + $this->_newobj(); + $this->_out('<<'.$filter.'/Length '.strlen($p).'>>'); + $this->_putstream($p); + $this->_out('endobj'); + } + //Pages root + $this->offsets[1]=strlen($this->buffer); + $this->_out('1 0 obj'); + $this->_out('<_out($kids.']'); + $this->_out('/Count '.$nb); + $this->_out(sprintf('/MediaBox [0 0 %.2f %.2f]',$wPt,$hPt)); + $this->_out('>>'); + $this->_out('endobj'); +} + +function _putfonts() +{ + $nf=$this->n; + foreach($this->diffs as $diff) + { + //Encodings + $this->_newobj(); + $this->_out('<>'); + $this->_out('endobj'); + } + $mqr=get_magic_quotes_runtime(); + set_magic_quotes_runtime(0); + foreach($this->FontFiles as $file=>$info) + { + //Font file embedding + $this->_newobj(); + $this->FontFiles[$file]['n']=$this->n; + $font=''; + $f=fopen($this->_getfontpath().$file,'rb',1); + if(!$f) + $this->Error('Font file not found'); + while(!feof($f)) + $font.=fread($f,8192); + fclose($f); + $compressed=(substr($file,-2)=='.z'); + if(!$compressed && isset($info['length2'])) + { + $header=(ord($font{0})==128); + if($header) + { + //Strip first binary header + $font=substr($font,6); + } + if($header && ord($font{$info['length1']})==128) + { + //Strip second binary header + $font=substr($font,0,$info['length1']).substr($font,$info['length1']+6); + } + } + $this->_out('<_out('/Filter /FlateDecode'); + $this->_out('/Length1 '.$info['length1']); + if(isset($info['length2'])) + $this->_out('/Length2 '.$info['length2'].' /Length3 0'); + $this->_out('>>'); + $this->_putstream($font); + $this->_out('endobj'); + } + set_magic_quotes_runtime($mqr); + foreach($this->fonts as $k=>$font) + { + //Font objects + $this->fonts[$k]['n']=$this->n+1; + $type=$font['type']; + $name=$font['name']; + if($type=='core') + { + //Standard font + $this->_newobj(); + $this->_out('<_out('/BaseFont /'.$name); + $this->_out('/Subtype /Type1'); + if($name!='Symbol' && $name!='ZapfDingbats') + $this->_out('/Encoding /WinAnsiEncoding'); + $this->_out('>>'); + $this->_out('endobj'); + } + elseif($type=='Type1' || $type=='TrueType') + { + //Additional Type1 or TrueType font + $this->_newobj(); + $this->_out('<_out('/BaseFont /'.$name); + $this->_out('/Subtype /'.$type); + $this->_out('/FirstChar 32 /LastChar 255'); + $this->_out('/Widths '.($this->n+1).' 0 R'); + $this->_out('/FontDescriptor '.($this->n+2).' 0 R'); + if($font['enc']) + { + if(isset($font['diff'])) + $this->_out('/Encoding '.($nf+$font['diff']).' 0 R'); + else + $this->_out('/Encoding /WinAnsiEncoding'); + } + $this->_out('>>'); + $this->_out('endobj'); + //Widths + $this->_newobj(); + $cw=&$font['cw']; + $s='['; + for($i=32;$i<=255;$i++) + $s.=$cw[chr($i)].' '; + $this->_out($s.']'); + $this->_out('endobj'); + //Descriptor + $this->_newobj(); + $s='<$v) + $s.=' /'.$k.' '.$v; + $file=$font['file']; + if($file) + $s.=' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R'; + $this->_out($s.'>>'); + $this->_out('endobj'); + } + else + { + //Allow for additional types + $mtd='_put'.strtolower($type); + if(!method_exists($this,$mtd)) + $this->Error('Unsupported font type: '.$type); + $this->$mtd($font); + } + } +} + +function _putimages() +{ + $filter=($this->compress) ? '/Filter /FlateDecode ' : ''; + reset($this->images); + while(list($file,$info)=each($this->images)) + { + $this->_newobj(); + $this->images[$file]['n']=$this->n; + $this->_out('<_out('/Subtype /Image'); + $this->_out('/Width '.$info['w']); + $this->_out('/Height '.$info['h']); + if($info['cs']=='Indexed') + $this->_out('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal'])/3-1).' '.($this->n+1).' 0 R]'); + else + { + $this->_out('/ColorSpace /'.$info['cs']); + if($info['cs']=='DeviceCMYK') + $this->_out('/Decode [1 0 1 0 1 0 1 0]'); + } + $this->_out('/BitsPerComponent '.$info['bpc']); + if(isset($info['f'])) + $this->_out('/Filter /'.$info['f']); + if(isset($info['parms'])) + $this->_out($info['parms']); + if(isset($info['trns']) && is_array($info['trns'])) + { + $trns=''; + for($i=0;$i_out('/Mask ['.$trns.']'); + } + $this->_out('/Length '.strlen($info['data']).'>>'); + $this->_putstream($info['data']); + unset($this->images[$file]['data']); + $this->_out('endobj'); + //Palette + if($info['cs']=='Indexed') + { + $this->_newobj(); + $pal=($this->compress) ? gzcompress($info['pal']) : $info['pal']; + $this->_out('<<'.$filter.'/Length '.strlen($pal).'>>'); + $this->_putstream($pal); + $this->_out('endobj'); + } + } +} + +function _putxobjectdict() +{ + foreach($this->images as $image) + $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R'); +} + +function _putresourcedict() +{ + $this->_out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]'); + $this->_out('/Font <<'); + foreach($this->fonts as $font) + $this->_out('/F'.$font['i'].' '.$font['n'].' 0 R'); + $this->_out('>>'); + $this->_out('/XObject <<'); + $this->_putxobjectdict(); + $this->_out('>>'); +} + +function _putresources() +{ + $this->_putfonts(); + $this->_putimages(); + //Resource dictionary + $this->offsets[2]=strlen($this->buffer); + $this->_out('2 0 obj'); + $this->_out('<<'); + $this->_putresourcedict(); + $this->_out('>>'); + $this->_out('endobj'); +} + +function _putinfo() +{ + $this->_out('/Producer '.$this->_textstring('FPDF '.FPDF_VERSION)); + if(!empty($this->title)) + $this->_out('/Title '.$this->_textstring($this->title)); + if(!empty($this->subject)) + $this->_out('/Subject '.$this->_textstring($this->subject)); + if(!empty($this->author)) + $this->_out('/Author '.$this->_textstring($this->author)); + if(!empty($this->keywords)) + $this->_out('/Keywords '.$this->_textstring($this->keywords)); + if(!empty($this->creator)) + $this->_out('/Creator '.$this->_textstring($this->creator)); + $this->_out('/CreationDate '.$this->_textstring('D:'.date('YmdHis'))); +} + +function _putcatalog() +{ + $this->_out('/Type /Catalog'); + $this->_out('/Pages 1 0 R'); + if($this->ZoomMode=='fullpage') + $this->_out('/OpenAction [3 0 R /Fit]'); + elseif($this->ZoomMode=='fullwidth') + $this->_out('/OpenAction [3 0 R /FitH null]'); + elseif($this->ZoomMode=='real') + $this->_out('/OpenAction [3 0 R /XYZ null null 1]'); + elseif(!is_string($this->ZoomMode)) + $this->_out('/OpenAction [3 0 R /XYZ null null '.($this->ZoomMode/100).']'); + if($this->LayoutMode=='single') + $this->_out('/PageLayout /SinglePage'); + elseif($this->LayoutMode=='continuous') + $this->_out('/PageLayout /OneColumn'); + elseif($this->LayoutMode=='two') + $this->_out('/PageLayout /TwoColumnLeft'); +} + +function _putheader() +{ + $this->_out('%PDF-'.$this->PDFVersion); +} + +function _puttrailer() +{ + $this->_out('/Size '.($this->n+1)); + $this->_out('/Root '.$this->n.' 0 R'); + $this->_out('/Info '.($this->n-1).' 0 R'); +} + +function _enddoc() +{ + $this->_putheader(); + $this->_putpages(); + $this->_putresources(); + //Info + $this->_newobj(); + $this->_out('<<'); + $this->_putinfo(); + $this->_out('>>'); + $this->_out('endobj'); + //Catalog + $this->_newobj(); + $this->_out('<<'); + $this->_putcatalog(); + $this->_out('>>'); + $this->_out('endobj'); + //Cross-ref + $o=strlen($this->buffer); + $this->_out('xref'); + $this->_out('0 '.($this->n+1)); + $this->_out('0000000000 65535 f '); + for($i=1;$i<=$this->n;$i++) + $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i])); + //Trailer + $this->_out('trailer'); + $this->_out('<<'); + $this->_puttrailer(); + $this->_out('>>'); + $this->_out('startxref'); + $this->_out($o); + $this->_out('%%EOF'); + $this->state=3; +} + +function _beginpage($orientation) +{ + $this->page++; + $this->pages[$this->page]=''; + $this->state=2; + $this->x=$this->lMargin; + $this->y=$this->tMargin; + $this->FontFamily=''; + //Page orientation + if(!$orientation) + $orientation=$this->DefOrientation; + else + { + $orientation=strtoupper($orientation{0}); + if($orientation!=$this->DefOrientation) + $this->OrientationChanges[$this->page]=true; + } + if($orientation!=$this->CurOrientation) + { + //Change orientation + if($orientation=='P') + { + $this->wPt=$this->fwPt; + $this->hPt=$this->fhPt; + $this->w=$this->fw; + $this->h=$this->fh; + } + else + { + $this->wPt=$this->fhPt; + $this->hPt=$this->fwPt; + $this->w=$this->fh; + $this->h=$this->fw; + } + $this->PageBreakTrigger=$this->h-$this->bMargin; + $this->CurOrientation=$orientation; + } +} + +function _endpage() +{ + //End of page contents + $this->state=1; +} + +function _newobj() +{ + //Begin a new object + $this->n++; + $this->offsets[$this->n]=strlen($this->buffer); + $this->_out($this->n.' 0 obj'); +} + +function _dounderline($x,$y,$txt) +{ + //Underline text + $up=$this->CurrentFont['up']; + $ut=$this->CurrentFont['ut']; + $w=$this->GetStringWidth($txt)+$this->ws*substr_count($txt,' '); + return sprintf('%.2f %.2f %.2f %.2f re f',$x*$this->k,($this->h-($y-$up/1000*$this->FontSize))*$this->k,$w*$this->k,-$ut/1000*$this->FontSizePt); +} + +function _parsejpg($file) +{ + //Extract info from a JPEG file + $a=GetImageSize($file); + if(!$a) + $this->Error('Missing or incorrect image file: '.$file); + if($a[2]!=2) + $this->Error('Not a JPEG file: '.$file); + if(!isset($a['channels']) || $a['channels']==3) + $colspace='DeviceRGB'; + elseif($a['channels']==4) + $colspace='DeviceCMYK'; + else + $colspace='DeviceGray'; + $bpc=isset($a['bits']) ? $a['bits'] : 8; + //Read whole file + $f=fopen($file,'rb'); + $data=''; + while(!feof($f)) + $data.=fread($f,4096); + fclose($f); + return array('w'=>$a[0],'h'=>$a[1],'cs'=>$colspace,'bpc'=>$bpc,'f'=>'DCTDecode','data'=>$data); +} + +function _parsepng($file) +{ + //Extract info from a PNG file + $f=fopen($file,'rb'); + if(!$f) + $this->Error('Can\'t open image file: '.$file); + //Check signature + if(fread($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10)) + $this->Error('Not a PNG file: '.$file); + //Read header chunk + fread($f,4); + if(fread($f,4)!='IHDR') + $this->Error('Incorrect PNG file: '.$file); + $w=$this->_freadint($f); + $h=$this->_freadint($f); + $bpc=ord(fread($f,1)); + if($bpc>8) + $this->Error('16-bit depth not supported: '.$file); + $ct=ord(fread($f,1)); + if($ct==0) + $colspace='DeviceGray'; + elseif($ct==2) + $colspace='DeviceRGB'; + elseif($ct==3) + $colspace='Indexed'; + else + $this->Error('Alpha channel not supported: '.$file); + if(ord(fread($f,1))!=0) + $this->Error('Unknown compression method: '.$file); + if(ord(fread($f,1))!=0) + $this->Error('Unknown filter method: '.$file); + if(ord(fread($f,1))!=0) + $this->Error('Interlacing not supported: '.$file); + fread($f,4); + $parms='/DecodeParms <>'; + //Scan chunks looking for palette, transparency and image data + $pal=''; + $trns=''; + $data=''; + do + { + $n=$this->_freadint($f); + $type=fread($f,4); + if($type=='PLTE') + { + //Read palette + $pal=fread($f,$n); + fread($f,4); + } + elseif($type=='tRNS') + { + //Read transparency info + $t=fread($f,$n); + if($ct==0) + $trns=array(ord(substr($t,1,1))); + elseif($ct==2) + $trns=array(ord(substr($t,1,1)),ord(substr($t,3,1)),ord(substr($t,5,1))); + else + { + $pos=strpos($t,chr(0)); + if($pos!==false) + $trns=array($pos); + } + fread($f,4); + } + elseif($type=='IDAT') + { + //Read image data block + $data.=fread($f,$n); + fread($f,4); + } + elseif($type=='IEND') + break; + else + fread($f,$n+4); + } + while($n); + if($colspace=='Indexed' && empty($pal)) + $this->Error('Missing palette in '.$file); + fclose($f); + return array('w'=>$w,'h'=>$h,'cs'=>$colspace,'bpc'=>$bpc,'f'=>'FlateDecode','parms'=>$parms,'pal'=>$pal,'trns'=>$trns,'data'=>$data); +} + +function _freadint($f) +{ + //Read a 4-byte integer from file + $a=unpack('Ni',fread($f,4)); + return $a['i']; +} + +function _textstring($s) +{ + //Format a text string + return '('.$this->_escape($s).')'; +} + +function _escape($s) +{ + //Add \ before \, ( and ) + return str_replace(')','\\)',str_replace('(','\\(',str_replace('\\','\\\\',$s))); +} + +function _putstream($s) +{ + $this->_out('stream'); + $this->_out($s); + $this->_out('endstream'); +} + +function _out($s) +{ + //Add a line to the document + if($this->state==2) + $this->pages[$this->page].=$s."\n"; + else + $this->buffer.=$s."\n"; +} +//End of class +} + +//Handle special IE contype request +if(isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT']=='contype') +{ + header('Content-Type: application/pdf'); + exit; +} + +} +?> diff --git a/phplib/fpdf/histo.htm b/phplib/fpdf153/histo.htm similarity index 100% rename from phplib/fpdf/histo.htm rename to phplib/fpdf153/histo.htm diff --git a/phplib/fpdf153/install.txt b/phplib/fpdf153/install.txt new file mode 100644 index 0000000..a140995 --- /dev/null +++ b/phplib/fpdf153/install.txt @@ -0,0 +1,26 @@ +The FPDF library is made up of the following elements: + +- the main file, fpdf.php, which contains the class +- the font metric files (located in the font directory of this archive) + +The metric files are necessary as soon as you want to output some text in a document. +They can be accessed from three different locations: + +- the directory defined by the FPDF_FONTPATH constant (if this constant is defined) +- the font directory located in the directory containing fpdf.php (as it is the case in this archive) +- the directories accessible through include() + +Here is an example defining FPDF_FONTPATH (note the mandatory final slash): + +define('FPDF_FONTPATH','/home/www/font/'); +require('fpdf.php'); + +If the files are not accessible, the SetFont() method will produce the following error: + +FPDF error: Could not include font metric file + + +Remarks: + +- Only the files corresponding to the fonts actually used are necessary +- The tutorials provided in this package are ready to be executed diff --git a/phplib/fpdf153/tutorial/20k_c1.txt b/phplib/fpdf153/tutorial/20k_c1.txt new file mode 100644 index 0000000..6d5b295 --- /dev/null +++ b/phplib/fpdf153/tutorial/20k_c1.txt @@ -0,0 +1,10 @@ +The year 1866 was marked by a bizarre development, an unexplained and downright inexplicable phenomenon that surely no one has forgotten. Without getting into those rumors that upset civilians in the seaports and deranged the public mind even far inland, it must be said that professional seamen were especially alarmed. Traders, shipowners, captains of vessels, skippers, and master mariners from Europe and America, naval officers from every country, and at their heels the various national governments on these two continents, were all extremely disturbed by the business. +In essence, over a period of time several ships had encountered "an enormous thing" at sea, a long spindle-shaped object, sometimes giving off a phosphorescent glow, infinitely bigger and faster than any whale. +The relevant data on this apparition, as recorded in various logbooks, agreed pretty closely as to the structure of the object or creature in question, its unprecedented speed of movement, its startling locomotive power, and the unique vitality with which it seemed to be gifted. If it was a cetacean, it exceeded in bulk any whale previously classified by science. No naturalist, neither Cuvier nor Lacépède, neither Professor Dumeril nor Professor de Quatrefages, would have accepted the existence of such a monster sight unseen -- specifically, unseen by their own scientific eyes. +Striking an average of observations taken at different times -- rejecting those timid estimates that gave the object a length of 200 feet, and ignoring those exaggerated views that saw it as a mile wide and three long--you could still assert that this phenomenal creature greatly exceeded the dimensions of anything then known to ichthyologists, if it existed at all. +Now then, it did exist, this was an undeniable fact; and since the human mind dotes on objects of wonder, you can understand the worldwide excitement caused by this unearthly apparition. As for relegating it to the realm of fiction, that charge had to be dropped. +In essence, on July 20, 1866, the steamer Governor Higginson, from the Calcutta & Burnach Steam Navigation Co., encountered this moving mass five miles off the eastern shores of Australia. Captain Baker at first thought he was in the presence of an unknown reef; he was even about to fix its exact position when two waterspouts shot out of this inexplicable object and sprang hissing into the air some 150 feet. So, unless this reef was subject to the intermittent eruptions of a geyser, the Governor Higginson had fair and honest dealings with some aquatic mammal, until then unknown, that could spurt from its blowholes waterspouts mixed with air and steam. +Similar events were likewise observed in Pacific seas, on July 23 of the same year, by the Christopher Columbus from the West India & Pacific Steam Navigation Co. Consequently, this extraordinary cetacean could transfer itself from one locality to another with startling swiftness, since within an interval of just three days, the Governor Higginson and the Christopher Columbus had observed it at two positions on the charts separated by a distance of more than 700 nautical leagues. +Fifteen days later and 2,000 leagues farther, the Helvetia from the Compagnie Nationale and the Shannon from the Royal Mail line, running on opposite tacks in that part of the Atlantic lying between the United States and Europe, respectively signaled each other that the monster had been sighted in latitude 42 degrees 15' north and longitude 60 degrees 35' west of the meridian of Greenwich. From their simultaneous observations, they were able to estimate the mammal's minimum length at more than 350 English feet; this was because both the Shannon and the Helvetia were of smaller dimensions, although each measured 100 meters stem to stern. Now then, the biggest whales, those rorqual whales that frequent the waterways of the Aleutian Islands, have never exceeded a length of 56 meters--if they reach even that. +One after another, reports arrived that would profoundly affect public opinion: new observations taken by the transatlantic liner Pereire, the Inman line's Etna running afoul of the monster, an official report drawn up by officers on the French frigate Normandy, dead-earnest reckonings obtained by the general staff of Commodore Fitz-James aboard the Lord Clyde. In lighthearted countries, people joked about this phenomenon, but such serious, practical countries as England, America, and Germany were deeply concerned. +In every big city the monster was the latest rage; they sang about it in the coffee houses, they ridiculed it in the newspapers, they dramatized it in the theaters. The tabloids found it a fine opportunity for hatching all sorts of hoaxes. In those newspapers short of copy, you saw the reappearance of every gigantic imaginary creature, from "Moby Dick," that dreadful white whale from the High Arctic regions, to the stupendous kraken whose tentacles could entwine a 500-ton craft and drag it into the ocean depths. They even reprinted reports from ancient times: the views of Aristotle and Pliny accepting the existence of such monsters, then the Norwegian stories of Bishop Pontoppidan, the narratives of Paul Egede, and finally the reports of Captain Harrington -- whose good faith is above suspicion--in which he claims he saw, while aboard the Castilian in 1857, one of those enormous serpents that, until then, had frequented only the seas of France's old extremist newspaper, The Constitutionalist. diff --git a/phplib/fpdf153/tutorial/20k_c2.txt b/phplib/fpdf153/tutorial/20k_c2.txt new file mode 100644 index 0000000..7b5c565 --- /dev/null +++ b/phplib/fpdf153/tutorial/20k_c2.txt @@ -0,0 +1,23 @@ +During the period in which these developments were occurring, I had returned from a scientific undertaking organized to explore the Nebraska badlands in the United States. In my capacity as Assistant Professor at the Paris Museum of Natural History, I had been attached to this expedition by the French government. After spending six months in Nebraska, I arrived in New York laden with valuable collections near the end of March. My departure for France was set for early May. In the meantime, then, I was busy classifying my mineralogical, botanical, and zoological treasures when that incident took place with the Scotia. +I was perfectly abreast of this question, which was the big news of the day, and how could I not have been? I had read and reread every American and European newspaper without being any farther along. This mystery puzzled me. Finding it impossible to form any views, I drifted from one extreme to the other. Something was out there, that much was certain, and any doubting Thomas was invited to place his finger on the Scotia's wound. +When I arrived in New York, the question was at the boiling point. The hypothesis of a drifting islet or an elusive reef, put forward by people not quite in their right minds, was completely eliminated. And indeed, unless this reef had an engine in its belly, how could it move about with such prodigious speed? +Also discredited was the idea of a floating hull or some other enormous wreckage, and again because of this speed of movement. +So only two possible solutions to the question were left, creating two very distinct groups of supporters: on one side, those favoring a monster of colossal strength; on the other, those favoring an "underwater boat" of tremendous motor power. +Now then, although the latter hypothesis was completely admissible, it couldn't stand up to inquiries conducted in both the New World and the Old. That a private individual had such a mechanism at his disposal was less than probable. Where and when had he built it, and how could he have built it in secret? +Only some government could own such an engine of destruction, and in these disaster-filled times, when men tax their ingenuity to build increasingly powerful aggressive weapons, it was possible that, unknown to the rest of the world, some nation could have been testing such a fearsome machine. The Chassepot rifle led to the torpedo, and the torpedo has led to this underwater battering ram, which in turn will lead to the world putting its foot down. At least I hope it will. +But this hypothesis of a war machine collapsed in the face of formal denials from the various governments. Since the public interest was at stake and transoceanic travel was suffering, the sincerity of these governments could not be doubted. Besides, how could the assembly of this underwater boat have escaped public notice? Keeping a secret under such circumstances would be difficult enough for an individual, and certainly impossible for a nation whose every move is under constant surveillance by rival powers. +So, after inquiries conducted in England, France, Russia, Prussia, Spain, Italy, America, and even Turkey, the hypothesis of an underwater Monitor was ultimately rejected. +After I arrived in New York, several people did me the honor of consulting me on the phenomenon in question. In France I had published a two-volume work, in quarto, entitled The Mysteries of the Great Ocean Depths. Well received in scholarly circles, this book had established me as a specialist in this pretty obscure field of natural history. My views were in demand. As long as I could deny the reality of the business, I confined myself to a flat "no comment." But soon, pinned to the wall, I had to explain myself straight out. And in this vein, "the honorable Pierre Aronnax, Professor at the Paris Museum," was summoned by The New York Herald to formulate his views no matter what. +I complied. Since I could no longer hold my tongue, I let it wag. I discussed the question in its every aspect, both political and scientific, and this is an excerpt from the well-padded article I published in the issue of April 30. + +"Therefore," I wrote, "after examining these different hypotheses one by one, we are forced, every other supposition having been refuted, to accept the existence of an extremely powerful marine animal. +"The deepest parts of the ocean are totally unknown to us. No soundings have been able to reach them. What goes on in those distant depths? What creatures inhabit, or could inhabit, those regions twelve or fifteen miles beneath the surface of the water? What is the constitution of these animals? It's almost beyond conjecture. +"However, the solution to this problem submitted to me can take the form of a choice between two alternatives. +"Either we know every variety of creature populating our planet, or we do not. +"If we do not know every one of them, if nature still keeps ichthyological secrets from us, nothing is more admissible than to accept the existence of fish or cetaceans of new species or even new genera, animals with a basically 'cast-iron' constitution that inhabit strata beyond the reach of our soundings, and which some development or other, an urge or a whim if you prefer, can bring to the upper level of the ocean for long intervals. +"If, on the other hand, we do know every living species, we must look for the animal in question among those marine creatures already cataloged, and in this event I would be inclined to accept the existence of a giant narwhale. +"The common narwhale, or sea unicorn, often reaches a length of sixty feet. Increase its dimensions fivefold or even tenfold, then give this cetacean a strength in proportion to its size while enlarging its offensive weapons, and you have the animal we're looking for. It would have the proportions determined by the officers of the Shannon, the instrument needed to perforate the Scotia, and the power to pierce a steamer's hull. +"In essence, the narwhale is armed with a sort of ivory sword, or lance, as certain naturalists have expressed it. It's a king-sized tooth as hard as steel. Some of these teeth have been found buried in the bodies of baleen whales, which the narwhale attacks with invariable success. Others have been wrenched, not without difficulty, from the undersides of vessels that narwhales have pierced clean through, as a gimlet pierces a wine barrel. The museum at the Faculty of Medicine in Paris owns one of these tusks with a length of 2.25 meters and a width at its base of forty-eight centimeters! +"All right then! Imagine this weapon to be ten times stronger and the animal ten times more powerful, launch it at a speed of twenty miles per hour, multiply its mass times its velocity, and you get just the collision we need to cause the specified catastrophe. +"So, until information becomes more abundant, I plump for a sea unicorn of colossal dimensions, no longer armed with a mere lance but with an actual spur, like ironclad frigates or those warships called 'rams,' whose mass and motor power it would possess simultaneously. +"This inexplicable phenomenon is thus explained away--unless it's something else entirely, which, despite everything that has been sighted, studied, explored and experienced, is still possible!" diff --git a/phplib/fpdf/tutorial/calligra.afm b/phplib/fpdf153/tutorial/calligra.afm similarity index 100% rename from phplib/fpdf/tutorial/calligra.afm rename to phplib/fpdf153/tutorial/calligra.afm diff --git a/phplib/fpdf153/tutorial/calligra.php b/phplib/fpdf153/tutorial/calligra.php new file mode 100644 index 0000000..9768158 --- /dev/null +++ b/phplib/fpdf153/tutorial/calligra.php @@ -0,0 +1,24 @@ +899,'Descent'=>-234,'CapHeight'=>731,'Flags'=>32,'FontBBox'=>'[-50 -234 1328 899]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>800); +$up=-200; +$ut=20; +$cw=array( + chr(0)=>800,chr(1)=>800,chr(2)=>800,chr(3)=>800,chr(4)=>800,chr(5)=>800,chr(6)=>800,chr(7)=>800,chr(8)=>800,chr(9)=>800,chr(10)=>800,chr(11)=>800,chr(12)=>800,chr(13)=>800,chr(14)=>800,chr(15)=>800,chr(16)=>800,chr(17)=>800,chr(18)=>800,chr(19)=>800,chr(20)=>800,chr(21)=>800, + chr(22)=>800,chr(23)=>800,chr(24)=>800,chr(25)=>800,chr(26)=>800,chr(27)=>800,chr(28)=>800,chr(29)=>800,chr(30)=>800,chr(31)=>800,' '=>282,'!'=>324,'"'=>405,'#'=>584,'$'=>632,'%'=>980,'&'=>776,'\''=>259,'('=>299,')'=>299,'*'=>377,'+'=>600, + ','=>259,'-'=>432,'.'=>254,'/'=>597,'0'=>529,'1'=>298,'2'=>451,'3'=>359,'4'=>525,'5'=>423,'6'=>464,'7'=>417,'8'=>457,'9'=>479,':'=>275,';'=>282,'<'=>600,'='=>600,'>'=>600,'?'=>501,'@'=>800,'A'=>743, + 'B'=>636,'C'=>598,'D'=>712,'E'=>608,'F'=>562,'G'=>680,'H'=>756,'I'=>308,'J'=>314,'K'=>676,'L'=>552,'M'=>1041,'N'=>817,'O'=>729,'P'=>569,'Q'=>698,'R'=>674,'S'=>618,'T'=>673,'U'=>805,'V'=>753,'W'=>1238, + 'X'=>716,'Y'=>754,'Z'=>599,'['=>315,'\\'=>463,']'=>315,'^'=>600,'_'=>547,'`'=>278,'a'=>581,'b'=>564,'c'=>440,'d'=>571,'e'=>450,'f'=>347,'g'=>628,'h'=>611,'i'=>283,'j'=>283,'k'=>560,'l'=>252,'m'=>976, + 'n'=>595,'o'=>508,'p'=>549,'q'=>540,'r'=>395,'s'=>441,'t'=>307,'u'=>614,'v'=>556,'w'=>915,'x'=>559,'y'=>597,'z'=>452,'{'=>315,'|'=>222,'}'=>315,'~'=>600,chr(127)=>800,chr(128)=>800,chr(129)=>800,chr(130)=>0,chr(131)=>0, + chr(132)=>0,chr(133)=>780,chr(134)=>0,chr(135)=>0,chr(136)=>278,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>1064,chr(141)=>800,chr(142)=>800,chr(143)=>800,chr(144)=>800,chr(145)=>259,chr(146)=>259,chr(147)=>470,chr(148)=>470,chr(149)=>500,chr(150)=>300,chr(151)=>600,chr(152)=>278,chr(153)=>990, + chr(154)=>0,chr(155)=>0,chr(156)=>790,chr(157)=>800,chr(158)=>800,chr(159)=>754,chr(160)=>282,chr(161)=>324,chr(162)=>450,chr(163)=>640,chr(164)=>518,chr(165)=>603,chr(166)=>0,chr(167)=>519,chr(168)=>254,chr(169)=>800,chr(170)=>349,chr(171)=>0,chr(172)=>0,chr(173)=>432,chr(174)=>800,chr(175)=>278, + chr(176)=>0,chr(177)=>0,chr(178)=>0,chr(179)=>0,chr(180)=>278,chr(181)=>614,chr(182)=>0,chr(183)=>254,chr(184)=>278,chr(185)=>0,chr(186)=>305,chr(187)=>0,chr(188)=>0,chr(189)=>0,chr(190)=>0,chr(191)=>501,chr(192)=>743,chr(193)=>743,chr(194)=>743,chr(195)=>743,chr(196)=>743,chr(197)=>743, + chr(198)=>1060,chr(199)=>598,chr(200)=>608,chr(201)=>608,chr(202)=>608,chr(203)=>608,chr(204)=>308,chr(205)=>308,chr(206)=>308,chr(207)=>308,chr(208)=>0,chr(209)=>817,chr(210)=>729,chr(211)=>729,chr(212)=>729,chr(213)=>729,chr(214)=>729,chr(215)=>0,chr(216)=>729,chr(217)=>805,chr(218)=>805,chr(219)=>805, + chr(220)=>805,chr(221)=>0,chr(222)=>0,chr(223)=>688,chr(224)=>581,chr(225)=>581,chr(226)=>581,chr(227)=>581,chr(228)=>581,chr(229)=>581,chr(230)=>792,chr(231)=>440,chr(232)=>450,chr(233)=>450,chr(234)=>450,chr(235)=>450,chr(236)=>283,chr(237)=>283,chr(238)=>283,chr(239)=>283,chr(240)=>800,chr(241)=>595, + chr(242)=>508,chr(243)=>508,chr(244)=>508,chr(245)=>508,chr(246)=>508,chr(247)=>0,chr(248)=>508,chr(249)=>614,chr(250)=>614,chr(251)=>614,chr(252)=>614,chr(253)=>0,chr(254)=>0,chr(255)=>597); +$enc='cp1252'; +$diff=''; +$file='calligra.z'; +$originalsize=40120; +?> diff --git a/phplib/fpdf153/tutorial/calligra.ttf b/phplib/fpdf153/tutorial/calligra.ttf new file mode 100644 index 0000000000000000000000000000000000000000..e7fee650dadcebc481d58e0d8e68a558d9a52f85 GIT binary patch literal 40041 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 U10=7=DPWN61s<*;K-*jY1yYf)S^xk5 literal 0 HcmV?d00001 diff --git a/phplib/fpdf153/tutorial/calligra.z b/phplib/fpdf153/tutorial/calligra.z new file mode 100644 index 0000000000000000000000000000000000000000..1c0bebd20b3f68fe84a44520cc93c7cee39f2792 GIT binary patch literal 25604 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 jkH^DoB9A@c#fz}Vaf2UWPe| + + + +Tutorials + + + +

Tutorials

+

The different examples rapidly show how to use FPDF. You will find all main features explained.

+
+ + diff --git a/phplib/fpdf153/tutorial/logo.png b/phplib/fpdf153/tutorial/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..284a0071c850b5a2f1ba86f16775c5c0da9fe082 GIT binary patch literal 2373 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 diff --git a/phplib/fpdf153/tutorial/tuto1.htm b/phplib/fpdf153/tutorial/tuto1.htm new file mode 100644 index 0000000..dc77192 --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto1.htm @@ -0,0 +1,84 @@ + + + + +Minimal example + + + +

Minimal example

+Let's start with the classic example: +
+
<?php
+require('fpdf.php');
+
+$pdf=new FPDF();
+$pdf->AddPage();
+$pdf->SetFont('Arial','B',16);
+$pdf->Cell(40,10,'Hello World!');
+$pdf->Output();
+?>
+
+ +After including the library file, we create an FPDF object. +The FPDF() constructor is used here with the default values: pages are in A4 portrait and +the measure unit is millimeter. It could have been specified explicitly with: +
+
$pdf=new FPDF('P','mm','A4');
+
+
+It is possible to use landscape (L), other page formats (such as Letter and +Legal) and measure units (pt, cm, in). +
+
+There is no page for the moment, so we have to add one with AddPage(). The origin +is at the upper-left corner and the current position is by default placed at 1 cm from the +borders; the margins can be changed with SetMargins(). +
+
+Before we can print text, it is mandatory to select a font with SetFont(), otherwise the +document would be invalid. We choose Arial bold 16: +
+
$pdf->SetFont('Arial','B',16);
+
+
+We could have specified italics with I, underlined with U or a regular font with an empty string +(or any combination). Note that the font size is given in points, not millimeters (or another +user unit); it is the only exception. The other standard fonts are Times, Courier, Symbol and +ZapfDingbats. +
+
+We can now print a cell with Cell(). A cell is a rectangular area, possibly framed, +which contains some text. It is output at the current position. We specify its dimensions, +its text (centered or aligned), if borders should be drawn, and where the current position +moves after it (to the right, below or to the beginning of the next line). To add a frame, we would do this: +
+
$pdf->Cell(40,10,'Hello World !',1);
+
+
+To add a new cell next to it with centered text and go to the next line, we would do: +
+
$pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');
+
+
+Remark : the line break can also be done with Ln(). This method allows to specify +in addition the height of the break. +
+
+Finally, the document is closed and sent to the browser with Output(). We could have saved +it in a file by passing the desired file name. +
+
+Caution: in case when the PDF is sent to the browser, nothing else must be output, not before +nor after (the least space or carriage return matters). If you send some data before, you will +get the error message: "Some data has already been output to browser, can't send PDF file". If +you send after, your browser may display a blank page. + + diff --git a/phplib/fpdf153/tutorial/tuto1.php b/phplib/fpdf153/tutorial/tuto1.php new file mode 100644 index 0000000..4166cca --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto1.php @@ -0,0 +1,9 @@ +AddPage(); +$pdf->SetFont('Arial','B',16); +$pdf->Cell(40,10,'Hello World!'); +$pdf->Output(); +?> diff --git a/phplib/fpdf153/tutorial/tuto2.htm b/phplib/fpdf153/tutorial/tuto2.htm new file mode 100644 index 0000000..9eea36d --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto2.htm @@ -0,0 +1,87 @@ + + + + +Header, footer, page break and image + + + +

Header, footer, page break and image

+Here is a two page example with header, footer and logo: +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+//Page header
+function Header()
+{
+    //Logo
+    $this->Image('logo_pb.png',10,8,33);
+    //Arial bold 15
+    $this->SetFont('Arial','B',15);
+    //Move to the right
+    $this->Cell(80);
+    //Title
+    $this->Cell(30,10,'Title',1,0,'C');
+    //Line break
+    $this->Ln(20);
+}
+
+//Page footer
+function Footer()
+{
+    //Position at 1.5 cm from bottom
+    $this->SetY(-15);
+    //Arial italic 8
+    $this->SetFont('Arial','I',8);
+    //Page number
+    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
+}
+}
+
+//Instanciation of inherited class
+$pdf=new PDF();
+$pdf->AliasNbPages();
+$pdf->AddPage();
+$pdf->SetFont('Times','',12);
+for($i=1;$i<=40;$i++)
+    $pdf->Cell(0,10,'Printing line number '.$i,0,1);
+$pdf->Output();
+?>
+
+ +This example makes use of the Header() and Footer() methods to process page headers and +footers. They are called automatically. They already exist in the FPDF class but do nothing, +therefore we have to extend the class and override them. +
+
+The logo is printed with the Image() method by specifying its upper-left corner and +its width. The height is calculated automatically to respect the image proportions. +
+
+To print the page number, a null value is passed as the cell width. It means that the cell +should extend up to the right margin of the page; it is handy to center text. The current page +number is returned by the PageNo() method; as for the total number of pages, it is obtained +by means of the special value {nb} which will be substituted on document closure +(provided you first called AliasNbPages()). +
+Note the use of the SetY() method which allows to set position at an absolute location in +the page, starting from the top or the bottom. +
+
+Another interesting feature is used here: the automatic page breaking. As soon as a cell would +cross a limit in the page (at 2 centimeters from the bottom by default), a break is performed +and the font restored. Although the header and footer select their own font (Arial), the body +continues with Times. This mechanism of automatic restoration also applies to colors and line +width. The limit which triggers page breaks can be set with SetAutoPageBreak(). + + diff --git a/phplib/fpdf153/tutorial/tuto2.php b/phplib/fpdf153/tutorial/tuto2.php new file mode 100644 index 0000000..9737526 --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto2.php @@ -0,0 +1,41 @@ +Image('logo_pb.png',10,8,33); + //Arial bold 15 + $this->SetFont('Arial','B',15); + //Move to the right + $this->Cell(80); + //Title + $this->Cell(30,10,'Title',1,0,'C'); + //Line break + $this->Ln(20); +} + +//Page footer +function Footer() +{ + //Position at 1.5 cm from bottom + $this->SetY(-15); + //Arial italic 8 + $this->SetFont('Arial','I',8); + //Page number + $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); +} +} + +//Instanciation of inherited class +$pdf=new PDF(); +$pdf->AliasNbPages(); +$pdf->AddPage(); +$pdf->SetFont('Times','',12); +for($i=1;$i<=40;$i++) + $pdf->Cell(0,10,'Printing line number '.$i,0,1); +$pdf->Output(); +?> diff --git a/phplib/fpdf153/tutorial/tuto3.htm b/phplib/fpdf153/tutorial/tuto3.htm new file mode 100644 index 0000000..7119544 --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto3.htm @@ -0,0 +1,122 @@ + + + + +Line breaks and colors + + + +

Line breaks and colors

+Let's continue with an example which prints justified paragraphs. It also illustrates the use +of colors. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+function Header()
+{
+    global $title;
+
+    //Arial bold 15
+    $this->SetFont('Arial','B',15);
+    //Calculate width of title and position
+    $w=$this->GetStringWidth($title)+6;
+    $this->SetX((210-$w)/2);
+    //Colors of frame, background and text
+    $this->SetDrawColor(0,80,180);
+    $this->SetFillColor(230,230,0);
+    $this->SetTextColor(220,50,50);
+    //Thickness of frame (1 mm)
+    $this->SetLineWidth(1);
+    //Title
+    $this->Cell($w,9,$title,1,1,'C',1);
+    //Line break
+    $this->Ln(10);
+}
+
+function Footer()
+{
+    //Position at 1.5 cm from bottom
+    $this->SetY(-15);
+    //Arial italic 8
+    $this->SetFont('Arial','I',8);
+    //Text color in gray
+    $this->SetTextColor(128);
+    //Page number
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+
+function ChapterTitle($num,$label)
+{
+    //Arial 12
+    $this->SetFont('Arial','',12);
+    //Background color
+    $this->SetFillColor(200,220,255);
+    //Title
+    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1);
+    //Line break
+    $this->Ln(4);
+}
+
+function ChapterBody($file)
+{
+    //Read text file
+    $f=fopen($file,'r');
+    $txt=fread($f,filesize($file));
+    fclose($f);
+    //Times 12
+    $this->SetFont('Times','',12);
+    //Output justified text
+    $this->MultiCell(0,5,$txt);
+    //Line break
+    $this->Ln();
+    //Mention in italics
+    $this->SetFont('','I');
+    $this->Cell(0,5,'(end of excerpt)');
+}
+
+function PrintChapter($num,$title,$file)
+{
+    $this->AddPage();
+    $this->ChapterTitle($num,$title);
+    $this->ChapterBody($file);
+}
+}
+
+$pdf=new PDF();
+$title='20000 Leagues Under the Seas';
+$pdf->SetTitle($title);
+$pdf->SetAuthor('Jules Verne');
+$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
+$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
+$pdf->Output();
+?>
+
+ +The GetStringWidth() method allows to determine the length of a string in the current font, +which is used here to calculate the position and the width of the frame surrounding the title. +Then colors are set (via SetDrawColor(), SetFillColor() and SetTextColor()) and the +thickness of the line is set to 1 mm (against 0.2 by default) with SetLineWidth(). Finally, +we output the cell (the last parameter to 1 indicates that the background must be filled). +
+
+The method used to print the paragraphs is MultiCell(). Each time a line reaches the +right extremity of the cell or a carriage-return character is met, a line break is issued +and a new cell automatically created under the current one. Text is justified by default. +
+
+Two document properties are defined: title (SetTitle()) and author (SetAuthor()). +Properties can be viewed by two means. First is open the document directly with Acrobat Reader, +go to the File menu, Document info, General. Second, also available from the plug-in, is click +on the triangle just above the right scrollbar and choose Document info. + + diff --git a/phplib/fpdf153/tutorial/tuto3.php b/phplib/fpdf153/tutorial/tuto3.php new file mode 100644 index 0000000..660a00d --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto3.php @@ -0,0 +1,83 @@ +SetFont('Arial','B',15); + //Calculate width of title and position + $w=$this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + //Colors of frame, background and text + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + //Thickness of frame (1 mm) + $this->SetLineWidth(1); + //Title + $this->Cell($w,9,$title,1,1,'C',1); + //Line break + $this->Ln(10); +} + +function Footer() +{ + //Position at 1.5 cm from bottom + $this->SetY(-15); + //Arial italic 8 + $this->SetFont('Arial','I',8); + //Text color in gray + $this->SetTextColor(128); + //Page number + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function ChapterTitle($num,$label) +{ + //Arial 12 + $this->SetFont('Arial','',12); + //Background color + $this->SetFillColor(200,220,255); + //Title + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1); + //Line break + $this->Ln(4); +} + +function ChapterBody($file) +{ + //Read text file + $f=fopen($file,'r'); + $txt=fread($f,filesize($file)); + fclose($f); + //Times 12 + $this->SetFont('Times','',12); + //Output justified text + $this->MultiCell(0,5,$txt); + //Line break + $this->Ln(); + //Mention in italics + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); +} + +function PrintChapter($num,$title,$file) +{ + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf=new PDF(); +$title='20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf153/tutorial/tuto4.htm b/phplib/fpdf153/tutorial/tuto4.htm new file mode 100644 index 0000000..586630e --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto4.htm @@ -0,0 +1,143 @@ + + + + +Multi-columns + + + +

Multi-columns

+This example is a variant of the previous one showing how to lay the text across multiple +columns. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+//Current column
+var $col=0;
+//Ordinate of column start
+var $y0;
+
+function Header()
+{
+    //Page header
+    global $title;
+
+    $this->SetFont('Arial','B',15);
+    $w=$this->GetStringWidth($title)+6;
+    $this->SetX((210-$w)/2);
+    $this->SetDrawColor(0,80,180);
+    $this->SetFillColor(230,230,0);
+    $this->SetTextColor(220,50,50);
+    $this->SetLineWidth(1);
+    $this->Cell($w,9,$title,1,1,'C',1);
+    $this->Ln(10);
+    //Save ordinate
+    $this->y0=$this->GetY();
+}
+
+function Footer()
+{
+    //Page footer
+    $this->SetY(-15);
+    $this->SetFont('Arial','I',8);
+    $this->SetTextColor(128);
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+
+function SetCol($col)
+{
+    //Set position at a given column
+    $this->col=$col;
+    $x=10+$col*65;
+    $this->SetLeftMargin($x);
+    $this->SetX($x);
+}
+
+function AcceptPageBreak()
+{
+    //Method accepting or not automatic page break
+    if($this->col<2)
+    {
+        //Go to next column
+        $this->SetCol($this->col+1);
+        //Set ordinate to top
+        $this->SetY($this->y0);
+        //Keep on page
+        return false;
+    }
+    else
+    {
+        //Go back to first column
+        $this->SetCol(0);
+        //Page break
+        return true;
+    }
+}
+
+function ChapterTitle($num,$label)
+{
+    //Title
+    $this->SetFont('Arial','',12);
+    $this->SetFillColor(200,220,255);
+    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1);
+    $this->Ln(4);
+    //Save ordinate
+    $this->y0=$this->GetY();
+}
+
+function ChapterBody($file)
+{
+    //Read text file
+    $f=fopen($file,'r');
+    $txt=fread($f,filesize($file));
+    fclose($f);
+    //Font
+    $this->SetFont('Times','',12);
+    //Output text in a 6 cm width column
+    $this->MultiCell(60,5,$txt);
+    $this->Ln();
+    //Mention
+    $this->SetFont('','I');
+    $this->Cell(0,5,'(end of excerpt)');
+    //Go back to first column
+    $this->SetCol(0);
+}
+
+function PrintChapter($num,$title,$file)
+{
+    //Add chapter
+    $this->AddPage();
+    $this->ChapterTitle($num,$title);
+    $this->ChapterBody($file);
+}
+}
+
+$pdf=new PDF();
+$title='20000 Leagues Under the Seas';
+$pdf->SetTitle($title);
+$pdf->SetAuthor('Jules Verne');
+$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
+$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
+$pdf->Output();
+?>
+
+ +The key method used is AcceptPageBreak(). It allows to accept or not an automatic page +break. By refusing it and altering the margin and current position, the desired column layout +is achieved. +
+For the rest, not much change; two properties have been added to the class to save the current +column number and the position where columns begin, and the MultiCell() call specifies a +6 centimeter width. + + diff --git a/phplib/fpdf153/tutorial/tuto4.php b/phplib/fpdf153/tutorial/tuto4.php new file mode 100644 index 0000000..4c1d75a --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto4.php @@ -0,0 +1,113 @@ +SetFont('Arial','B',15); + $w=$this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + $this->SetLineWidth(1); + $this->Cell($w,9,$title,1,1,'C',1); + $this->Ln(10); + //Save ordinate + $this->y0=$this->GetY(); +} + +function Footer() +{ + //Page footer + $this->SetY(-15); + $this->SetFont('Arial','I',8); + $this->SetTextColor(128); + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function SetCol($col) +{ + //Set position at a given column + $this->col=$col; + $x=10+$col*65; + $this->SetLeftMargin($x); + $this->SetX($x); +} + +function AcceptPageBreak() +{ + //Method accepting or not automatic page break + if($this->col<2) + { + //Go to next column + $this->SetCol($this->col+1); + //Set ordinate to top + $this->SetY($this->y0); + //Keep on page + return false; + } + else + { + //Go back to first column + $this->SetCol(0); + //Page break + return true; + } +} + +function ChapterTitle($num,$label) +{ + //Title + $this->SetFont('Arial','',12); + $this->SetFillColor(200,220,255); + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',1); + $this->Ln(4); + //Save ordinate + $this->y0=$this->GetY(); +} + +function ChapterBody($file) +{ + //Read text file + $f=fopen($file,'r'); + $txt=fread($f,filesize($file)); + fclose($f); + //Font + $this->SetFont('Times','',12); + //Output text in a 6 cm width column + $this->MultiCell(60,5,$txt); + $this->Ln(); + //Mention + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); + //Go back to first column + $this->SetCol(0); +} + +function PrintChapter($num,$title,$file) +{ + //Add chapter + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf=new PDF(); +$title='20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf153/tutorial/tuto5.htm b/phplib/fpdf153/tutorial/tuto5.htm new file mode 100644 index 0000000..c2403ec --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto5.htm @@ -0,0 +1,140 @@ + + + + +Tables + + + +

Tables

+This tutorial shows how to make tables easily. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+//Load data
+function LoadData($file)
+{
+    //Read file lines
+    $lines=file($file);
+    $data=array();
+    foreach($lines as $line)
+        $data[]=explode(';',chop($line));
+    return $data;
+}
+
+//Simple table
+function BasicTable($header,$data)
+{
+    //Header
+    foreach($header as $col)
+        $this->Cell(40,7,$col,1);
+    $this->Ln();
+    //Data
+    foreach($data as $row)
+    {
+        foreach($row as $col)
+            $this->Cell(40,6,$col,1);
+        $this->Ln();
+    }
+}
+
+//Better table
+function ImprovedTable($header,$data)
+{
+    //Column widths
+    $w=array(40,35,40,45);
+    //Header
+    for($i=0;$i<count($header);$i++)
+        $this->Cell($w[$i],7,$header[$i],1,0,'C');
+    $this->Ln();
+    //Data
+    foreach($data as $row)
+    {
+        $this->Cell($w[0],6,$row[0],'LR');
+        $this->Cell($w[1],6,$row[1],'LR');
+        $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');
+        $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');
+        $this->Ln();
+    }
+    //Closure line
+    $this->Cell(array_sum($w),0,'','T');
+}
+
+//Colored table
+function FancyTable($header,$data)
+{
+    //Colors, line width and bold font
+    $this->SetFillColor(255,0,0);
+    $this->SetTextColor(255);
+    $this->SetDrawColor(128,0,0);
+    $this->SetLineWidth(.3);
+    $this->SetFont('','B');
+    //Header
+    $w=array(40,35,40,45);
+    for($i=0;$i<count($header);$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');
+}
+}
+
+$pdf=new PDF();
+//Column titles
+$header=array('Country','Capital','Area (sq km)','Pop. (thousands)');
+//Data loading
+$data=$pdf->LoadData('countries.txt');
+$pdf->SetFont('Arial','',14);
+$pdf->AddPage();
+$pdf->BasicTable($header,$data);
+$pdf->AddPage();
+$pdf->ImprovedTable($header,$data);
+$pdf->AddPage();
+$pdf->FancyTable($header,$data);
+$pdf->Output();
+?>
+
+ +A table being just a collection of cells, it is natural to build one from them. The first +example is achieved in the most basic way possible: simple framed cells, all of the same size +and left aligned. The result is rudimentary but very quick to obtain. +
+
+The second table brings some improvements: each column has its own width, titles are centered +and figures right aligned. Moreover, horizontal lines have been removed. This is done by means +of the border parameter of the Cell() method, which specifies which sides of the +cell must be drawn. Here we want the left (L) and right (R) ones. It remains +the problem of the horizontal line to finish the table. There are two possibilities: either +check for the last line in the loop, in which case we use LRB for the border +parameter; or, as done here, add the line once the loop is over. +
+
+The third table is similar to the second one but uses colors. Fill, text and line colors are +simply specified. Alternate coloring for rows is obtained by using alternatively transparent +and filled cells. + + diff --git a/phplib/fpdf153/tutorial/tuto5.php b/phplib/fpdf153/tutorial/tuto5.php new file mode 100644 index 0000000..4a1fbfc --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto5.php @@ -0,0 +1,101 @@ +Cell(40,7,$col,1); + $this->Ln(); + //Data + foreach($data as $row) + { + foreach($row as $col) + $this->Cell(40,6,$col,1); + $this->Ln(); + } +} + +//Better table +function ImprovedTable($header,$data) +{ + //Column widths + $w=array(40,35,40,45); + //Header + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); + $this->Ln(); + //Data + foreach($data as $row) + { + $this->Cell($w[0],6,$row[0],'LR'); + $this->Cell($w[1],6,$row[1],'LR'); + $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R'); + $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R'); + $this->Ln(); + } + //Closure line + $this->Cell(array_sum($w),0,'','T'); +} + +//Colored table +function FancyTable($header,$data) +{ + //Colors, line width and bold font + $this->SetFillColor(255,0,0); + $this->SetTextColor(255); + $this->SetDrawColor(128,0,0); + $this->SetLineWidth(.3); + $this->SetFont('','B'); + //Header + $w=array(40,35,40,45); + for($i=0;$iCell($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'); +} +} + +$pdf=new PDF(); +//Column titles +$header=array('Country','Capital','Area (sq km)','Pop. (thousands)'); +//Data loading +$data=$pdf->LoadData('countries.txt'); +$pdf->SetFont('Arial','',14); +$pdf->AddPage(); +$pdf->BasicTable($header,$data); +$pdf->AddPage(); +$pdf->ImprovedTable($header,$data); +$pdf->AddPage(); +$pdf->FancyTable($header,$data); +$pdf->Output(); +?> diff --git a/phplib/fpdf153/tutorial/tuto6.htm b/phplib/fpdf153/tutorial/tuto6.htm new file mode 100644 index 0000000..9496a3d --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto6.htm @@ -0,0 +1,183 @@ + + + + +Links and flowing text + + + +

Links and flowing text

+This tutorial explains how to insert links (internal and external) and shows a new text writing +mode. It also contains a rudimentary HTML parser. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+var $B;
+var $I;
+var $U;
+var $HREF;
+
+function PDF($orientation='P',$unit='mm',$format='A4')
+{
+    //Call parent constructor
+    $this->FPDF($orientation,$unit,$format);
+    //Initialization
+    $this->B=0;
+    $this->I=0;
+    $this->U=0;
+    $this->HREF='';
+}
+
+function WriteHTML($html)
+{
+    //HTML parser
+    $html=str_replace("\n",' ',$html);
+    $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
+    foreach($a as $i=>$e)
+    {
+        if($i%2==0)
+        {
+            //Text
+            if($this->HREF)
+                $this->PutLink($this->HREF,$e);
+            else
+                $this->Write(5,$e);
+        }
+        else
+        {
+            //Tag
+            if($e{0}=='/')
+                $this->CloseTag(strtoupper(substr($e,1)));
+            else
+            {
+                //Extract attributes
+                $a2=explode(' ',$e);
+                $tag=strtoupper(array_shift($a2));
+                $attr=array();
+                foreach($a2 as $v)
+                    if(ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3))
+                        $attr[strtoupper($a3[1])]=$a3[2];
+                $this->OpenTag($tag,$attr);
+            }
+        }
+    }
+}
+
+function OpenTag($tag,$attr)
+{
+    //Opening tag
+    if($tag=='B' or $tag=='I' or $tag=='U')
+        $this->SetStyle($tag,true);
+    if($tag=='A')
+        $this->HREF=$attr['HREF'];
+    if($tag=='BR')
+        $this->Ln(5);
+}
+
+function CloseTag($tag)
+{
+    //Closing tag
+    if($tag=='B' or $tag=='I' or $tag=='U')
+        $this->SetStyle($tag,false);
+    if($tag=='A')
+        $this->HREF='';
+}
+
+function SetStyle($tag,$enable)
+{
+    //Modify style and select corresponding font
+    $this->$tag+=($enable ? 1 : -1);
+    $style='';
+    foreach(array('B','I','U') as $s)
+        if($this->$s>0)
+            $style.=$s;
+    $this->SetFont('',$style);
+}
+
+function PutLink($URL,$txt)
+{
+    //Put a hyperlink
+    $this->SetTextColor(0,0,255);
+    $this->SetStyle('U',true);
+    $this->Write(5,$txt,$URL);
+    $this->SetStyle('U',false);
+    $this->SetTextColor(0);
+}
+}
+
+$html='You can now easily print text mixing different
+styles : <B>bold</B>, <I>italic</I>, <U>underlined</U>, or
+<B><I><U>all at once</U></I></B>!<BR>You can also insert links
+on text, such as <A HREF="http://www.fpdf.org">www.fpdf.org</A>,
+or on an image: click on the logo.';
+
+$pdf=new PDF();
+//First page
+$pdf->AddPage();
+$pdf->SetFont('Arial','',20);
+$pdf->Write(5,'To find out what\'s new in this tutorial, click ');
+$pdf->SetFont('','U');
+$link=$pdf->AddLink();
+$pdf->Write(5,'here',$link);
+$pdf->SetFont('');
+//Second page
+$pdf->AddPage();
+$pdf->SetLink($link);
+$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org');
+$pdf->SetLeftMargin(45);
+$pdf->SetFontSize(14);
+$pdf->WriteHTML($html);
+$pdf->Output();
+?>
+
+ +The new method to print text is Write(). It is very close to MultiCell(); the differences +are: +
    +
  • The end of line is at the right margin and the next line begins at the left one +
  • The current position moves at the end of the text +
+So it allows to write a chunk of text, alter the font style, then continue from the exact +place we left it. On the other hand, you cannot full justify it. +
+
+The method is used on the first page to put a link pointing to the second one. The beginning of +the sentence is written in regular style, then we switch to underline and finish it. The link +is created with AddLink(), which returns a link identifier. The identifier is +passed as third parameter of Write(). Once the second page is created, we use SetLink() to +make the link point to the beginning of the current page. +
+
+Then we put an image with a link on it. An external link points to an URL (HTTP, mailto...). +The URL is simply passed as last parameter of Image(). +Note that external links do not work when the PDF is displayed inside Netscape's plug-in. +
+
+Finally, the left margin is moved after the image with SetLeftMargin() and some text in +HTML format is output. An HTML parser is used for this, based on the regular expression splitting +function preg_split() and the option PREG_SPLIT_DELIM_CAPTURE (introduced in PHP 4.0.5) which +allows to fetch the separators as well (in this case the tags). If you use an older version of +PHP, replace the line with this one: +
+
$a=preg_split('/[<>]/',$html);
+
+
+which is less strict but gives the same results with valid HTML. +
+Recognized tags are <B>, <I>, <U>, <A> and <BR>; the others are +ignored. The parser also makes use of the Write() method. An external link is put the same way as +an internal one (third parameter of Write()). +
+Note that Cell() also allows to put links. + + diff --git a/phplib/fpdf153/tutorial/tuto6.php b/phplib/fpdf153/tutorial/tuto6.php new file mode 100644 index 0000000..706cbd9 --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto6.php @@ -0,0 +1,122 @@ +FPDF($orientation,$unit,$format); + //Initialization + $this->B=0; + $this->I=0; + $this->U=0; + $this->HREF=''; +} + +function WriteHTML($html) +{ + //HTML parser + $html=str_replace("\n",' ',$html); + $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); + foreach($a as $i=>$e) + { + if($i%2==0) + { + //Text + if($this->HREF) + $this->PutLink($this->HREF,$e); + else + $this->Write(5,$e); + } + else + { + //Tag + if($e{0}=='/') + $this->CloseTag(strtoupper(substr($e,1))); + else + { + //Extract attributes + $a2=explode(' ',$e); + $tag=strtoupper(array_shift($a2)); + $attr=array(); + foreach($a2 as $v) + if(ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3)) + $attr[strtoupper($a3[1])]=$a3[2]; + $this->OpenTag($tag,$attr); + } + } + } +} + +function OpenTag($tag,$attr) +{ + //Opening tag + if($tag=='B' or $tag=='I' or $tag=='U') + $this->SetStyle($tag,true); + if($tag=='A') + $this->HREF=$attr['HREF']; + if($tag=='BR') + $this->Ln(5); +} + +function CloseTag($tag) +{ + //Closing tag + if($tag=='B' or $tag=='I' or $tag=='U') + $this->SetStyle($tag,false); + if($tag=='A') + $this->HREF=''; +} + +function SetStyle($tag,$enable) +{ + //Modify style and select corresponding font + $this->$tag+=($enable ? 1 : -1); + $style=''; + foreach(array('B','I','U') as $s) + if($this->$s>0) + $style.=$s; + $this->SetFont('',$style); +} + +function PutLink($URL,$txt) +{ + //Put a hyperlink + $this->SetTextColor(0,0,255); + $this->SetStyle('U',true); + $this->Write(5,$txt,$URL); + $this->SetStyle('U',false); + $this->SetTextColor(0); +} +} + +$html='You can now easily print text mixing different +styles : bold, italic, underlined, or +all at once!
You can also insert links +on text, such as www.fpdf.org, +or on an image: click on the logo.'; + +$pdf=new PDF(); +//First page +$pdf->AddPage(); +$pdf->SetFont('Arial','',20); +$pdf->Write(5,'To find out what\'s new in this tutorial, click '); +$pdf->SetFont('','U'); +$link=$pdf->AddLink(); +$pdf->Write(5,'here',$link); +$pdf->SetFont(''); +//Second page +$pdf->AddPage(); +$pdf->SetLink($link); +$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org'); +$pdf->SetLeftMargin(45); +$pdf->SetFontSize(14); +$pdf->WriteHTML($html); +$pdf->Output(); +?> diff --git a/phplib/fpdf153/tutorial/tuto7.htm b/phplib/fpdf153/tutorial/tuto7.htm new file mode 100644 index 0000000..92c132b --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto7.htm @@ -0,0 +1,310 @@ + + + + +Adding new fonts and encoding support + + + + +

Adding new fonts and encoding support

+This tutorial explains how to use TrueType or Type1 fonts so that you are not limited to the standard +fonts any more. The other interest is that you can choose the font encoding, which allows you to +use other languages than the Western ones (the standard fonts having too few available characters). +
+
+There are two ways to use a new font: embedding it in the PDF or not. When a font is not +embedded, it is sought in the system. The advantage is that the PDF file is lighter; on the other +hand, if it is not available, a substitution font is used. So it is preferable to ensure that the +needed font is installed on the client systems. If the file is to be viewed by a large audience, +it is better to embed. +
+
+Adding a new font requires three steps for TrueTypes: +
    +
  • Generation of the metric file (.afm) +
  • Generation of the font definition file (.php) +
  • Declaration of the font in the script +
+For Type1, the first one is theoretically not necessary because the AFM file is usually shipped +with the font. In case you have only a metric file in PFM format, use the convertor available +here. +

Generation of the metric file

+The first step for a TrueType consists in generating the AFM file. A utility exists to do this +task: ttf2pt1. The Windows binary +is available here. The command line to use is +the following: +
+
+ttf2pt1 -a font.ttf font +
+
+For example, for Comic Sans MS Regular: +
+
+ttf2pt1 -a c:\windows\fonts\comic.ttf comic +
+
+Two files are created; the one we are interested in is comic.afm. +

Generation of the font definition file

+The second step consists in generating a PHP file containing all the information needed by FPDF; +in addition, the font file is compressed. To do this, a helper script is provided in the font/makefont/ +directory of the package: makefont.php. It contains the following function: +
+
+MakeFont(string fontfile, string afmfile [, string enc [, array patch [, string type]]]) +
+
fontfile
+
+

Path to the .ttf or .pfb file.

+
+
afmfile
+
+

Path to the .afm file.

+
+
enc
+
+

Name of the encoding to use. Default value: cp1252.

+
+
patch
+
+

Optional modification of the encoding. Empty by default.

+
+
type
+
+

Type of the font (TrueType or Type1). Default value: TrueType.

+
+
+The first parameter is the name of the font file. The extension must be either .ttf or .pfb and +determines the font type. If you own a Type1 font in ASCII format (.pfa), you can convert it to +binary format with t1utils. +
+If you don't want to embed the font, pass an empty string. In this case, type is given by the +type parameter. +
+Note: in the case of a font with the same name as a standard one, for instance arial.ttf, it is +recommended to embed. If you don't, some versions of Acrobat will use their own fonts. +
+
+The AFM file is the one previously generated. +
+
+The encoding defines the association between a code (from 0 to 255) and a character. The first +128 are fixed and correspond to ASCII; the following are variable. The encodings are stored in +.map files. Those available are: +
    +
  • cp1250 (Central Europe) +
  • cp1251 (Cyrillic) +
  • cp1252 (Western Europe) +
  • cp1253 (Greek) +
  • cp1254 (Turkish) +
  • cp1255 (Hebrew) +
  • cp1257 (Baltic) +
  • cp1258 (Vietnamese) +
  • cp874 (Thai) +
  • ISO-8859-1 (Western Europe) +
  • ISO-8859-2 (Central Europe) +
  • ISO-8859-4 (Baltic) +
  • ISO-8859-5 (Cyrillic) +
  • ISO-8859-7 (Greek) +
  • ISO-8859-9 (Turkish) +
  • ISO-8859-11 (Thai) +
  • ISO-8859-15 (Western Europe) +
  • ISO-8859-16 (Central Europe) +
  • KOI8-R (Russian) +
  • KOI8-U (Ukrainian) +
+Of course, the font must contain the characters corresponding to the chosen encoding. +
+In the particular case of a symbolic font (that is to say which does not contain letters, such +as Symbol or ZapfDingbats), pass an empty string. +
+The encodings which begin with cp are those used by Windows; Linux systems usually use ISO. +
+Remark: the standard fonts use cp1252. +
+
+The fourth parameter gives the possibility to alter the encoding. Sometimes you may want to add +some characters. For instance, ISO-8859-1 does not contain the euro symbol. To add it at position +164, pass array(164=>'Euro'). +
+
+The last parameter is used to give the type of the font in case it is not embedded (that is to +say the first parameter is empty). +
+
+After you have called the function (create a new file for this and include makefont.php, or +simply add the call directly inside), a .php file is created, with the same name as the .afm one. +You may rename it if you wish. If the case of embedding, the font file is compressed and gives a +second file with .z as extension (except if the compression function is not available, it +requires zlib). You may rename it too, but in this case you have to alter the variable $file +in the .php file accordingly. +
+
+Example: +
+
MakeFont('c:\\windows\\fonts\\comic.ttf','comic.afm','cp1252');
+
+
+which gives the files comic.php and comic.z. +
+
+Then you have to copy the generated file(s) to the font directory. If the font file +could not be compressed, copy the .ttf or .pfb instead of the .z. +
+
+Remark: for TTF fonts, you can generate the files online here +instead of doing it manually. +

Declaration of the font in the script

+The last step is the most simple. You just need to call the AddFont() method. For instance: +
+
$pdf->AddFont('Comic','','comic.php');
+
+
+or simply: +
+
$pdf->AddFont('Comic');
+
+
+And the font is now available (in regular and underlined styles), usable like the others. If we +had worked with Comic Sans MS Bold (comicbd.ttf), we would have put: +
+
$pdf->AddFont('Comic','B','comicbd.php');
+
+
+

Example

+Let's now see a small complete example. The font used is Calligrapher, available at +www.abstractfonts.com (a site +offering numerous free TrueType fonts). The first step is the generation of the AFM file: +
+
+ttf2pt1 -a calligra.ttf calligra +
+
+which gives calligra.afm (and calligra.t1a that we can delete). Then we generate the definition +file: +
+
<?php
+require('font/makefont/makefont.php');
+
+MakeFont('calligra.ttf','calligra.afm');
+?>
+
+The function call gives the following report: +
+
+Warning: character Euro is missing
+Warning: character Zcaron is missing
+Warning: character zcaron is missing
+Warning: character eth is missing
+Font file compressed (calligra.z)
+Font definition file generated (calligra.php)
+
+The euro character is not present in the font (it is too old). Three other characters are missing +too, but we are not interested in them anyway. +
+We can now copy the two files to the font directory and write the script: +
+
<?php
+require('fpdf.php');
+
+$pdf=new FPDF();
+$pdf->AddFont('Calligrapher','','calligra.php');
+
+$pdf->AddPage();
+$pdf->SetFont('Calligrapher','',35);
+$pdf->Cell(0,10,'Enjoy new fonts with FPDF!');
+$pdf->Output();
+?>
+
+ +

About the euro symbol

+The euro character is not present in all encodings, and is not always placed at the same position: + + + + + + + + + + + + + + + + + + + + + + +
EncodingPosition
cp1250128
cp1251136
cp1252128
cp1253128
cp1254128
cp1255128
cp1257128
cp1258128
cp874128
ISO-8859-1absent
ISO-8859-2absent
ISO-8859-4absent
ISO-8859-5absent
ISO-8859-7absent
ISO-8859-9absent
ISO-8859-11absent
ISO-8859-15164
ISO-8859-16164
KOI8-Rabsent
KOI8-Uabsent
+ISO-8859-1 is widespread but does not include the euro sign. If you need it, the simplest thing +to do is using cp1252 or ISO-8859-15 instead, which are nearly identical but contain the precious +symbol. +
+As for ISO-8859-2, it is possible to use ISO-8859-16 instead, but it contains many differences. +It is therefore simpler to patch the encoding to add the symbol to it, as explained above. The +same is true for the other encodings. +

Font synthesis under Windows

+When a TrueType font is not available in a given style, Windows is able to synthesize it from the +regular version. For instance, there is no Comic Sans MS Italic, but it can be built from Comic +Sans MS Regular. This feature can be used in a PDF file, but unfortunately requires that the +regular font be present in the system (you must not embed it). Here is how to do it: +
    +
  • Generate the definition file for the regular font without embedding (you may rename it to +reflect the desired style) +
  • Open it and append to the variable $name a comma followed by the desired style +(Italic, Bold or BoldItalic) +
+For instance, for the file comici.php: +
+
+$name='ComicSansMS,Italic'; +
+
+It can then be used normally: +
+
$pdf->AddFont('Comic','I','comici.php');
+
+
+

Reducing the size of TrueType fonts

+Font files are often quite voluminous (more than 100, even 200KB); this is due to the fact that +they contain the characters corresponding to many encodings. zlib compression reduces them but +they remain fairly big. A technique exists to reduce them further. It consists in converting the +font to the Type1 format with ttf2pt1 by specifying the encoding you are interested in; all other +characters will be discarded. +
+For instance, the arial.ttf font shipped with Windows 98 is 267KB (it contains 1296 characters). +After compression it gives 147. Let's convert it to Type1 by keeping only cp1250 characters: +
+
+ttf2pt1 -b -L cp1250.map c:\windows\fonts\arial.ttf arial +
+
+The .map files are located in the font/makefont/ directory of the package. The command produces +arial.pfb and arial.afm. The arial.pfb file is only 35KB, and 30KB after compression. +
+
+It is possible to go even further. If you are interested only by a subset of the encoding (you +probably don't need all 217 characters), you can open the .map file and remove the lines you are +not interested in. This will reduce the file size accordingly. + + diff --git a/phplib/fpdf153/tutorial/tuto7.php b/phplib/fpdf153/tutorial/tuto7.php new file mode 100644 index 0000000..e61078e --- /dev/null +++ b/phplib/fpdf153/tutorial/tuto7.php @@ -0,0 +1,11 @@ +AddFont('Calligrapher','','calligra.php'); +$pdf->AddPage(); +$pdf->SetFont('Calligrapher','',35); +$pdf->Cell(0,10,'Enjoy new fonts with FPDF!'); +$pdf->Output(); +?> diff --git a/phplib/fpdf181/FAQ.htm b/phplib/fpdf181/FAQ.htm new file mode 100755 index 0000000..cd94faa --- /dev/null +++ b/phplib/fpdf181/FAQ.htm @@ -0,0 +1,272 @@ + + + + +FAQ + + + + +

FAQ

+ + +
    +
  • +

    1. What's exactly the license of FPDF? Are there any usage restrictions?

    +FPDF is released under a permissive license: there is no usage restriction. You may embed it +freely in your application (commercial or not), with or without modifications. +
  • + +
  • +

    2. I get the following error when I try to generate a PDF: Some data has already been output, can't send PDF file

    +You must send nothing to the browser except the PDF itself: no HTML, no space, no carriage return. A common +case is having extra blank at the end of an included script file.
    +If you can't figure out where the problem comes from, this other message appearing just before can help you:
    +
    +Warning: Cannot modify header information - headers already sent by (output started at script.php:X)
    +
    +It means that script.php outputs something at line X. Go to this line and fix it. +In case the message doesn't show, first check that you didn't disable warnings, then add this at the very +beginning of your script: +
    +
    ob_end_clean();
    +
    +If you still don't see it, disable zlib.output_compression in your php.ini and it should appear. +
  • + +
  • +

    3. Accented letters are replaced with some strange characters like é.

    +Don't use UTF-8 with the standard fonts; they expect text encoded in ISO-8859-1 or windows-1252. +You can use utf8_decode() to perform a conversion to ISO-8859-1: +
    +
    $str = utf8_decode($str);
    +
    +But some characters such as Euro won't be translated correctly. If the iconv extension is available, the +right way to do it is the following: +
    +
    $str = iconv('UTF-8', 'windows-1252', $str);
    +
    +In case you need characters outside windows-1252, take a look at tutorial #7 or +tFPDF. +
  • + +
  • +

    4. I try to display the Euro symbol but it doesn't work.

    +The standard fonts have the Euro character at position 128. You can define a constant like this +for convenience: +
    +
    define('EURO', chr(128));
    +
    +
  • + +
  • +

    5. I try to display a variable in the Header method but nothing prints.

    +You have to use the global keyword to access global variables, for example: +
    +
    function Header()
    +{
    +    global $title;
    +
    +    $this->SetFont('Arial', 'B', 15);
    +    $this->Cell(0, 10, $title, 1, 1, 'C');
    +}
    +
    +$title = 'My title';
    +
    +Alternatively, you can use an object property: +
    +
    function Header()
    +{
    +    $this->SetFont('Arial', 'B', 15);
    +    $this->Cell(0, 10, $this->title, 1, 1, 'C');
    +}
    +
    +$pdf->title = 'My title';
    +
    +
  • + +
  • +

    6. I have defined the Header and Footer methods in my PDF class but nothing shows.

    +You have to create an object from the PDF class, not FPDF: +
    +
    $pdf = new PDF();
    +
    +
  • + +
  • +

    7. I can't make line breaks work. I put \n in the string printed by MultiCell but it doesn't work.

    +You have to enclose your string with double quotes, not single ones. +
  • + +
  • +

    8. I use jQuery to generate the PDF but it doesn't show.

    +Don't use an AJAX request to retrieve the PDF. +
  • + +
  • +

    9. I draw a frame with very precise dimensions, but when printed I notice some differences.

    +To respect dimensions, select "None" for the Page Scaling setting instead of "Shrink to Printable Area" in the print dialog box. +
  • + +
  • +

    10. I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?

    +Printers have physical margins (different depending on the models); it is therefore impossible to remove +them and print on the whole surface of the paper. +
  • + +
  • +

    11. How can I put a background in my PDF?

    +For a picture, call Image() in the Header() method, before any other output. To set a background color, use Rect(). +
  • + +
  • +

    12. How can I set a specific header or footer on the first page?

    +Just test the page number: +
    +
    function Header()
    +{
    +    if($this->PageNo()==1)
    +    {
    +        //First page
    +        ...
    +    }
    +    else
    +    {
    +        //Other pages
    +        ...
    +    }
    +}
    +
    +
  • + +
  • +

    13. I'd like to use extensions provided by different scripts. How can I combine them?

    +Use an inheritance chain. If you have two classes, say A in a.php: +
    +
    require('fpdf.php');
    +
    +class A extends FPDF
    +{
    +...
    +}
    +
    +and B in b.php: +
    +
    require('fpdf.php');
    +
    +class B extends FPDF
    +{
    +...
    +}
    +
    +then make B extend A: +
    +
    require('a.php');
    +
    +class B extends A
    +{
    +...
    +}
    +
    +and make your own class extend B: +
    +
    require('b.php');
    +
    +class PDF extends B
    +{
    +...
    +}
    +
    +$pdf = new PDF();
    +
    +
  • + +
  • +

    14. How can I open the PDF in a new tab?

    +Just do the same as you would for an HTML page or anything else: add a target="_blank" to your link or form. +
  • + +
  • +

    15. How can I send the PDF by email?

    +As for any other file, but an easy way is to use PHPMailer and +its in-memory attachment: +
    +
    $mail = new PHPMailer();
    +...
    +$doc = $pdf->Output('S');
    +$mail->AddStringAttachment($doc, 'doc.pdf', 'base64', 'application/pdf');
    +$mail->Send();
    +
    +
  • + +
  • +

    16. What's the limit of the file sizes I can generate with FPDF?

    +There is no particular limit. There are some constraints, however: +
    +
    +- There is usually a maximum memory size allocated to PHP scripts. For very big documents, +especially with images, the limit may be reached (the file being built in memory). The +parameter is configured in the php.ini file. +
    +
    +- The maximum execution time allocated to scripts defaults to 30 seconds. This limit can of course +be easily reached. It is configured in php.ini and may be altered dynamically with set_time_limit(). +
    +
    +You can work around the memory limit with this script. +
  • + +
  • +

    17. Can I modify a PDF with FPDF?

    +It's possible to import pages from an existing PDF document thanks to the +FPDI extension. +Then you can add some content to them. +
  • + +
  • +

    18. I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?

    +No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from a PDF. +It's provided with the Xpdf package. +
  • + +
  • +

    19. Can I convert an HTML page to PDF with FPDF?

    +Not real-world pages. But a GPL C utility does exist, HTMLDOC, +which allows to do it and gives good results. +
  • + +
  • +

    20. Can I concatenate PDF files with FPDF?

    +Not directly, but it's possible to use FPDI +to perform that task. Some free command-line tools also exist: +pdftk and +mbtPdfAsm. +
  • +
+ + diff --git a/phplib/fpdf181/changelog.htm b/phplib/fpdf181/changelog.htm new file mode 100755 index 0000000..ecac920 --- /dev/null +++ b/phplib/fpdf181/changelog.htm @@ -0,0 +1,163 @@ + + + + +Changelog + + + + +

Changelog

+
+
v1.81 (2015-12-20)
+
+- Added GetPageWidth() and GetPageHeight().
+- Fixed a bug in SetXY().
+
+
v1.8 (2015-11-29)
+
+- PHP 5.1.0 or higher is now required.
+- The MakeFont utility now subsets fonts, which can greatly reduce font sizes.
+- Added ToUnicode CMaps to improve text extraction.
+- Added a parameter to AddPage() to rotate the page.
+- Added a parameter to SetY() to indicate whether the x position should be reset or not.
+- Added a parameter to Output() to specify the encoding of the name, and special characters are now properly encoded. Additionally the order of the first two parameters was reversed to be more logical (however the old order is still supported for compatibility).
+- The Error() method now throws an exception.
+- Adding contents before the first AddPage() or after Close() now raises an error.
+- Outputting text with no font selected now raises an error.
+
+
v1.7 (2011-06-18)
+
+- The MakeFont utility has been completely rewritten and doesn't depend on ttf2pt1 anymore.
+- Alpha channel is now supported for PNGs.
+- When inserting an image, it's now possible to specify its resolution.
+- Default resolution for images was increased from 72 to 96 dpi.
+- When inserting a GIF image, no temporary file is used anymore if the PHP version is 5.1 or higher.
+- When output buffering is enabled and the PDF is about to be sent, the buffer is now cleared if it contains only a UTF-8 BOM and/or whitespace (instead of throwing an error).
+- Symbol and ZapfDingbats fonts now support underline style.
+- Custom page sizes are now checked to ensure that width is smaller than height.
+- Standard font files were changed to use the same format as user fonts.
+- A bug in the embedding of Type1 fonts was fixed.
+- A bug related to SetDisplayMode() and the current locale was fixed.
+- A display issue occurring with the Adobe Reader X plug-in was fixed.
+- An issue related to transparency with some versions of Adobe Reader was fixed.
+- The Content-Length header was removed because it caused an issue when the HTTP server applies compression.
+
+
v1.6 (2008-08-03)
+
+- PHP 4.3.10 or higher is now required.
+- GIF image support.
+- Images can now trigger page breaks.
+- Possibility to have different page formats in a single document.
+- Document properties (author, creator, keywords, subject and title) can now be specified in UTF-8.
+- Fixed a bug: when a PNG was inserted through a URL, an error sometimes occurred.
+- An automatic page break in Header() doesn't cause an infinite loop any more.
+- Removed some warning messages appearing with recent PHP versions.
+- Added HTTP headers to reduce problems with IE.
+
+
v1.53 (2004-12-31)
+
+- When the font subdirectory is in the same directory as fpdf.php, it's no longer necessary to define the FPDF_FONTPATH constant.
+- The array $HTTP_SERVER_VARS is no longer used. It could cause trouble on PHP5-based configurations with the register_long_arrays option disabled.
+- Fixed a problem related to Type1 font embedding which caused trouble to some PDF processors.
+- The file name sent to the browser could not contain a space character.
+- The Cell() method could not print the number 0 (you had to pass the string '0').
+
+
v1.52 (2003-12-30)
+
+- Image() now displays the image at 72 dpi if no dimension is given.
+- Output() takes a string as second parameter to indicate destination.
+- Open() is now called automatically by AddPage().
+- Inserting remote JPEG images doesn't generate an error any longer.
+- Decimal separator is forced to dot in the constructor.
+- Added several encodings (Turkish, Thai, Hebrew, Ukrainian and Vietnamese).
+- The last line of a right-aligned MultiCell() was not correctly aligned if it was terminated by a carriage return.
+- No more error message about already sent headers when outputting the PDF to the standard output from the command line.
+- The underlining was going too far for text containing characters \, ( or ).
+- $HTTP_ENV_VARS has been replaced by $HTTP_SERVER_VARS.
+
+
v1.51 (2002-08-03)
+
+- Type1 font support.
+- Added Baltic encoding.
+- The class now works internally in points with the origin at the bottom in order to avoid two bugs occurring with Acrobat 5:
  * The line thickness was too large when printed under Windows 98 SE and ME.
  * TrueType fonts didn't appear immediately inside the plug-in (a substitution font was used), one had to cause a window refresh to make them show up.
+- It's no longer necessary to set the decimal separator as dot to produce valid documents.
+- The clickable area in a cell was always on the left independently from the text alignment.
+- JPEG images in CMYK mode appeared in inverted colors.
+- Transparent PNG images in grayscale or true color mode were incorrectly handled.
+- Adding new fonts now works correctly even with the magic_quotes_runtime option set to on.
+
+
v1.5 (2002-05-28)
+
+- TrueType font (AddFont()) and encoding support (Western and Eastern Europe, Cyrillic and Greek).
+- Added Write() method.
+- Added underlined style.
+- Internal and external link support (AddLink(), SetLink(), Link()).
+- Added right margin management and methods SetRightMargin(), SetTopMargin().
+- Modification of SetDisplayMode() to select page layout.
+- The border parameter of MultiCell() now lets choose borders to draw as Cell().
+- When a document contains no page, Close() now calls AddPage() instead of causing a fatal error.
+
+
v1.41 (2002-03-13)
+
+- Fixed SetDisplayMode() which no longer worked (the PDF viewer used its default display).
+
+
v1.4 (2002-03-02)
+
+- PHP3 is no longer supported.
+- Page compression (SetCompression()).
+- Choice of page format and possibility to change orientation inside document.
+- Added AcceptPageBreak() method.
+- Ability to print the total number of pages (AliasNbPages()).
+- Choice of cell borders to draw.
+- New mode for Cell(): the current position can now move under the cell.
+- Ability to include an image by specifying height only (width is calculated automatically).
+- Fixed a bug: when a justified line triggered a page break, the footer inherited the corresponding word spacing.
+
+
v1.31 (2002-01-12)
+
+- Fixed a bug in drawing frame with MultiCell(): the last line always started from the left margin.
+- Removed Expires HTTP header (gives trouble in some situations).
+- Added Content-disposition HTTP header (seems to help in some situations).
+
+
v1.3 (2001-12-03)
+
+- Line break and text justification support (MultiCell()).
+- Color support (SetDrawColor(), SetFillColor(), SetTextColor()). Possibility to draw filled rectangles and paint cell background.
+- A cell whose width is declared null extends up to the right margin of the page.
+- Line width is now retained from page to page and defaults to 0.2 mm.
+- Added SetXY() method.
+- Fixed a passing by reference done in a deprecated manner for PHP4.
+
+
v1.2 (2001-11-11)
+
+- Added font metric files and GetStringWidth() method.
+- Centering and right-aligning text in cells.
+- Display mode control (SetDisplayMode()).
+- Added methods to set document properties (SetAuthor(), SetCreator(), SetKeywords(), SetSubject(), SetTitle()).
+- Possibility to force PDF download by browser.
+- Added SetX() and GetX() methods.
+- During automatic page break, current abscissa is now retained.
+
+
v1.11 (2001-10-20)
+
+- PNG support doesn't require PHP4/zlib any more. Data are now put directly into PDF without any decompression/recompression stage.
+- Image insertion now works correctly even with magic_quotes_runtime option set to on.
+
+
v1.1 (2001-10-07)
+
+- JPEG and PNG image support.
+
+
v1.01 (2001-10-03)
+
+- Fixed a bug involving page break: in case when Header() doesn't specify a font, the one from previous page was not restored and produced an incorrect document.
+
+
v1.0 (2001-09-17)
+
+- First version.
+
+
+ + diff --git a/phplib/fpdf181/doc/__construct.htm b/phplib/fpdf181/doc/__construct.htm new file mode 100755 index 0000000..324756f --- /dev/null +++ b/phplib/fpdf181/doc/__construct.htm @@ -0,0 +1,63 @@ + + + + +__construct + + + +

__construct

+__construct([string orientation [, string unit [, mixed size]]]) +

Description

+This is the class constructor. It allows to set up the page size, the orientation and the +unit of measure used in all methods (except for font sizes). +

Parameters

+
+
orientation
+
+Default page orientation. Possible values are (case insensitive): +
    +
  • P or Portrait
  • +
  • L or Landscape
  • +
+Default value is P. +
+
unit
+
+User unit. Possible values are: +
    +
  • pt: point
  • +
  • mm: millimeter
  • +
  • cm: centimeter
  • +
  • in: inch
  • +
+A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This +is a very common unit in typography; font sizes are expressed in that unit. +
+
+Default value is mm. +
+
size
+
+The size used for pages. It can be either one of the following values (case insensitive): +
    +
  • A3
  • +
  • A4
  • +
  • A5
  • +
  • Letter
  • +
  • Legal
  • +
+or an array containing the width and the height (expressed in the unit given by unit).
+
+Default value is A4. +
+
+

Example

+Example with a custom 100x150 mm page size: +
+
$pdf = new FPDF('P','mm',array(100,150));
+
+
+ + + diff --git a/phplib/fpdf181/doc/acceptpagebreak.htm b/phplib/fpdf181/doc/acceptpagebreak.htm new file mode 100755 index 0000000..1b2d3ea --- /dev/null +++ b/phplib/fpdf181/doc/acceptpagebreak.htm @@ -0,0 +1,63 @@ + + + + +AcceptPageBreak + + + +

AcceptPageBreak

+boolean AcceptPageBreak() +

Description

+Whenever a page break condition is met, the method is called, and the break is issued or not +depending on the returned value. The default implementation returns a value according to the +mode selected by SetAutoPageBreak(). +
+This method is called automatically and should not be called directly by the application. +

Example

+The method is overriden in an inherited class in order to obtain a 3 column layout: +
+
class PDF extends FPDF
+{
+var $col = 0;
+
+function SetCol($col)
+{
+    // Move position to a column
+    $this->col = $col;
+    $x = 10+$col*65;
+    $this->SetLeftMargin($x);
+    $this->SetX($x);
+}
+
+function AcceptPageBreak()
+{
+    if($this->col<2)
+    {
+        // Go to next column
+        $this->SetCol($this->col+1);
+        $this->SetY(10);
+        return false;
+    }
+    else
+    {
+        // Go back to first column and issue page break
+        $this->SetCol(0);
+        return true;
+    }
+}
+}
+
+$pdf = new PDF();
+$pdf->AddPage();
+$pdf->SetFont('Arial','',12);
+for($i=1;$i<=300;$i++)
+    $pdf->Cell(0,5,"Line $i",0,1);
+$pdf->Output();
+
+

See also

+SetAutoPageBreak +
+ + + diff --git a/phplib/fpdf181/doc/addfont.htm b/phplib/fpdf181/doc/addfont.htm new file mode 100755 index 0000000..b743191 --- /dev/null +++ b/phplib/fpdf181/doc/addfont.htm @@ -0,0 +1,55 @@ + + + + +AddFont + + + +

AddFont

+AddFont(string family [, string style [, string file]]) +

Description

+Imports a TrueType, OpenType or Type1 font and makes it available. It is necessary to generate a font +definition file first with the MakeFont utility. +
+The definition file (and the font file itself when embedding) must be present in the font directory. +If it is not found, the error "Could not include font definition file" is raised. +

Parameters

+
+
family
+
+Font family. The name can be chosen arbitrarily. If it is a standard family name, it will +override the corresponding font. +
+
style
+
+Font style. Possible values are (case insensitive): +
    +
  • empty string: regular
  • +
  • B: bold
  • +
  • I: italic
  • +
  • BI or IB: bold italic
  • +
+The default value is regular. +
+
file
+
+The font definition file. +
+By default, the name is built from the family and style, in lower case with no space. +
+
+

Example

+
+
$pdf->AddFont('Comic','I');
+
+is equivalent to: +
+
$pdf->AddFont('Comic','I','comici.php');
+
+

See also

+SetFont +
+ + + diff --git a/phplib/fpdf181/doc/addlink.htm b/phplib/fpdf181/doc/addlink.htm new file mode 100755 index 0000000..6260664 --- /dev/null +++ b/phplib/fpdf181/doc/addlink.htm @@ -0,0 +1,26 @@ + + + + +AddLink + + + +

AddLink

+int AddLink() +

Description

+Creates a new internal link and returns its identifier. An internal link is a clickable area +which directs to another place within the document. +
+The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is +defined with SetLink(). +

See also

+Cell, +Write, +Image, +Link, +SetLink +
+ + + diff --git a/phplib/fpdf181/doc/addpage.htm b/phplib/fpdf181/doc/addpage.htm new file mode 100755 index 0000000..fb014f5 --- /dev/null +++ b/phplib/fpdf181/doc/addpage.htm @@ -0,0 +1,61 @@ + + + + +AddPage + + + +

AddPage

+AddPage([string orientation [, mixed size [, int rotation]]]) +

Description

+Adds a new page to the document. If a page is already present, the Footer() method is called +first to output the footer. Then the page is added, the current position set to the top-left +corner according to the left and top margins, and Header() is called to display the header. +
+The font which was set before calling is automatically restored. There is no need to call +SetFont() again if you want to continue with the same font. The same is true for colors and +line width. +
+The origin of the coordinate system is at the top-left corner and increasing ordinates go +downwards. +

Parameters

+
+
orientation
+
+Page orientation. Possible values are (case insensitive): +
    +
  • P or Portrait
  • +
  • L or Landscape
  • +
+The default value is the one passed to the constructor. +
+
size
+
+Page size. It can be either one of the following values (case insensitive): +
    +
  • A3
  • +
  • A4
  • +
  • A5
  • +
  • Letter
  • +
  • Legal
  • +
+or an array containing the width and the height (expressed in user unit).
+
+The default value is the one passed to the constructor. +
+
rotation
+
+Angle by which to rotate the page. It must be a multiple of 90; positive values +mean clockwise rotation. The default value is 0. +
+
+

See also

+__construct, +Header, +Footer, +SetMargins +
+ + + diff --git a/phplib/fpdf181/doc/aliasnbpages.htm b/phplib/fpdf181/doc/aliasnbpages.htm new file mode 100755 index 0000000..26e02c5 --- /dev/null +++ b/phplib/fpdf181/doc/aliasnbpages.htm @@ -0,0 +1,45 @@ + + + + +AliasNbPages + + + +

AliasNbPages

+AliasNbPages([string alias]) +

Description

+Defines an alias for the total number of pages. It will be substituted as the document is +closed. +

Parameters

+
+
alias
+
+The alias. Default value: {nb}. +
+
+

Example

+
+
class PDF extends FPDF
+{
+function Footer()
+{
+    // Go to 1.5 cm from bottom
+    $this->SetY(-15);
+    // Select Arial italic 8
+    $this->SetFont('Arial','I',8);
+    // Print current and total page numbers
+    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
+}
+}
+
+$pdf = new PDF();
+$pdf->AliasNbPages();
+
+

See also

+PageNo, +Footer +
+ + + diff --git a/phplib/fpdf181/doc/cell.htm b/phplib/fpdf181/doc/cell.htm new file mode 100755 index 0000000..f96effb --- /dev/null +++ b/phplib/fpdf181/doc/cell.htm @@ -0,0 +1,104 @@ + + + + +Cell + + + +

Cell

+Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]]) +

Description

+Prints a cell (rectangular area) with optional borders, background color and character string. +The upper-left corner of the cell corresponds to the current position. The text can be aligned +or centered. After the call, the current position moves to the right or to the next line. It is +possible to put a link on the text. +
+If automatic page breaking is enabled and the cell goes beyond the limit, a page break is +done before outputting. +

Parameters

+
+
w
+
+Cell width. If 0, the cell extends up to the right margin. +
+
h
+
+Cell height. +Default value: 0. +
+
txt
+
+String to print. +Default value: empty string. +
+
border
+
+Indicates if borders must be drawn around the cell. The value can be either a number: +
    +
  • 0: no border
  • +
  • 1: frame
  • +
+or a string containing some or all of the following characters (in any order): +
    +
  • L: left
  • +
  • T: top
  • +
  • R: right
  • +
  • B: bottom
  • +
+Default value: 0. +
+
ln
+
+Indicates where the current position should go after the call. Possible values are: +
    +
  • 0: to the right
  • +
  • 1: to the beginning of the next line
  • +
  • 2: below
  • +
+Putting 1 is equivalent to putting 0 and calling Ln() just after. +Default value: 0. +
+
align
+
+Allows to center or align the text. Possible values are: +
    +
  • L or empty string: left align (default value)
  • +
  • C: center
  • +
  • R: right align
  • +
+
+
fill
+
+Indicates if the cell background must be painted (true) or transparent (false). +Default value: false. +
+
link
+
+URL or identifier returned by AddLink(). +
+
+

Example

+
+
// Set font
+$pdf->SetFont('Arial','B',16);
+// Move to 8 cm to the right
+$pdf->Cell(80);
+// Centered text in a framed 20*10 mm cell and line break
+$pdf->Cell(20,10,'Title',1,1,'C');
+
+

See also

+SetFont, +SetDrawColor, +SetFillColor, +SetTextColor, +SetLineWidth, +AddLink, +Ln, +MultiCell, +Write, +SetAutoPageBreak +
+ + + diff --git a/phplib/fpdf181/doc/close.htm b/phplib/fpdf181/doc/close.htm new file mode 100755 index 0000000..a4055ac --- /dev/null +++ b/phplib/fpdf181/doc/close.htm @@ -0,0 +1,21 @@ + + + + +Close + + + +

Close

+Close() +

Description

+Terminates the PDF document. It is not necessary to call this method explicitly because Output() +does it automatically. +
+If the document contains no page, AddPage() is called to prevent from getting an invalid document. +

See also

+Output +
+ + + diff --git a/phplib/fpdf181/doc/error.htm b/phplib/fpdf181/doc/error.htm new file mode 100755 index 0000000..fbbc263 --- /dev/null +++ b/phplib/fpdf181/doc/error.htm @@ -0,0 +1,26 @@ + + + + +Error + + + +

Error

+Error(string msg) +

Description

+This method is automatically called in case of a fatal error; it simply throws an exception +with the provided message.
+An inherited class may override it to customize the error handling but the method should +never return, otherwise the resulting document would probably be invalid. +

Parameters

+
+
msg
+
+The error message. +
+
+
+ + + diff --git a/phplib/fpdf181/doc/footer.htm b/phplib/fpdf181/doc/footer.htm new file mode 100755 index 0000000..bee81cf --- /dev/null +++ b/phplib/fpdf181/doc/footer.htm @@ -0,0 +1,35 @@ + + + + +Footer + + + +

Footer

+Footer() +

Description

+This method is used to render the page footer. It is automatically called by AddPage() and +Close() and should not be called directly by the application. The implementation in FPDF is +empty, so you have to subclass it and override the method if you want a specific processing. +

Example

+
+
class PDF extends FPDF
+{
+function Footer()
+{
+    // Go to 1.5 cm from bottom
+    $this->SetY(-15);
+    // Select Arial italic 8
+    $this->SetFont('Arial','I',8);
+    // Print centered page number
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+}
+
+

See also

+Header +
+ + + diff --git a/phplib/fpdf181/doc/getpageheight.htm b/phplib/fpdf181/doc/getpageheight.htm new file mode 100755 index 0000000..8cd89ff --- /dev/null +++ b/phplib/fpdf181/doc/getpageheight.htm @@ -0,0 +1,18 @@ + + + + +GetPageHeight + + + +

GetPageHeight

+float GetPageHeight() +

Description

+Returns the current page height. +

See also

+GetPageWidth +
+ + + diff --git a/phplib/fpdf181/doc/getpagewidth.htm b/phplib/fpdf181/doc/getpagewidth.htm new file mode 100755 index 0000000..3e898e3 --- /dev/null +++ b/phplib/fpdf181/doc/getpagewidth.htm @@ -0,0 +1,18 @@ + + + + +GetPageWidth + + + +

GetPageWidth

+float GetPageWidth() +

Description

+Returns the current page width. +

See also

+GetPageHeight +
+ + + diff --git a/phplib/fpdf181/doc/getstringwidth.htm b/phplib/fpdf181/doc/getstringwidth.htm new file mode 100755 index 0000000..7cb1119 --- /dev/null +++ b/phplib/fpdf181/doc/getstringwidth.htm @@ -0,0 +1,23 @@ + + + + +GetStringWidth + + + +

GetStringWidth

+float GetStringWidth(string s) +

Description

+Returns the length of a string in user unit. A font must be selected. +

Parameters

+
+
s
+
+The string whose length is to be computed. +
+
+
+ + + diff --git a/phplib/fpdf181/doc/getx.htm b/phplib/fpdf181/doc/getx.htm new file mode 100755 index 0000000..4272502 --- /dev/null +++ b/phplib/fpdf181/doc/getx.htm @@ -0,0 +1,20 @@ + + + + +GetX + + + +

GetX

+float GetX() +

Description

+Returns the abscissa of the current position. +

See also

+SetX, +GetY, +SetY +
+ + + diff --git a/phplib/fpdf181/doc/gety.htm b/phplib/fpdf181/doc/gety.htm new file mode 100755 index 0000000..fb84f5d --- /dev/null +++ b/phplib/fpdf181/doc/gety.htm @@ -0,0 +1,20 @@ + + + + +GetY + + + +

GetY

+float GetY() +

Description

+Returns the ordinate of the current position. +

See also

+SetY, +GetX, +SetX +
+ + + diff --git a/phplib/fpdf181/doc/header.htm b/phplib/fpdf181/doc/header.htm new file mode 100755 index 0000000..0228159 --- /dev/null +++ b/phplib/fpdf181/doc/header.htm @@ -0,0 +1,37 @@ + + + + +Header + + + +

Header

+Header() +

Description

+This method is used to render the page header. It is automatically called by AddPage() and +should not be called directly by the application. The implementation in FPDF is empty, so +you have to subclass it and override the method if you want a specific processing. +

Example

+
+
class PDF extends FPDF
+{
+function Header()
+{
+    // Select Arial bold 15
+    $this->SetFont('Arial','B',15);
+    // Move to the right
+    $this->Cell(80);
+    // Framed title
+    $this->Cell(30,10,'Title',1,0,'C');
+    // Line break
+    $this->Ln(20);
+}
+}
+
+

See also

+Footer +
+ + + diff --git a/phplib/fpdf181/doc/image.htm b/phplib/fpdf181/doc/image.htm new file mode 100755 index 0000000..53a4ec1 --- /dev/null +++ b/phplib/fpdf181/doc/image.htm @@ -0,0 +1,99 @@ + + + + +Image + + + +

Image

+Image(string file [, float x [, float y [, float w [, float h [, string type [, mixed link]]]]]]) +

Description

+Puts an image. The size it will take on the page can be specified in different ways: +
    +
  • explicit width and height (expressed in user unit or dpi)
  • +
  • one explicit dimension, the other being calculated automatically in order to keep the original proportions
  • +
  • no explicit dimension, in which case the image is put at 96 dpi
  • +
+Supported formats are JPEG, PNG and GIF. The GD extension is required for GIF. +
+
+For JPEGs, all flavors are allowed: +
    +
  • gray scales
  • +
  • true colors (24 bits)
  • +
  • CMYK (32 bits)
  • +
+For PNGs, are allowed: +
    +
  • gray scales on at most 8 bits (256 levels)
  • +
  • indexed colors
  • +
  • true colors (24 bits)
  • +
+For GIFs: in case of an animated GIF, only the first frame is displayed.
+
+Transparency is supported.
+
+The format can be specified explicitly or inferred from the file extension.
+
+It is possible to put a link on the image.
+
+Remark: if an image is used several times, only one copy is embedded in the file. +

Parameters

+
+
file
+
+Path or URL of the image. +
+
x
+
+Abscissa of the upper-left corner. If not specified or equal to null, the current abscissa +is used. +
+
y
+
+Ordinate of the upper-left corner. If not specified or equal to null, the current ordinate +is used; moreover, a page break is triggered first if necessary (in case automatic page breaking is enabled) +and, after the call, the current ordinate is moved to the bottom of the image. +
+
w
+
+Width of the image in the page. There are three cases: +
    +
  • If the value is positive, it represents the width in user unit
  • +
  • If the value is negative, the absolute value represents the horizontal resolution in dpi
  • +
  • If the value is not specified or equal to zero, it is automatically calculated
  • +
+
+
h
+
+Height of the image in the page. There are three cases: +
    +
  • If the value is positive, it represents the height in user unit
  • +
  • If the value is negative, the absolute value represents the vertical resolution in dpi
  • +
  • If the value is not specified or equal to zero, it is automatically calculated
  • +
+
+
type
+
+Image format. Possible values are (case insensitive): JPG, JPEG, PNG and GIF. +If not specified, the type is inferred from the file extension. +
+
link
+
+URL or identifier returned by AddLink(). +
+
+

Example

+
+
// Insert a logo in the top-left corner at 300 dpi
+$pdf->Image('logo.png',10,10,-300);
+// Insert a dynamic image from a URL
+$pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');
+
+

See also

+AddLink +
+ + + diff --git a/phplib/fpdf181/doc/index.htm b/phplib/fpdf181/doc/index.htm new file mode 100755 index 0000000..bdb0ac9 --- /dev/null +++ b/phplib/fpdf181/doc/index.htm @@ -0,0 +1,59 @@ + + + + +FPDF 1.81 Reference Manual + + + +

FPDF 1.81 Reference Manual

+__construct - constructor
+AcceptPageBreak - accept or not automatic page break
+AddFont - add a new font
+AddLink - create an internal link
+AddPage - add a new page
+AliasNbPages - define an alias for number of pages
+Cell - print a cell
+Close - terminate the document
+Error - fatal error
+Footer - page footer
+GetPageHeight - get current page height
+GetPageWidth - get current page width
+GetStringWidth - compute string length
+GetX - get current x position
+GetY - get current y position
+Header - page header
+Image - output an image
+Line - draw a line
+Link - put a link
+Ln - line break
+MultiCell - print text with line breaks
+Output - save or send the document
+PageNo - page number
+Rect - draw a rectangle
+SetAuthor - set the document author
+SetAutoPageBreak - set the automatic page breaking mode
+SetCompression - turn compression on or off
+SetCreator - set document creator
+SetDisplayMode - set display mode
+SetDrawColor - set drawing color
+SetFillColor - set filling color
+SetFont - set font
+SetFontSize - set font size
+SetKeywords - associate keywords with document
+SetLeftMargin - set left margin
+SetLineWidth - set line width
+SetLink - set internal link destination
+SetMargins - set margins
+SetRightMargin - set right margin
+SetSubject - set document subject
+SetTextColor - set text color
+SetTitle - set document title
+SetTopMargin - set top margin
+SetX - set current x position
+SetXY - set current x and y positions
+SetY - set current y position and optionally reset x
+Text - print a string
+Write - print flowing text
+ + diff --git a/phplib/fpdf181/doc/line.htm b/phplib/fpdf181/doc/line.htm new file mode 100755 index 0000000..f6b70f0 --- /dev/null +++ b/phplib/fpdf181/doc/line.htm @@ -0,0 +1,38 @@ + + + + +Line + + + +

Line

+Line(float x1, float y1, float x2, float y2) +

Description

+Draws a line between two points. +

Parameters

+
+
x1
+
+Abscissa of first point. +
+
y1
+
+Ordinate of first point. +
+
x2
+
+Abscissa of second point. +
+
y2
+
+Ordinate of second point. +
+
+

See also

+SetLineWidth, +SetDrawColor +
+ + + diff --git a/phplib/fpdf181/doc/link.htm b/phplib/fpdf181/doc/link.htm new file mode 100755 index 0000000..c8fd1cb --- /dev/null +++ b/phplib/fpdf181/doc/link.htm @@ -0,0 +1,46 @@ + + + + +Link + + + +

Link

+Link(float x, float y, float w, float h, mixed link) +

Description

+Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(), +Write() or Image(), but this method can be useful for instance to define a clickable area inside +an image. +

Parameters

+
+
x
+
+Abscissa of the upper-left corner of the rectangle. +
+
y
+
+Ordinate of the upper-left corner of the rectangle. +
+
w
+
+Width of the rectangle. +
+
h
+
+Height of the rectangle. +
+
link
+
+URL or identifier returned by AddLink(). +
+
+

See also

+AddLink, +Cell, +Write, +Image +
+ + + diff --git a/phplib/fpdf181/doc/ln.htm b/phplib/fpdf181/doc/ln.htm new file mode 100755 index 0000000..0183738 --- /dev/null +++ b/phplib/fpdf181/doc/ln.htm @@ -0,0 +1,28 @@ + + + + +Ln + + + +

Ln

+Ln([float h]) +

Description

+Performs a line break. The current abscissa goes back to the left margin and the ordinate +increases by the amount passed in parameter. +

Parameters

+
+
h
+
+The height of the break. +
+By default, the value equals the height of the last printed cell. +
+
+

See also

+Cell +
+ + + diff --git a/phplib/fpdf181/doc/multicell.htm b/phplib/fpdf181/doc/multicell.htm new file mode 100755 index 0000000..ce1e4e6 --- /dev/null +++ b/phplib/fpdf181/doc/multicell.htm @@ -0,0 +1,76 @@ + + + + +MultiCell + + + +

MultiCell

+MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]]) +

Description

+This method allows printing text with line breaks. They can be automatic (as soon as the +text reaches the right border of the cell) or explicit (via the \n character). As many cells +as necessary are output, one below the other. +
+Text can be aligned, centered or justified. The cell block can be framed and the background +painted. +

Parameters

+
+
w
+
+Width of cells. If 0, they extend up to the right margin of the page. +
+
h
+
+Height of cells. +
+
txt
+
+String to print. +
+
border
+
+Indicates if borders must be drawn around the cell block. The value can be either a number: +
    +
  • 0: no border
  • +
  • 1: frame
  • +
+or a string containing some or all of the following characters (in any order): +
    +
  • L: left
  • +
  • T: top
  • +
  • R: right
  • +
  • B: bottom
  • +
+Default value: 0. +
+
align
+
+Sets the text alignment. Possible values are: +
    +
  • L: left alignment
  • +
  • C: center
  • +
  • R: right alignment
  • +
  • J: justification (default value)
  • +
+
+
fill
+
+Indicates if the cell background must be painted (true) or transparent (false). +Default value: false. +
+
+

See also

+SetFont, +SetDrawColor, +SetFillColor, +SetTextColor, +SetLineWidth, +Cell, +Write, +SetAutoPageBreak +
+ + + diff --git a/phplib/fpdf181/doc/output.htm b/phplib/fpdf181/doc/output.htm new file mode 100755 index 0000000..9a905a8 --- /dev/null +++ b/phplib/fpdf181/doc/output.htm @@ -0,0 +1,46 @@ + + + + +Output + + + +

Output

+string Output([string dest [, string name [, boolean isUTF8]]]) +

Description

+Send the document to a given destination: browser, file or string. In the case of a browser, the +PDF viewer may be used or a download may be forced. +
+The method first calls Close() if necessary to terminate the document. +

Parameters

+
+
dest
+
+Destination where to send the document. It can be one of the following: +
    +
  • I: send the file inline to the browser. The PDF viewer is used if available.
  • +
  • D: send to the browser and force a file download with the name given by name.
  • +
  • F: save to a local file with the name given by name (may include a path).
  • +
  • S: return the document as a string.
  • +
+The default value is I. +
+
name
+
+The name of the file. It is ignored in case of destination S.
+The default value is doc.pdf. +
+
isUTF8
+
+Indicates if name is encoded in ISO-8859-1 (false) or UTF-8 (true). +Only used for destinations I and D.
+The default value is false. +
+
+

See also

+Close +
+ + + diff --git a/phplib/fpdf181/doc/pageno.htm b/phplib/fpdf181/doc/pageno.htm new file mode 100755 index 0000000..42063c7 --- /dev/null +++ b/phplib/fpdf181/doc/pageno.htm @@ -0,0 +1,18 @@ + + + + +PageNo + + + +

PageNo

+int PageNo() +

Description

+Returns the current page number. +

See also

+AliasNbPages +
+ + + diff --git a/phplib/fpdf181/doc/rect.htm b/phplib/fpdf181/doc/rect.htm new file mode 100755 index 0000000..0b73acc --- /dev/null +++ b/phplib/fpdf181/doc/rect.htm @@ -0,0 +1,48 @@ + + + + +Rect + + + +

Rect

+Rect(float x, float y, float w, float h [, string style]) +

Description

+Outputs a rectangle. It can be drawn (border only), filled (with no border) or both. +

Parameters

+
+
x
+
+Abscissa of upper-left corner. +
+
y
+
+Ordinate of upper-left corner. +
+
w
+
+Width. +
+
h
+
+Height. +
+
style
+
+Style of rendering. Possible values are: +
    +
  • D or empty string: draw. This is the default value.
  • +
  • F: fill
  • +
  • DF or FD: draw and fill
  • +
+
+
+

See also

+SetLineWidth, +SetDrawColor, +SetFillColor +
+ + + diff --git a/phplib/fpdf181/doc/setauthor.htm b/phplib/fpdf181/doc/setauthor.htm new file mode 100755 index 0000000..31a0458 --- /dev/null +++ b/phplib/fpdf181/doc/setauthor.htm @@ -0,0 +1,33 @@ + + + + +SetAuthor + + + +

SetAuthor

+SetAuthor(string author [, boolean isUTF8]) +

Description

+Defines the author of the document. +

Parameters

+
+
author
+
+The name of the author. +
+
isUTF8
+
+Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
+Default value: false. +
+
+

See also

+SetCreator, +SetKeywords, +SetSubject, +SetTitle +
+ + + diff --git a/phplib/fpdf181/doc/setautopagebreak.htm b/phplib/fpdf181/doc/setautopagebreak.htm new file mode 100755 index 0000000..c8881bf --- /dev/null +++ b/phplib/fpdf181/doc/setautopagebreak.htm @@ -0,0 +1,33 @@ + + + + +SetAutoPageBreak + + + +

SetAutoPageBreak

+SetAutoPageBreak(boolean auto [, float margin]) +

Description

+Enables or disables the automatic page breaking mode. When enabling, the second parameter is +the distance from the bottom of the page that defines the triggering limit. By default, the +mode is on and the margin is 2 cm. +

Parameters

+
+
auto
+
+Boolean indicating if mode should be on or off. +
+
margin
+
+Distance from the bottom of the page. +
+
+

See also

+Cell, +MultiCell, +AcceptPageBreak +
+ + + diff --git a/phplib/fpdf181/doc/setcompression.htm b/phplib/fpdf181/doc/setcompression.htm new file mode 100755 index 0000000..3f81ab0 --- /dev/null +++ b/phplib/fpdf181/doc/setcompression.htm @@ -0,0 +1,31 @@ + + + + +SetCompression + + + +

SetCompression

+SetCompression(boolean compress) +

Description

+Activates or deactivates page compression. When activated, the internal representation of +each page is compressed, which leads to a compression ratio of about 2 for the resulting +document. +
+Compression is on by default. +
+
+Note: the Zlib extension is required for this feature. If not present, compression +will be turned off. +

Parameters

+
+
compress
+
+Boolean indicating if compression must be enabled. +
+
+
+ + + diff --git a/phplib/fpdf181/doc/setcreator.htm b/phplib/fpdf181/doc/setcreator.htm new file mode 100755 index 0000000..ce3bcad --- /dev/null +++ b/phplib/fpdf181/doc/setcreator.htm @@ -0,0 +1,34 @@ + + + + +SetCreator + + + +

SetCreator

+SetCreator(string creator [, boolean isUTF8]) +

Description

+Defines the creator of the document. This is typically the name of the application that +generates the PDF. +

Parameters

+
+
creator
+
+The name of the creator. +
+
isUTF8
+
+Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
+Default value: false. +
+
+

See also

+SetAuthor, +SetKeywords, +SetSubject, +SetTitle +
+ + + diff --git a/phplib/fpdf181/doc/setdisplaymode.htm b/phplib/fpdf181/doc/setdisplaymode.htm new file mode 100755 index 0000000..b8da44f --- /dev/null +++ b/phplib/fpdf181/doc/setdisplaymode.htm @@ -0,0 +1,45 @@ + + + + +SetDisplayMode + + + +

SetDisplayMode

+SetDisplayMode(mixed zoom [, string layout]) +

Description

+Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be +displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a +specific zooming factor or use viewer default (configured in the Preferences menu of Adobe Reader). +The page layout can be specified too: single at once, continuous display, two columns or viewer +default. +

Parameters

+
+
zoom
+
+The zoom to use. It can be one of the following string values: +
    +
  • fullpage: displays the entire page on screen
  • +
  • fullwidth: uses maximum width of window
  • +
  • real: uses real size (equivalent to 100% zoom)
  • +
  • default: uses viewer default mode
  • +
+or a number indicating the zooming factor to use. +
+
layout
+
+The page layout. Possible values are: +
    +
  • single: displays one page at once
  • +
  • continuous: displays pages continuously
  • +
  • two: displays two pages on two columns
  • +
  • default: uses viewer default mode
  • +
+Default value is default. +
+
+
+ + + diff --git a/phplib/fpdf181/doc/setdrawcolor.htm b/phplib/fpdf181/doc/setdrawcolor.htm new file mode 100755 index 0000000..f77af0b --- /dev/null +++ b/phplib/fpdf181/doc/setdrawcolor.htm @@ -0,0 +1,41 @@ + + + + +SetDrawColor + + + +

SetDrawColor

+SetDrawColor(int r [, int g, int b]) +

Description

+Defines the color used for all drawing operations (lines, rectangles and cell borders). It +can be expressed in RGB components or gray scale. The method can be called before the first +page is created and the value is retained from page to page. +

Parameters

+
+
r
+
+If g et b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
+
g
+
+Green component (between 0 and 255). +
+
b
+
+Blue component (between 0 and 255). +
+
+

See also

+SetFillColor, +SetTextColor, +Line, +Rect, +Cell, +MultiCell +
+ + + diff --git a/phplib/fpdf181/doc/setfillcolor.htm b/phplib/fpdf181/doc/setfillcolor.htm new file mode 100755 index 0000000..243a432 --- /dev/null +++ b/phplib/fpdf181/doc/setfillcolor.htm @@ -0,0 +1,40 @@ + + + + +SetFillColor + + + +

SetFillColor

+SetFillColor(int r [, int g, int b]) +

Description

+Defines the color used for all filling operations (filled rectangles and cell backgrounds). +It can be expressed in RGB components or gray scale. The method can be called before the first +page is created and the value is retained from page to page. +

Parameters

+
+
r
+
+If g and b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
+
g
+
+Green component (between 0 and 255). +
+
b
+
+Blue component (between 0 and 255). +
+
+

See also

+SetDrawColor, +SetTextColor, +Rect, +Cell, +MultiCell +
+ + + diff --git a/phplib/fpdf181/doc/setfont.htm b/phplib/fpdf181/doc/setfont.htm new file mode 100755 index 0000000..cd5a3b8 --- /dev/null +++ b/phplib/fpdf181/doc/setfont.htm @@ -0,0 +1,92 @@ + + + + +SetFont + + + +

SetFont

+SetFont(string family [, string style [, float size]]) +

Description

+Sets the font used to print character strings. It is mandatory to call this method +at least once before printing text or the resulting document would not be valid. +
+The font can be either a standard one or a font added via the AddFont() method. Standard fonts +use the Windows encoding cp1252 (Western Europe). +
+The method can be called before the first page is created and the font is kept from page +to page. +
+If you just wish to change the current font size, it is simpler to call SetFontSize(). +
+
+Note: the font definition files must be accessible. They are searched successively in: +
    +
  • The directory defined by the FPDF_FONTPATH constant (if this constant is defined)
  • +
  • The font directory located in the same directory as fpdf.php (if it exists)
  • +
  • The directories accessible through include()
  • +
+Example using FPDF_FONTPATH: +
+
define('FPDF_FONTPATH','/home/www/font');
+require('fpdf.php');
+
+If the file corresponding to the requested font is not found, the error "Could not include font +definition file" is raised. +

Parameters

+
+
family
+
+Family font. It can be either a name defined by AddFont() or one of the standard families (case +insensitive): +
    +
  • Courier (fixed-width)
  • +
  • Helvetica or Arial (synonymous; sans serif)
  • +
  • Times (serif)
  • +
  • Symbol (symbolic)
  • +
  • ZapfDingbats (symbolic)
  • +
+It is also possible to pass an empty string. In that case, the current family is kept. +
+
style
+
+Font style. Possible values are (case insensitive): +
    +
  • empty string: regular
  • +
  • B: bold
  • +
  • I: italic
  • +
  • U: underline
  • +
+or any combination. The default value is regular. +Bold and italic styles do not apply to Symbol and ZapfDingbats. +
+
size
+
+Font size in points. +
+The default value is the current size. If no size has been specified since the beginning of +the document, the value taken is 12. +
+
+

Example

+
+
// Times regular 12
+$pdf->SetFont('Times');
+// Arial bold 14
+$pdf->SetFont('Arial','B',14);
+// Removes bold
+$pdf->SetFont('');
+// Times bold, italic and underlined 14
+$pdf->SetFont('Times','BIU');
+
+

See also

+AddFont, +SetFontSize, +Cell, +MultiCell, +Write +
+ + + diff --git a/phplib/fpdf181/doc/setfontsize.htm b/phplib/fpdf181/doc/setfontsize.htm new file mode 100755 index 0000000..5bb9c39 --- /dev/null +++ b/phplib/fpdf181/doc/setfontsize.htm @@ -0,0 +1,25 @@ + + + + +SetFontSize + + + +

SetFontSize

+SetFontSize(float size) +

Description

+Defines the size of the current font. +

Parameters

+
+
size
+
+The size (in points). +
+
+

See also

+SetFont +
+ + + diff --git a/phplib/fpdf181/doc/setkeywords.htm b/phplib/fpdf181/doc/setkeywords.htm new file mode 100755 index 0000000..2b095fb --- /dev/null +++ b/phplib/fpdf181/doc/setkeywords.htm @@ -0,0 +1,33 @@ + + + + +SetKeywords + + + +

SetKeywords

+SetKeywords(string keywords [, boolean isUTF8]) +

Description

+Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'. +

Parameters

+
+
keywords
+
+The list of keywords. +
+
isUTF8
+
+Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
+Default value: false. +
+
+

See also

+SetAuthor, +SetCreator, +SetSubject, +SetTitle +
+ + + diff --git a/phplib/fpdf181/doc/setleftmargin.htm b/phplib/fpdf181/doc/setleftmargin.htm new file mode 100755 index 0000000..f071372 --- /dev/null +++ b/phplib/fpdf181/doc/setleftmargin.htm @@ -0,0 +1,30 @@ + + + + +SetLeftMargin + + + +

SetLeftMargin

+SetLeftMargin(float margin) +

Description

+Defines the left margin. The method can be called before creating the first page. +
+If the current abscissa gets out of page, it is brought back to the margin. +

Parameters

+
+
margin
+
+The margin. +
+
+

See also

+SetTopMargin, +SetRightMargin, +SetAutoPageBreak, +SetMargins +
+ + + diff --git a/phplib/fpdf181/doc/setlinewidth.htm b/phplib/fpdf181/doc/setlinewidth.htm new file mode 100755 index 0000000..6267230 --- /dev/null +++ b/phplib/fpdf181/doc/setlinewidth.htm @@ -0,0 +1,29 @@ + + + + +SetLineWidth + + + +

SetLineWidth

+SetLineWidth(float width) +

Description

+Defines the line width. By default, the value equals 0.2 mm. The method can be called before +the first page is created and the value is retained from page to page. +

Parameters

+
+
width
+
+The width. +
+
+

See also

+Line, +Rect, +Cell, +MultiCell +
+ + + diff --git a/phplib/fpdf181/doc/setlink.htm b/phplib/fpdf181/doc/setlink.htm new file mode 100755 index 0000000..6767948 --- /dev/null +++ b/phplib/fpdf181/doc/setlink.htm @@ -0,0 +1,34 @@ + + + + +SetLink + + + +

SetLink

+SetLink(int link [, float y [, int page]]) +

Description

+Defines the page and position a link points to. +

Parameters

+
+
link
+
+The link identifier returned by AddLink(). +
+
y
+
+Ordinate of target position; -1 indicates the current position. +The default value is 0 (top of page). +
+
page
+
+Number of target page; -1 indicates the current page. This is the default value. +
+
+

See also

+AddLink +
+ + + diff --git a/phplib/fpdf181/doc/setmargins.htm b/phplib/fpdf181/doc/setmargins.htm new file mode 100755 index 0000000..7dff53b --- /dev/null +++ b/phplib/fpdf181/doc/setmargins.htm @@ -0,0 +1,37 @@ + + + + +SetMargins + + + +

SetMargins

+SetMargins(float left, float top [, float right]) +

Description

+Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change +them. +

Parameters

+
+
left
+
+Left margin. +
+
top
+
+Top margin. +
+
right
+
+Right margin. Default value is the left one. +
+
+

See also

+SetLeftMargin, +SetTopMargin, +SetRightMargin, +SetAutoPageBreak +
+ + + diff --git a/phplib/fpdf181/doc/setrightmargin.htm b/phplib/fpdf181/doc/setrightmargin.htm new file mode 100755 index 0000000..e362caa --- /dev/null +++ b/phplib/fpdf181/doc/setrightmargin.htm @@ -0,0 +1,28 @@ + + + + +SetRightMargin + + + +

SetRightMargin

+SetRightMargin(float margin) +

Description

+Defines the right margin. The method can be called before creating the first page. +

Parameters

+
+
margin
+
+The margin. +
+
+

See also

+SetLeftMargin, +SetTopMargin, +SetAutoPageBreak, +SetMargins +
+ + + diff --git a/phplib/fpdf181/doc/setsubject.htm b/phplib/fpdf181/doc/setsubject.htm new file mode 100755 index 0000000..a0e5be5 --- /dev/null +++ b/phplib/fpdf181/doc/setsubject.htm @@ -0,0 +1,33 @@ + + + + +SetSubject + + + +

SetSubject

+SetSubject(string subject [, boolean isUTF8]) +

Description

+Defines the subject of the document. +

Parameters

+
+
subject
+
+The subject. +
+
isUTF8
+
+Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
+Default value: false. +
+
+

See also

+SetAuthor, +SetCreator, +SetKeywords, +SetTitle +
+ + + diff --git a/phplib/fpdf181/doc/settextcolor.htm b/phplib/fpdf181/doc/settextcolor.htm new file mode 100755 index 0000000..88dc0d3 --- /dev/null +++ b/phplib/fpdf181/doc/settextcolor.htm @@ -0,0 +1,40 @@ + + + + +SetTextColor + + + +

SetTextColor

+SetTextColor(int r [, int g, int b]) +

Description

+Defines the color used for text. It can be expressed in RGB components or gray scale. The +method can be called before the first page is created and the value is retained from page to +page. +

Parameters

+
+
r
+
+If g et b are given, red component; if not, indicates the gray level. +Value between 0 and 255. +
+
g
+
+Green component (between 0 and 255). +
+
b
+
+Blue component (between 0 and 255). +
+
+

See also

+SetDrawColor, +SetFillColor, +Text, +Cell, +MultiCell +
+ + + diff --git a/phplib/fpdf181/doc/settitle.htm b/phplib/fpdf181/doc/settitle.htm new file mode 100755 index 0000000..977646b --- /dev/null +++ b/phplib/fpdf181/doc/settitle.htm @@ -0,0 +1,33 @@ + + + + +SetTitle + + + +

SetTitle

+SetTitle(string title [, boolean isUTF8]) +

Description

+Defines the title of the document. +

Parameters

+
+
title
+
+The title. +
+
isUTF8
+
+Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true).
+Default value: false. +
+
+

See also

+SetAuthor, +SetCreator, +SetKeywords, +SetSubject +
+ + + diff --git a/phplib/fpdf181/doc/settopmargin.htm b/phplib/fpdf181/doc/settopmargin.htm new file mode 100755 index 0000000..4d94e76 --- /dev/null +++ b/phplib/fpdf181/doc/settopmargin.htm @@ -0,0 +1,28 @@ + + + + +SetTopMargin + + + +

SetTopMargin

+SetTopMargin(float margin) +

Description

+Defines the top margin. The method can be called before creating the first page. +

Parameters

+
+
margin
+
+The margin. +
+
+

See also

+SetLeftMargin, +SetRightMargin, +SetAutoPageBreak, +SetMargins +
+ + + diff --git a/phplib/fpdf181/doc/setx.htm b/phplib/fpdf181/doc/setx.htm new file mode 100755 index 0000000..76eec7c --- /dev/null +++ b/phplib/fpdf181/doc/setx.htm @@ -0,0 +1,29 @@ + + + + +SetX + + + +

SetX

+SetX(float x) +

Description

+Defines the abscissa of the current position. If the passed value is negative, it is relative +to the right of the page. +

Parameters

+
+
x
+
+The value of the abscissa. +
+
+

See also

+GetX, +GetY, +SetY, +SetXY +
+ + + diff --git a/phplib/fpdf181/doc/setxy.htm b/phplib/fpdf181/doc/setxy.htm new file mode 100755 index 0000000..57b83c2 --- /dev/null +++ b/phplib/fpdf181/doc/setxy.htm @@ -0,0 +1,31 @@ + + + + +SetXY + + + +

SetXY

+SetXY(float x, float y) +

Description

+Defines the abscissa and ordinate of the current position. If the passed values are negative, +they are relative respectively to the right and bottom of the page. +

Parameters

+
+
x
+
+The value of the abscissa. +
+
y
+
+The value of the ordinate. +
+
+

See also

+SetX, +SetY +
+ + + diff --git a/phplib/fpdf181/doc/sety.htm b/phplib/fpdf181/doc/sety.htm new file mode 100755 index 0000000..f970685 --- /dev/null +++ b/phplib/fpdf181/doc/sety.htm @@ -0,0 +1,33 @@ + + + + +SetY + + + +

SetY

+SetY(float y [, boolean resetX]) +

Description

+Sets the ordinate and optionally moves the current abscissa back to the left margin. If the value +is negative, it is relative to the bottom of the page. +

Parameters

+
+
y
+
+The value of the ordinate. +
+
resetX
+
+Whether to reset the abscissa. Default value: true. +
+
+

See also

+GetX, +GetY, +SetX, +SetXY +
+ + + diff --git a/phplib/fpdf181/doc/text.htm b/phplib/fpdf181/doc/text.htm new file mode 100755 index 0000000..25f69b3 --- /dev/null +++ b/phplib/fpdf181/doc/text.htm @@ -0,0 +1,39 @@ + + + + +Text + + + +

Text

+Text(float x, float y, string txt) +

Description

+Prints a character string. The origin is on the left of the first character, on the baseline. +This method allows to place a string precisely on the page, but it is usually easier to use +Cell(), MultiCell() or Write() which are the standard methods to print text. +

Parameters

+
+
x
+
+Abscissa of the origin. +
+
y
+
+Ordinate of the origin. +
+
txt
+
+String to print. +
+
+

See also

+SetFont, +SetTextColor, +Cell, +MultiCell, +Write +
+ + + diff --git a/phplib/fpdf181/doc/write.htm b/phplib/fpdf181/doc/write.htm new file mode 100755 index 0000000..bd85401 --- /dev/null +++ b/phplib/fpdf181/doc/write.htm @@ -0,0 +1,51 @@ + + + + +Write + + + +

Write

+Write(float h, string txt [, mixed link]) +

Description

+This method prints text from the current position. When the right margin is reached (or the \n +character is met) a line break occurs and text continues from the left margin. Upon method exit, +the current position is left just at the end of the text. +
+It is possible to put a link on the text. +

Parameters

+
+
h
+
+Line height. +
+
txt
+
+String to print. +
+
link
+
+URL or identifier returned by AddLink(). +
+
+

Example

+
+
// Begin with regular font
+$pdf->SetFont('Arial','',14);
+$pdf->Write(5,'Visit ');
+// Then put a blue underlined link
+$pdf->SetTextColor(0,0,255);
+$pdf->SetFont('','U');
+$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');
+
+

See also

+SetFont, +SetTextColor, +AddLink, +MultiCell, +SetAutoPageBreak +
+ + + diff --git a/phplib/fpdf181/font/courier.php b/phplib/fpdf181/font/courier.php new file mode 100755 index 0000000..67dbeda --- /dev/null +++ b/phplib/fpdf181/font/courier.php @@ -0,0 +1,10 @@ +array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/courierb.php b/phplib/fpdf181/font/courierb.php new file mode 100755 index 0000000..62550a4 --- /dev/null +++ b/phplib/fpdf181/font/courierb.php @@ -0,0 +1,10 @@ +array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/courierbi.php b/phplib/fpdf181/font/courierbi.php new file mode 100755 index 0000000..6a3ecc6 --- /dev/null +++ b/phplib/fpdf181/font/courierbi.php @@ -0,0 +1,10 @@ +array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/courieri.php b/phplib/fpdf181/font/courieri.php new file mode 100755 index 0000000..b88e098 --- /dev/null +++ b/phplib/fpdf181/font/courieri.php @@ -0,0 +1,10 @@ +array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/helvetica.php b/phplib/fpdf181/font/helvetica.php new file mode 100755 index 0000000..2be3eca --- /dev/null +++ b/phplib/fpdf181/font/helvetica.php @@ -0,0 +1,21 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, + 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, + chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/helveticab.php b/phplib/fpdf181/font/helveticab.php new file mode 100755 index 0000000..c88394c --- /dev/null +++ b/phplib/fpdf181/font/helveticab.php @@ -0,0 +1,21 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, + chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, + chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/helveticabi.php b/phplib/fpdf181/font/helveticabi.php new file mode 100755 index 0000000..bcea807 --- /dev/null +++ b/phplib/fpdf181/font/helveticabi.php @@ -0,0 +1,21 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722, + 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889, + 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556, + chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611, + chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/helveticai.php b/phplib/fpdf181/font/helveticai.php new file mode 100755 index 0000000..a328b04 --- /dev/null +++ b/phplib/fpdf181/font/helveticai.php @@ -0,0 +1,21 @@ +278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278, + chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584, + ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944, + 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833, + 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556, + chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333, + chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556, + chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/symbol.php b/phplib/fpdf181/font/symbol.php new file mode 100755 index 0000000..5b9147b --- /dev/null +++ b/phplib/fpdf181/font/symbol.php @@ -0,0 +1,20 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549, + ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722, + 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768, + 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576, + 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0, + chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, + chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603, + chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768, + chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042, + chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329, + chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0); +$uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9)); +?> diff --git a/phplib/fpdf181/font/times.php b/phplib/fpdf181/font/times.php new file mode 100755 index 0000000..f78850f --- /dev/null +++ b/phplib/fpdf181/font/times.php @@ -0,0 +1,21 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722, + 'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944, + 'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, + 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333, + chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/timesb.php b/phplib/fpdf181/font/timesb.php new file mode 100755 index 0000000..0516750 --- /dev/null +++ b/phplib/fpdf181/font/timesb.php @@ -0,0 +1,21 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722, + 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000, + 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833, + 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333, + chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722, + chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/timesbi.php b/phplib/fpdf181/font/timesbi.php new file mode 100755 index 0000000..32fe25e --- /dev/null +++ b/phplib/fpdf181/font/timesbi.php @@ -0,0 +1,21 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667, + 'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889, + 'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778, + 'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000, + chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333, + chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667, + chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/timesi.php b/phplib/fpdf181/font/timesi.php new file mode 100755 index 0000000..b0e5a62 --- /dev/null +++ b/phplib/fpdf181/font/timesi.php @@ -0,0 +1,21 @@ +250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250, + chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675, + ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611, + 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833, + 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722, + 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500, + chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980, + chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333, + chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611, + chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722, + chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500, + chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +?> diff --git a/phplib/fpdf181/font/zapfdingbats.php b/phplib/fpdf181/font/zapfdingbats.php new file mode 100755 index 0000000..b9d0309 --- /dev/null +++ b/phplib/fpdf181/font/zapfdingbats.php @@ -0,0 +1,20 @@ +0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0, + chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939, + ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692, + 'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776, + 'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873, + 'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317, + chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0, + chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788, + chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788, + chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918, + chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874, + chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0); +$uv = array(32=>32,33=>array(9985,4),37=>9742,38=>array(9990,4),42=>9755,43=>9758,44=>array(9996,28),72=>9733,73=>array(10025,35),108=>9679,109=>10061,110=>9632,111=>array(10063,4),115=>9650,116=>9660,117=>9670,118=>10070,119=>9687,120=>array(10072,7),128=>array(10088,14),161=>array(10081,7),168=>9827,169=>9830,170=>9829,171=>9824,172=>array(9312,10),182=>array(10102,31),213=>8594,214=>array(8596,2),216=>array(10136,24),241=>array(10161,14)); +?> diff --git a/phplib/fpdf181/fpdf.css b/phplib/fpdf181/fpdf.css new file mode 100755 index 0000000..dd2c540 --- /dev/null +++ b/phplib/fpdf181/fpdf.css @@ -0,0 +1,21 @@ +body {font-family:"Times New Roman",serif} +h1 {font:bold 135% Arial,sans-serif; color:#4000A0; margin-bottom:0.9em} +h2 {font:bold 95% Arial,sans-serif; color:#900000; margin-top:1.5em; margin-bottom:1em} +dl.param dt {text-decoration:underline} +dl.param dd {margin-top:1em; margin-bottom:1em} +dl.param ul {margin-top:1em; margin-bottom:1em} +tt, code, kbd {font-family:"Courier New",Courier,monospace; font-size:82%} +div.source {margin-top:1.4em; margin-bottom:1.3em} +div.source pre {display:table; border:1px solid #24246A; width:100%; margin:0em; font-family:inherit; font-size:100%} +div.source code {display:block; border:1px solid #C5C5EC; background-color:#F0F5FF; padding:6px; color:#000000} +div.doc-source {margin-top:1.4em; margin-bottom:1.3em} +div.doc-source pre {display:table; width:100%; margin:0em; font-family:inherit; font-size:100%} +div.doc-source code {display:block; background-color:#E0E0E0; padding:4px} +.kw {color:#000080; font-weight:bold} +.str {color:#CC0000} +.cmt {color:#008000} +p.demo {text-align:center; margin-top:-0.9em} +a.demo {text-decoration:none; font-weight:bold; color:#0000CC} +a.demo:link {text-decoration:none; font-weight:bold; color:#0000CC} +a.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF} +a.demo:active {text-decoration:none; font-weight:bold; color:#0000FF} diff --git a/phplib/fpdf181/fpdf.php b/phplib/fpdf181/fpdf.php new file mode 100755 index 0000000..cfc0959 --- /dev/null +++ b/phplib/fpdf181/fpdf.php @@ -0,0 +1,1898 @@ +_dochecks(); + // Initialization of properties + $this->state = 0; + $this->page = 0; + $this->n = 2; + $this->buffer = ''; + $this->pages = array(); + $this->PageInfo = array(); + $this->fonts = array(); + $this->FontFiles = array(); + $this->encodings = array(); + $this->cmaps = array(); + $this->images = array(); + $this->links = array(); + $this->InHeader = false; + $this->InFooter = false; + $this->lasth = 0; + $this->FontFamily = ''; + $this->FontStyle = ''; + $this->FontSizePt = 12; + $this->underline = false; + $this->DrawColor = '0 G'; + $this->FillColor = '0 g'; + $this->TextColor = '0 g'; + $this->ColorFlag = false; + $this->WithAlpha = false; + $this->ws = 0; + // Font path + if(defined('FPDF_FONTPATH')) + { + $this->fontpath = FPDF_FONTPATH; + if(substr($this->fontpath,-1)!='/' && substr($this->fontpath,-1)!='\\') + $this->fontpath .= '/'; + } + elseif(is_dir(dirname(__FILE__).'/font')) + $this->fontpath = dirname(__FILE__).'/font/'; + else + $this->fontpath = ''; + // Core fonts + $this->CoreFonts = array('courier', 'helvetica', 'times', 'symbol', 'zapfdingbats'); + // Scale factor + if($unit=='pt') + $this->k = 1; + elseif($unit=='mm') + $this->k = 72/25.4; + elseif($unit=='cm') + $this->k = 72/2.54; + elseif($unit=='in') + $this->k = 72; + else + $this->Error('Incorrect unit: '.$unit); + // Page sizes + $this->StdPageSizes = array('a3'=>array(841.89,1190.55), 'a4'=>array(595.28,841.89), 'a5'=>array(420.94,595.28), + 'letter'=>array(612,792), 'legal'=>array(612,1008)); + $size = $this->_getpagesize($size); + $this->DefPageSize = $size; + $this->CurPageSize = $size; + // Page orientation + $orientation = strtolower($orientation); + if($orientation=='p' || $orientation=='portrait') + { + $this->DefOrientation = 'P'; + $this->w = $size[0]; + $this->h = $size[1]; + } + elseif($orientation=='l' || $orientation=='landscape') + { + $this->DefOrientation = 'L'; + $this->w = $size[1]; + $this->h = $size[0]; + } + else + $this->Error('Incorrect orientation: '.$orientation); + $this->CurOrientation = $this->DefOrientation; + $this->wPt = $this->w*$this->k; + $this->hPt = $this->h*$this->k; + // Page rotation + $this->CurRotation = 0; + // Page margins (1 cm) + $margin = 28.35/$this->k; + $this->SetMargins($margin,$margin); + // Interior cell margin (1 mm) + $this->cMargin = $margin/10; + // Line width (0.2 mm) + $this->LineWidth = .567/$this->k; + // Automatic page break + $this->SetAutoPageBreak(true,2*$margin); + // Default display mode + $this->SetDisplayMode('default'); + // Enable compression + $this->SetCompression(true); + // Set default PDF version number + $this->PDFVersion = '1.3'; +} + +function SetMargins($left, $top, $right=null) +{ + // Set left, top and right margins + $this->lMargin = $left; + $this->tMargin = $top; + if($right===null) + $right = $left; + $this->rMargin = $right; +} + +function SetLeftMargin($margin) +{ + // Set left margin + $this->lMargin = $margin; + if($this->page>0 && $this->x<$margin) + $this->x = $margin; +} + +function SetTopMargin($margin) +{ + // Set top margin + $this->tMargin = $margin; +} + +function SetRightMargin($margin) +{ + // Set right margin + $this->rMargin = $margin; +} + +function SetAutoPageBreak($auto, $margin=0) +{ + // Set auto page break mode and triggering margin + $this->AutoPageBreak = $auto; + $this->bMargin = $margin; + $this->PageBreakTrigger = $this->h-$margin; +} + +function SetDisplayMode($zoom, $layout='default') +{ + // Set display mode in viewer + if($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom)) + $this->ZoomMode = $zoom; + else + $this->Error('Incorrect zoom display mode: '.$zoom); + if($layout=='single' || $layout=='continuous' || $layout=='two' || $layout=='default') + $this->LayoutMode = $layout; + else + $this->Error('Incorrect layout display mode: '.$layout); +} + +function SetCompression($compress) +{ + // Set page compression + if(function_exists('gzcompress')) + $this->compress = $compress; + else + $this->compress = false; +} + +function SetTitle($title, $isUTF8=false) +{ + // Title of document + $this->metadata['Title'] = $isUTF8 ? $title : utf8_encode($title); +} + +function SetAuthor($author, $isUTF8=false) +{ + // Author of document + $this->metadata['Author'] = $isUTF8 ? $author : utf8_encode($author); +} + +function SetSubject($subject, $isUTF8=false) +{ + // Subject of document + $this->metadata['Subject'] = $isUTF8 ? $subject : utf8_encode($subject); +} + +function SetKeywords($keywords, $isUTF8=false) +{ + // Keywords of document + $this->metadata['Keywords'] = $isUTF8 ? $keywords : utf8_encode($keywords); +} + +function SetCreator($creator, $isUTF8=false) +{ + // Creator of document + $this->metadata['Creator'] = $isUTF8 ? $creator : utf8_encode($creator); +} + +function AliasNbPages($alias='{nb}') +{ + // Define an alias for total number of pages + $this->AliasNbPages = $alias; +} + +function Error($msg) +{ + // Fatal error + throw new Exception('FPDF error: '.$msg); +} + +function Close() +{ + // Terminate document + if($this->state==3) + return; + if($this->page==0) + $this->AddPage(); + // Page footer + $this->InFooter = true; + $this->Footer(); + $this->InFooter = false; + // Close page + $this->_endpage(); + // Close document + $this->_enddoc(); +} + +function AddPage($orientation='', $size='', $rotation=0) +{ + // Start a new page + if($this->state==3) + $this->Error('The document is closed'); + $family = $this->FontFamily; + $style = $this->FontStyle.($this->underline ? 'U' : ''); + $fontsize = $this->FontSizePt; + $lw = $this->LineWidth; + $dc = $this->DrawColor; + $fc = $this->FillColor; + $tc = $this->TextColor; + $cf = $this->ColorFlag; + if($this->page>0) + { + // Page footer + $this->InFooter = true; + $this->Footer(); + $this->InFooter = false; + // Close page + $this->_endpage(); + } + // Start new page + $this->_beginpage($orientation,$size,$rotation); + // Set line cap style to square + $this->_out('2 J'); + // Set line width + $this->LineWidth = $lw; + $this->_out(sprintf('%.2F w',$lw*$this->k)); + // Set font + if($family) + $this->SetFont($family,$style,$fontsize); + // Set colors + $this->DrawColor = $dc; + if($dc!='0 G') + $this->_out($dc); + $this->FillColor = $fc; + if($fc!='0 g') + $this->_out($fc); + $this->TextColor = $tc; + $this->ColorFlag = $cf; + // Page header + $this->InHeader = true; + $this->Header(); + $this->InHeader = false; + // Restore line width + if($this->LineWidth!=$lw) + { + $this->LineWidth = $lw; + $this->_out(sprintf('%.2F w',$lw*$this->k)); + } + // Restore font + if($family) + $this->SetFont($family,$style,$fontsize); + // Restore colors + if($this->DrawColor!=$dc) + { + $this->DrawColor = $dc; + $this->_out($dc); + } + if($this->FillColor!=$fc) + { + $this->FillColor = $fc; + $this->_out($fc); + } + $this->TextColor = $tc; + $this->ColorFlag = $cf; +} + +function Header() +{ + // To be implemented in your own inherited class +} + +function Footer() +{ + // To be implemented in your own inherited class +} + +function PageNo() +{ + // Get current page number + return $this->page; +} + +function SetDrawColor($r, $g=null, $b=null) +{ + // Set color for all stroking operations + if(($r==0 && $g==0 && $b==0) || $g===null) + $this->DrawColor = sprintf('%.3F G',$r/255); + else + $this->DrawColor = sprintf('%.3F %.3F %.3F RG',$r/255,$g/255,$b/255); + if($this->page>0) + $this->_out($this->DrawColor); +} + +function SetFillColor($r, $g=null, $b=null) +{ + // Set color for all filling operations + if(($r==0 && $g==0 && $b==0) || $g===null) + $this->FillColor = sprintf('%.3F g',$r/255); + else + $this->FillColor = sprintf('%.3F %.3F %.3F rg',$r/255,$g/255,$b/255); + $this->ColorFlag = ($this->FillColor!=$this->TextColor); + if($this->page>0) + $this->_out($this->FillColor); +} + +function SetTextColor($r, $g=null, $b=null) +{ + // Set color for text + if(($r==0 && $g==0 && $b==0) || $g===null) + $this->TextColor = sprintf('%.3F g',$r/255); + else + $this->TextColor = sprintf('%.3F %.3F %.3F rg',$r/255,$g/255,$b/255); + $this->ColorFlag = ($this->FillColor!=$this->TextColor); +} + +function GetStringWidth($s) +{ + // Get width of a string in the current font + $s = (string)$s; + $cw = &$this->CurrentFont['cw']; + $w = 0; + $l = strlen($s); + for($i=0;$i<$l;$i++) + $w += $cw[$s[$i]]; + return $w*$this->FontSize/1000; +} + +function SetLineWidth($width) +{ + // Set line width + $this->LineWidth = $width; + if($this->page>0) + $this->_out(sprintf('%.2F w',$width*$this->k)); +} + +function Line($x1, $y1, $x2, $y2) +{ + // Draw a line + $this->_out(sprintf('%.2F %.2F m %.2F %.2F l S',$x1*$this->k,($this->h-$y1)*$this->k,$x2*$this->k,($this->h-$y2)*$this->k)); +} + +function Rect($x, $y, $w, $h, $style='') +{ + // Draw a rectangle + if($style=='F') + $op = 'f'; + elseif($style=='FD' || $style=='DF') + $op = 'B'; + else + $op = 'S'; + $this->_out(sprintf('%.2F %.2F %.2F %.2F re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op)); +} + +function AddFont($family, $style='', $file='') +{ + // Add a TrueType, OpenType or Type1 font + $family = strtolower($family); + if($file=='') + $file = str_replace(' ','',$family).strtolower($style).'.php'; + $style = strtoupper($style); + if($style=='IB') + $style = 'BI'; + $fontkey = $family.$style; + if(isset($this->fonts[$fontkey])) + return; + $info = $this->_loadfont($file); + $info['i'] = count($this->fonts)+1; + if(!empty($info['file'])) + { + // Embedded font + if($info['type']=='TrueType') + $this->FontFiles[$info['file']] = array('length1'=>$info['originalsize']); + else + $this->FontFiles[$info['file']] = array('length1'=>$info['size1'], 'length2'=>$info['size2']); + } + $this->fonts[$fontkey] = $info; +} + +function SetFont($family, $style='', $size=0) +{ + // Select a font; size given in points + if($family=='') + $family = $this->FontFamily; + else + $family = strtolower($family); + $style = strtoupper($style); + if(strpos($style,'U')!==false) + { + $this->underline = true; + $style = str_replace('U','',$style); + } + else + $this->underline = false; + if($style=='IB') + $style = 'BI'; + if($size==0) + $size = $this->FontSizePt; + // Test if font is already selected + if($this->FontFamily==$family && $this->FontStyle==$style && $this->FontSizePt==$size) + return; + // Test if font is already loaded + $fontkey = $family.$style; + if(!isset($this->fonts[$fontkey])) + { + // Test if one of the core fonts + if($family=='arial') + $family = 'helvetica'; + if(in_array($family,$this->CoreFonts)) + { + if($family=='symbol' || $family=='zapfdingbats') + $style = ''; + $fontkey = $family.$style; + if(!isset($this->fonts[$fontkey])) + $this->AddFont($family,$style); + } + else + $this->Error('Undefined font: '.$family.' '.$style); + } + // Select it + $this->FontFamily = $family; + $this->FontStyle = $style; + $this->FontSizePt = $size; + $this->FontSize = $size/$this->k; + $this->CurrentFont = &$this->fonts[$fontkey]; + if($this->page>0) + $this->_out(sprintf('BT /F%d %.2F Tf ET',$this->CurrentFont['i'],$this->FontSizePt)); +} + +function SetFontSize($size) +{ + // Set font size in points + if($this->FontSizePt==$size) + return; + $this->FontSizePt = $size; + $this->FontSize = $size/$this->k; + if($this->page>0) + $this->_out(sprintf('BT /F%d %.2F Tf ET',$this->CurrentFont['i'],$this->FontSizePt)); +} + +function AddLink() +{ + // Create a new internal link + $n = count($this->links)+1; + $this->links[$n] = array(0, 0); + return $n; +} + +function SetLink($link, $y=0, $page=-1) +{ + // Set destination of internal link + if($y==-1) + $y = $this->y; + if($page==-1) + $page = $this->page; + $this->links[$link] = array($page, $y); +} + +function Link($x, $y, $w, $h, $link) +{ + // Put a link on the page + $this->PageLinks[$this->page][] = array($x*$this->k, $this->hPt-$y*$this->k, $w*$this->k, $h*$this->k, $link); +} + +function Text($x, $y, $txt) +{ + // Output a string + if(!isset($this->CurrentFont)) + $this->Error('No font has been set'); + $s = sprintf('BT %.2F %.2F Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt)); + if($this->underline && $txt!='') + $s .= ' '.$this->_dounderline($x,$y,$txt); + if($this->ColorFlag) + $s = 'q '.$this->TextColor.' '.$s.' Q'; + $this->_out($s); +} + +function AcceptPageBreak() +{ + // Accept automatic page break or not + return $this->AutoPageBreak; +} + +function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') +{ + // Output a cell + $k = $this->k; + if($this->y+$h>$this->PageBreakTrigger && !$this->InHeader && !$this->InFooter && $this->AcceptPageBreak()) + { + // Automatic page break + $x = $this->x; + $ws = $this->ws; + if($ws>0) + { + $this->ws = 0; + $this->_out('0 Tw'); + } + $this->AddPage($this->CurOrientation,$this->CurPageSize,$this->CurRotation); + $this->x = $x; + if($ws>0) + { + $this->ws = $ws; + $this->_out(sprintf('%.3F Tw',$ws*$k)); + } + } + if($w==0) + $w = $this->w-$this->rMargin-$this->x; + $s = ''; + if($fill || $border==1) + { + if($fill) + $op = ($border==1) ? 'B' : 'f'; + else + $op = 'S'; + $s = sprintf('%.2F %.2F %.2F %.2F re %s ',$this->x*$k,($this->h-$this->y)*$k,$w*$k,-$h*$k,$op); + } + if(is_string($border)) + { + $x = $this->x; + $y = $this->y; + if(strpos($border,'L')!==false) + $s .= sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-$y)*$k,$x*$k,($this->h-($y+$h))*$k); + if(strpos($border,'T')!==false) + $s .= sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-$y)*$k); + if(strpos($border,'R')!==false) + $s .= sprintf('%.2F %.2F m %.2F %.2F l S ',($x+$w)*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-($y+$h))*$k); + if(strpos($border,'B')!==false) + $s .= sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-($y+$h))*$k,($x+$w)*$k,($this->h-($y+$h))*$k); + } + if($txt!=='') + { + if(!isset($this->CurrentFont)) + $this->Error('No font has been set'); + if($align=='R') + $dx = $w-$this->cMargin-$this->GetStringWidth($txt); + elseif($align=='C') + $dx = ($w-$this->GetStringWidth($txt))/2; + else + $dx = $this->cMargin; + if($this->ColorFlag) + $s .= 'q '.$this->TextColor.' '; + $s .= sprintf('BT %.2F %.2F Td (%s) Tj ET',($this->x+$dx)*$k,($this->h-($this->y+.5*$h+.3*$this->FontSize))*$k,$this->_escape($txt)); + if($this->underline) + $s .= ' '.$this->_dounderline($this->x+$dx,$this->y+.5*$h+.3*$this->FontSize,$txt); + if($this->ColorFlag) + $s .= ' Q'; + if($link) + $this->Link($this->x+$dx,$this->y+.5*$h-.5*$this->FontSize,$this->GetStringWidth($txt),$this->FontSize,$link); + } + if($s) + $this->_out($s); + $this->lasth = $h; + if($ln>0) + { + // Go to next line + $this->y += $h; + if($ln==1) + $this->x = $this->lMargin; + } + else + $this->x += $w; +} + +function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false) +{ + // Output text with automatic or explicit line breaks + if(!isset($this->CurrentFont)) + $this->Error('No font has been set'); + $cw = &$this->CurrentFont['cw']; + if($w==0) + $w = $this->w-$this->rMargin-$this->x; + $wmax = ($w-2*$this->cMargin)*1000/$this->FontSize; + $s = str_replace("\r",'',$txt); + $nb = strlen($s); + if($nb>0 && $s[$nb-1]=="\n") + $nb--; + $b = 0; + if($border) + { + if($border==1) + { + $border = 'LTRB'; + $b = 'LRT'; + $b2 = 'LR'; + } + else + { + $b2 = ''; + if(strpos($border,'L')!==false) + $b2 .= 'L'; + if(strpos($border,'R')!==false) + $b2 .= 'R'; + $b = (strpos($border,'T')!==false) ? $b2.'T' : $b2; + } + } + $sep = -1; + $i = 0; + $j = 0; + $l = 0; + $ns = 0; + $nl = 1; + while($i<$nb) + { + // Get next character + $c = $s[$i]; + if($c=="\n") + { + // Explicit line break + if($this->ws>0) + { + $this->ws = 0; + $this->_out('0 Tw'); + } + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + $i++; + $sep = -1; + $j = $i; + $l = 0; + $ns = 0; + $nl++; + if($border && $nl==2) + $b = $b2; + continue; + } + if($c==' ') + { + $sep = $i; + $ls = $l; + $ns++; + } + $l += $cw[$c]; + if($l>$wmax) + { + // Automatic line break + if($sep==-1) + { + if($i==$j) + $i++; + if($this->ws>0) + { + $this->ws = 0; + $this->_out('0 Tw'); + } + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + } + else + { + if($align=='J') + { + $this->ws = ($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0; + $this->_out(sprintf('%.3F Tw',$this->ws*$this->k)); + } + $this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill); + $i = $sep+1; + } + $sep = -1; + $j = $i; + $l = 0; + $ns = 0; + $nl++; + if($border && $nl==2) + $b = $b2; + } + else + $i++; + } + // Last chunk + if($this->ws>0) + { + $this->ws = 0; + $this->_out('0 Tw'); + } + if($border && strpos($border,'B')!==false) + $b .= 'B'; + $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); + $this->x = $this->lMargin; +} + +function Write($h, $txt, $link='') +{ + // Output text in flowing mode + if(!isset($this->CurrentFont)) + $this->Error('No font has been set'); + $cw = &$this->CurrentFont['cw']; + $w = $this->w-$this->rMargin-$this->x; + $wmax = ($w-2*$this->cMargin)*1000/$this->FontSize; + $s = str_replace("\r",'',$txt); + $nb = strlen($s); + $sep = -1; + $i = 0; + $j = 0; + $l = 0; + $nl = 1; + while($i<$nb) + { + // Get next character + $c = $s[$i]; + if($c=="\n") + { + // Explicit line break + $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',false,$link); + $i++; + $sep = -1; + $j = $i; + $l = 0; + if($nl==1) + { + $this->x = $this->lMargin; + $w = $this->w-$this->rMargin-$this->x; + $wmax = ($w-2*$this->cMargin)*1000/$this->FontSize; + } + $nl++; + continue; + } + if($c==' ') + $sep = $i; + $l += $cw[$c]; + if($l>$wmax) + { + // Automatic line break + if($sep==-1) + { + if($this->x>$this->lMargin) + { + // Move to next line + $this->x = $this->lMargin; + $this->y += $h; + $w = $this->w-$this->rMargin-$this->x; + $wmax = ($w-2*$this->cMargin)*1000/$this->FontSize; + $i++; + $nl++; + continue; + } + if($i==$j) + $i++; + $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',false,$link); + } + else + { + $this->Cell($w,$h,substr($s,$j,$sep-$j),0,2,'',false,$link); + $i = $sep+1; + } + $sep = -1; + $j = $i; + $l = 0; + if($nl==1) + { + $this->x = $this->lMargin; + $w = $this->w-$this->rMargin-$this->x; + $wmax = ($w-2*$this->cMargin)*1000/$this->FontSize; + } + $nl++; + } + else + $i++; + } + // Last chunk + if($i!=$j) + $this->Cell($l/1000*$this->FontSize,$h,substr($s,$j),0,0,'',false,$link); +} + +function Ln($h=null) +{ + // Line feed; default value is the last cell height + $this->x = $this->lMargin; + if($h===null) + $this->y += $this->lasth; + else + $this->y += $h; +} + +function Image($file, $x=null, $y=null, $w=0, $h=0, $type='', $link='') +{ + // Put an image on the page + if($file=='') + $this->Error('Image file name is empty'); + if(!isset($this->images[$file])) + { + // First use of this image, get info + if($type=='') + { + $pos = strrpos($file,'.'); + if(!$pos) + $this->Error('Image file has no extension and no type was specified: '.$file); + $type = substr($file,$pos+1); + } + $type = strtolower($type); + if($type=='jpeg') + $type = 'jpg'; + $mtd = '_parse'.$type; + if(!method_exists($this,$mtd)) + $this->Error('Unsupported image type: '.$type); + $info = $this->$mtd($file); + $info['i'] = count($this->images)+1; + $this->images[$file] = $info; + } + else + $info = $this->images[$file]; + + // Automatic width and height calculation if needed + if($w==0 && $h==0) + { + // Put image at 96 dpi + $w = -96; + $h = -96; + } + if($w<0) + $w = -$info['w']*72/$w/$this->k; + if($h<0) + $h = -$info['h']*72/$h/$this->k; + if($w==0) + $w = $h*$info['w']/$info['h']; + if($h==0) + $h = $w*$info['h']/$info['w']; + + // Flowing mode + if($y===null) + { + if($this->y+$h>$this->PageBreakTrigger && !$this->InHeader && !$this->InFooter && $this->AcceptPageBreak()) + { + // Automatic page break + $x2 = $this->x; + $this->AddPage($this->CurOrientation,$this->CurPageSize,$this->CurRotation); + $this->x = $x2; + } + $y = $this->y; + $this->y += $h; + } + + if($x===null) + $x = $this->x; + $this->_out(sprintf('q %.2F 0 0 %.2F %.2F %.2F cm /I%d Do Q',$w*$this->k,$h*$this->k,$x*$this->k,($this->h-($y+$h))*$this->k,$info['i'])); + if($link) + $this->Link($x,$y,$w,$h,$link); +} + +function GetPageWidth() +{ + // Get current page width + return $this->w; +} + +function GetPageHeight() +{ + // Get current page height + return $this->h; +} + +function GetX() +{ + // Get x position + return $this->x; +} + +function SetX($x) +{ + // Set x position + if($x>=0) + $this->x = $x; + else + $this->x = $this->w+$x; +} + +function GetY() +{ + // Get y position + return $this->y; +} + +function SetY($y, $resetX=true) +{ + // Set y position and optionally reset x + if($y>=0) + $this->y = $y; + else + $this->y = $this->h+$y; + if($resetX) + $this->x = $this->lMargin; +} + +function SetXY($x, $y) +{ + // Set x and y positions + $this->SetX($x); + $this->SetY($y,false); +} + +function Output($dest='', $name='', $isUTF8=false) +{ + // Output PDF to some destination + $this->Close(); + if(strlen($name)==1 && strlen($dest)!=1) + { + // Fix parameter order + $tmp = $dest; + $dest = $name; + $name = $tmp; + } + if($dest=='') + $dest = 'I'; + if($name=='') + $name = 'doc.pdf'; + switch(strtoupper($dest)) + { + case 'I': + // Send to standard output + $this->_checkoutput(); + if(PHP_SAPI!='cli') + { + // We send to a browser + header('Content-Type: application/pdf'); + header('Content-Disposition: inline; '.$this->_httpencode('filename',$name,$isUTF8)); + header('Cache-Control: private, max-age=0, must-revalidate'); + header('Pragma: public'); + } + echo $this->buffer; + break; + case 'D': + // Download file + $this->_checkoutput(); + header('Content-Type: application/x-download'); + header('Content-Disposition: attachment; '.$this->_httpencode('filename',$name,$isUTF8)); + header('Cache-Control: private, max-age=0, must-revalidate'); + header('Pragma: public'); + echo $this->buffer; + break; + case 'F': + // Save to local file + if(!file_put_contents($name,$this->buffer)) + $this->Error('Unable to create output file: '.$name); + break; + case 'S': + // Return as a string + return $this->buffer; + default: + $this->Error('Incorrect output destination: '.$dest); + } + return ''; +} + +/******************************************************************************* +* Protected methods * +*******************************************************************************/ + +protected function _dochecks() +{ + // Check mbstring overloading + if(ini_get('mbstring.func_overload') & 2) + $this->Error('mbstring overloading must be disabled'); + // Ensure runtime magic quotes are disabled + if(get_magic_quotes_runtime()) + @set_magic_quotes_runtime(0); +} + +protected function _checkoutput() +{ + if(PHP_SAPI!='cli') + { + if(headers_sent($file,$line)) + $this->Error("Some data has already been output, can't send PDF file (output started at $file:$line)"); + } + if(ob_get_length()) + { + // The output buffer is not empty + if(preg_match('/^(\xEF\xBB\xBF)?\s*$/',ob_get_contents())) + { + // It contains only a UTF-8 BOM and/or whitespace, let's clean it + ob_clean(); + } + else + $this->Error("Some data has already been output, can't send PDF file"); + } +} + +protected function _getpagesize($size) +{ + if(is_string($size)) + { + $size = strtolower($size); + if(!isset($this->StdPageSizes[$size])) + $this->Error('Unknown page size: '.$size); + $a = $this->StdPageSizes[$size]; + return array($a[0]/$this->k, $a[1]/$this->k); + } + else + { + if($size[0]>$size[1]) + return array($size[1], $size[0]); + else + return $size; + } +} + +protected function _beginpage($orientation, $size, $rotation) +{ + $this->page++; + $this->pages[$this->page] = ''; + $this->state = 2; + $this->x = $this->lMargin; + $this->y = $this->tMargin; + $this->FontFamily = ''; + // Check page size and orientation + if($orientation=='') + $orientation = $this->DefOrientation; + else + $orientation = strtoupper($orientation[0]); + if($size=='') + $size = $this->DefPageSize; + else + $size = $this->_getpagesize($size); + if($orientation!=$this->CurOrientation || $size[0]!=$this->CurPageSize[0] || $size[1]!=$this->CurPageSize[1]) + { + // New size or orientation + if($orientation=='P') + { + $this->w = $size[0]; + $this->h = $size[1]; + } + else + { + $this->w = $size[1]; + $this->h = $size[0]; + } + $this->wPt = $this->w*$this->k; + $this->hPt = $this->h*$this->k; + $this->PageBreakTrigger = $this->h-$this->bMargin; + $this->CurOrientation = $orientation; + $this->CurPageSize = $size; + } + if($orientation!=$this->DefOrientation || $size[0]!=$this->DefPageSize[0] || $size[1]!=$this->DefPageSize[1]) + $this->PageInfo[$this->page]['size'] = array($this->wPt, $this->hPt); + if($rotation!=0) + { + if($rotation%90!=0) + $this->Error('Incorrect rotation value: '.$rotation); + $this->CurRotation = $rotation; + $this->PageInfo[$this->page]['rotation'] = $rotation; + } +} + +protected function _endpage() +{ + $this->state = 1; +} + +protected function _loadfont($font) +{ + // Load a font definition file from the font directory + if(strpos($font,'/')!==false || strpos($font,"\\")!==false) + $this->Error('Incorrect font definition file name: '.$font); + include($this->fontpath.$font); + if(!isset($name)) + $this->Error('Could not include font definition file'); + if(isset($enc)) + $enc = strtolower($enc); + if(!isset($subsetted)) + $subsetted = false; + return get_defined_vars(); +} + +protected function _isascii($s) +{ + // Test if string is ASCII + $nb = strlen($s); + for($i=0;$i<$nb;$i++) + { + if(ord($s[$i])>127) + return false; + } + return true; +} + +protected function _httpencode($param, $value, $isUTF8) +{ + // Encode HTTP header field parameter + if($this->_isascii($value)) + return $param.'="'.$value.'"'; + if(!$isUTF8) + $value = utf8_encode($value); + if(strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')!==false) + return $param.'="'.rawurlencode($value).'"'; + else + return $param."*=UTF-8''".rawurlencode($value); +} + +protected function _UTF8toUTF16($s) +{ + // Convert UTF-8 to UTF-16BE with BOM + $res = "\xFE\xFF"; + $nb = strlen($s); + $i = 0; + while($i<$nb) + { + $c1 = ord($s[$i++]); + if($c1>=224) + { + // 3-byte character + $c2 = ord($s[$i++]); + $c3 = ord($s[$i++]); + $res .= chr((($c1 & 0x0F)<<4) + (($c2 & 0x3C)>>2)); + $res .= chr((($c2 & 0x03)<<6) + ($c3 & 0x3F)); + } + elseif($c1>=192) + { + // 2-byte character + $c2 = ord($s[$i++]); + $res .= chr(($c1 & 0x1C)>>2); + $res .= chr((($c1 & 0x03)<<6) + ($c2 & 0x3F)); + } + else + { + // Single-byte character + $res .= "\0".chr($c1); + } + } + return $res; +} + +protected function _escape($s) +{ + // Escape special characters + if(strpos($s,'(')!==false || strpos($s,')')!==false || strpos($s,'\\')!==false || strpos($s,"\r")!==false) + return str_replace(array('\\','(',')',"\r"), array('\\\\','\\(','\\)','\\r'), $s); + else + return $s; +} + +protected function _textstring($s) +{ + // Format a text string + if(!$this->_isascii($s)) + $s = $this->_UTF8toUTF16($s); + return '('.$this->_escape($s).')'; +} + +protected function _dounderline($x, $y, $txt) +{ + // Underline text + $up = $this->CurrentFont['up']; + $ut = $this->CurrentFont['ut']; + $w = $this->GetStringWidth($txt)+$this->ws*substr_count($txt,' '); + return sprintf('%.2F %.2F %.2F %.2F re f',$x*$this->k,($this->h-($y-$up/1000*$this->FontSize))*$this->k,$w*$this->k,-$ut/1000*$this->FontSizePt); +} + +protected function _parsejpg($file) +{ + // Extract info from a JPEG file + $a = getimagesize($file); + if(!$a) + $this->Error('Missing or incorrect image file: '.$file); + if($a[2]!=2) + $this->Error('Not a JPEG file: '.$file); + if(!isset($a['channels']) || $a['channels']==3) + $colspace = 'DeviceRGB'; + elseif($a['channels']==4) + $colspace = 'DeviceCMYK'; + else + $colspace = 'DeviceGray'; + $bpc = isset($a['bits']) ? $a['bits'] : 8; + $data = file_get_contents($file); + return array('w'=>$a[0], 'h'=>$a[1], 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'DCTDecode', 'data'=>$data); +} + +protected function _parsepng($file) +{ + // Extract info from a PNG file + $f = fopen($file,'rb'); + if(!$f) + $this->Error('Can\'t open image file: '.$file); + $info = $this->_parsepngstream($f,$file); + fclose($f); + return $info; +} + +protected function _parsepngstream($f, $file) +{ + // Check signature + if($this->_readstream($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10)) + $this->Error('Not a PNG file: '.$file); + + // Read header chunk + $this->_readstream($f,4); + if($this->_readstream($f,4)!='IHDR') + $this->Error('Incorrect PNG file: '.$file); + $w = $this->_readint($f); + $h = $this->_readint($f); + $bpc = ord($this->_readstream($f,1)); + if($bpc>8) + $this->Error('16-bit depth not supported: '.$file); + $ct = ord($this->_readstream($f,1)); + if($ct==0 || $ct==4) + $colspace = 'DeviceGray'; + elseif($ct==2 || $ct==6) + $colspace = 'DeviceRGB'; + elseif($ct==3) + $colspace = 'Indexed'; + else + $this->Error('Unknown color type: '.$file); + if(ord($this->_readstream($f,1))!=0) + $this->Error('Unknown compression method: '.$file); + if(ord($this->_readstream($f,1))!=0) + $this->Error('Unknown filter method: '.$file); + if(ord($this->_readstream($f,1))!=0) + $this->Error('Interlacing not supported: '.$file); + $this->_readstream($f,4); + $dp = '/Predictor 15 /Colors '.($colspace=='DeviceRGB' ? 3 : 1).' /BitsPerComponent '.$bpc.' /Columns '.$w; + + // Scan chunks looking for palette, transparency and image data + $pal = ''; + $trns = ''; + $data = ''; + do + { + $n = $this->_readint($f); + $type = $this->_readstream($f,4); + if($type=='PLTE') + { + // Read palette + $pal = $this->_readstream($f,$n); + $this->_readstream($f,4); + } + elseif($type=='tRNS') + { + // Read transparency info + $t = $this->_readstream($f,$n); + if($ct==0) + $trns = array(ord(substr($t,1,1))); + elseif($ct==2) + $trns = array(ord(substr($t,1,1)), ord(substr($t,3,1)), ord(substr($t,5,1))); + else + { + $pos = strpos($t,chr(0)); + if($pos!==false) + $trns = array($pos); + } + $this->_readstream($f,4); + } + elseif($type=='IDAT') + { + // Read image data block + $data .= $this->_readstream($f,$n); + $this->_readstream($f,4); + } + elseif($type=='IEND') + break; + else + $this->_readstream($f,$n+4); + } + while($n); + + if($colspace=='Indexed' && empty($pal)) + $this->Error('Missing palette in '.$file); + $info = array('w'=>$w, 'h'=>$h, 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'FlateDecode', 'dp'=>$dp, 'pal'=>$pal, 'trns'=>$trns); + if($ct>=4) + { + // Extract alpha channel + if(!function_exists('gzuncompress')) + $this->Error('Zlib not available, can\'t handle alpha channel: '.$file); + $data = gzuncompress($data); + $color = ''; + $alpha = ''; + if($ct==4) + { + // Gray image + $len = 2*$w; + for($i=0;$i<$h;$i++) + { + $pos = (1+$len)*$i; + $color .= $data[$pos]; + $alpha .= $data[$pos]; + $line = substr($data,$pos+1,$len); + $color .= preg_replace('/(.)./s','$1',$line); + $alpha .= preg_replace('/.(.)/s','$1',$line); + } + } + else + { + // RGB image + $len = 4*$w; + for($i=0;$i<$h;$i++) + { + $pos = (1+$len)*$i; + $color .= $data[$pos]; + $alpha .= $data[$pos]; + $line = substr($data,$pos+1,$len); + $color .= preg_replace('/(.{3})./s','$1',$line); + $alpha .= preg_replace('/.{3}(.)/s','$1',$line); + } + } + unset($data); + $data = gzcompress($color); + $info['smask'] = gzcompress($alpha); + $this->WithAlpha = true; + if($this->PDFVersion<'1.4') + $this->PDFVersion = '1.4'; + } + $info['data'] = $data; + return $info; +} + +protected function _readstream($f, $n) +{ + // Read n bytes from stream + $res = ''; + while($n>0 && !feof($f)) + { + $s = fread($f,$n); + if($s===false) + $this->Error('Error while reading stream'); + $n -= strlen($s); + $res .= $s; + } + if($n>0) + $this->Error('Unexpected end of stream'); + return $res; +} + +protected function _readint($f) +{ + // Read a 4-byte integer from stream + $a = unpack('Ni',$this->_readstream($f,4)); + return $a['i']; +} + +protected function _parsegif($file) +{ + // Extract info from a GIF file (via PNG conversion) + if(!function_exists('imagepng')) + $this->Error('GD extension is required for GIF support'); + if(!function_exists('imagecreatefromgif')) + $this->Error('GD has no GIF read support'); + $im = imagecreatefromgif($file); + if(!$im) + $this->Error('Missing or incorrect image file: '.$file); + imageinterlace($im,0); + ob_start(); + imagepng($im); + $data = ob_get_clean(); + imagedestroy($im); + $f = fopen('php://temp','rb+'); + if(!$f) + $this->Error('Unable to create memory stream'); + fwrite($f,$data); + rewind($f); + $info = $this->_parsepngstream($f,$file); + fclose($f); + return $info; +} + +protected function _out($s) +{ + // Add a line to the document + if($this->state==2) + $this->pages[$this->page] .= $s."\n"; + elseif($this->state==1) + $this->_put($s); + elseif($this->state==0) + $this->Error('No page has been added yet'); + elseif($this->state==3) + $this->Error('The document is closed'); +} + +protected function _put($s) +{ + $this->buffer .= $s."\n"; +} + +protected function _getoffset() +{ + return strlen($this->buffer); +} + +protected function _newobj($n=null) +{ + // Begin a new object + if($n===null) + $n = ++$this->n; + $this->offsets[$n] = $this->_getoffset(); + $this->_put($n.' 0 obj'); +} + +protected function _putstream($data) +{ + $this->_put('stream'); + $this->_put($data); + $this->_put('endstream'); +} + +protected function _putstreamobject($data) +{ + if($this->compress) + { + $entries = '/Filter /FlateDecode '; + $data = gzcompress($data); + } + else + $entries = ''; + $entries .= '/Length '.strlen($data); + $this->_newobj(); + $this->_put('<<'.$entries.'>>'); + $this->_putstream($data); + $this->_put('endobj'); +} + +protected function _putpage($n) +{ + $this->_newobj(); + $this->_put('<_put('/Parent 1 0 R'); + if(isset($this->PageInfo[$n]['size'])) + $this->_put(sprintf('/MediaBox [0 0 %.2F %.2F]',$this->PageInfo[$n]['size'][0],$this->PageInfo[$n]['size'][1])); + if(isset($this->PageInfo[$n]['rotation'])) + $this->_put('/Rotate '.$this->PageInfo[$n]['rotation']); + $this->_put('/Resources 2 0 R'); + if(isset($this->PageLinks[$n])) + { + // Links + $annots = '/Annots ['; + foreach($this->PageLinks[$n] as $pl) + { + $rect = sprintf('%.2F %.2F %.2F %.2F',$pl[0],$pl[1],$pl[0]+$pl[2],$pl[1]-$pl[3]); + $annots .= '<_textstring($pl[4]).'>>>>'; + else + { + $l = $this->links[$pl[4]]; + if(isset($this->PageInfo[$l[0]]['size'])) + $h = $this->PageInfo[$l[0]]['size'][1]; + else + $h = ($this->DefOrientation=='P') ? $this->DefPageSize[1]*$this->k : $this->DefPageSize[0]*$this->k; + $annots .= sprintf('/Dest [%d 0 R /XYZ 0 %.2F null]>>',$this->PageInfo[$l[0]]['n'],$h-$l[1]*$this->k); + } + } + $this->_put($annots.']'); + } + if($this->WithAlpha) + $this->_put('/Group <>'); + $this->_put('/Contents '.($this->n+1).' 0 R>>'); + $this->_put('endobj'); + // Page content + if(!empty($this->AliasNbPages)) + $this->pages[$n] = str_replace($this->AliasNbPages,$this->page,$this->pages[$n]); + $this->_putstreamobject($this->pages[$n]); +} + +protected function _putpages() +{ + $nb = $this->page; + for($n=1;$n<=$nb;$n++) + $this->PageInfo[$n]['n'] = $this->n+1+2*($n-1); + for($n=1;$n<=$nb;$n++) + $this->_putpage($n); + // Pages root + $this->_newobj(1); + $this->_put('<PageInfo[$n]['n'].' 0 R '; + $this->_put($kids.']'); + $this->_put('/Count '.$nb); + if($this->DefOrientation=='P') + { + $w = $this->DefPageSize[0]; + $h = $this->DefPageSize[1]; + } + else + { + $w = $this->DefPageSize[1]; + $h = $this->DefPageSize[0]; + } + $this->_put(sprintf('/MediaBox [0 0 %.2F %.2F]',$w*$this->k,$h*$this->k)); + $this->_put('>>'); + $this->_put('endobj'); +} + +protected function _putfonts() +{ + foreach($this->FontFiles as $file=>$info) + { + // Font file embedding + $this->_newobj(); + $this->FontFiles[$file]['n'] = $this->n; + $font = file_get_contents($this->fontpath.$file,true); + if(!$font) + $this->Error('Font file not found: '.$file); + $compressed = (substr($file,-2)=='.z'); + if(!$compressed && isset($info['length2'])) + $font = substr($font,6,$info['length1']).substr($font,6+$info['length1']+6,$info['length2']); + $this->_put('<_put('/Filter /FlateDecode'); + $this->_put('/Length1 '.$info['length1']); + if(isset($info['length2'])) + $this->_put('/Length2 '.$info['length2'].' /Length3 0'); + $this->_put('>>'); + $this->_putstream($font); + $this->_put('endobj'); + } + foreach($this->fonts as $k=>$font) + { + // Encoding + if(isset($font['diff'])) + { + if(!isset($this->encodings[$font['enc']])) + { + $this->_newobj(); + $this->_put('<>'); + $this->_put('endobj'); + $this->encodings[$font['enc']] = $this->n; + } + } + // ToUnicode CMap + if(isset($font['uv'])) + { + if(isset($font['enc'])) + $cmapkey = $font['enc']; + else + $cmapkey = $font['name']; + if(!isset($this->cmaps[$cmapkey])) + { + $cmap = $this->_tounicodecmap($font['uv']); + $this->_putstreamobject($cmap); + $this->cmaps[$cmapkey] = $this->n; + } + } + // Font object + $this->fonts[$k]['n'] = $this->n+1; + $type = $font['type']; + $name = $font['name']; + if($font['subsetted']) + $name = 'AAAAAA+'.$name; + if($type=='Core') + { + // Core font + $this->_newobj(); + $this->_put('<_put('/BaseFont /'.$name); + $this->_put('/Subtype /Type1'); + if($name!='Symbol' && $name!='ZapfDingbats') + $this->_put('/Encoding /WinAnsiEncoding'); + if(isset($font['uv'])) + $this->_put('/ToUnicode '.$this->cmaps[$cmapkey].' 0 R'); + $this->_put('>>'); + $this->_put('endobj'); + } + elseif($type=='Type1' || $type=='TrueType') + { + // Additional Type1 or TrueType/OpenType font + $this->_newobj(); + $this->_put('<_put('/BaseFont /'.$name); + $this->_put('/Subtype /'.$type); + $this->_put('/FirstChar 32 /LastChar 255'); + $this->_put('/Widths '.($this->n+1).' 0 R'); + $this->_put('/FontDescriptor '.($this->n+2).' 0 R'); + if(isset($font['diff'])) + $this->_put('/Encoding '.$this->encodings[$font['enc']].' 0 R'); + else + $this->_put('/Encoding /WinAnsiEncoding'); + if(isset($font['uv'])) + $this->_put('/ToUnicode '.$this->cmaps[$cmapkey].' 0 R'); + $this->_put('>>'); + $this->_put('endobj'); + // Widths + $this->_newobj(); + $cw = &$font['cw']; + $s = '['; + for($i=32;$i<=255;$i++) + $s .= $cw[chr($i)].' '; + $this->_put($s.']'); + $this->_put('endobj'); + // Descriptor + $this->_newobj(); + $s = '<$v) + $s .= ' /'.$k.' '.$v; + if(!empty($font['file'])) + $s .= ' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$font['file']]['n'].' 0 R'; + $this->_put($s.'>>'); + $this->_put('endobj'); + } + else + { + // Allow for additional types + $mtd = '_put'.strtolower($type); + if(!method_exists($this,$mtd)) + $this->Error('Unsupported font type: '.$type); + $this->$mtd($font); + } + } +} + +protected function _tounicodecmap($uv) +{ + $ranges = ''; + $nbr = 0; + $chars = ''; + $nbc = 0; + foreach($uv as $c=>$v) + { + if(is_array($v)) + { + $ranges .= sprintf("<%02X> <%02X> <%04X>\n",$c,$c+$v[1]-1,$v[0]); + $nbr++; + } + else + { + $chars .= sprintf("<%02X> <%04X>\n",$c,$v); + $nbc++; + } + } + $s = "/CIDInit /ProcSet findresource begin\n"; + $s .= "12 dict begin\n"; + $s .= "begincmap\n"; + $s .= "/CIDSystemInfo\n"; + $s .= "<0) + { + $s .= "$nbr beginbfrange\n"; + $s .= $ranges; + $s .= "endbfrange\n"; + } + if($nbc>0) + { + $s .= "$nbc beginbfchar\n"; + $s .= $chars; + $s .= "endbfchar\n"; + } + $s .= "endcmap\n"; + $s .= "CMapName currentdict /CMap defineresource pop\n"; + $s .= "end\n"; + $s .= "end"; + return $s; +} + +protected function _putimages() +{ + foreach(array_keys($this->images) as $file) + { + $this->_putimage($this->images[$file]); + unset($this->images[$file]['data']); + unset($this->images[$file]['smask']); + } +} + +protected function _putimage(&$info) +{ + $this->_newobj(); + $info['n'] = $this->n; + $this->_put('<_put('/Subtype /Image'); + $this->_put('/Width '.$info['w']); + $this->_put('/Height '.$info['h']); + if($info['cs']=='Indexed') + $this->_put('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal'])/3-1).' '.($this->n+1).' 0 R]'); + else + { + $this->_put('/ColorSpace /'.$info['cs']); + if($info['cs']=='DeviceCMYK') + $this->_put('/Decode [1 0 1 0 1 0 1 0]'); + } + $this->_put('/BitsPerComponent '.$info['bpc']); + if(isset($info['f'])) + $this->_put('/Filter /'.$info['f']); + if(isset($info['dp'])) + $this->_put('/DecodeParms <<'.$info['dp'].'>>'); + if(isset($info['trns']) && is_array($info['trns'])) + { + $trns = ''; + for($i=0;$i_put('/Mask ['.$trns.']'); + } + if(isset($info['smask'])) + $this->_put('/SMask '.($this->n+1).' 0 R'); + $this->_put('/Length '.strlen($info['data']).'>>'); + $this->_putstream($info['data']); + $this->_put('endobj'); + // Soft mask + if(isset($info['smask'])) + { + $dp = '/Predictor 15 /Colors 1 /BitsPerComponent 8 /Columns '.$info['w']; + $smask = array('w'=>$info['w'], 'h'=>$info['h'], 'cs'=>'DeviceGray', 'bpc'=>8, 'f'=>$info['f'], 'dp'=>$dp, 'data'=>$info['smask']); + $this->_putimage($smask); + } + // Palette + if($info['cs']=='Indexed') + $this->_putstreamobject($info['pal']); +} + +protected function _putxobjectdict() +{ + foreach($this->images as $image) + $this->_put('/I'.$image['i'].' '.$image['n'].' 0 R'); +} + +protected function _putresourcedict() +{ + $this->_put('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]'); + $this->_put('/Font <<'); + foreach($this->fonts as $font) + $this->_put('/F'.$font['i'].' '.$font['n'].' 0 R'); + $this->_put('>>'); + $this->_put('/XObject <<'); + $this->_putxobjectdict(); + $this->_put('>>'); +} + +protected function _putresources() +{ + $this->_putfonts(); + $this->_putimages(); + // Resource dictionary + $this->_newobj(2); + $this->_put('<<'); + $this->_putresourcedict(); + $this->_put('>>'); + $this->_put('endobj'); +} + +protected function _putinfo() +{ + $this->metadata['Producer'] = 'FPDF '.FPDF_VERSION; + $this->metadata['CreationDate'] = 'D:'.@date('YmdHis'); + foreach($this->metadata as $key=>$value) + $this->_put('/'.$key.' '.$this->_textstring($value)); +} + +protected function _putcatalog() +{ + $n = $this->PageInfo[1]['n']; + $this->_put('/Type /Catalog'); + $this->_put('/Pages 1 0 R'); + if($this->ZoomMode=='fullpage') + $this->_put('/OpenAction ['.$n.' 0 R /Fit]'); + elseif($this->ZoomMode=='fullwidth') + $this->_put('/OpenAction ['.$n.' 0 R /FitH null]'); + elseif($this->ZoomMode=='real') + $this->_put('/OpenAction ['.$n.' 0 R /XYZ null null 1]'); + elseif(!is_string($this->ZoomMode)) + $this->_put('/OpenAction ['.$n.' 0 R /XYZ null null '.sprintf('%.2F',$this->ZoomMode/100).']'); + if($this->LayoutMode=='single') + $this->_put('/PageLayout /SinglePage'); + elseif($this->LayoutMode=='continuous') + $this->_put('/PageLayout /OneColumn'); + elseif($this->LayoutMode=='two') + $this->_put('/PageLayout /TwoColumnLeft'); +} + +protected function _putheader() +{ + $this->_put('%PDF-'.$this->PDFVersion); +} + +protected function _puttrailer() +{ + $this->_put('/Size '.($this->n+1)); + $this->_put('/Root '.$this->n.' 0 R'); + $this->_put('/Info '.($this->n-1).' 0 R'); +} + +protected function _enddoc() +{ + $this->_putheader(); + $this->_putpages(); + $this->_putresources(); + // Info + $this->_newobj(); + $this->_put('<<'); + $this->_putinfo(); + $this->_put('>>'); + $this->_put('endobj'); + // Catalog + $this->_newobj(); + $this->_put('<<'); + $this->_putcatalog(); + $this->_put('>>'); + $this->_put('endobj'); + // Cross-ref + $offset = $this->_getoffset(); + $this->_put('xref'); + $this->_put('0 '.($this->n+1)); + $this->_put('0000000000 65535 f '); + for($i=1;$i<=$this->n;$i++) + $this->_put(sprintf('%010d 00000 n ',$this->offsets[$i])); + // Trailer + $this->_put('trailer'); + $this->_put('<<'); + $this->_puttrailer(); + $this->_put('>>'); + $this->_put('startxref'); + $this->_put($offset); + $this->_put('%%EOF'); + $this->state = 3; +} +} +?> diff --git a/phplib/fpdf181/install.txt b/phplib/fpdf181/install.txt new file mode 100755 index 0000000..73ded64 --- /dev/null +++ b/phplib/fpdf181/install.txt @@ -0,0 +1,15 @@ +The FPDF library is made up of the following elements: + +- the main file, fpdf.php, which contains the class +- the font definition files located in the font directory + +The font definition files are necessary as soon as you want to output some text in a document. +If they are not accessible, the SetFont() method will produce the following error: + +FPDF error: Could not include font definition file + + +Remarks: + +- Only the files corresponding to the fonts actually used are necessary +- The tutorials provided in this package are ready to be executed diff --git a/phplib/fpdf181/license.txt b/phplib/fpdf181/license.txt new file mode 100755 index 0000000..fd811c6 --- /dev/null +++ b/phplib/fpdf181/license.txt @@ -0,0 +1,6 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software to use, copy, modify, distribute, sublicense, and/or sell +copies of the software, and to permit persons to whom the software is furnished +to do so. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. \ No newline at end of file diff --git a/phplib/fpdf181/makefont/cp1250.map b/phplib/fpdf181/makefont/cp1250.map new file mode 100755 index 0000000..ec110af --- /dev/null +++ b/phplib/fpdf181/makefont/cp1250.map @@ -0,0 +1,251 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+015A Sacute +!8D U+0164 Tcaron +!8E U+017D Zcaron +!8F U+0179 Zacute +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+015B sacute +!9D U+0165 tcaron +!9E U+017E zcaron +!9F U+017A zacute +!A0 U+00A0 space +!A1 U+02C7 caron +!A2 U+02D8 breve +!A3 U+0141 Lslash +!A4 U+00A4 currency +!A5 U+0104 Aogonek +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+015E Scedilla +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+02DB ogonek +!B3 U+0142 lslash +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+0105 aogonek +!BA U+015F scedilla +!BB U+00BB guillemotright +!BC U+013D Lcaron +!BD U+02DD hungarumlaut +!BE U+013E lcaron +!BF U+017C zdotaccent +!C0 U+0154 Racute +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0139 Lacute +!C6 U+0106 Cacute +!C7 U+00C7 Ccedilla +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+011A Ecaron +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+010E Dcaron +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+0147 Ncaron +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0158 Rcaron +!D9 U+016E Uring +!DA U+00DA Uacute +!DB U+0170 Uhungarumlaut +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+0162 Tcommaaccent +!DF U+00DF germandbls +!E0 U+0155 racute +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+013A lacute +!E6 U+0107 cacute +!E7 U+00E7 ccedilla +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+011B ecaron +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+010F dcaron +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+0148 ncaron +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0159 rcaron +!F9 U+016F uring +!FA U+00FA uacute +!FB U+0171 uhungarumlaut +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+0163 tcommaaccent +!FF U+02D9 dotaccent diff --git a/phplib/fpdf181/makefont/cp1251.map b/phplib/fpdf181/makefont/cp1251.map new file mode 100755 index 0000000..de6a198 --- /dev/null +++ b/phplib/fpdf181/makefont/cp1251.map @@ -0,0 +1,255 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0402 afii10051 +!81 U+0403 afii10052 +!82 U+201A quotesinglbase +!83 U+0453 afii10100 +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+20AC Euro +!89 U+2030 perthousand +!8A U+0409 afii10058 +!8B U+2039 guilsinglleft +!8C U+040A afii10059 +!8D U+040C afii10061 +!8E U+040B afii10060 +!8F U+040F afii10145 +!90 U+0452 afii10099 +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9A U+0459 afii10106 +!9B U+203A guilsinglright +!9C U+045A afii10107 +!9D U+045C afii10109 +!9E U+045B afii10108 +!9F U+045F afii10193 +!A0 U+00A0 space +!A1 U+040E afii10062 +!A2 U+045E afii10110 +!A3 U+0408 afii10057 +!A4 U+00A4 currency +!A5 U+0490 afii10050 +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+0401 afii10023 +!A9 U+00A9 copyright +!AA U+0404 afii10053 +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+0407 afii10056 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+0406 afii10055 +!B3 U+0456 afii10103 +!B4 U+0491 afii10098 +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+0451 afii10071 +!B9 U+2116 afii61352 +!BA U+0454 afii10101 +!BB U+00BB guillemotright +!BC U+0458 afii10105 +!BD U+0405 afii10054 +!BE U+0455 afii10102 +!BF U+0457 afii10104 +!C0 U+0410 afii10017 +!C1 U+0411 afii10018 +!C2 U+0412 afii10019 +!C3 U+0413 afii10020 +!C4 U+0414 afii10021 +!C5 U+0415 afii10022 +!C6 U+0416 afii10024 +!C7 U+0417 afii10025 +!C8 U+0418 afii10026 +!C9 U+0419 afii10027 +!CA U+041A afii10028 +!CB U+041B afii10029 +!CC U+041C afii10030 +!CD U+041D afii10031 +!CE U+041E afii10032 +!CF U+041F afii10033 +!D0 U+0420 afii10034 +!D1 U+0421 afii10035 +!D2 U+0422 afii10036 +!D3 U+0423 afii10037 +!D4 U+0424 afii10038 +!D5 U+0425 afii10039 +!D6 U+0426 afii10040 +!D7 U+0427 afii10041 +!D8 U+0428 afii10042 +!D9 U+0429 afii10043 +!DA U+042A afii10044 +!DB U+042B afii10045 +!DC U+042C afii10046 +!DD U+042D afii10047 +!DE U+042E afii10048 +!DF U+042F afii10049 +!E0 U+0430 afii10065 +!E1 U+0431 afii10066 +!E2 U+0432 afii10067 +!E3 U+0433 afii10068 +!E4 U+0434 afii10069 +!E5 U+0435 afii10070 +!E6 U+0436 afii10072 +!E7 U+0437 afii10073 +!E8 U+0438 afii10074 +!E9 U+0439 afii10075 +!EA U+043A afii10076 +!EB U+043B afii10077 +!EC U+043C afii10078 +!ED U+043D afii10079 +!EE U+043E afii10080 +!EF U+043F afii10081 +!F0 U+0440 afii10082 +!F1 U+0441 afii10083 +!F2 U+0442 afii10084 +!F3 U+0443 afii10085 +!F4 U+0444 afii10086 +!F5 U+0445 afii10087 +!F6 U+0446 afii10088 +!F7 U+0447 afii10089 +!F8 U+0448 afii10090 +!F9 U+0449 afii10091 +!FA U+044A afii10092 +!FB U+044B afii10093 +!FC U+044C afii10094 +!FD U+044D afii10095 +!FE U+044E afii10096 +!FF U+044F afii10097 diff --git a/phplib/fpdf181/makefont/cp1252.map b/phplib/fpdf181/makefont/cp1252.map new file mode 100755 index 0000000..dd490e5 --- /dev/null +++ b/phplib/fpdf181/makefont/cp1252.map @@ -0,0 +1,251 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+0152 OE +!8E U+017D Zcaron +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+0153 oe +!9E U+017E zcaron +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf181/makefont/cp1253.map b/phplib/fpdf181/makefont/cp1253.map new file mode 100755 index 0000000..4bd826f --- /dev/null +++ b/phplib/fpdf181/makefont/cp1253.map @@ -0,0 +1,239 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9B U+203A guilsinglright +!A0 U+00A0 space +!A1 U+0385 dieresistonos +!A2 U+0386 Alphatonos +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+2015 afii00208 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+0384 tonos +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+0388 Epsilontonos +!B9 U+0389 Etatonos +!BA U+038A Iotatonos +!BB U+00BB guillemotright +!BC U+038C Omicrontonos +!BD U+00BD onehalf +!BE U+038E Upsilontonos +!BF U+038F Omegatonos +!C0 U+0390 iotadieresistonos +!C1 U+0391 Alpha +!C2 U+0392 Beta +!C3 U+0393 Gamma +!C4 U+0394 Delta +!C5 U+0395 Epsilon +!C6 U+0396 Zeta +!C7 U+0397 Eta +!C8 U+0398 Theta +!C9 U+0399 Iota +!CA U+039A Kappa +!CB U+039B Lambda +!CC U+039C Mu +!CD U+039D Nu +!CE U+039E Xi +!CF U+039F Omicron +!D0 U+03A0 Pi +!D1 U+03A1 Rho +!D3 U+03A3 Sigma +!D4 U+03A4 Tau +!D5 U+03A5 Upsilon +!D6 U+03A6 Phi +!D7 U+03A7 Chi +!D8 U+03A8 Psi +!D9 U+03A9 Omega +!DA U+03AA Iotadieresis +!DB U+03AB Upsilondieresis +!DC U+03AC alphatonos +!DD U+03AD epsilontonos +!DE U+03AE etatonos +!DF U+03AF iotatonos +!E0 U+03B0 upsilondieresistonos +!E1 U+03B1 alpha +!E2 U+03B2 beta +!E3 U+03B3 gamma +!E4 U+03B4 delta +!E5 U+03B5 epsilon +!E6 U+03B6 zeta +!E7 U+03B7 eta +!E8 U+03B8 theta +!E9 U+03B9 iota +!EA U+03BA kappa +!EB U+03BB lambda +!EC U+03BC mu +!ED U+03BD nu +!EE U+03BE xi +!EF U+03BF omicron +!F0 U+03C0 pi +!F1 U+03C1 rho +!F2 U+03C2 sigma1 +!F3 U+03C3 sigma +!F4 U+03C4 tau +!F5 U+03C5 upsilon +!F6 U+03C6 phi +!F7 U+03C7 chi +!F8 U+03C8 psi +!F9 U+03C9 omega +!FA U+03CA iotadieresis +!FB U+03CB upsilondieresis +!FC U+03CC omicrontonos +!FD U+03CD upsilontonos +!FE U+03CE omegatonos diff --git a/phplib/fpdf181/makefont/cp1254.map b/phplib/fpdf181/makefont/cp1254.map new file mode 100755 index 0000000..829473b --- /dev/null +++ b/phplib/fpdf181/makefont/cp1254.map @@ -0,0 +1,249 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8A U+0160 Scaron +!8B U+2039 guilsinglleft +!8C U+0152 OE +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9A U+0161 scaron +!9B U+203A guilsinglright +!9C U+0153 oe +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+011E Gbreve +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0130 Idotaccent +!DE U+015E Scedilla +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+011F gbreve +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0131 dotlessi +!FE U+015F scedilla +!FF U+00FF ydieresis diff --git a/phplib/fpdf181/makefont/cp1255.map b/phplib/fpdf181/makefont/cp1255.map new file mode 100755 index 0000000..079e10c --- /dev/null +++ b/phplib/fpdf181/makefont/cp1255.map @@ -0,0 +1,233 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9B U+203A guilsinglright +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+20AA afii57636 +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00D7 multiply +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD sfthyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 middot +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00F7 divide +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+05B0 afii57799 +!C1 U+05B1 afii57801 +!C2 U+05B2 afii57800 +!C3 U+05B3 afii57802 +!C4 U+05B4 afii57793 +!C5 U+05B5 afii57794 +!C6 U+05B6 afii57795 +!C7 U+05B7 afii57798 +!C8 U+05B8 afii57797 +!C9 U+05B9 afii57806 +!CB U+05BB afii57796 +!CC U+05BC afii57807 +!CD U+05BD afii57839 +!CE U+05BE afii57645 +!CF U+05BF afii57841 +!D0 U+05C0 afii57842 +!D1 U+05C1 afii57804 +!D2 U+05C2 afii57803 +!D3 U+05C3 afii57658 +!D4 U+05F0 afii57716 +!D5 U+05F1 afii57717 +!D6 U+05F2 afii57718 +!D7 U+05F3 gereshhebrew +!D8 U+05F4 gershayimhebrew +!E0 U+05D0 afii57664 +!E1 U+05D1 afii57665 +!E2 U+05D2 afii57666 +!E3 U+05D3 afii57667 +!E4 U+05D4 afii57668 +!E5 U+05D5 afii57669 +!E6 U+05D6 afii57670 +!E7 U+05D7 afii57671 +!E8 U+05D8 afii57672 +!E9 U+05D9 afii57673 +!EA U+05DA afii57674 +!EB U+05DB afii57675 +!EC U+05DC afii57676 +!ED U+05DD afii57677 +!EE U+05DE afii57678 +!EF U+05DF afii57679 +!F0 U+05E0 afii57680 +!F1 U+05E1 afii57681 +!F2 U+05E2 afii57682 +!F3 U+05E3 afii57683 +!F4 U+05E4 afii57684 +!F5 U+05E5 afii57685 +!F6 U+05E6 afii57686 +!F7 U+05E7 afii57687 +!F8 U+05E8 afii57688 +!F9 U+05E9 afii57689 +!FA U+05EA afii57690 +!FD U+200E afii299 +!FE U+200F afii300 diff --git a/phplib/fpdf181/makefont/cp1257.map b/phplib/fpdf181/makefont/cp1257.map new file mode 100755 index 0000000..2f2ecfa --- /dev/null +++ b/phplib/fpdf181/makefont/cp1257.map @@ -0,0 +1,244 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!8D U+00A8 dieresis +!8E U+02C7 caron +!8F U+00B8 cedilla +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!99 U+2122 trademark +!9B U+203A guilsinglright +!9D U+00AF macron +!9E U+02DB ogonek +!A0 U+00A0 space +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00D8 Oslash +!A9 U+00A9 copyright +!AA U+0156 Rcommaaccent +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00C6 AE +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00F8 oslash +!B9 U+00B9 onesuperior +!BA U+0157 rcommaaccent +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00E6 ae +!C0 U+0104 Aogonek +!C1 U+012E Iogonek +!C2 U+0100 Amacron +!C3 U+0106 Cacute +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+0118 Eogonek +!C7 U+0112 Emacron +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0179 Zacute +!CB U+0116 Edotaccent +!CC U+0122 Gcommaaccent +!CD U+0136 Kcommaaccent +!CE U+012A Imacron +!CF U+013B Lcommaaccent +!D0 U+0160 Scaron +!D1 U+0143 Nacute +!D2 U+0145 Ncommaaccent +!D3 U+00D3 Oacute +!D4 U+014C Omacron +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0172 Uogonek +!D9 U+0141 Lslash +!DA U+015A Sacute +!DB U+016A Umacron +!DC U+00DC Udieresis +!DD U+017B Zdotaccent +!DE U+017D Zcaron +!DF U+00DF germandbls +!E0 U+0105 aogonek +!E1 U+012F iogonek +!E2 U+0101 amacron +!E3 U+0107 cacute +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+0119 eogonek +!E7 U+0113 emacron +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+017A zacute +!EB U+0117 edotaccent +!EC U+0123 gcommaaccent +!ED U+0137 kcommaaccent +!EE U+012B imacron +!EF U+013C lcommaaccent +!F0 U+0161 scaron +!F1 U+0144 nacute +!F2 U+0146 ncommaaccent +!F3 U+00F3 oacute +!F4 U+014D omacron +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0173 uogonek +!F9 U+0142 lslash +!FA U+015B sacute +!FB U+016B umacron +!FC U+00FC udieresis +!FD U+017C zdotaccent +!FE U+017E zcaron +!FF U+02D9 dotaccent diff --git a/phplib/fpdf181/makefont/cp1258.map b/phplib/fpdf181/makefont/cp1258.map new file mode 100755 index 0000000..fed915f --- /dev/null +++ b/phplib/fpdf181/makefont/cp1258.map @@ -0,0 +1,247 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!82 U+201A quotesinglbase +!83 U+0192 florin +!84 U+201E quotedblbase +!85 U+2026 ellipsis +!86 U+2020 dagger +!87 U+2021 daggerdbl +!88 U+02C6 circumflex +!89 U+2030 perthousand +!8B U+2039 guilsinglleft +!8C U+0152 OE +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!98 U+02DC tilde +!99 U+2122 trademark +!9B U+203A guilsinglright +!9C U+0153 oe +!9F U+0178 Ydieresis +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+0300 gravecomb +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+0110 Dcroat +!D1 U+00D1 Ntilde +!D2 U+0309 hookabovecomb +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+01A0 Ohorn +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+01AF Uhorn +!DE U+0303 tildecomb +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+0301 acutecomb +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+0111 dcroat +!F1 U+00F1 ntilde +!F2 U+0323 dotbelowcomb +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+01A1 ohorn +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+01B0 uhorn +!FE U+20AB dong +!FF U+00FF ydieresis diff --git a/phplib/fpdf181/makefont/cp874.map b/phplib/fpdf181/makefont/cp874.map new file mode 100755 index 0000000..1006e6b --- /dev/null +++ b/phplib/fpdf181/makefont/cp874.map @@ -0,0 +1,225 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+20AC Euro +!85 U+2026 ellipsis +!91 U+2018 quoteleft +!92 U+2019 quoteright +!93 U+201C quotedblleft +!94 U+201D quotedblright +!95 U+2022 bullet +!96 U+2013 endash +!97 U+2014 emdash +!A0 U+00A0 space +!A1 U+0E01 kokaithai +!A2 U+0E02 khokhaithai +!A3 U+0E03 khokhuatthai +!A4 U+0E04 khokhwaithai +!A5 U+0E05 khokhonthai +!A6 U+0E06 khorakhangthai +!A7 U+0E07 ngonguthai +!A8 U+0E08 chochanthai +!A9 U+0E09 chochingthai +!AA U+0E0A chochangthai +!AB U+0E0B sosothai +!AC U+0E0C chochoethai +!AD U+0E0D yoyingthai +!AE U+0E0E dochadathai +!AF U+0E0F topatakthai +!B0 U+0E10 thothanthai +!B1 U+0E11 thonangmonthothai +!B2 U+0E12 thophuthaothai +!B3 U+0E13 nonenthai +!B4 U+0E14 dodekthai +!B5 U+0E15 totaothai +!B6 U+0E16 thothungthai +!B7 U+0E17 thothahanthai +!B8 U+0E18 thothongthai +!B9 U+0E19 nonuthai +!BA U+0E1A bobaimaithai +!BB U+0E1B poplathai +!BC U+0E1C phophungthai +!BD U+0E1D fofathai +!BE U+0E1E phophanthai +!BF U+0E1F fofanthai +!C0 U+0E20 phosamphaothai +!C1 U+0E21 momathai +!C2 U+0E22 yoyakthai +!C3 U+0E23 roruathai +!C4 U+0E24 ruthai +!C5 U+0E25 lolingthai +!C6 U+0E26 luthai +!C7 U+0E27 wowaenthai +!C8 U+0E28 sosalathai +!C9 U+0E29 sorusithai +!CA U+0E2A sosuathai +!CB U+0E2B hohipthai +!CC U+0E2C lochulathai +!CD U+0E2D oangthai +!CE U+0E2E honokhukthai +!CF U+0E2F paiyannoithai +!D0 U+0E30 saraathai +!D1 U+0E31 maihanakatthai +!D2 U+0E32 saraaathai +!D3 U+0E33 saraamthai +!D4 U+0E34 saraithai +!D5 U+0E35 saraiithai +!D6 U+0E36 sarauethai +!D7 U+0E37 saraueethai +!D8 U+0E38 sarauthai +!D9 U+0E39 sarauuthai +!DA U+0E3A phinthuthai +!DF U+0E3F bahtthai +!E0 U+0E40 saraethai +!E1 U+0E41 saraaethai +!E2 U+0E42 saraothai +!E3 U+0E43 saraaimaimuanthai +!E4 U+0E44 saraaimaimalaithai +!E5 U+0E45 lakkhangyaothai +!E6 U+0E46 maiyamokthai +!E7 U+0E47 maitaikhuthai +!E8 U+0E48 maiekthai +!E9 U+0E49 maithothai +!EA U+0E4A maitrithai +!EB U+0E4B maichattawathai +!EC U+0E4C thanthakhatthai +!ED U+0E4D nikhahitthai +!EE U+0E4E yamakkanthai +!EF U+0E4F fongmanthai +!F0 U+0E50 zerothai +!F1 U+0E51 onethai +!F2 U+0E52 twothai +!F3 U+0E53 threethai +!F4 U+0E54 fourthai +!F5 U+0E55 fivethai +!F6 U+0E56 sixthai +!F7 U+0E57 seventhai +!F8 U+0E58 eightthai +!F9 U+0E59 ninethai +!FA U+0E5A angkhankhuthai +!FB U+0E5B khomutthai diff --git a/phplib/fpdf181/makefont/iso-8859-1.map b/phplib/fpdf181/makefont/iso-8859-1.map new file mode 100755 index 0000000..61740a3 --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-1.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf181/makefont/iso-8859-11.map b/phplib/fpdf181/makefont/iso-8859-11.map new file mode 100755 index 0000000..9168812 --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-11.map @@ -0,0 +1,248 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0E01 kokaithai +!A2 U+0E02 khokhaithai +!A3 U+0E03 khokhuatthai +!A4 U+0E04 khokhwaithai +!A5 U+0E05 khokhonthai +!A6 U+0E06 khorakhangthai +!A7 U+0E07 ngonguthai +!A8 U+0E08 chochanthai +!A9 U+0E09 chochingthai +!AA U+0E0A chochangthai +!AB U+0E0B sosothai +!AC U+0E0C chochoethai +!AD U+0E0D yoyingthai +!AE U+0E0E dochadathai +!AF U+0E0F topatakthai +!B0 U+0E10 thothanthai +!B1 U+0E11 thonangmonthothai +!B2 U+0E12 thophuthaothai +!B3 U+0E13 nonenthai +!B4 U+0E14 dodekthai +!B5 U+0E15 totaothai +!B6 U+0E16 thothungthai +!B7 U+0E17 thothahanthai +!B8 U+0E18 thothongthai +!B9 U+0E19 nonuthai +!BA U+0E1A bobaimaithai +!BB U+0E1B poplathai +!BC U+0E1C phophungthai +!BD U+0E1D fofathai +!BE U+0E1E phophanthai +!BF U+0E1F fofanthai +!C0 U+0E20 phosamphaothai +!C1 U+0E21 momathai +!C2 U+0E22 yoyakthai +!C3 U+0E23 roruathai +!C4 U+0E24 ruthai +!C5 U+0E25 lolingthai +!C6 U+0E26 luthai +!C7 U+0E27 wowaenthai +!C8 U+0E28 sosalathai +!C9 U+0E29 sorusithai +!CA U+0E2A sosuathai +!CB U+0E2B hohipthai +!CC U+0E2C lochulathai +!CD U+0E2D oangthai +!CE U+0E2E honokhukthai +!CF U+0E2F paiyannoithai +!D0 U+0E30 saraathai +!D1 U+0E31 maihanakatthai +!D2 U+0E32 saraaathai +!D3 U+0E33 saraamthai +!D4 U+0E34 saraithai +!D5 U+0E35 saraiithai +!D6 U+0E36 sarauethai +!D7 U+0E37 saraueethai +!D8 U+0E38 sarauthai +!D9 U+0E39 sarauuthai +!DA U+0E3A phinthuthai +!DF U+0E3F bahtthai +!E0 U+0E40 saraethai +!E1 U+0E41 saraaethai +!E2 U+0E42 saraothai +!E3 U+0E43 saraaimaimuanthai +!E4 U+0E44 saraaimaimalaithai +!E5 U+0E45 lakkhangyaothai +!E6 U+0E46 maiyamokthai +!E7 U+0E47 maitaikhuthai +!E8 U+0E48 maiekthai +!E9 U+0E49 maithothai +!EA U+0E4A maitrithai +!EB U+0E4B maichattawathai +!EC U+0E4C thanthakhatthai +!ED U+0E4D nikhahitthai +!EE U+0E4E yamakkanthai +!EF U+0E4F fongmanthai +!F0 U+0E50 zerothai +!F1 U+0E51 onethai +!F2 U+0E52 twothai +!F3 U+0E53 threethai +!F4 U+0E54 fourthai +!F5 U+0E55 fivethai +!F6 U+0E56 sixthai +!F7 U+0E57 seventhai +!F8 U+0E58 eightthai +!F9 U+0E59 ninethai +!FA U+0E5A angkhankhuthai +!FB U+0E5B khomutthai diff --git a/phplib/fpdf181/makefont/iso-8859-15.map b/phplib/fpdf181/makefont/iso-8859-15.map new file mode 100755 index 0000000..6c2b571 --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-15.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+20AC Euro +!A5 U+00A5 yen +!A6 U+0160 Scaron +!A7 U+00A7 section +!A8 U+0161 scaron +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+017D Zcaron +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+017E zcaron +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+0152 OE +!BD U+0153 oe +!BE U+0178 Ydieresis +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+00D0 Eth +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+00DE Thorn +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+00F0 eth +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+00FE thorn +!FF U+00FF ydieresis diff --git a/phplib/fpdf181/makefont/iso-8859-16.map b/phplib/fpdf181/makefont/iso-8859-16.map new file mode 100755 index 0000000..202c8fe --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-16.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+0105 aogonek +!A3 U+0141 Lslash +!A4 U+20AC Euro +!A5 U+201E quotedblbase +!A6 U+0160 Scaron +!A7 U+00A7 section +!A8 U+0161 scaron +!A9 U+00A9 copyright +!AA U+0218 Scommaaccent +!AB U+00AB guillemotleft +!AC U+0179 Zacute +!AD U+00AD hyphen +!AE U+017A zacute +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+010C Ccaron +!B3 U+0142 lslash +!B4 U+017D Zcaron +!B5 U+201D quotedblright +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+017E zcaron +!B9 U+010D ccaron +!BA U+0219 scommaaccent +!BB U+00BB guillemotright +!BC U+0152 OE +!BD U+0153 oe +!BE U+0178 Ydieresis +!BF U+017C zdotaccent +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0106 Cacute +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+015A Sacute +!D8 U+0170 Uhungarumlaut +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0118 Eogonek +!DE U+021A Tcommaaccent +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+0107 cacute +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+015B sacute +!F8 U+0171 uhungarumlaut +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0119 eogonek +!FE U+021B tcommaaccent +!FF U+00FF ydieresis diff --git a/phplib/fpdf181/makefont/iso-8859-2.map b/phplib/fpdf181/makefont/iso-8859-2.map new file mode 100755 index 0000000..65ae09f --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-2.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+02D8 breve +!A3 U+0141 Lslash +!A4 U+00A4 currency +!A5 U+013D Lcaron +!A6 U+015A Sacute +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+0160 Scaron +!AA U+015E Scedilla +!AB U+0164 Tcaron +!AC U+0179 Zacute +!AD U+00AD hyphen +!AE U+017D Zcaron +!AF U+017B Zdotaccent +!B0 U+00B0 degree +!B1 U+0105 aogonek +!B2 U+02DB ogonek +!B3 U+0142 lslash +!B4 U+00B4 acute +!B5 U+013E lcaron +!B6 U+015B sacute +!B7 U+02C7 caron +!B8 U+00B8 cedilla +!B9 U+0161 scaron +!BA U+015F scedilla +!BB U+0165 tcaron +!BC U+017A zacute +!BD U+02DD hungarumlaut +!BE U+017E zcaron +!BF U+017C zdotaccent +!C0 U+0154 Racute +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+0102 Abreve +!C4 U+00C4 Adieresis +!C5 U+0139 Lacute +!C6 U+0106 Cacute +!C7 U+00C7 Ccedilla +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+011A Ecaron +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+010E Dcaron +!D0 U+0110 Dcroat +!D1 U+0143 Nacute +!D2 U+0147 Ncaron +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+0150 Ohungarumlaut +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+0158 Rcaron +!D9 U+016E Uring +!DA U+00DA Uacute +!DB U+0170 Uhungarumlaut +!DC U+00DC Udieresis +!DD U+00DD Yacute +!DE U+0162 Tcommaaccent +!DF U+00DF germandbls +!E0 U+0155 racute +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+0103 abreve +!E4 U+00E4 adieresis +!E5 U+013A lacute +!E6 U+0107 cacute +!E7 U+00E7 ccedilla +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+011B ecaron +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+010F dcaron +!F0 U+0111 dcroat +!F1 U+0144 nacute +!F2 U+0148 ncaron +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+0151 ohungarumlaut +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+0159 rcaron +!F9 U+016F uring +!FA U+00FA uacute +!FB U+0171 uhungarumlaut +!FC U+00FC udieresis +!FD U+00FD yacute +!FE U+0163 tcommaaccent +!FF U+02D9 dotaccent diff --git a/phplib/fpdf181/makefont/iso-8859-4.map b/phplib/fpdf181/makefont/iso-8859-4.map new file mode 100755 index 0000000..a7d87bf --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-4.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0104 Aogonek +!A2 U+0138 kgreenlandic +!A3 U+0156 Rcommaaccent +!A4 U+00A4 currency +!A5 U+0128 Itilde +!A6 U+013B Lcommaaccent +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+0160 Scaron +!AA U+0112 Emacron +!AB U+0122 Gcommaaccent +!AC U+0166 Tbar +!AD U+00AD hyphen +!AE U+017D Zcaron +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+0105 aogonek +!B2 U+02DB ogonek +!B3 U+0157 rcommaaccent +!B4 U+00B4 acute +!B5 U+0129 itilde +!B6 U+013C lcommaaccent +!B7 U+02C7 caron +!B8 U+00B8 cedilla +!B9 U+0161 scaron +!BA U+0113 emacron +!BB U+0123 gcommaaccent +!BC U+0167 tbar +!BD U+014A Eng +!BE U+017E zcaron +!BF U+014B eng +!C0 U+0100 Amacron +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+012E Iogonek +!C8 U+010C Ccaron +!C9 U+00C9 Eacute +!CA U+0118 Eogonek +!CB U+00CB Edieresis +!CC U+0116 Edotaccent +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+012A Imacron +!D0 U+0110 Dcroat +!D1 U+0145 Ncommaaccent +!D2 U+014C Omacron +!D3 U+0136 Kcommaaccent +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+0172 Uogonek +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0168 Utilde +!DE U+016A Umacron +!DF U+00DF germandbls +!E0 U+0101 amacron +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+012F iogonek +!E8 U+010D ccaron +!E9 U+00E9 eacute +!EA U+0119 eogonek +!EB U+00EB edieresis +!EC U+0117 edotaccent +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+012B imacron +!F0 U+0111 dcroat +!F1 U+0146 ncommaaccent +!F2 U+014D omacron +!F3 U+0137 kcommaaccent +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+0173 uogonek +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0169 utilde +!FE U+016B umacron +!FF U+02D9 dotaccent diff --git a/phplib/fpdf181/makefont/iso-8859-5.map b/phplib/fpdf181/makefont/iso-8859-5.map new file mode 100755 index 0000000..f9cd4ed --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-5.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+0401 afii10023 +!A2 U+0402 afii10051 +!A3 U+0403 afii10052 +!A4 U+0404 afii10053 +!A5 U+0405 afii10054 +!A6 U+0406 afii10055 +!A7 U+0407 afii10056 +!A8 U+0408 afii10057 +!A9 U+0409 afii10058 +!AA U+040A afii10059 +!AB U+040B afii10060 +!AC U+040C afii10061 +!AD U+00AD hyphen +!AE U+040E afii10062 +!AF U+040F afii10145 +!B0 U+0410 afii10017 +!B1 U+0411 afii10018 +!B2 U+0412 afii10019 +!B3 U+0413 afii10020 +!B4 U+0414 afii10021 +!B5 U+0415 afii10022 +!B6 U+0416 afii10024 +!B7 U+0417 afii10025 +!B8 U+0418 afii10026 +!B9 U+0419 afii10027 +!BA U+041A afii10028 +!BB U+041B afii10029 +!BC U+041C afii10030 +!BD U+041D afii10031 +!BE U+041E afii10032 +!BF U+041F afii10033 +!C0 U+0420 afii10034 +!C1 U+0421 afii10035 +!C2 U+0422 afii10036 +!C3 U+0423 afii10037 +!C4 U+0424 afii10038 +!C5 U+0425 afii10039 +!C6 U+0426 afii10040 +!C7 U+0427 afii10041 +!C8 U+0428 afii10042 +!C9 U+0429 afii10043 +!CA U+042A afii10044 +!CB U+042B afii10045 +!CC U+042C afii10046 +!CD U+042D afii10047 +!CE U+042E afii10048 +!CF U+042F afii10049 +!D0 U+0430 afii10065 +!D1 U+0431 afii10066 +!D2 U+0432 afii10067 +!D3 U+0433 afii10068 +!D4 U+0434 afii10069 +!D5 U+0435 afii10070 +!D6 U+0436 afii10072 +!D7 U+0437 afii10073 +!D8 U+0438 afii10074 +!D9 U+0439 afii10075 +!DA U+043A afii10076 +!DB U+043B afii10077 +!DC U+043C afii10078 +!DD U+043D afii10079 +!DE U+043E afii10080 +!DF U+043F afii10081 +!E0 U+0440 afii10082 +!E1 U+0441 afii10083 +!E2 U+0442 afii10084 +!E3 U+0443 afii10085 +!E4 U+0444 afii10086 +!E5 U+0445 afii10087 +!E6 U+0446 afii10088 +!E7 U+0447 afii10089 +!E8 U+0448 afii10090 +!E9 U+0449 afii10091 +!EA U+044A afii10092 +!EB U+044B afii10093 +!EC U+044C afii10094 +!ED U+044D afii10095 +!EE U+044E afii10096 +!EF U+044F afii10097 +!F0 U+2116 afii61352 +!F1 U+0451 afii10071 +!F2 U+0452 afii10099 +!F3 U+0453 afii10100 +!F4 U+0454 afii10101 +!F5 U+0455 afii10102 +!F6 U+0456 afii10103 +!F7 U+0457 afii10104 +!F8 U+0458 afii10105 +!F9 U+0459 afii10106 +!FA U+045A afii10107 +!FB U+045B afii10108 +!FC U+045C afii10109 +!FD U+00A7 section +!FE U+045E afii10110 +!FF U+045F afii10193 diff --git a/phplib/fpdf181/makefont/iso-8859-7.map b/phplib/fpdf181/makefont/iso-8859-7.map new file mode 100755 index 0000000..e163796 --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-7.map @@ -0,0 +1,250 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+2018 quoteleft +!A2 U+2019 quoteright +!A3 U+00A3 sterling +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AF U+2015 afii00208 +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+0384 tonos +!B5 U+0385 dieresistonos +!B6 U+0386 Alphatonos +!B7 U+00B7 periodcentered +!B8 U+0388 Epsilontonos +!B9 U+0389 Etatonos +!BA U+038A Iotatonos +!BB U+00BB guillemotright +!BC U+038C Omicrontonos +!BD U+00BD onehalf +!BE U+038E Upsilontonos +!BF U+038F Omegatonos +!C0 U+0390 iotadieresistonos +!C1 U+0391 Alpha +!C2 U+0392 Beta +!C3 U+0393 Gamma +!C4 U+0394 Delta +!C5 U+0395 Epsilon +!C6 U+0396 Zeta +!C7 U+0397 Eta +!C8 U+0398 Theta +!C9 U+0399 Iota +!CA U+039A Kappa +!CB U+039B Lambda +!CC U+039C Mu +!CD U+039D Nu +!CE U+039E Xi +!CF U+039F Omicron +!D0 U+03A0 Pi +!D1 U+03A1 Rho +!D3 U+03A3 Sigma +!D4 U+03A4 Tau +!D5 U+03A5 Upsilon +!D6 U+03A6 Phi +!D7 U+03A7 Chi +!D8 U+03A8 Psi +!D9 U+03A9 Omega +!DA U+03AA Iotadieresis +!DB U+03AB Upsilondieresis +!DC U+03AC alphatonos +!DD U+03AD epsilontonos +!DE U+03AE etatonos +!DF U+03AF iotatonos +!E0 U+03B0 upsilondieresistonos +!E1 U+03B1 alpha +!E2 U+03B2 beta +!E3 U+03B3 gamma +!E4 U+03B4 delta +!E5 U+03B5 epsilon +!E6 U+03B6 zeta +!E7 U+03B7 eta +!E8 U+03B8 theta +!E9 U+03B9 iota +!EA U+03BA kappa +!EB U+03BB lambda +!EC U+03BC mu +!ED U+03BD nu +!EE U+03BE xi +!EF U+03BF omicron +!F0 U+03C0 pi +!F1 U+03C1 rho +!F2 U+03C2 sigma1 +!F3 U+03C3 sigma +!F4 U+03C4 tau +!F5 U+03C5 upsilon +!F6 U+03C6 phi +!F7 U+03C7 chi +!F8 U+03C8 psi +!F9 U+03C9 omega +!FA U+03CA iotadieresis +!FB U+03CB upsilondieresis +!FC U+03CC omicrontonos +!FD U+03CD upsilontonos +!FE U+03CE omegatonos diff --git a/phplib/fpdf181/makefont/iso-8859-9.map b/phplib/fpdf181/makefont/iso-8859-9.map new file mode 100755 index 0000000..48c123a --- /dev/null +++ b/phplib/fpdf181/makefont/iso-8859-9.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+0080 .notdef +!81 U+0081 .notdef +!82 U+0082 .notdef +!83 U+0083 .notdef +!84 U+0084 .notdef +!85 U+0085 .notdef +!86 U+0086 .notdef +!87 U+0087 .notdef +!88 U+0088 .notdef +!89 U+0089 .notdef +!8A U+008A .notdef +!8B U+008B .notdef +!8C U+008C .notdef +!8D U+008D .notdef +!8E U+008E .notdef +!8F U+008F .notdef +!90 U+0090 .notdef +!91 U+0091 .notdef +!92 U+0092 .notdef +!93 U+0093 .notdef +!94 U+0094 .notdef +!95 U+0095 .notdef +!96 U+0096 .notdef +!97 U+0097 .notdef +!98 U+0098 .notdef +!99 U+0099 .notdef +!9A U+009A .notdef +!9B U+009B .notdef +!9C U+009C .notdef +!9D U+009D .notdef +!9E U+009E .notdef +!9F U+009F .notdef +!A0 U+00A0 space +!A1 U+00A1 exclamdown +!A2 U+00A2 cent +!A3 U+00A3 sterling +!A4 U+00A4 currency +!A5 U+00A5 yen +!A6 U+00A6 brokenbar +!A7 U+00A7 section +!A8 U+00A8 dieresis +!A9 U+00A9 copyright +!AA U+00AA ordfeminine +!AB U+00AB guillemotleft +!AC U+00AC logicalnot +!AD U+00AD hyphen +!AE U+00AE registered +!AF U+00AF macron +!B0 U+00B0 degree +!B1 U+00B1 plusminus +!B2 U+00B2 twosuperior +!B3 U+00B3 threesuperior +!B4 U+00B4 acute +!B5 U+00B5 mu +!B6 U+00B6 paragraph +!B7 U+00B7 periodcentered +!B8 U+00B8 cedilla +!B9 U+00B9 onesuperior +!BA U+00BA ordmasculine +!BB U+00BB guillemotright +!BC U+00BC onequarter +!BD U+00BD onehalf +!BE U+00BE threequarters +!BF U+00BF questiondown +!C0 U+00C0 Agrave +!C1 U+00C1 Aacute +!C2 U+00C2 Acircumflex +!C3 U+00C3 Atilde +!C4 U+00C4 Adieresis +!C5 U+00C5 Aring +!C6 U+00C6 AE +!C7 U+00C7 Ccedilla +!C8 U+00C8 Egrave +!C9 U+00C9 Eacute +!CA U+00CA Ecircumflex +!CB U+00CB Edieresis +!CC U+00CC Igrave +!CD U+00CD Iacute +!CE U+00CE Icircumflex +!CF U+00CF Idieresis +!D0 U+011E Gbreve +!D1 U+00D1 Ntilde +!D2 U+00D2 Ograve +!D3 U+00D3 Oacute +!D4 U+00D4 Ocircumflex +!D5 U+00D5 Otilde +!D6 U+00D6 Odieresis +!D7 U+00D7 multiply +!D8 U+00D8 Oslash +!D9 U+00D9 Ugrave +!DA U+00DA Uacute +!DB U+00DB Ucircumflex +!DC U+00DC Udieresis +!DD U+0130 Idotaccent +!DE U+015E Scedilla +!DF U+00DF germandbls +!E0 U+00E0 agrave +!E1 U+00E1 aacute +!E2 U+00E2 acircumflex +!E3 U+00E3 atilde +!E4 U+00E4 adieresis +!E5 U+00E5 aring +!E6 U+00E6 ae +!E7 U+00E7 ccedilla +!E8 U+00E8 egrave +!E9 U+00E9 eacute +!EA U+00EA ecircumflex +!EB U+00EB edieresis +!EC U+00EC igrave +!ED U+00ED iacute +!EE U+00EE icircumflex +!EF U+00EF idieresis +!F0 U+011F gbreve +!F1 U+00F1 ntilde +!F2 U+00F2 ograve +!F3 U+00F3 oacute +!F4 U+00F4 ocircumflex +!F5 U+00F5 otilde +!F6 U+00F6 odieresis +!F7 U+00F7 divide +!F8 U+00F8 oslash +!F9 U+00F9 ugrave +!FA U+00FA uacute +!FB U+00FB ucircumflex +!FC U+00FC udieresis +!FD U+0131 dotlessi +!FE U+015F scedilla +!FF U+00FF ydieresis diff --git a/phplib/fpdf181/makefont/koi8-r.map b/phplib/fpdf181/makefont/koi8-r.map new file mode 100755 index 0000000..6ad5d05 --- /dev/null +++ b/phplib/fpdf181/makefont/koi8-r.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+2500 SF100000 +!81 U+2502 SF110000 +!82 U+250C SF010000 +!83 U+2510 SF030000 +!84 U+2514 SF020000 +!85 U+2518 SF040000 +!86 U+251C SF080000 +!87 U+2524 SF090000 +!88 U+252C SF060000 +!89 U+2534 SF070000 +!8A U+253C SF050000 +!8B U+2580 upblock +!8C U+2584 dnblock +!8D U+2588 block +!8E U+258C lfblock +!8F U+2590 rtblock +!90 U+2591 ltshade +!91 U+2592 shade +!92 U+2593 dkshade +!93 U+2320 integraltp +!94 U+25A0 filledbox +!95 U+2219 periodcentered +!96 U+221A radical +!97 U+2248 approxequal +!98 U+2264 lessequal +!99 U+2265 greaterequal +!9A U+00A0 space +!9B U+2321 integralbt +!9C U+00B0 degree +!9D U+00B2 twosuperior +!9E U+00B7 periodcentered +!9F U+00F7 divide +!A0 U+2550 SF430000 +!A1 U+2551 SF240000 +!A2 U+2552 SF510000 +!A3 U+0451 afii10071 +!A4 U+2553 SF520000 +!A5 U+2554 SF390000 +!A6 U+2555 SF220000 +!A7 U+2556 SF210000 +!A8 U+2557 SF250000 +!A9 U+2558 SF500000 +!AA U+2559 SF490000 +!AB U+255A SF380000 +!AC U+255B SF280000 +!AD U+255C SF270000 +!AE U+255D SF260000 +!AF U+255E SF360000 +!B0 U+255F SF370000 +!B1 U+2560 SF420000 +!B2 U+2561 SF190000 +!B3 U+0401 afii10023 +!B4 U+2562 SF200000 +!B5 U+2563 SF230000 +!B6 U+2564 SF470000 +!B7 U+2565 SF480000 +!B8 U+2566 SF410000 +!B9 U+2567 SF450000 +!BA U+2568 SF460000 +!BB U+2569 SF400000 +!BC U+256A SF540000 +!BD U+256B SF530000 +!BE U+256C SF440000 +!BF U+00A9 copyright +!C0 U+044E afii10096 +!C1 U+0430 afii10065 +!C2 U+0431 afii10066 +!C3 U+0446 afii10088 +!C4 U+0434 afii10069 +!C5 U+0435 afii10070 +!C6 U+0444 afii10086 +!C7 U+0433 afii10068 +!C8 U+0445 afii10087 +!C9 U+0438 afii10074 +!CA U+0439 afii10075 +!CB U+043A afii10076 +!CC U+043B afii10077 +!CD U+043C afii10078 +!CE U+043D afii10079 +!CF U+043E afii10080 +!D0 U+043F afii10081 +!D1 U+044F afii10097 +!D2 U+0440 afii10082 +!D3 U+0441 afii10083 +!D4 U+0442 afii10084 +!D5 U+0443 afii10085 +!D6 U+0436 afii10072 +!D7 U+0432 afii10067 +!D8 U+044C afii10094 +!D9 U+044B afii10093 +!DA U+0437 afii10073 +!DB U+0448 afii10090 +!DC U+044D afii10095 +!DD U+0449 afii10091 +!DE U+0447 afii10089 +!DF U+044A afii10092 +!E0 U+042E afii10048 +!E1 U+0410 afii10017 +!E2 U+0411 afii10018 +!E3 U+0426 afii10040 +!E4 U+0414 afii10021 +!E5 U+0415 afii10022 +!E6 U+0424 afii10038 +!E7 U+0413 afii10020 +!E8 U+0425 afii10039 +!E9 U+0418 afii10026 +!EA U+0419 afii10027 +!EB U+041A afii10028 +!EC U+041B afii10029 +!ED U+041C afii10030 +!EE U+041D afii10031 +!EF U+041E afii10032 +!F0 U+041F afii10033 +!F1 U+042F afii10049 +!F2 U+0420 afii10034 +!F3 U+0421 afii10035 +!F4 U+0422 afii10036 +!F5 U+0423 afii10037 +!F6 U+0416 afii10024 +!F7 U+0412 afii10019 +!F8 U+042C afii10046 +!F9 U+042B afii10045 +!FA U+0417 afii10025 +!FB U+0428 afii10042 +!FC U+042D afii10047 +!FD U+0429 afii10043 +!FE U+0427 afii10041 +!FF U+042A afii10044 diff --git a/phplib/fpdf181/makefont/koi8-u.map b/phplib/fpdf181/makefont/koi8-u.map new file mode 100755 index 0000000..40a7e4f --- /dev/null +++ b/phplib/fpdf181/makefont/koi8-u.map @@ -0,0 +1,256 @@ +!00 U+0000 .notdef +!01 U+0001 .notdef +!02 U+0002 .notdef +!03 U+0003 .notdef +!04 U+0004 .notdef +!05 U+0005 .notdef +!06 U+0006 .notdef +!07 U+0007 .notdef +!08 U+0008 .notdef +!09 U+0009 .notdef +!0A U+000A .notdef +!0B U+000B .notdef +!0C U+000C .notdef +!0D U+000D .notdef +!0E U+000E .notdef +!0F U+000F .notdef +!10 U+0010 .notdef +!11 U+0011 .notdef +!12 U+0012 .notdef +!13 U+0013 .notdef +!14 U+0014 .notdef +!15 U+0015 .notdef +!16 U+0016 .notdef +!17 U+0017 .notdef +!18 U+0018 .notdef +!19 U+0019 .notdef +!1A U+001A .notdef +!1B U+001B .notdef +!1C U+001C .notdef +!1D U+001D .notdef +!1E U+001E .notdef +!1F U+001F .notdef +!20 U+0020 space +!21 U+0021 exclam +!22 U+0022 quotedbl +!23 U+0023 numbersign +!24 U+0024 dollar +!25 U+0025 percent +!26 U+0026 ampersand +!27 U+0027 quotesingle +!28 U+0028 parenleft +!29 U+0029 parenright +!2A U+002A asterisk +!2B U+002B plus +!2C U+002C comma +!2D U+002D hyphen +!2E U+002E period +!2F U+002F slash +!30 U+0030 zero +!31 U+0031 one +!32 U+0032 two +!33 U+0033 three +!34 U+0034 four +!35 U+0035 five +!36 U+0036 six +!37 U+0037 seven +!38 U+0038 eight +!39 U+0039 nine +!3A U+003A colon +!3B U+003B semicolon +!3C U+003C less +!3D U+003D equal +!3E U+003E greater +!3F U+003F question +!40 U+0040 at +!41 U+0041 A +!42 U+0042 B +!43 U+0043 C +!44 U+0044 D +!45 U+0045 E +!46 U+0046 F +!47 U+0047 G +!48 U+0048 H +!49 U+0049 I +!4A U+004A J +!4B U+004B K +!4C U+004C L +!4D U+004D M +!4E U+004E N +!4F U+004F O +!50 U+0050 P +!51 U+0051 Q +!52 U+0052 R +!53 U+0053 S +!54 U+0054 T +!55 U+0055 U +!56 U+0056 V +!57 U+0057 W +!58 U+0058 X +!59 U+0059 Y +!5A U+005A Z +!5B U+005B bracketleft +!5C U+005C backslash +!5D U+005D bracketright +!5E U+005E asciicircum +!5F U+005F underscore +!60 U+0060 grave +!61 U+0061 a +!62 U+0062 b +!63 U+0063 c +!64 U+0064 d +!65 U+0065 e +!66 U+0066 f +!67 U+0067 g +!68 U+0068 h +!69 U+0069 i +!6A U+006A j +!6B U+006B k +!6C U+006C l +!6D U+006D m +!6E U+006E n +!6F U+006F o +!70 U+0070 p +!71 U+0071 q +!72 U+0072 r +!73 U+0073 s +!74 U+0074 t +!75 U+0075 u +!76 U+0076 v +!77 U+0077 w +!78 U+0078 x +!79 U+0079 y +!7A U+007A z +!7B U+007B braceleft +!7C U+007C bar +!7D U+007D braceright +!7E U+007E asciitilde +!7F U+007F .notdef +!80 U+2500 SF100000 +!81 U+2502 SF110000 +!82 U+250C SF010000 +!83 U+2510 SF030000 +!84 U+2514 SF020000 +!85 U+2518 SF040000 +!86 U+251C SF080000 +!87 U+2524 SF090000 +!88 U+252C SF060000 +!89 U+2534 SF070000 +!8A U+253C SF050000 +!8B U+2580 upblock +!8C U+2584 dnblock +!8D U+2588 block +!8E U+258C lfblock +!8F U+2590 rtblock +!90 U+2591 ltshade +!91 U+2592 shade +!92 U+2593 dkshade +!93 U+2320 integraltp +!94 U+25A0 filledbox +!95 U+2022 bullet +!96 U+221A radical +!97 U+2248 approxequal +!98 U+2264 lessequal +!99 U+2265 greaterequal +!9A U+00A0 space +!9B U+2321 integralbt +!9C U+00B0 degree +!9D U+00B2 twosuperior +!9E U+00B7 periodcentered +!9F U+00F7 divide +!A0 U+2550 SF430000 +!A1 U+2551 SF240000 +!A2 U+2552 SF510000 +!A3 U+0451 afii10071 +!A4 U+0454 afii10101 +!A5 U+2554 SF390000 +!A6 U+0456 afii10103 +!A7 U+0457 afii10104 +!A8 U+2557 SF250000 +!A9 U+2558 SF500000 +!AA U+2559 SF490000 +!AB U+255A SF380000 +!AC U+255B SF280000 +!AD U+0491 afii10098 +!AE U+255D SF260000 +!AF U+255E SF360000 +!B0 U+255F SF370000 +!B1 U+2560 SF420000 +!B2 U+2561 SF190000 +!B3 U+0401 afii10023 +!B4 U+0404 afii10053 +!B5 U+2563 SF230000 +!B6 U+0406 afii10055 +!B7 U+0407 afii10056 +!B8 U+2566 SF410000 +!B9 U+2567 SF450000 +!BA U+2568 SF460000 +!BB U+2569 SF400000 +!BC U+256A SF540000 +!BD U+0490 afii10050 +!BE U+256C SF440000 +!BF U+00A9 copyright +!C0 U+044E afii10096 +!C1 U+0430 afii10065 +!C2 U+0431 afii10066 +!C3 U+0446 afii10088 +!C4 U+0434 afii10069 +!C5 U+0435 afii10070 +!C6 U+0444 afii10086 +!C7 U+0433 afii10068 +!C8 U+0445 afii10087 +!C9 U+0438 afii10074 +!CA U+0439 afii10075 +!CB U+043A afii10076 +!CC U+043B afii10077 +!CD U+043C afii10078 +!CE U+043D afii10079 +!CF U+043E afii10080 +!D0 U+043F afii10081 +!D1 U+044F afii10097 +!D2 U+0440 afii10082 +!D3 U+0441 afii10083 +!D4 U+0442 afii10084 +!D5 U+0443 afii10085 +!D6 U+0436 afii10072 +!D7 U+0432 afii10067 +!D8 U+044C afii10094 +!D9 U+044B afii10093 +!DA U+0437 afii10073 +!DB U+0448 afii10090 +!DC U+044D afii10095 +!DD U+0449 afii10091 +!DE U+0447 afii10089 +!DF U+044A afii10092 +!E0 U+042E afii10048 +!E1 U+0410 afii10017 +!E2 U+0411 afii10018 +!E3 U+0426 afii10040 +!E4 U+0414 afii10021 +!E5 U+0415 afii10022 +!E6 U+0424 afii10038 +!E7 U+0413 afii10020 +!E8 U+0425 afii10039 +!E9 U+0418 afii10026 +!EA U+0419 afii10027 +!EB U+041A afii10028 +!EC U+041B afii10029 +!ED U+041C afii10030 +!EE U+041D afii10031 +!EF U+041E afii10032 +!F0 U+041F afii10033 +!F1 U+042F afii10049 +!F2 U+0420 afii10034 +!F3 U+0421 afii10035 +!F4 U+0422 afii10036 +!F5 U+0423 afii10037 +!F6 U+0416 afii10024 +!F7 U+0412 afii10019 +!F8 U+042C afii10046 +!F9 U+042B afii10045 +!FA U+0417 afii10025 +!FB U+0428 afii10042 +!FC U+042D afii10047 +!FD U+0429 afii10043 +!FE U+0427 afii10041 +!FF U+042A afii10044 diff --git a/phplib/fpdf181/makefont/makefont.php b/phplib/fpdf181/makefont/makefont.php new file mode 100755 index 0000000..052f35f --- /dev/null +++ b/phplib/fpdf181/makefont/makefont.php @@ -0,0 +1,451 @@ +$severity: "; + echo "$txt
"; + } +} + +function Notice($txt) +{ + Message($txt, 'Notice'); +} + +function Warning($txt) +{ + Message($txt, 'Warning'); +} + +function Error($txt) +{ + Message($txt, 'Error'); + exit; +} + +function LoadMap($enc) +{ + $file = dirname(__FILE__).'/'.strtolower($enc).'.map'; + $a = file($file); + if(empty($a)) + Error('Encoding not found: '.$enc); + $map = array_fill(0, 256, array('uv'=>-1, 'name'=>'.notdef')); + foreach($a as $line) + { + $e = explode(' ', rtrim($line)); + $c = hexdec(substr($e[0],1)); + $uv = hexdec(substr($e[1],2)); + $name = $e[2]; + $map[$c] = array('uv'=>$uv, 'name'=>$name); + } + return $map; +} + +function GetInfoFromTrueType($file, $embed, $subset, $map) +{ + // Return information from a TrueType font + try + { + $ttf = new TTFParser($file); + $ttf->Parse(); + } + catch(Exception $e) + { + Error($e->getMessage()); + } + if($embed) + { + if(!$ttf->embeddable) + Error('Font license does not allow embedding'); + if($subset) + { + $chars = array(); + foreach($map as $v) + { + if($v['name']!='.notdef') + $chars[] = $v['uv']; + } + $ttf->Subset($chars); + $info['Data'] = $ttf->Build(); + } + else + $info['Data'] = file_get_contents($file); + $info['OriginalSize'] = strlen($info['Data']); + } + $k = 1000/$ttf->unitsPerEm; + $info['FontName'] = $ttf->postScriptName; + $info['Bold'] = $ttf->bold; + $info['ItalicAngle'] = $ttf->italicAngle; + $info['IsFixedPitch'] = $ttf->isFixedPitch; + $info['Ascender'] = round($k*$ttf->typoAscender); + $info['Descender'] = round($k*$ttf->typoDescender); + $info['UnderlineThickness'] = round($k*$ttf->underlineThickness); + $info['UnderlinePosition'] = round($k*$ttf->underlinePosition); + $info['FontBBox'] = array(round($k*$ttf->xMin), round($k*$ttf->yMin), round($k*$ttf->xMax), round($k*$ttf->yMax)); + $info['CapHeight'] = round($k*$ttf->capHeight); + $info['MissingWidth'] = round($k*$ttf->glyphs[0]['w']); + $widths = array_fill(0, 256, $info['MissingWidth']); + foreach($map as $c=>$v) + { + if($v['name']!='.notdef') + { + if(isset($ttf->chars[$v['uv']])) + { + $id = $ttf->chars[$v['uv']]; + $w = $ttf->glyphs[$id]['w']; + $widths[$c] = round($k*$w); + } + else + Warning('Character '.$v['name'].' is missing'); + } + } + $info['Widths'] = $widths; + return $info; +} + +function GetInfoFromType1($file, $embed, $map) +{ + // Return information from a Type1 font + if($embed) + { + $f = fopen($file, 'rb'); + if(!$f) + Error('Can\'t open font file'); + // Read first segment + $a = unpack('Cmarker/Ctype/Vsize', fread($f,6)); + if($a['marker']!=128) + Error('Font file is not a valid binary Type1'); + $size1 = $a['size']; + $data = fread($f, $size1); + // Read second segment + $a = unpack('Cmarker/Ctype/Vsize', fread($f,6)); + if($a['marker']!=128) + Error('Font file is not a valid binary Type1'); + $size2 = $a['size']; + $data .= fread($f, $size2); + fclose($f); + $info['Data'] = $data; + $info['Size1'] = $size1; + $info['Size2'] = $size2; + } + + $afm = substr($file, 0, -3).'afm'; + if(!file_exists($afm)) + Error('AFM font file not found: '.$afm); + $a = file($afm); + if(empty($a)) + Error('AFM file empty or not readable'); + foreach($a as $line) + { + $e = explode(' ', rtrim($line)); + if(count($e)<2) + continue; + $entry = $e[0]; + if($entry=='C') + { + $w = $e[4]; + $name = $e[7]; + $cw[$name] = $w; + } + elseif($entry=='FontName') + $info['FontName'] = $e[1]; + elseif($entry=='Weight') + $info['Weight'] = $e[1]; + elseif($entry=='ItalicAngle') + $info['ItalicAngle'] = (int)$e[1]; + elseif($entry=='Ascender') + $info['Ascender'] = (int)$e[1]; + elseif($entry=='Descender') + $info['Descender'] = (int)$e[1]; + elseif($entry=='UnderlineThickness') + $info['UnderlineThickness'] = (int)$e[1]; + elseif($entry=='UnderlinePosition') + $info['UnderlinePosition'] = (int)$e[1]; + elseif($entry=='IsFixedPitch') + $info['IsFixedPitch'] = ($e[1]=='true'); + elseif($entry=='FontBBox') + $info['FontBBox'] = array((int)$e[1], (int)$e[2], (int)$e[3], (int)$e[4]); + elseif($entry=='CapHeight') + $info['CapHeight'] = (int)$e[1]; + elseif($entry=='StdVW') + $info['StdVW'] = (int)$e[1]; + } + + if(!isset($info['FontName'])) + Error('FontName missing in AFM file'); + if(!isset($info['Ascender'])) + $info['Ascender'] = $info['FontBBox'][3]; + if(!isset($info['Descender'])) + $info['Descender'] = $info['FontBBox'][1]; + $info['Bold'] = isset($info['Weight']) && preg_match('/bold|black/i', $info['Weight']); + if(isset($cw['.notdef'])) + $info['MissingWidth'] = $cw['.notdef']; + else + $info['MissingWidth'] = 0; + $widths = array_fill(0, 256, $info['MissingWidth']); + foreach($map as $c=>$v) + { + if($v['name']!='.notdef') + { + if(isset($cw[$v['name']])) + $widths[$c] = $cw[$v['name']]; + else + Warning('Character '.$v['name'].' is missing'); + } + } + $info['Widths'] = $widths; + return $info; +} + +function MakeFontDescriptor($info) +{ + // Ascent + $fd = "array('Ascent'=>".$info['Ascender']; + // Descent + $fd .= ",'Descent'=>".$info['Descender']; + // CapHeight + if(!empty($info['CapHeight'])) + $fd .= ",'CapHeight'=>".$info['CapHeight']; + else + $fd .= ",'CapHeight'=>".$info['Ascender']; + // Flags + $flags = 0; + if($info['IsFixedPitch']) + $flags += 1<<0; + $flags += 1<<5; + if($info['ItalicAngle']!=0) + $flags += 1<<6; + $fd .= ",'Flags'=>".$flags; + // FontBBox + $fbb = $info['FontBBox']; + $fd .= ",'FontBBox'=>'[".$fbb[0].' '.$fbb[1].' '.$fbb[2].' '.$fbb[3]."]'"; + // ItalicAngle + $fd .= ",'ItalicAngle'=>".$info['ItalicAngle']; + // StemV + if(isset($info['StdVW'])) + $stemv = $info['StdVW']; + elseif($info['Bold']) + $stemv = 120; + else + $stemv = 70; + $fd .= ",'StemV'=>".$stemv; + // MissingWidth + $fd .= ",'MissingWidth'=>".$info['MissingWidth'].')'; + return $fd; +} + +function MakeWidthArray($widths) +{ + $s = "array(\n\t"; + for($c=0;$c<=255;$c++) + { + if(chr($c)=="'") + $s .= "'\\''"; + elseif(chr($c)=="\\") + $s .= "'\\\\'"; + elseif($c>=32 && $c<=126) + $s .= "'".chr($c)."'"; + else + $s .= "chr($c)"; + $s .= '=>'.$widths[$c]; + if($c<255) + $s .= ','; + if(($c+1)%22==0) + $s .= "\n\t"; + } + $s .= ')'; + return $s; +} + +function MakeFontEncoding($map) +{ + // Build differences from reference encoding + $ref = LoadMap('cp1252'); + $s = ''; + $last = 0; + for($c=32;$c<=255;$c++) + { + if($map[$c]['name']!=$ref[$c]['name']) + { + if($c!=$last+1) + $s .= $c.' '; + $last = $c; + $s .= '/'.$map[$c]['name'].' '; + } + } + return rtrim($s); +} + +function MakeUnicodeArray($map) +{ + // Build mapping to Unicode values + $ranges = array(); + foreach($map as $c=>$v) + { + $uv = $v['uv']; + if($uv!=-1) + { + if(isset($range)) + { + if($c==$range[1]+1 && $uv==$range[3]+1) + { + $range[1]++; + $range[3]++; + } + else + { + $ranges[] = $range; + $range = array($c, $c, $uv, $uv); + } + } + else + $range = array($c, $c, $uv, $uv); + } + } + $ranges[] = $range; + + foreach($ranges as $range) + { + if(isset($s)) + $s .= ','; + else + $s = 'array('; + $s .= $range[0].'=>'; + $nb = $range[1]-$range[0]+1; + if($nb>1) + $s .= 'array('.$range[2].','.$nb.')'; + else + $s .= $range[2]; + } + $s .= ')'; + return $s; +} + +function SaveToFile($file, $s, $mode) +{ + $f = fopen($file, 'w'.$mode); + if(!$f) + Error('Can\'t write to file '.$file); + fwrite($f, $s); + fclose($f); +} + +function MakeDefinitionFile($file, $type, $enc, $embed, $subset, $map, $info) +{ + $s = "\n"; + SaveToFile($file, $s, 't'); +} + +function MakeFont($fontfile, $enc='cp1252', $embed=true, $subset=true) +{ + // Generate a font definition file + if(get_magic_quotes_runtime()) + @set_magic_quotes_runtime(false); + ini_set('auto_detect_line_endings', '1'); + + if(!file_exists($fontfile)) + Error('Font file not found: '.$fontfile); + $ext = strtolower(substr($fontfile,-3)); + if($ext=='ttf' || $ext=='otf') + $type = 'TrueType'; + elseif($ext=='pfb') + $type = 'Type1'; + else + Error('Unrecognized font file extension: '.$ext); + + $map = LoadMap($enc); + + if($type=='TrueType') + $info = GetInfoFromTrueType($fontfile, $embed, $subset, $map); + else + $info = GetInfoFromType1($fontfile, $embed, $map); + + $basename = substr(basename($fontfile), 0, -4); + if($embed) + { + if(function_exists('gzcompress')) + { + $file = $basename.'.z'; + SaveToFile($file, gzcompress($info['Data']), 'b'); + $info['File'] = $file; + Message('Font file compressed: '.$file); + } + else + { + $info['File'] = basename($fontfile); + $subset = false; + Notice('Font file could not be compressed (zlib extension not available)'); + } + } + + MakeDefinitionFile($basename.'.php', $type, $enc, $embed, $subset, $map, $info); + Message('Font definition file generated: '.$basename.'.php'); +} + +if(PHP_SAPI=='cli') +{ + // Command-line interface + ini_set('log_errors', '0'); + if($argc==1) + die("Usage: php makefont.php fontfile [encoding] [embed] [subset]\n"); + $fontfile = $argv[1]; + if($argc>=3) + $enc = $argv[2]; + else + $enc = 'cp1252'; + if($argc>=4) + $embed = ($argv[3]=='true' || $argv[3]=='1'); + else + $embed = true; + if($argc>=5) + $subset = ($argv[4]=='true' || $argv[4]=='1'); + else + $subset = true; + MakeFont($fontfile, $enc, $embed, $subset); +} +?> diff --git a/phplib/fpdf181/makefont/ttfparser.php b/phplib/fpdf181/makefont/ttfparser.php new file mode 100755 index 0000000..e6ba321 --- /dev/null +++ b/phplib/fpdf181/makefont/ttfparser.php @@ -0,0 +1,723 @@ +f = fopen($file, 'rb'); + if(!$this->f) + $this->Error('Can\'t open file: '.$file); + } + + function __destruct() + { + if(is_resource($this->f)) + fclose($this->f); + } + + function Parse() + { + $this->ParseOffsetTable(); + $this->ParseHead(); + $this->ParseHhea(); + $this->ParseMaxp(); + $this->ParseHmtx(); + $this->ParseLoca(); + $this->ParseGlyf(); + $this->ParseCmap(); + $this->ParseName(); + $this->ParseOS2(); + $this->ParsePost(); + } + + function ParseOffsetTable() + { + $version = $this->Read(4); + if($version=='OTTO') + $this->Error('OpenType fonts based on PostScript outlines are not supported'); + if($version!="\x00\x01\x00\x00") + $this->Error('Unrecognized file format'); + $numTables = $this->ReadUShort(); + $this->Skip(3*2); // searchRange, entrySelector, rangeShift + $this->tables = array(); + for($i=0;$i<$numTables;$i++) + { + $tag = $this->Read(4); + $checkSum = $this->Read(4); + $offset = $this->ReadULong(); + $length = $this->ReadULong(4); + $this->tables[$tag] = array('offset'=>$offset, 'length'=>$length, 'checkSum'=>$checkSum); + } + } + + function ParseHead() + { + $this->Seek('head'); + $this->Skip(3*4); // version, fontRevision, checkSumAdjustment + $magicNumber = $this->ReadULong(); + if($magicNumber!=0x5F0F3CF5) + $this->Error('Incorrect magic number'); + $this->Skip(2); // flags + $this->unitsPerEm = $this->ReadUShort(); + $this->Skip(2*8); // created, modified + $this->xMin = $this->ReadShort(); + $this->yMin = $this->ReadShort(); + $this->xMax = $this->ReadShort(); + $this->yMax = $this->ReadShort(); + $this->Skip(3*2); // macStyle, lowestRecPPEM, fontDirectionHint + $this->indexToLocFormat = $this->ReadShort(); + } + + function ParseHhea() + { + $this->Seek('hhea'); + $this->Skip(4+15*2); + $this->numberOfHMetrics = $this->ReadUShort(); + } + + function ParseMaxp() + { + $this->Seek('maxp'); + $this->Skip(4); + $this->numGlyphs = $this->ReadUShort(); + } + + function ParseHmtx() + { + $this->Seek('hmtx'); + $this->glyphs = array(); + for($i=0;$i<$this->numberOfHMetrics;$i++) + { + $advanceWidth = $this->ReadUShort(); + $lsb = $this->ReadShort(); + $this->glyphs[$i] = array('w'=>$advanceWidth, 'lsb'=>$lsb); + } + for($i=$this->numberOfHMetrics;$i<$this->numGlyphs;$i++) + { + $lsb = $this->ReadShort(); + $this->glyphs[$i] = array('w'=>$advanceWidth, 'lsb'=>$lsb); + } + } + + function ParseLoca() + { + $this->Seek('loca'); + $offsets = array(); + if($this->indexToLocFormat==0) + { + // Short format + for($i=0;$i<=$this->numGlyphs;$i++) + $offsets[] = 2*$this->ReadUShort(); + } + else + { + // Long format + for($i=0;$i<=$this->numGlyphs;$i++) + $offsets[] = $this->ReadULong(); + } + for($i=0;$i<$this->numGlyphs;$i++) + { + $this->glyphs[$i]['offset'] = $offsets[$i]; + $this->glyphs[$i]['length'] = $offsets[$i+1] - $offsets[$i]; + } + } + + function ParseGlyf() + { + $tableOffset = $this->tables['glyf']['offset']; + foreach($this->glyphs as &$glyph) + { + if($glyph['length']>0) + { + fseek($this->f, $tableOffset+$glyph['offset'], SEEK_SET); + if($this->ReadShort()<0) + { + // Composite glyph + $this->Skip(4*2); // xMin, yMin, xMax, yMax + $offset = 5*2; + $a = array(); + do + { + $flags = $this->ReadUShort(); + $index = $this->ReadUShort(); + $a[$offset+2] = $index; + if($flags & 1) // ARG_1_AND_2_ARE_WORDS + $skip = 2*2; + else + $skip = 2; + if($flags & 8) // WE_HAVE_A_SCALE + $skip += 2; + elseif($flags & 64) // WE_HAVE_AN_X_AND_Y_SCALE + $skip += 2*2; + elseif($flags & 128) // WE_HAVE_A_TWO_BY_TWO + $skip += 4*2; + $this->Skip($skip); + $offset += 2*2 + $skip; + } + while($flags & 32); // MORE_COMPONENTS + $glyph['components'] = $a; + } + } + } + } + + function ParseCmap() + { + $this->Seek('cmap'); + $this->Skip(2); // version + $numTables = $this->ReadUShort(); + $offset31 = 0; + for($i=0;$i<$numTables;$i++) + { + $platformID = $this->ReadUShort(); + $encodingID = $this->ReadUShort(); + $offset = $this->ReadULong(); + if($platformID==3 && $encodingID==1) + $offset31 = $offset; + } + if($offset31==0) + $this->Error('No Unicode encoding found'); + + $startCount = array(); + $endCount = array(); + $idDelta = array(); + $idRangeOffset = array(); + $this->chars = array(); + fseek($this->f, $this->tables['cmap']['offset']+$offset31, SEEK_SET); + $format = $this->ReadUShort(); + if($format!=4) + $this->Error('Unexpected subtable format: '.$format); + $this->Skip(2*2); // length, language + $segCount = $this->ReadUShort()/2; + $this->Skip(3*2); // searchRange, entrySelector, rangeShift + for($i=0;$i<$segCount;$i++) + $endCount[$i] = $this->ReadUShort(); + $this->Skip(2); // reservedPad + for($i=0;$i<$segCount;$i++) + $startCount[$i] = $this->ReadUShort(); + for($i=0;$i<$segCount;$i++) + $idDelta[$i] = $this->ReadShort(); + $offset = ftell($this->f); + for($i=0;$i<$segCount;$i++) + $idRangeOffset[$i] = $this->ReadUShort(); + + for($i=0;$i<$segCount;$i++) + { + $c1 = $startCount[$i]; + $c2 = $endCount[$i]; + $d = $idDelta[$i]; + $ro = $idRangeOffset[$i]; + if($ro>0) + fseek($this->f, $offset+2*$i+$ro, SEEK_SET); + for($c=$c1;$c<=$c2;$c++) + { + if($c==0xFFFF) + break; + if($ro>0) + { + $gid = $this->ReadUShort(); + if($gid>0) + $gid += $d; + } + else + $gid = $c+$d; + if($gid>=65536) + $gid -= 65536; + if($gid>0) + $this->chars[$c] = $gid; + } + } + } + + function ParseName() + { + $this->Seek('name'); + $tableOffset = $this->tables['name']['offset']; + $this->postScriptName = ''; + $this->Skip(2); // format + $count = $this->ReadUShort(); + $stringOffset = $this->ReadUShort(); + for($i=0;$i<$count;$i++) + { + $this->Skip(3*2); // platformID, encodingID, languageID + $nameID = $this->ReadUShort(); + $length = $this->ReadUShort(); + $offset = $this->ReadUShort(); + if($nameID==6) + { + // PostScript name + fseek($this->f, $tableOffset+$stringOffset+$offset, SEEK_SET); + $s = $this->Read($length); + $s = str_replace(chr(0), '', $s); + $s = preg_replace('|[ \[\](){}<>/%]|', '', $s); + $this->postScriptName = $s; + break; + } + } + if($this->postScriptName=='') + $this->Error('PostScript name not found'); + } + + function ParseOS2() + { + $this->Seek('OS/2'); + $version = $this->ReadUShort(); + $this->Skip(3*2); // xAvgCharWidth, usWeightClass, usWidthClass + $fsType = $this->ReadUShort(); + $this->embeddable = ($fsType!=2) && ($fsType & 0x200)==0; + $this->Skip(11*2+10+4*4+4); + $fsSelection = $this->ReadUShort(); + $this->bold = ($fsSelection & 32)!=0; + $this->Skip(2*2); // usFirstCharIndex, usLastCharIndex + $this->typoAscender = $this->ReadShort(); + $this->typoDescender = $this->ReadShort(); + if($version>=2) + { + $this->Skip(3*2+2*4+2); + $this->capHeight = $this->ReadShort(); + } + else + $this->capHeight = 0; + } + + function ParsePost() + { + $this->Seek('post'); + $version = $this->ReadULong(); + $this->italicAngle = $this->ReadShort(); + $this->Skip(2); // Skip decimal part + $this->underlinePosition = $this->ReadShort(); + $this->underlineThickness = $this->ReadShort(); + $this->isFixedPitch = ($this->ReadULong()!=0); + if($version==0x20000) + { + // Extract glyph names + $this->Skip(4*4); // min/max usage + $this->Skip(2); // numberOfGlyphs + $glyphNameIndex = array(); + $names = array(); + $numNames = 0; + for($i=0;$i<$this->numGlyphs;$i++) + { + $index = $this->ReadUShort(); + $glyphNameIndex[] = $index; + if($index>=258 && $index-257>$numNames) + $numNames = $index-257; + } + for($i=0;$i<$numNames;$i++) + { + $len = ord($this->Read(1)); + $names[] = $this->Read($len); + } + foreach($glyphNameIndex as $i=>$index) + { + if($index>=258) + $this->glyphs[$i]['name'] = $names[$index-258]; + else + $this->glyphs[$i]['name'] = $index; + } + $this->glyphNames = true; + } + else + $this->glyphNames = false; + } + + function Subset($chars) + { +/* $chars = array_keys($this->chars); + $this->subsettedChars = $chars; + $this->subsettedGlyphs = array(); + for($i=0;$i<$this->numGlyphs;$i++) + { + $this->subsettedGlyphs[] = $i; + $this->glyphs[$i]['ssid'] = $i; + }*/ + + $this->AddGlyph(0); + $this->subsettedChars = array(); + foreach($chars as $char) + { + if(isset($this->chars[$char])) + { + $this->subsettedChars[] = $char; + $this->AddGlyph($this->chars[$char]); + } + } + } + + function AddGlyph($id) + { + if(!isset($this->glyphs[$id]['ssid'])) + { + $this->glyphs[$id]['ssid'] = count($this->subsettedGlyphs); + $this->subsettedGlyphs[] = $id; + if(isset($this->glyphs[$id]['components'])) + { + foreach($this->glyphs[$id]['components'] as $cid) + $this->AddGlyph($cid); + } + } + } + + function Build() + { + $this->BuildCmap(); + $this->BuildHhea(); + $this->BuildHmtx(); + $this->BuildLoca(); + $this->BuildGlyf(); + $this->BuildMaxp(); + $this->BuildPost(); + return $this->BuildFont(); + } + + function BuildCmap() + { + if(!isset($this->subsettedChars)) + return; + + // Divide charset in contiguous segments + $chars = $this->subsettedChars; + sort($chars); + $segments = array(); + $segment = array($chars[0], $chars[0]); + for($i=1;$i$segment[1]+1) + { + $segments[] = $segment; + $segment = array($chars[$i], $chars[$i]); + } + else + $segment[1]++; + } + $segments[] = $segment; + $segments[] = array(0xFFFF, 0xFFFF); + $segCount = count($segments); + + // Build a Format 4 subtable + $startCount = array(); + $endCount = array(); + $idDelta = array(); + $idRangeOffset = array(); + $glyphIdArray = ''; + for($i=0;$i<$segCount;$i++) + { + list($start, $end) = $segments[$i]; + $startCount[] = $start; + $endCount[] = $end; + if($start!=$end) + { + // Segment with multiple chars + $idDelta[] = 0; + $idRangeOffset[] = strlen($glyphIdArray) + ($segCount-$i)*2; + for($c=$start;$c<=$end;$c++) + { + $ssid = $this->glyphs[$this->chars[$c]]['ssid']; + $glyphIdArray .= pack('n', $ssid); + } + } + else + { + // Segment with a single char + if($start<0xFFFF) + $ssid = $this->glyphs[$this->chars[$start]]['ssid']; + else + $ssid = 0; + $idDelta[] = $ssid - $start; + $idRangeOffset[] = 0; + } + } + $entrySelector = 0; + $n = $segCount; + while($n!=1) + { + $n = $n>>1; + $entrySelector++; + } + $searchRange = (1<<$entrySelector)*2; + $rangeShift = 2*$segCount - $searchRange; + $cmap = pack('nnnn', 2*$segCount, $searchRange, $entrySelector, $rangeShift); + foreach($endCount as $val) + $cmap .= pack('n', $val); + $cmap .= pack('n', 0); // reservedPad + foreach($startCount as $val) + $cmap .= pack('n', $val); + foreach($idDelta as $val) + $cmap .= pack('n', $val); + foreach($idRangeOffset as $val) + $cmap .= pack('n', $val); + $cmap .= $glyphIdArray; + + $data = pack('nn', 0, 1); // version, numTables + $data .= pack('nnN', 3, 1, 12); // platformID, encodingID, offset + $data .= pack('nnn', 4, 6+strlen($cmap), 0); // format, length, language + $data .= $cmap; + $this->SetTable('cmap', $data); + } + + function BuildHhea() + { + $this->LoadTable('hhea'); + $numberOfHMetrics = count($this->subsettedGlyphs); + $data = substr_replace($this->tables['hhea']['data'], pack('n',$numberOfHMetrics), 4+15*2, 2); + $this->SetTable('hhea', $data); + } + + function BuildHmtx() + { + $data = ''; + foreach($this->subsettedGlyphs as $id) + { + $glyph = $this->glyphs[$id]; + $data .= pack('nn', $glyph['w'], $glyph['lsb']); + } + $this->SetTable('hmtx', $data); + } + + function BuildLoca() + { + $data = ''; + $offset = 0; + foreach($this->subsettedGlyphs as $id) + { + if($this->indexToLocFormat==0) + $data .= pack('n', $offset/2); + else + $data .= pack('N', $offset); + $offset += $this->glyphs[$id]['length']; + } + if($this->indexToLocFormat==0) + $data .= pack('n', $offset/2); + else + $data .= pack('N', $offset); + $this->SetTable('loca', $data); + } + + function BuildGlyf() + { + $tableOffset = $this->tables['glyf']['offset']; + $data = ''; + foreach($this->subsettedGlyphs as $id) + { + $glyph = $this->glyphs[$id]; + fseek($this->f, $tableOffset+$glyph['offset'], SEEK_SET); + $glyph_data = $this->Read($glyph['length']); + if(isset($glyph['components'])) + { + // Composite glyph + foreach($glyph['components'] as $offset=>$cid) + { + $ssid = $this->glyphs[$cid]['ssid']; + $glyph_data = substr_replace($glyph_data, pack('n',$ssid), $offset, 2); + } + } + $data .= $glyph_data; + } + $this->SetTable('glyf', $data); + } + + function BuildMaxp() + { + $this->LoadTable('maxp'); + $numGlyphs = count($this->subsettedGlyphs); + $data = substr_replace($this->tables['maxp']['data'], pack('n',$numGlyphs), 4, 2); + $this->SetTable('maxp', $data); + } + + function BuildPost() + { + $this->Seek('post'); + if($this->glyphNames) + { + // Version 2.0 + $numberOfGlyphs = count($this->subsettedGlyphs); + $numNames = 0; + $names = ''; + $data = $this->Read(2*4+2*2+5*4); + $data .= pack('n', $numberOfGlyphs); + foreach($this->subsettedGlyphs as $id) + { + $name = $this->glyphs[$id]['name']; + if(is_string($name)) + { + $data .= pack('n', 258+$numNames); + $names .= chr(strlen($name)).$name; + $numNames++; + } + else + $data .= pack('n', $name); + } + $data .= $names; + } + else + { + // Version 3.0 + $this->Skip(4); + $data = "\x00\x03\x00\x00"; + $data .= $this->Read(4+2*2+5*4); + } + $this->SetTable('post', $data); + } + + function BuildFont() + { + $tags = array(); + foreach(array('cmap', 'cvt ', 'fpgm', 'glyf', 'head', 'hhea', 'hmtx', 'loca', 'maxp', 'name', 'post', 'prep') as $tag) + { + if(isset($this->tables[$tag])) + $tags[] = $tag; + } + $numTables = count($tags); + $offset = 12 + 16*$numTables; + foreach($tags as $tag) + { + if(!isset($this->tables[$tag]['data'])) + $this->LoadTable($tag); + $this->tables[$tag]['offset'] = $offset; + $offset += strlen($this->tables[$tag]['data']); + } +// $this->tables['head']['data'] = substr_replace($this->tables['head']['data'], "\x00\x00\x00\x00", 8, 4); + + // Build offset table + $entrySelector = 0; + $n = $numTables; + while($n!=1) + { + $n = $n>>1; + $entrySelector++; + } + $searchRange = 16*(1<<$entrySelector); + $rangeShift = 16*$numTables - $searchRange; + $offsetTable = pack('nnnnnn', 1, 0, $numTables, $searchRange, $entrySelector, $rangeShift); + foreach($tags as $tag) + { + $table = $this->tables[$tag]; + $offsetTable .= $tag.$table['checkSum'].pack('NN', $table['offset'], $table['length']); + } + + // Compute checkSumAdjustment (0xB1B0AFBA - font checkSum) + $s = $this->CheckSum($offsetTable); + foreach($tags as $tag) + $s .= $this->tables[$tag]['checkSum']; + $a = unpack('n2', $this->CheckSum($s)); + $high = 0xB1B0 + ($a[1]^0xFFFF); + $low = 0xAFBA + ($a[2]^0xFFFF) + 1; + $checkSumAdjustment = pack('nn', $high+($low>>16), $low); + $this->tables['head']['data'] = substr_replace($this->tables['head']['data'], $checkSumAdjustment, 8, 4); + + $font = $offsetTable; + foreach($tags as $tag) + $font .= $this->tables[$tag]['data']; + + return $font; + } + + function LoadTable($tag) + { + $this->Seek($tag); + $length = $this->tables[$tag]['length']; + $n = $length % 4; + if($n>0) + $length += 4 - $n; + $this->tables[$tag]['data'] = $this->Read($length); + } + + function SetTable($tag, $data) + { + $length = strlen($data); + $n = $length % 4; + if($n>0) + $data = str_pad($data, $length+4-$n, "\x00"); + $this->tables[$tag]['data'] = $data; + $this->tables[$tag]['length'] = $length; + $this->tables[$tag]['checkSum'] = $this->CheckSum($data); + } + + function Seek($tag) + { + if(!isset($this->tables[$tag])) + $this->Error('Table not found: '.$tag); + fseek($this->f, $this->tables[$tag]['offset'], SEEK_SET); + } + + function Skip($n) + { + fseek($this->f, $n, SEEK_CUR); + } + + function Read($n) + { + return $n>0 ? fread($this->f, $n) : ''; + } + + function ReadUShort() + { + $a = unpack('nn', fread($this->f,2)); + return $a['n']; + } + + function ReadShort() + { + $a = unpack('nn', fread($this->f,2)); + $v = $a['n']; + if($v>=0x8000) + $v -= 65536; + return $v; + } + + function ReadULong() + { + $a = unpack('NN', fread($this->f,4)); + return $a['N']; + } + + function CheckSum($s) + { + $n = strlen($s); + $high = 0; + $low = 0; + for($i=0;$i<$n;$i+=4) + { + $high += (ord($s[$i])<<8) + ord($s[$i+1]); + $low += (ord($s[$i+2])<<8) + ord($s[$i+3]); + } + return pack('nn', $high+($low>>16), $low); + } + + function Error($msg) + { + throw new Exception($msg); + } +} +?> diff --git a/phplib/fpdf181/tutorial/20k_c1.txt b/phplib/fpdf181/tutorial/20k_c1.txt new file mode 100755 index 0000000..0b09f26 --- /dev/null +++ b/phplib/fpdf181/tutorial/20k_c1.txt @@ -0,0 +1,10 @@ +The year 1866 was marked by a bizarre development, an unexplained and downright inexplicable phenomenon that surely no one has forgotten. Without getting into those rumors that upset civilians in the seaports and deranged the public mind even far inland, it must be said that professional seamen were especially alarmed. Traders, shipowners, captains of vessels, skippers, and master mariners from Europe and America, naval officers from every country, and at their heels the various national governments on these two continents, were all extremely disturbed by the business. +In essence, over a period of time several ships had encountered "an enormous thing" at sea, a long spindle-shaped object, sometimes giving off a phosphorescent glow, infinitely bigger and faster than any whale. +The relevant data on this apparition, as recorded in various logbooks, agreed pretty closely as to the structure of the object or creature in question, its unprecedented speed of movement, its startling locomotive power, and the unique vitality with which it seemed to be gifted. If it was a cetacean, it exceeded in bulk any whale previously classified by science. No naturalist, neither Cuvier nor Lacépède, neither Professor Dumeril nor Professor de Quatrefages, would have accepted the existence of such a monster sight unseen -- specifically, unseen by their own scientific eyes. +Striking an average of observations taken at different times -- rejecting those timid estimates that gave the object a length of 200 feet, and ignoring those exaggerated views that saw it as a mile wide and three long--you could still assert that this phenomenal creature greatly exceeded the dimensions of anything then known to ichthyologists, if it existed at all. +Now then, it did exist, this was an undeniable fact; and since the human mind dotes on objects of wonder, you can understand the worldwide excitement caused by this unearthly apparition. As for relegating it to the realm of fiction, that charge had to be dropped. +In essence, on July 20, 1866, the steamer Governor Higginson, from the Calcutta & Burnach Steam Navigation Co., encountered this moving mass five miles off the eastern shores of Australia. Captain Baker at first thought he was in the presence of an unknown reef; he was even about to fix its exact position when two waterspouts shot out of this inexplicable object and sprang hissing into the air some 150 feet. So, unless this reef was subject to the intermittent eruptions of a geyser, the Governor Higginson had fair and honest dealings with some aquatic mammal, until then unknown, that could spurt from its blowholes waterspouts mixed with air and steam. +Similar events were likewise observed in Pacific seas, on July 23 of the same year, by the Christopher Columbus from the West India & Pacific Steam Navigation Co. Consequently, this extraordinary cetacean could transfer itself from one locality to another with startling swiftness, since within an interval of just three days, the Governor Higginson and the Christopher Columbus had observed it at two positions on the charts separated by a distance of more than 700 nautical leagues. +Fifteen days later and 2,000 leagues farther, the Helvetia from the Compagnie Nationale and the Shannon from the Royal Mail line, running on opposite tacks in that part of the Atlantic lying between the United States and Europe, respectively signaled each other that the monster had been sighted in latitude 42 degrees 15' north and longitude 60 degrees 35' west of the meridian of Greenwich. From their simultaneous observations, they were able to estimate the mammal's minimum length at more than 350 English feet; this was because both the Shannon and the Helvetia were of smaller dimensions, although each measured 100 meters stem to stern. Now then, the biggest whales, those rorqual whales that frequent the waterways of the Aleutian Islands, have never exceeded a length of 56 meters--if they reach even that. +One after another, reports arrived that would profoundly affect public opinion: new observations taken by the transatlantic liner Pereire, the Inman line's Etna running afoul of the monster, an official report drawn up by officers on the French frigate Normandy, dead-earnest reckonings obtained by the general staff of Commodore Fitz-James aboard the Lord Clyde. In lighthearted countries, people joked about this phenomenon, but such serious, practical countries as England, America, and Germany were deeply concerned. +In every big city the monster was the latest rage; they sang about it in the coffee houses, they ridiculed it in the newspapers, they dramatized it in the theaters. The tabloids found it a fine opportunity for hatching all sorts of hoaxes. In those newspapers short of copy, you saw the reappearance of every gigantic imaginary creature, from "Moby Dick," that dreadful white whale from the High Arctic regions, to the stupendous kraken whose tentacles could entwine a 500-ton craft and drag it into the ocean depths. They even reprinted reports from ancient times: the views of Aristotle and Pliny accepting the existence of such monsters, then the Norwegian stories of Bishop Pontoppidan, the narratives of Paul Egede, and finally the reports of Captain Harrington -- whose good faith is above suspicion--in which he claims he saw, while aboard the Castilian in 1857, one of those enormous serpents that, until then, had frequented only the seas of France's old extremist newspaper, The Constitutionalist. diff --git a/phplib/fpdf181/tutorial/20k_c2.txt b/phplib/fpdf181/tutorial/20k_c2.txt new file mode 100755 index 0000000..096dbd1 --- /dev/null +++ b/phplib/fpdf181/tutorial/20k_c2.txt @@ -0,0 +1,23 @@ +During the period in which these developments were occurring, I had returned from a scientific undertaking organized to explore the Nebraska badlands in the United States. In my capacity as Assistant Professor at the Paris Museum of Natural History, I had been attached to this expedition by the French government. After spending six months in Nebraska, I arrived in New York laden with valuable collections near the end of March. My departure for France was set for early May. In the meantime, then, I was busy classifying my mineralogical, botanical, and zoological treasures when that incident took place with the Scotia. +I was perfectly abreast of this question, which was the big news of the day, and how could I not have been? I had read and reread every American and European newspaper without being any farther along. This mystery puzzled me. Finding it impossible to form any views, I drifted from one extreme to the other. Something was out there, that much was certain, and any doubting Thomas was invited to place his finger on the Scotia's wound. +When I arrived in New York, the question was at the boiling point. The hypothesis of a drifting islet or an elusive reef, put forward by people not quite in their right minds, was completely eliminated. And indeed, unless this reef had an engine in its belly, how could it move about with such prodigious speed? +Also discredited was the idea of a floating hull or some other enormous wreckage, and again because of this speed of movement. +So only two possible solutions to the question were left, creating two very distinct groups of supporters: on one side, those favoring a monster of colossal strength; on the other, those favoring an "underwater boat" of tremendous motor power. +Now then, although the latter hypothesis was completely admissible, it couldn't stand up to inquiries conducted in both the New World and the Old. That a private individual had such a mechanism at his disposal was less than probable. Where and when had he built it, and how could he have built it in secret? +Only some government could own such an engine of destruction, and in these disaster-filled times, when men tax their ingenuity to build increasingly powerful aggressive weapons, it was possible that, unknown to the rest of the world, some nation could have been testing such a fearsome machine. The Chassepot rifle led to the torpedo, and the torpedo has led to this underwater battering ram, which in turn will lead to the world putting its foot down. At least I hope it will. +But this hypothesis of a war machine collapsed in the face of formal denials from the various governments. Since the public interest was at stake and transoceanic travel was suffering, the sincerity of these governments could not be doubted. Besides, how could the assembly of this underwater boat have escaped public notice? Keeping a secret under such circumstances would be difficult enough for an individual, and certainly impossible for a nation whose every move is under constant surveillance by rival powers. +So, after inquiries conducted in England, France, Russia, Prussia, Spain, Italy, America, and even Turkey, the hypothesis of an underwater Monitor was ultimately rejected. +After I arrived in New York, several people did me the honor of consulting me on the phenomenon in question. In France I had published a two-volume work, in quarto, entitled The Mysteries of the Great Ocean Depths. Well received in scholarly circles, this book had established me as a specialist in this pretty obscure field of natural history. My views were in demand. As long as I could deny the reality of the business, I confined myself to a flat "no comment." But soon, pinned to the wall, I had to explain myself straight out. And in this vein, "the honorable Pierre Aronnax, Professor at the Paris Museum," was summoned by The New York Herald to formulate his views no matter what. +I complied. Since I could no longer hold my tongue, I let it wag. I discussed the question in its every aspect, both political and scientific, and this is an excerpt from the well-padded article I published in the issue of April 30. + +"Therefore," I wrote, "after examining these different hypotheses one by one, we are forced, every other supposition having been refuted, to accept the existence of an extremely powerful marine animal. +"The deepest parts of the ocean are totally unknown to us. No soundings have been able to reach them. What goes on in those distant depths? What creatures inhabit, or could inhabit, those regions twelve or fifteen miles beneath the surface of the water? What is the constitution of these animals? It's almost beyond conjecture. +"However, the solution to this problem submitted to me can take the form of a choice between two alternatives. +"Either we know every variety of creature populating our planet, or we do not. +"If we do not know every one of them, if nature still keeps ichthyological secrets from us, nothing is more admissible than to accept the existence of fish or cetaceans of new species or even new genera, animals with a basically 'cast-iron' constitution that inhabit strata beyond the reach of our soundings, and which some development or other, an urge or a whim if you prefer, can bring to the upper level of the ocean for long intervals. +"If, on the other hand, we do know every living species, we must look for the animal in question among those marine creatures already cataloged, and in this event I would be inclined to accept the existence of a giant narwhale. +"The common narwhale, or sea unicorn, often reaches a length of sixty feet. Increase its dimensions fivefold or even tenfold, then give this cetacean a strength in proportion to its size while enlarging its offensive weapons, and you have the animal we're looking for. It would have the proportions determined by the officers of the Shannon, the instrument needed to perforate the Scotia, and the power to pierce a steamer's hull. +"In essence, the narwhale is armed with a sort of ivory sword, or lance, as certain naturalists have expressed it. It's a king-sized tooth as hard as steel. Some of these teeth have been found buried in the bodies of baleen whales, which the narwhale attacks with invariable success. Others have been wrenched, not without difficulty, from the undersides of vessels that narwhales have pierced clean through, as a gimlet pierces a wine barrel. The museum at the Faculty of Medicine in Paris owns one of these tusks with a length of 2.25 meters and a width at its base of forty-eight centimeters! +"All right then! Imagine this weapon to be ten times stronger and the animal ten times more powerful, launch it at a speed of twenty miles per hour, multiply its mass times its velocity, and you get just the collision we need to cause the specified catastrophe. +"So, until information becomes more abundant, I plump for a sea unicorn of colossal dimensions, no longer armed with a mere lance but with an actual spur, like ironclad frigates or those warships called 'rams,' whose mass and motor power it would possess simultaneously. +"This inexplicable phenomenon is thus explained away--unless it's something else entirely, which, despite everything that has been sighted, studied, explored and experienced, is still possible!" diff --git a/phplib/fpdf181/tutorial/calligra.php b/phplib/fpdf181/tutorial/calligra.php new file mode 100755 index 0000000..e262f4c --- /dev/null +++ b/phplib/fpdf181/tutorial/calligra.php @@ -0,0 +1,25 @@ +899,'Descent'=>-234,'CapHeight'=>899,'Flags'=>32,'FontBBox'=>'[-173 -234 1328 899]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>800); +$up = -200; +$ut = 20; +$cw = array( + chr(0)=>800,chr(1)=>800,chr(2)=>800,chr(3)=>800,chr(4)=>800,chr(5)=>800,chr(6)=>800,chr(7)=>800,chr(8)=>800,chr(9)=>800,chr(10)=>800,chr(11)=>800,chr(12)=>800,chr(13)=>800,chr(14)=>800,chr(15)=>800,chr(16)=>800,chr(17)=>800,chr(18)=>800,chr(19)=>800,chr(20)=>800,chr(21)=>800, + chr(22)=>800,chr(23)=>800,chr(24)=>800,chr(25)=>800,chr(26)=>800,chr(27)=>800,chr(28)=>800,chr(29)=>800,chr(30)=>800,chr(31)=>800,' '=>282,'!'=>324,'"'=>405,'#'=>584,'$'=>632,'%'=>980,'&'=>776,'\''=>259,'('=>299,')'=>299,'*'=>377,'+'=>600, + ','=>259,'-'=>432,'.'=>254,'/'=>597,'0'=>529,'1'=>298,'2'=>451,'3'=>359,'4'=>525,'5'=>423,'6'=>464,'7'=>417,'8'=>457,'9'=>479,':'=>275,';'=>282,'<'=>600,'='=>600,'>'=>600,'?'=>501,'@'=>800,'A'=>743, + 'B'=>636,'C'=>598,'D'=>712,'E'=>608,'F'=>562,'G'=>680,'H'=>756,'I'=>308,'J'=>314,'K'=>676,'L'=>552,'M'=>1041,'N'=>817,'O'=>729,'P'=>569,'Q'=>698,'R'=>674,'S'=>618,'T'=>673,'U'=>805,'V'=>753,'W'=>1238, + 'X'=>716,'Y'=>754,'Z'=>599,'['=>315,'\\'=>463,']'=>315,'^'=>600,'_'=>547,'`'=>278,'a'=>581,'b'=>564,'c'=>440,'d'=>571,'e'=>450,'f'=>347,'g'=>628,'h'=>611,'i'=>283,'j'=>283,'k'=>560,'l'=>252,'m'=>976, + 'n'=>595,'o'=>508,'p'=>549,'q'=>540,'r'=>395,'s'=>441,'t'=>307,'u'=>614,'v'=>556,'w'=>915,'x'=>559,'y'=>597,'z'=>452,'{'=>315,'|'=>222,'}'=>315,'~'=>600,chr(127)=>800,chr(128)=>800,chr(129)=>800,chr(130)=>0,chr(131)=>0, + chr(132)=>0,chr(133)=>780,chr(134)=>0,chr(135)=>0,chr(136)=>278,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>1064,chr(141)=>800,chr(142)=>0,chr(143)=>800,chr(144)=>800,chr(145)=>259,chr(146)=>259,chr(147)=>470,chr(148)=>470,chr(149)=>500,chr(150)=>300,chr(151)=>600,chr(152)=>278,chr(153)=>990, + chr(154)=>0,chr(155)=>0,chr(156)=>790,chr(157)=>800,chr(158)=>800,chr(159)=>754,chr(160)=>282,chr(161)=>324,chr(162)=>450,chr(163)=>640,chr(164)=>518,chr(165)=>603,chr(166)=>0,chr(167)=>519,chr(168)=>254,chr(169)=>800,chr(170)=>349,chr(171)=>0,chr(172)=>0,chr(173)=>432,chr(174)=>800,chr(175)=>278, + chr(176)=>0,chr(177)=>0,chr(178)=>0,chr(179)=>0,chr(180)=>278,chr(181)=>614,chr(182)=>0,chr(183)=>254,chr(184)=>278,chr(185)=>0,chr(186)=>305,chr(187)=>0,chr(188)=>0,chr(189)=>0,chr(190)=>0,chr(191)=>501,chr(192)=>743,chr(193)=>743,chr(194)=>743,chr(195)=>743,chr(196)=>743,chr(197)=>743, + chr(198)=>1060,chr(199)=>598,chr(200)=>608,chr(201)=>608,chr(202)=>608,chr(203)=>608,chr(204)=>308,chr(205)=>308,chr(206)=>308,chr(207)=>308,chr(208)=>0,chr(209)=>817,chr(210)=>729,chr(211)=>729,chr(212)=>729,chr(213)=>729,chr(214)=>729,chr(215)=>0,chr(216)=>729,chr(217)=>805,chr(218)=>805,chr(219)=>805, + chr(220)=>805,chr(221)=>0,chr(222)=>0,chr(223)=>688,chr(224)=>581,chr(225)=>581,chr(226)=>581,chr(227)=>581,chr(228)=>581,chr(229)=>581,chr(230)=>792,chr(231)=>440,chr(232)=>450,chr(233)=>450,chr(234)=>450,chr(235)=>450,chr(236)=>283,chr(237)=>283,chr(238)=>283,chr(239)=>283,chr(240)=>0,chr(241)=>595, + chr(242)=>508,chr(243)=>508,chr(244)=>508,chr(245)=>508,chr(246)=>508,chr(247)=>0,chr(248)=>508,chr(249)=>614,chr(250)=>614,chr(251)=>614,chr(252)=>614,chr(253)=>0,chr(254)=>0,chr(255)=>597); +$enc = 'cp1252'; +$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96)); +$file = 'calligra.z'; +$originalsize = 33948; +$subsetted = true; +?> diff --git a/phplib/fpdf181/tutorial/calligra.ttf b/phplib/fpdf181/tutorial/calligra.ttf new file mode 100755 index 0000000000000000000000000000000000000000..9713c468ca29f5bfcecb65d96e52711aaa5f50e7 GIT binary patch literal 40120 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 EJEXL@qyPW_ literal 0 HcmV?d00001 diff --git a/phplib/fpdf181/tutorial/calligra.z b/phplib/fpdf181/tutorial/calligra.z new file mode 100755 index 0000000000000000000000000000000000000000..8a14e9ced6247ae87391b6ab8d283e9e641f914e GIT binary patch literal 22477 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 + + + +Tutorials + + + +

Tutorials

+ + + diff --git a/phplib/fpdf181/tutorial/logo.png b/phplib/fpdf181/tutorial/logo.png new file mode 100755 index 0000000000000000000000000000000000000000..284a0071c850b5a2f1ba86f16775c5c0da9fe082 GIT binary patch literal 2373 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 diff --git a/phplib/fpdf181/tutorial/tuto1.htm b/phplib/fpdf181/tutorial/tuto1.htm new file mode 100755 index 0000000..36fabad --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto1.htm @@ -0,0 +1,76 @@ + + + + +Minimal example + + + +

Minimal example

+Let's start with the classic example: +
+
<?php
+require('fpdf.php');
+
+$pdf = new FPDF();
+$pdf->AddPage();
+$pdf->SetFont('Arial','B',16);
+$pdf->Cell(40,10,'Hello World!');
+$pdf->Output();
+?>
+
+

[Demo]

+After including the library file, we create an FPDF object. +The constructor is used here with the default values: pages are in A4 portrait and +the unit of measure is millimeter. It could have been specified explicitly with: +
+
$pdf = new FPDF('P','mm','A4');
+
+
+It's possible to use landscape (L), other page sizes (such as Letter and +Legal) and units (pt, cm, in). +
+
+There's no page at the moment, so we have to add one with AddPage(). The origin +is at the upper-left corner and the current position is by default set at 1 cm from the +borders; the margins can be changed with SetMargins(). +
+
+Before we can print text, it's mandatory to select a font with SetFont(). +We choose Arial bold 16: +
+
$pdf->SetFont('Arial','B',16);
+
+
+We could have specified italics with I, underlined with U or a regular font with an empty string +(or any combination). Note that the font size is given in points, not millimeters (or another user +unit); it's the only exception. The other standard fonts are Times, Courier, Symbol and ZapfDingbats. +
+
+We can now print a cell with Cell(). A cell is a rectangular area, possibly framed, +which contains a line of text. It is output at the current position. We specify its dimensions, +its text (centered or aligned), if borders should be drawn, and where the current position +moves after it (to the right, below or to the beginning of the next line). To add a frame, we would do this: +
+
$pdf->Cell(40,10,'Hello World !',1);
+
+
+To add a new cell next to it with centered text and go to the next line, we would do: +
+
$pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');
+
+
+Remark: the line break can also be done with Ln(). This method additionnaly allows to specify +the height of the break. +
+
+Finally, the document is closed and sent to the browser with Output(). We could have saved +it to a file by passing the appropriate parameters. +
+
+Caution: in case when the PDF is sent to the browser, nothing else must be output by the +script, neither before nor after (no HTML, not even a space or a carriage return). If you send something +before, you will get the error message: "Some data has already been output, can't send PDF file". If you +send something after, the document might not display. + + diff --git a/phplib/fpdf181/tutorial/tuto1.php b/phplib/fpdf181/tutorial/tuto1.php new file mode 100755 index 0000000..14a0504 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto1.php @@ -0,0 +1,9 @@ +AddPage(); +$pdf->SetFont('Arial','B',16); +$pdf->Cell(40,10,'Hello World!'); +$pdf->Output(); +?> diff --git a/phplib/fpdf181/tutorial/tuto2.htm b/phplib/fpdf181/tutorial/tuto2.htm new file mode 100755 index 0000000..b892d1d --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto2.htm @@ -0,0 +1,80 @@ + + + + +Header, footer, page break and image + + + +

Header, footer, page break and image

+Here's a two page example with header, footer and logo: +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+// Page header
+function Header()
+{
+    // Logo
+    $this->Image('logo.png',10,6,30);
+    // Arial bold 15
+    $this->SetFont('Arial','B',15);
+    // Move to the right
+    $this->Cell(80);
+    // Title
+    $this->Cell(30,10,'Title',1,0,'C');
+    // Line break
+    $this->Ln(20);
+}
+
+// Page footer
+function Footer()
+{
+    // Position at 1.5 cm from bottom
+    $this->SetY(-15);
+    // Arial italic 8
+    $this->SetFont('Arial','I',8);
+    // Page number
+    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
+}
+}
+
+// Instanciation of inherited class
+$pdf = new PDF();
+$pdf->AliasNbPages();
+$pdf->AddPage();
+$pdf->SetFont('Times','',12);
+for($i=1;$i<=40;$i++)
+    $pdf->Cell(0,10,'Printing line number '.$i,0,1);
+$pdf->Output();
+?>
+
+

[Demo]

+This example makes use of the Header() and Footer() methods to process page headers and +footers. They are called automatically. They already exist in the FPDF class but do nothing, +therefore we have to extend the class and override them. +
+
+The logo is printed with the Image() method by specifying its upper-left corner and +its width. The height is calculated automatically to respect the image proportions. +
+
+To print the page number, a null value is passed as the cell width. It means that the cell +should extend up to the right margin of the page; this is handy to center text. The current page +number is returned by the PageNo() method; as for the total number of pages, it's obtained +via the special value {nb} which is substituted when the document is finished +(provided you first called AliasNbPages()). +
+Note the use of the SetY() method which allows to set position at an absolute location in +the page, starting from the top or the bottom. +
+
+Another interesting feature is used here: the automatic page breaking. As soon as a cell would +cross a limit in the page (at 2 centimeters from the bottom by default), a break is issued +and the font restored. Although the header and footer select their own font (Arial), the body +continues with Times. This mechanism of automatic restoration also applies to colors and line +width. The limit which triggers page breaks can be set with SetAutoPageBreak(). + + diff --git a/phplib/fpdf181/tutorial/tuto2.php b/phplib/fpdf181/tutorial/tuto2.php new file mode 100755 index 0000000..cc7d51c --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto2.php @@ -0,0 +1,41 @@ +Image('logo.png',10,6,30); + // Arial bold 15 + $this->SetFont('Arial','B',15); + // Move to the right + $this->Cell(80); + // Title + $this->Cell(30,10,'Title',1,0,'C'); + // Line break + $this->Ln(20); +} + +// Page footer +function Footer() +{ + // Position at 1.5 cm from bottom + $this->SetY(-15); + // Arial italic 8 + $this->SetFont('Arial','I',8); + // Page number + $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); +} +} + +// Instanciation of inherited class +$pdf = new PDF(); +$pdf->AliasNbPages(); +$pdf->AddPage(); +$pdf->SetFont('Times','',12); +for($i=1;$i<=40;$i++) + $pdf->Cell(0,10,'Printing line number '.$i,0,1); +$pdf->Output(); +?> diff --git a/phplib/fpdf181/tutorial/tuto3.htm b/phplib/fpdf181/tutorial/tuto3.htm new file mode 100755 index 0000000..fa58307 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto3.htm @@ -0,0 +1,115 @@ + + + + +Line breaks and colors + + + +

Line breaks and colors

+Let's continue with an example which prints justified paragraphs. It also illustrates the use +of colors. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+function Header()
+{
+    global $title;
+
+    // Arial bold 15
+    $this->SetFont('Arial','B',15);
+    // Calculate width of title and position
+    $w = $this->GetStringWidth($title)+6;
+    $this->SetX((210-$w)/2);
+    // Colors of frame, background and text
+    $this->SetDrawColor(0,80,180);
+    $this->SetFillColor(230,230,0);
+    $this->SetTextColor(220,50,50);
+    // Thickness of frame (1 mm)
+    $this->SetLineWidth(1);
+    // Title
+    $this->Cell($w,9,$title,1,1,'C',true);
+    // Line break
+    $this->Ln(10);
+}
+
+function Footer()
+{
+    // Position at 1.5 cm from bottom
+    $this->SetY(-15);
+    // Arial italic 8
+    $this->SetFont('Arial','I',8);
+    // Text color in gray
+    $this->SetTextColor(128);
+    // Page number
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+
+function ChapterTitle($num, $label)
+{
+    // Arial 12
+    $this->SetFont('Arial','',12);
+    // Background color
+    $this->SetFillColor(200,220,255);
+    // Title
+    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true);
+    // Line break
+    $this->Ln(4);
+}
+
+function ChapterBody($file)
+{
+    // Read text file
+    $txt = file_get_contents($file);
+    // Times 12
+    $this->SetFont('Times','',12);
+    // Output justified text
+    $this->MultiCell(0,5,$txt);
+    // Line break
+    $this->Ln();
+    // Mention in italics
+    $this->SetFont('','I');
+    $this->Cell(0,5,'(end of excerpt)');
+}
+
+function PrintChapter($num, $title, $file)
+{
+    $this->AddPage();
+    $this->ChapterTitle($num,$title);
+    $this->ChapterBody($file);
+}
+}
+
+$pdf = new PDF();
+$title = '20000 Leagues Under the Seas';
+$pdf->SetTitle($title);
+$pdf->SetAuthor('Jules Verne');
+$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
+$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
+$pdf->Output();
+?>
+
+

[Demo]

+The GetStringWidth() method allows to determine the length of a string in the current font, +which is used here to calculate the position and the width of the frame surrounding the title. +Then colors are set (via SetDrawColor(), SetFillColor() and SetTextColor()) and the +thickness of the line is set to 1 mm (instead of 0.2 by default) with SetLineWidth(). Finally, +we output the cell (the last parameter true indicates that the background must +be filled). +
+
+The method used to print the paragraphs is MultiCell(). Each time a line reaches the +right extremity of the cell or a carriage return character is met, a line break is issued +and a new cell automatically created under the current one. Text is justified by default. +
+
+Two document properties are defined: the title (SetTitle()) and the author (SetAuthor()). +There are several ways to view them in Adobe Reader. The first one is to open the file directly with +the reader, go to the File menu and choose the Properties option. The second one, also available from +the plug-in, is to right-click and select Document Properties. The third method is to type the Ctrl+D +key combination. + + diff --git a/phplib/fpdf181/tutorial/tuto3.php b/phplib/fpdf181/tutorial/tuto3.php new file mode 100755 index 0000000..eade51c --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto3.php @@ -0,0 +1,81 @@ +SetFont('Arial','B',15); + // Calculate width of title and position + $w = $this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + // Colors of frame, background and text + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + // Thickness of frame (1 mm) + $this->SetLineWidth(1); + // Title + $this->Cell($w,9,$title,1,1,'C',true); + // Line break + $this->Ln(10); +} + +function Footer() +{ + // Position at 1.5 cm from bottom + $this->SetY(-15); + // Arial italic 8 + $this->SetFont('Arial','I',8); + // Text color in gray + $this->SetTextColor(128); + // Page number + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function ChapterTitle($num, $label) +{ + // Arial 12 + $this->SetFont('Arial','',12); + // Background color + $this->SetFillColor(200,220,255); + // Title + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true); + // Line break + $this->Ln(4); +} + +function ChapterBody($file) +{ + // Read text file + $txt = file_get_contents($file); + // Times 12 + $this->SetFont('Times','',12); + // Output justified text + $this->MultiCell(0,5,$txt); + // Line break + $this->Ln(); + // Mention in italics + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); +} + +function PrintChapter($num, $title, $file) +{ + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf = new PDF(); +$title = '20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf181/tutorial/tuto4.htm b/phplib/fpdf181/tutorial/tuto4.htm new file mode 100755 index 0000000..7af730f --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto4.htm @@ -0,0 +1,132 @@ + + + + +Multi-columns + + + +

Multi-columns

+This example is a variant of the previous one showing how to lay the text across multiple +columns. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+protected $col = 0; // Current column
+protected $y0;      // Ordinate of column start
+
+function Header()
+{
+    // Page header
+    global $title;
+
+    $this->SetFont('Arial','B',15);
+    $w = $this->GetStringWidth($title)+6;
+    $this->SetX((210-$w)/2);
+    $this->SetDrawColor(0,80,180);
+    $this->SetFillColor(230,230,0);
+    $this->SetTextColor(220,50,50);
+    $this->SetLineWidth(1);
+    $this->Cell($w,9,$title,1,1,'C',true);
+    $this->Ln(10);
+    // Save ordinate
+    $this->y0 = $this->GetY();
+}
+
+function Footer()
+{
+    // Page footer
+    $this->SetY(-15);
+    $this->SetFont('Arial','I',8);
+    $this->SetTextColor(128);
+    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
+}
+
+function SetCol($col)
+{
+    // Set position at a given column
+    $this->col = $col;
+    $x = 10+$col*65;
+    $this->SetLeftMargin($x);
+    $this->SetX($x);
+}
+
+function AcceptPageBreak()
+{
+    // Method accepting or not automatic page break
+    if($this->col<2)
+    {
+        // Go to next column
+        $this->SetCol($this->col+1);
+        // Set ordinate to top
+        $this->SetY($this->y0);
+        // Keep on page
+        return false;
+    }
+    else
+    {
+        // Go back to first column
+        $this->SetCol(0);
+        // Page break
+        return true;
+    }
+}
+
+function ChapterTitle($num, $label)
+{
+    // Title
+    $this->SetFont('Arial','',12);
+    $this->SetFillColor(200,220,255);
+    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true);
+    $this->Ln(4);
+    // Save ordinate
+    $this->y0 = $this->GetY();
+}
+
+function ChapterBody($file)
+{
+    // Read text file
+    $txt = file_get_contents($file);
+    // Font
+    $this->SetFont('Times','',12);
+    // Output text in a 6 cm width column
+    $this->MultiCell(60,5,$txt);
+    $this->Ln();
+    // Mention
+    $this->SetFont('','I');
+    $this->Cell(0,5,'(end of excerpt)');
+    // Go back to first column
+    $this->SetCol(0);
+}
+
+function PrintChapter($num, $title, $file)
+{
+    // Add chapter
+    $this->AddPage();
+    $this->ChapterTitle($num,$title);
+    $this->ChapterBody($file);
+}
+}
+
+$pdf = new PDF();
+$title = '20000 Leagues Under the Seas';
+$pdf->SetTitle($title);
+$pdf->SetAuthor('Jules Verne');
+$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
+$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
+$pdf->Output();
+?>
+
+

[Demo]

+The key method used is AcceptPageBreak(). It allows to accept or not an automatic page +break. By refusing it and altering the margin and current position, the desired column layout +is achieved. +
+For the rest, not many changes; two properties have been added to the class to save the current +column number and the position where columns begin, and the MultiCell() call specifies a +6 centimeter width. + + diff --git a/phplib/fpdf181/tutorial/tuto4.php b/phplib/fpdf181/tutorial/tuto4.php new file mode 100755 index 0000000..f5f4fa8 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto4.php @@ -0,0 +1,109 @@ +SetFont('Arial','B',15); + $w = $this->GetStringWidth($title)+6; + $this->SetX((210-$w)/2); + $this->SetDrawColor(0,80,180); + $this->SetFillColor(230,230,0); + $this->SetTextColor(220,50,50); + $this->SetLineWidth(1); + $this->Cell($w,9,$title,1,1,'C',true); + $this->Ln(10); + // Save ordinate + $this->y0 = $this->GetY(); +} + +function Footer() +{ + // Page footer + $this->SetY(-15); + $this->SetFont('Arial','I',8); + $this->SetTextColor(128); + $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C'); +} + +function SetCol($col) +{ + // Set position at a given column + $this->col = $col; + $x = 10+$col*65; + $this->SetLeftMargin($x); + $this->SetX($x); +} + +function AcceptPageBreak() +{ + // Method accepting or not automatic page break + if($this->col<2) + { + // Go to next column + $this->SetCol($this->col+1); + // Set ordinate to top + $this->SetY($this->y0); + // Keep on page + return false; + } + else + { + // Go back to first column + $this->SetCol(0); + // Page break + return true; + } +} + +function ChapterTitle($num, $label) +{ + // Title + $this->SetFont('Arial','',12); + $this->SetFillColor(200,220,255); + $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true); + $this->Ln(4); + // Save ordinate + $this->y0 = $this->GetY(); +} + +function ChapterBody($file) +{ + // Read text file + $txt = file_get_contents($file); + // Font + $this->SetFont('Times','',12); + // Output text in a 6 cm width column + $this->MultiCell(60,5,$txt); + $this->Ln(); + // Mention + $this->SetFont('','I'); + $this->Cell(0,5,'(end of excerpt)'); + // Go back to first column + $this->SetCol(0); +} + +function PrintChapter($num, $title, $file) +{ + // Add chapter + $this->AddPage(); + $this->ChapterTitle($num,$title); + $this->ChapterBody($file); +} +} + +$pdf = new PDF(); +$title = '20000 Leagues Under the Seas'; +$pdf->SetTitle($title); +$pdf->SetAuthor('Jules Verne'); +$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt'); +$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt'); +$pdf->Output(); +?> diff --git a/phplib/fpdf181/tutorial/tuto5.htm b/phplib/fpdf181/tutorial/tuto5.htm new file mode 100755 index 0000000..03fdd54 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto5.htm @@ -0,0 +1,134 @@ + + + + +Tables + + + +

Tables

+This tutorial shows different ways to make tables. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+// Load data
+function LoadData($file)
+{
+    // Read file lines
+    $lines = file($file);
+    $data = array();
+    foreach($lines as $line)
+        $data[] = explode(';',trim($line));
+    return $data;
+}
+
+// Simple table
+function BasicTable($header, $data)
+{
+    // Header
+    foreach($header as $col)
+        $this->Cell(40,7,$col,1);
+    $this->Ln();
+    // Data
+    foreach($data as $row)
+    {
+        foreach($row as $col)
+            $this->Cell(40,6,$col,1);
+        $this->Ln();
+    }
+}
+
+// Better table
+function ImprovedTable($header, $data)
+{
+    // Column widths
+    $w = array(40, 35, 40, 45);
+    // Header
+    for($i=0;$i<count($header);$i++)
+        $this->Cell($w[$i],7,$header[$i],1,0,'C');
+    $this->Ln();
+    // Data
+    foreach($data as $row)
+    {
+        $this->Cell($w[0],6,$row[0],'LR');
+        $this->Cell($w[1],6,$row[1],'LR');
+        $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');
+        $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');
+        $this->Ln();
+    }
+    // Closing line
+    $this->Cell(array_sum($w),0,'','T');
+}
+
+// Colored table
+function FancyTable($header, $data)
+{
+    // Colors, line width and bold font
+    $this->SetFillColor(255,0,0);
+    $this->SetTextColor(255);
+    $this->SetDrawColor(128,0,0);
+    $this->SetLineWidth(.3);
+    $this->SetFont('','B');
+    // Header
+    $w = array(40, 35, 40, 45);
+    for($i=0;$i<count($header);$i++)
+        $this->Cell($w[$i],7,$header[$i],1,0,'C',true);
+    $this->Ln();
+    // Color and font restoration
+    $this->SetFillColor(224,235,255);
+    $this->SetTextColor(0);
+    $this->SetFont('');
+    // Data
+    $fill = false;
+    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;
+    }
+    // Closing line
+    $this->Cell(array_sum($w),0,'','T');
+}
+}
+
+$pdf = new PDF();
+// Column headings
+$header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)');
+// Data loading
+$data = $pdf->LoadData('countries.txt');
+$pdf->SetFont('Arial','',14);
+$pdf->AddPage();
+$pdf->BasicTable($header,$data);
+$pdf->AddPage();
+$pdf->ImprovedTable($header,$data);
+$pdf->AddPage();
+$pdf->FancyTable($header,$data);
+$pdf->Output();
+?>
+
+

[Demo]

+A table being just a collection of cells, it's natural to build one from them. The first +example is achieved in the most basic way possible: simple framed cells, all of the same size +and left aligned. The result is rudimentary but very quick to obtain. +
+
+The second table brings some improvements: each column has its own width, headings are centered, +and numbers right aligned. Moreover, horizontal lines have been removed. This is done by means +of the border parameter of the Cell() method, which specifies which sides of the +cell must be drawn. Here we want the left (L) and right (R) ones. It remains +the problem of the horizontal line to finish the table. There are two possibilities: either +check for the last line in the loop, in which case we use LRB for the border +parameter; or, as done here, add the line once the loop is over. +
+
+The third table is similar to the second one but uses colors. Fill, text and line colors are +simply specified. Alternate coloring for rows is obtained by using alternatively transparent +and filled cells. + + diff --git a/phplib/fpdf181/tutorial/tuto5.php b/phplib/fpdf181/tutorial/tuto5.php new file mode 100755 index 0000000..f1b64a2 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto5.php @@ -0,0 +1,102 @@ +Cell(40,7,$col,1); + $this->Ln(); + // Data + foreach($data as $row) + { + foreach($row as $col) + $this->Cell(40,6,$col,1); + $this->Ln(); + } +} + +// Better table +function ImprovedTable($header, $data) +{ + // Column widths + $w = array(40, 35, 40, 45); + // Header + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C'); + $this->Ln(); + // Data + foreach($data as $row) + { + $this->Cell($w[0],6,$row[0],'LR'); + $this->Cell($w[1],6,$row[1],'LR'); + $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R'); + $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R'); + $this->Ln(); + } + // Closing line + $this->Cell(array_sum($w),0,'','T'); +} + +// Colored table +function FancyTable($header, $data) +{ + // Colors, line width and bold font + $this->SetFillColor(255,0,0); + $this->SetTextColor(255); + $this->SetDrawColor(128,0,0); + $this->SetLineWidth(.3); + $this->SetFont('','B'); + // Header + $w = array(40, 35, 40, 45); + for($i=0;$iCell($w[$i],7,$header[$i],1,0,'C',true); + $this->Ln(); + // Color and font restoration + $this->SetFillColor(224,235,255); + $this->SetTextColor(0); + $this->SetFont(''); + // Data + $fill = false; + 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; + } + // Closing line + $this->Cell(array_sum($w),0,'','T'); +} +} + +$pdf = new PDF(); +// Column headings +$header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)'); +// Data loading +$data = $pdf->LoadData('countries.txt'); +$pdf->SetFont('Arial','',14); +$pdf->AddPage(); +$pdf->BasicTable($header,$data); +$pdf->AddPage(); +$pdf->ImprovedTable($header,$data); +$pdf->AddPage(); +$pdf->FancyTable($header,$data); +$pdf->Output(); +?> diff --git a/phplib/fpdf181/tutorial/tuto6.htm b/phplib/fpdf181/tutorial/tuto6.htm new file mode 100755 index 0000000..24516e6 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto6.htm @@ -0,0 +1,154 @@ + + + + +Links and flowing text + + + +

Links and flowing text

+This tutorial explains how to insert links (internal and external) and shows a new text writing +mode. It also contains a basic HTML parser. +
+
<?php
+require('fpdf.php');
+
+class PDF extends FPDF
+{
+protected $B = 0;
+protected $I = 0;
+protected $U = 0;
+protected $HREF = '';
+
+function WriteHTML($html)
+{
+    // HTML parser
+    $html = str_replace("\n",' ',$html);
+    $a = preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);
+    foreach($a as $i=>$e)
+    {
+        if($i%2==0)
+        {
+            // Text
+            if($this->HREF)
+                $this->PutLink($this->HREF,$e);
+            else
+                $this->Write(5,$e);
+        }
+        else
+        {
+            // Tag
+            if($e[0]=='/')
+                $this->CloseTag(strtoupper(substr($e,1)));
+            else
+            {
+                // Extract attributes
+                $a2 = explode(' ',$e);
+                $tag = strtoupper(array_shift($a2));
+                $attr = array();
+                foreach($a2 as $v)
+                {
+                    if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3))
+                        $attr[strtoupper($a3[1])] = $a3[2];
+                }
+                $this->OpenTag($tag,$attr);
+            }
+        }
+    }
+}
+
+function OpenTag($tag, $attr)
+{
+    // Opening tag
+    if($tag=='B' || $tag=='I' || $tag=='U')
+        $this->SetStyle($tag,true);
+    if($tag=='A')
+        $this->HREF = $attr['HREF'];
+    if($tag=='BR')
+        $this->Ln(5);
+}
+
+function CloseTag($tag)
+{
+    // Closing tag
+    if($tag=='B' || $tag=='I' || $tag=='U')
+        $this->SetStyle($tag,false);
+    if($tag=='A')
+        $this->HREF = '';
+}
+
+function SetStyle($tag, $enable)
+{
+    // Modify style and select corresponding font
+    $this->$tag += ($enable ? 1 : -1);
+    $style = '';
+    foreach(array('B', 'I', 'U') as $s)
+    {
+        if($this->$s>0)
+            $style .= $s;
+    }
+    $this->SetFont('',$style);
+}
+
+function PutLink($URL, $txt)
+{
+    // Put a hyperlink
+    $this->SetTextColor(0,0,255);
+    $this->SetStyle('U',true);
+    $this->Write(5,$txt,$URL);
+    $this->SetStyle('U',false);
+    $this->SetTextColor(0);
+}
+}
+
+$html = 'You can now easily print text mixing different styles: <b>bold</b>, <i>italic</i>,
+<u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>You can also insert links on
+text, such as <a href="http://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.';
+
+$pdf = new PDF();
+// First page
+$pdf->AddPage();
+$pdf->SetFont('Arial','',20);
+$pdf->Write(5,"To find out what's new in this tutorial, click ");
+$pdf->SetFont('','U');
+$link = $pdf->AddLink();
+$pdf->Write(5,'here',$link);
+$pdf->SetFont('');
+// Second page
+$pdf->AddPage();
+$pdf->SetLink($link);
+$pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org');
+$pdf->SetLeftMargin(45);
+$pdf->SetFontSize(14);
+$pdf->WriteHTML($html);
+$pdf->Output();
+?>
+
+

[Demo]

+The new method to print text is Write(). It's very close to MultiCell(); the differences are: +
    +
  • The end of line is at the right margin and the next line begins at the left one
  • +
  • The current position moves at the end of the text
  • +
+So it allows to write a chunk of text, alter the font style, then continue from the exact +place we left it. On the other hand, you cannot justify it. +
+
+The method is used on the first page to put a link pointing to the second one. The beginning of +the sentence is written in regular style, then we switch to underline and finish it. The link +is created with AddLink(), which returns a link identifier. The identifier is +passed as third parameter of Write(). Once the second page is created, we use SetLink() to +make the link point to the beginning of the current page. +
+
+Then we put an image with an external link on it. An external link is just a URL. It's passed as +last parameter of Image(). +
+
+Finally, the left margin is moved after the image with SetLeftMargin() and some text in +HTML format is output. A very simple HTML parser is used for this, based on regular expressions. +Recognized tags are <b>, <i>, <u>, <a> and <br>; the others are +ignored. The parser also makes use of the Write() method. An external link is put the same way as +an internal one (third parameter of Write()). Note that Cell() also allows to put links. + + diff --git a/phplib/fpdf181/tutorial/tuto6.php b/phplib/fpdf181/tutorial/tuto6.php new file mode 100755 index 0000000..66580e9 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto6.php @@ -0,0 +1,113 @@ +/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); + foreach($a as $i=>$e) + { + if($i%2==0) + { + // Text + if($this->HREF) + $this->PutLink($this->HREF,$e); + else + $this->Write(5,$e); + } + else + { + // Tag + if($e[0]=='/') + $this->CloseTag(strtoupper(substr($e,1))); + else + { + // Extract attributes + $a2 = explode(' ',$e); + $tag = strtoupper(array_shift($a2)); + $attr = array(); + foreach($a2 as $v) + { + if(preg_match('/([^=]*)=["\']?([^"\']*)/',$v,$a3)) + $attr[strtoupper($a3[1])] = $a3[2]; + } + $this->OpenTag($tag,$attr); + } + } + } +} + +function OpenTag($tag, $attr) +{ + // Opening tag + if($tag=='B' || $tag=='I' || $tag=='U') + $this->SetStyle($tag,true); + if($tag=='A') + $this->HREF = $attr['HREF']; + if($tag=='BR') + $this->Ln(5); +} + +function CloseTag($tag) +{ + // Closing tag + if($tag=='B' || $tag=='I' || $tag=='U') + $this->SetStyle($tag,false); + if($tag=='A') + $this->HREF = ''; +} + +function SetStyle($tag, $enable) +{ + // Modify style and select corresponding font + $this->$tag += ($enable ? 1 : -1); + $style = ''; + foreach(array('B', 'I', 'U') as $s) + { + if($this->$s>0) + $style .= $s; + } + $this->SetFont('',$style); +} + +function PutLink($URL, $txt) +{ + // Put a hyperlink + $this->SetTextColor(0,0,255); + $this->SetStyle('U',true); + $this->Write(5,$txt,$URL); + $this->SetStyle('U',false); + $this->SetTextColor(0); +} +} + +$html = 'You can now easily print text mixing different styles: bold, italic, +underlined, or all at once!

You can also insert links on +text, such as www.fpdf.org, or on an image: click on the logo.'; + +$pdf = new PDF(); +// First page +$pdf->AddPage(); +$pdf->SetFont('Arial','',20); +$pdf->Write(5,"To find out what's new in this tutorial, click "); +$pdf->SetFont('','U'); +$link = $pdf->AddLink(); +$pdf->Write(5,'here',$link); +$pdf->SetFont(''); +// Second page +$pdf->AddPage(); +$pdf->SetLink($link); +$pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org'); +$pdf->SetLeftMargin(45); +$pdf->SetFontSize(14); +$pdf->WriteHTML($html); +$pdf->Output(); +?> diff --git a/phplib/fpdf181/tutorial/tuto7.htm b/phplib/fpdf181/tutorial/tuto7.htm new file mode 100755 index 0000000..b42e552 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto7.htm @@ -0,0 +1,187 @@ + + + + +Adding new fonts and encodings + + + +

Adding new fonts and encodings

+This tutorial explains how to use TrueType, OpenType and Type1 fonts so that you are not limited to the +standard fonts anymore. The other benefit is that you can choose the text encoding, which allows you to +use other languages than the Western ones (the standard fonts support only cp1252 aka windows-1252). +
+
+For OpenType, only the format based on TrueType is supported (not the one based on Type1).
+For Type1, you will need the corresponding AFM file (it is usually provided with the font). +
+
+Adding a new font requires two steps: +
    +
  • Generation of the font definition file
  • +
  • Declaration of the font in the script
  • +
+ +

Generation of the font definition file

+The first step consists in generating a PHP file containing all the information needed by FPDF; +in addition, the font file is compressed. To do this, a helper script is provided in the makefont +directory of the package: makefont.php. It contains the following function: +
+
+MakeFont(string fontfile [, string enc [, boolean embed [, boolean subset]]]) +
+
fontfile
+
+

Path to the .ttf, .otf or .pfb file.

+
+
enc
+
+

Name of the encoding to use. Default value: cp1252.

+
+
embed
+
+

Whether to embed the font or not. Default value: true.

+
+
subset
+
+

Whether to subset the font or not. Default value: true.

+
+
+The first parameter is the name of the font file. The extension must be either .ttf, .otf or .pfb and +determines the font type. If your Type1 font is in ASCII format (.pfa), you can convert it to binary +(.pfb) with the help of t1utils. +
+
+For Type1 fonts, the corresponding .afm file must be present in the same directory. +
+
+The encoding defines the association between a code (from 0 to 255) and a character. The first 128 are +always the same and correspond to ASCII; the following are variable. Encodings are stored in .map +files. The available ones are: +
    +
  • cp1250 (Central Europe)
  • +
  • cp1251 (Cyrillic)
  • +
  • cp1252 (Western Europe)
  • +
  • cp1253 (Greek)
  • +
  • cp1254 (Turkish)
  • +
  • cp1255 (Hebrew)
  • +
  • cp1257 (Baltic)
  • +
  • cp1258 (Vietnamese)
  • +
  • cp874 (Thai)
  • +
  • ISO-8859-1 (Western Europe)
  • +
  • ISO-8859-2 (Central Europe)
  • +
  • ISO-8859-4 (Baltic)
  • +
  • ISO-8859-5 (Cyrillic)
  • +
  • ISO-8859-7 (Greek)
  • +
  • ISO-8859-9 (Turkish)
  • +
  • ISO-8859-11 (Thai)
  • +
  • ISO-8859-15 (Western Europe)
  • +
  • ISO-8859-16 (Central Europe)
  • +
  • KOI8-R (Russian)
  • +
  • KOI8-U (Ukrainian)
  • +
+Of course, the font must contain the characters corresponding to the selected encoding. +
+
+The third parameter indicates whether the font should be embedded in the PDF or not. When a font is +not embedded, it is searched in the system. The advantage is that the PDF file is smaller; on the +other hand, if it is not available, then a substitution font is used. So you should ensure that the +needed font is installed on the client systems. Embedding is the recommended option to guarantee a +correct rendering. +
+
+The last parameter indicates whether subsetting should be used, that is to say, whether only +the characters from the selected encoding should be kept in the embedded font. As a result, +the size of the PDF file can be greatly reduced, especially if the original font was big. +
+
+After you have called the function (create a new file for this and include makefont.php), a .php file +is created, with the same name as the font file. You may rename it if you wish. If the case of embedding, +the font file is compressed and gives a second file with .z as extension (except if the compression +function is not available, it requires Zlib). You may rename it too, but in this case you have to change +the variable $file in the .php file accordingly. +
+
+Example: +
+
<?php
+require('makefont/makefont.php');
+
+MakeFont('C:\\Windows\\Fonts\\comic.ttf','cp1252');
+?>
+
+which gives the files comic.php and comic.z. +
+
+Then copy the generated files to the font directory. If the font file could not be compressed, copy +it directly instead of the .z version. +
+
+Another way to call MakeFont() is through the command line: +
+
+php makefont\makefont.php C:\Windows\Fonts\comic.ttf cp1252 +
+
+Finally, for TrueType and OpenType fonts, you can also generate the files +online instead of doing it manually. + +

Declaration of the font in the script

+The second step is simple. You just need to call the AddFont() method: +
+
$pdf->AddFont('Comic','','comic.php');
+
+
+And the font is now available (in regular and underlined styles), usable like the others. If we +had worked with Comic Sans MS Bold (comicbd.ttf), we would have written: +
+
$pdf->AddFont('Comic','B','comicbd.php');
+
+
+ +

Example

+Let's now see a complete example. We will use the font Calligrapher. +The first step is the generation of the font files: +
+
<?php
+require('makefont/makefont.php');
+
+MakeFont('calligra.ttf','cp1252');
+?>
+
+The script gives the following report: +
+
+Warning: character Euro is missing
+Warning: character zcaron is missing
+Font file compressed: calligra.z
+Font definition file generated: calligra.php
+
+The euro character is not present in the font (it's too old). Another character is missing too. +
+
+Alternatively we could have used the command line: +
+
+php makefont\makefont.php calligra.ttf cp1252 +
+
+or used the online generator. +
+
+We can now copy the two generated files to the font directory and write the script: +
+
<?php
+require('fpdf.php');
+
+$pdf = new FPDF();
+$pdf->AddFont('Calligrapher','','calligra.php');
+$pdf->AddPage();
+$pdf->SetFont('Calligrapher','',35);
+$pdf->Write(10,'Enjoy new fonts with FPDF!');
+$pdf->Output();
+?>
+
+

[Demo]

+ + diff --git a/phplib/fpdf181/tutorial/tuto7.php b/phplib/fpdf181/tutorial/tuto7.php new file mode 100755 index 0000000..d1127f3 --- /dev/null +++ b/phplib/fpdf181/tutorial/tuto7.php @@ -0,0 +1,11 @@ +AddFont('Calligrapher','','calligra.php'); +$pdf->AddPage(); +$pdf->SetFont('Calligrapher','',35); +$pdf->Cell(0,10,'Enjoy new fonts with FPDF!'); +$pdf->Output(); +?> diff --git a/phplib/tcpdf/2dbarcodes.php b/phplib/tcpdf/2dbarcodes.php deleted file mode 100644 index 6490dfa..0000000 --- a/phplib/tcpdf/2dbarcodes.php +++ /dev/null @@ -1,332 +0,0 @@ -. -// -// See LICENSE.TXT file for more information. -// ------------------------------------------------------------------- -// -// Description : PHP class to creates array representations for -// 2D barcodes to be used with TCPDF. -// -//============================================================+ - -/** - * @file - * PHP class to creates array representations for 2D barcodes to be used with TCPDF. - * @package com.tecnick.tcpdf - * @author Nicola Asuni - * @version 1.0.014 - */ - -/** - * @class TCPDF2DBarcode - * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org). - * @package com.tecnick.tcpdf - * @version 1.0.014 - * @author Nicola Asuni - */ -class TCPDF2DBarcode { - - /** - * Array representation of barcode. - * @protected - */ - protected $barcode_array = false; - - /** - * This is the class constructor. - * Return an array representations for 2D barcodes:
    - *
  • $arrcode['code'] code to be printed on text label
  • - *
  • $arrcode['num_rows'] required number of rows
  • - *
  • $arrcode['num_cols'] required number of columns
  • - *
  • $arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)
- * @param $code (string) code to print - * @param $type (string) type of barcode:
  • DATAMATRIX : Datamatrix (ISO/IEC 16022)
  • PDF417 : PDF417 (ISO/IEC 15438:2006)
  • PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); 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). NOTES: 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".
  • QRCODE : QRcode Low error correction
  • QRCODE,L : QRcode Low error correction
  • QRCODE,M : QRcode Medium error correction
  • QRCODE,Q : QRcode Better error correction
  • QRCODE,H : QR-CODE Best error correction
  • RAW: raw mode - comma-separad list of array rows
  • RAW2: raw mode - array rows are surrounded by square parenthesis.
  • TEST : Test matrix
- */ - public function __construct($code, $type) { - $this->setBarcode($code, $type); - } - - /** - * Return an array representations of barcode. - * @return array - */ - public function getBarcodeArray() { - return $this->barcode_array; - } - - /** - * Send barcode as SVG image object to the standard output. - * @param $w (int) Width of a single rectangle element in user units. - * @param $h (int) Height of a single rectangle element in user units. - * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). - * @public - */ - public function getBarcodeSVG($w=3, $h=3, $color='black') { - // send headers - $code = $this->getBarcodeSVGcode($w, $h, $color); - header('Content-Type: application/svg+xml'); - header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 - header('Pragma: public'); - header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past - header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - header('Content-Disposition: inline; filename="'.md5($code).'.svg";'); - //header('Content-Length: '.strlen($code)); - echo $code; - } - - /** - * Return a SVG string representation of barcode. - * @param $w (int) Width of a single rectangle element in user units. - * @param $h (int) Height of a single rectangle element in user units. - * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). - * @return string SVG code. - * @public - */ - public function getBarcodeSVGcode($w=3, $h=3, $color='black') { - // replace table for special characters - $repstr = array("\0" => '', '&' => '&', '<' => '<', '>' => '>'); - $svg = '<'.'?'.'xml version="1.0" standalone="no"'.'?'.'>'."\n"; - $svg .= ''."\n"; - $svg .= ''."\n"; - $svg .= "\t".''.strtr($this->barcode_array['code'], $repstr).''."\n"; - $svg .= "\t".''."\n"; - // print barcode elements - $y = 0; - // for each row - for ($r = 0; $r < $this->barcode_array['num_rows']; ++$r) { - $x = 0; - // for each column - for ($c = 0; $c < $this->barcode_array['num_cols']; ++$c) { - if ($this->barcode_array['bcode'][$r][$c] == 1) { - // draw a single barcode cell - $svg .= "\t\t".''."\n"; - } - $x += $w; - } - $y += $h; - } - $svg .= "\t".''."\n"; - $svg .= ''."\n"; - return $svg; - } - - /** - * Return an HTML representation of barcode. - * @param $w (int) Width of a single rectangle element in pixels. - * @param $h (int) Height of a single rectangle element in pixels. - * @param $color (string) Foreground color for bar elements (background is transparent). - * @return string HTML code. - * @public - */ - public function getBarcodeHTML($w=10, $h=10, $color='black') { - $html = '
'."\n"; - // print barcode elements - $y = 0; - // for each row - for ($r = 0; $r < $this->barcode_array['num_rows']; ++$r) { - $x = 0; - // for each column - for ($c = 0; $c < $this->barcode_array['num_cols']; ++$c) { - if ($this->barcode_array['bcode'][$r][$c] == 1) { - // draw a single barcode cell - $html .= '
 
'."\n"; - } - $x += $w; - } - $y += $h; - } - $html .= '
'."\n"; - return $html; - } - - /** - * Return a PNG image representation of barcode (requires GD or Imagick library). - * @param $w (int) Width of a single rectangle element in pixels. - * @param $h (int) Height of a single rectangle element in pixels. - * @param $color (array) RGB (0-255) foreground color for bar elements (background is transparent). - * @return image or false in case of error. - * @public - */ - public function getBarcodePNG($w=3, $h=3, $color=array(0,0,0)) { - // calculate image size - $width = ($this->barcode_array['num_cols'] * $w); - $height = ($this->barcode_array['num_rows'] * $h); - if (function_exists('imagecreate')) { - // GD library - $imagick = false; - $png = imagecreate($width, $height); - $bgcol = imagecolorallocate($png, 255, 255, 255); - imagecolortransparent($png, $bgcol); - $fgcol = imagecolorallocate($png, $color[0], $color[1], $color[2]); - } elseif (extension_loaded('imagick')) { - $imagick = true; - $bgcol = new imagickpixel('rgb(255,255,255'); - $fgcol = new imagickpixel('rgb('.$color[0].','.$color[1].','.$color[2].')'); - $png = new Imagick(); - $png->newImage($width, $height, 'none', 'png'); - $bar = new imagickdraw(); - $bar->setfillcolor($fgcol); - } else { - return false; - } - // print barcode elements - $y = 0; - // for each row - for ($r = 0; $r < $this->barcode_array['num_rows']; ++$r) { - $x = 0; - // for each column - for ($c = 0; $c < $this->barcode_array['num_cols']; ++$c) { - if ($this->barcode_array['bcode'][$r][$c] == 1) { - // draw a single barcode cell - if ($imagick) { - $bar->rectangle($x, $y, ($x + $w - 1), ($y + $h - 1)); - } else { - imagefilledrectangle($png, $x, $y, ($x + $w - 1), ($y + $h - 1), $fgcol); - } - } - $x += $w; - } - $y += $h; - } - // send headers - header('Content-Type: image/png'); - header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 - header('Pragma: public'); - header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past - header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - if ($imagick) { - $png->drawimage($bar); - echo $png; - } else { - imagepng($png); - imagedestroy($png); - } - } - - /** - * Set the barcode. - * @param $code (string) code to print - * @param $type (string) type of barcode:
  • DATAMATRIX : Datamatrix (ISO/IEC 16022)
  • PDF417 : PDF417 (ISO/IEC 15438:2006)
  • PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); 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). NOTES: 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".
  • QRCODE : QRcode Low error correction
  • QRCODE,L : QRcode Low error correction
  • QRCODE,M : QRcode Medium error correction
  • QRCODE,Q : QRcode Better error correction
  • QRCODE,H : QR-CODE Best error correction
  • RAW: raw mode - comma-separad list of array rows
  • RAW2: raw mode - array rows are surrounded by square parenthesis.
  • TEST : Test matrix
- * @return array - */ - public function setBarcode($code, $type) { - $mode = explode(',', $type); - $qrtype = strtoupper($mode[0]); - switch ($qrtype) { - case 'DATAMATRIX': { // DATAMATRIX (ISO/IEC 16022) - require_once(dirname(__FILE__).'/datamatrix.php'); - $qrcode = new Datamatrix($code); - $this->barcode_array = $qrcode->getBarcodeArray(); - $this->barcode_array['code'] = $code; - break; - } - case 'PDF417': { // PDF417 (ISO/IEC 15438:2006) - require_once(dirname(__FILE__).'/pdf417.php'); - if (!isset($mode[1]) OR ($mode[1] === '')) { - $aspectratio = 2; // default aspect ratio (width / height) - } else { - $aspectratio = floatval($mode[1]); - } - if (!isset($mode[2]) OR ($mode[2] === '')) { - $ecl = -1; // default error correction level (auto) - } else { - $ecl = intval($mode[2]); - } - // set macro block - $macro = array(); - if (isset($mode[3]) AND ($mode[3] !== '') AND isset($mode[4]) AND ($mode[4] !== '') AND isset($mode[5]) AND ($mode[5] !== '')) { - $macro['segment_total'] = intval($mode[3]); - $macro['segment_index'] = intval($mode[4]); - $macro['file_id'] = strtr($mode[5], "\xff", ','); - for ($i = 0; $i < 7; ++$i) { - $o = $i + 6; - if (isset($mode[$o]) AND ($mode[$o] !== '')) { - // add option - $macro['option_'.$i] = strtr($mode[$o], "\xff", ','); - } - } - } - $qrcode = new PDF417($code, $ecl, $aspectratio, $macro); - $this->barcode_array = $qrcode->getBarcodeArray(); - $this->barcode_array['code'] = $code; - break; - } - case 'QRCODE': { // QR-CODE - require_once(dirname(__FILE__).'/qrcode.php'); - if (!isset($mode[1]) OR (!in_array($mode[1],array('L','M','Q','H')))) { - $mode[1] = 'L'; // Ddefault: Low error correction - } - $qrcode = new QRcode($code, strtoupper($mode[1])); - $this->barcode_array = $qrcode->getBarcodeArray(); - $this->barcode_array['code'] = $code; - break; - } - case 'RAW': - case 'RAW2': { // RAW MODE - // remove spaces - $code = preg_replace('/[\s]*/si', '', $code); - if (strlen($code) < 3) { - break; - } - if ($qrtype == 'RAW') { - // comma-separated rows - $rows = explode(',', $code); - } else { // RAW2 - // rows enclosed in square parentheses - $code = substr($code, 1, -1); - $rows = explode('][', $code); - } - $this->barcode_array['num_rows'] = count($rows); - $this->barcode_array['num_cols'] = strlen($rows[0]); - $this->barcode_array['bcode'] = array(); - foreach ($rows as $r) { - $this->barcode_array['bcode'][] = str_split($r, 1); - } - $this->barcode_array['code'] = $code; - break; - } - case 'TEST': { // TEST MODE - $this->barcode_array['num_rows'] = 5; - $this->barcode_array['num_cols'] = 15; - $this->barcode_array['bcode'] = array( - array(1,1,1,0,1,1,1,0,1,1,1,0,1,1,1), - array(0,1,0,0,1,0,0,0,1,0,0,0,0,1,0), - array(0,1,0,0,1,1,0,0,1,1,1,0,0,1,0), - array(0,1,0,0,1,0,0,0,0,0,1,0,0,1,0), - array(0,1,0,0,1,1,1,0,1,1,1,0,0,1,0)); - $this->barcode_array['code'] = $code; - break; - } - default: { - $this->barcode_array = false; - } - } - } -} // end of class - -//============================================================+ -// END OF FILE -//============================================================+ diff --git a/phplib/tcpdf/CHANGELOG.TXT b/phplib/tcpdf/CHANGELOG.TXT deleted file mode 100644 index 216869e..0000000 --- a/phplib/tcpdf/CHANGELOG.TXT +++ /dev/null @@ -1,2500 +0,0 @@ -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 paramter was added). - -5.9.185 (2012-09-12) - - Method _putfontwidths() was fixed. - -5.9.184 (2012-09-11) - - A problem with EAN barcodes was fixed. - -5.9.183 (2012-09-07) - - A problem with font names normalization was fixed. - -5.9.182 (2012-09-05) - - Bug item #3564982 "Infinite loop in Write() method" was fixed. - -5.9.181 (2012-08-31) - - composer.json file was added. - - Bug item #3563369 "Cached images are not unlinked some time" was fixed. - -5.9.180 (2012-08-22) - - Bug item #3560493 "Problems with nested cells in HTML" was fixed. - -5.9.179 (2012-08-04) - - SVG 'use' tag was fixed for 'circle' and 'ellipse' shift problem. - - Alpha status is now correctly stored and restored by getGraphicVars() and SetGraphicVars() methods. - -5.9.178 (2012-08-02) - - SVG 'use' tag was fixed for 'circle' and 'ellipse'. - -5.9.177 (2012-08-02) - - An additional control on annotations was fixed. - -5.9.176 (2012-07-25) - - A bug related to stroke width was fixed. - - A problem related to font spacing in HTML was fixed. - -5.9.175 (2012-07-25) - - The problem of missing letter on hyphen break was fixed. - -5.9.174 (2012-07-25) - - The problem of wrong filename when downloading PDF from an Android device was fixed. - - The method setHeaderData() was extended to set text and line color for header (see example n. 1). - - The method setFooterData() was added to set text and line color for footer (see example n. 1). - - The methods setTextShadow() and getTextShadow() were added to set text shadows (see example n. 1). - - The GetCharWidth() method was fixed for negative character spacing. - - A 'none' border mode is now correctly recognized. - - Break on hyphen problem was fixed. - -5.9.173 (2012-07-23) - - Some additional control wher added on barcode methods. - - The option CURLOPT_FOLLOWLOCATION on Image method is now disabled if PHP safe_mode is on or open_basedir is set. - - Method Bookmark() was extended to include X parameter. - - Method setDestination() was extended to include X parameter. - - A problem with Thai language was fixed. - -5.9.172 (2012-07-02) - - A PNG color profile issue was fixed. - -5.9.171 (2012-07-01) - - Some SVG rendering problems were fixed. - -5.9.170 (2012-06-27) - - Bug #3538227 "Numerous errors inserting shared images" was fixed. - -5.9.169 (2012-06-25) - - Some SVG rendering problems were fixed. - -5.9.168 (2012-06-22) - - Thai language rendering was fixed. - -5.9.167 (2012-06-22) - - Thai language rendering was fixed and improved. - - Method isCharDefined() was improved. - - Protected method replaceChar() was added. - - Font "kerning" word was corrected to "tracking". - -5.9.166 (2012-06-21) - - Array to string conversion on file_id creation was fixed. - - Thai language rendering was fixed (thanks to Atsawin Chaowanakritsanakul). - -5.9.165 (2012-06-07) - - Some HTML form related bugs were fixed. - -5.9.164 (2012-06-06) - - A bug introduced on the latest release was fixed. - -5.9.163 (2012-06-05) - - Method getGDgamma() was changed. - - Rendering performances of PNG images with alpha channel were improved. - -5.9.162 (2012-05-11) - - A bug related to long text on TD cells was fixed. - -5.9.161 (2012-05-09) - - A bug on XREF table was fixed (Bug ID: 3525051). - - Deprecated Imagick:clone was replaced. - - Method objclone() was fixed for PHP4. - -5.9.160 (2012-05-03) - - A bug on tcpdf_parser.php was fixed. - -5.9.159 (2012-04-30) - - Barcode classes were updated to fix PNG export Bug (ID: 3522291). - -5.9.158 (2012-04-22) - - Some SVG-related bugs were fixed. - -5.9.157 (2012-04-16) - - Some SVG-related bugs were fixed. - -5.9.156 (2012-04-10) - - Bug item #3515885 "TOC and booklet: left and right page exchanged". - - SetAutoPageBreak(false) now works also in multicolumn mode. - -5.9.155 (2012-04-02) - - Bug item #3512596 "font import problems" was fixed. - - Method addTTFfont() was modified to extract only specified Platform ID and Encoding ID (check the source code documentation). - - All fonts were updated. - - Bug item #3513867 "booklet and setHeaderTemplateAutoreset: header shifted left" was fixed. - - Bug item #3513749 "TCPDF Superscript/Subscript" was 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 unsupressed 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 arised 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 "lenght" 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-reassigment 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' funtion 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 Extention - EAN5 : 5-Digits UPC-Based Extention - 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/phplib/tcpdf/LICENSE.TXT b/phplib/tcpdf/LICENSE.TXT deleted file mode 100644 index daf21f7..0000000 --- a/phplib/tcpdf/LICENSE.TXT +++ /dev/null @@ -1,858 +0,0 @@ -********************************************************************** -* 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. - -********************************************************************** -********************************************************************** - - 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/phplib/tcpdf/README.TXT b/phplib/tcpdf/README.TXT deleted file mode 100644 index 54db72f..0000000 --- a/phplib/tcpdf/README.TXT +++ /dev/null @@ -1,97 +0,0 @@ -TCPDF - README -============================================================ - -I WISH TO IMPROVE AND EXPAND TCPDF BUT I NEED YOUR SUPPORT. -PLEASE MAKE A DONATION: -http://sourceforge.net/donate/index.php?group_id=128076 - ------------------------------------------------------------- - -Name: TCPDF -Version: 5.9.207 -Release date: 2013-03-04 -Author: Nicola Asuni - -Copyright (c) 2002-2013: - Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill - Aldershot, Hants, GU12 4RQ - UK - www.tecnick.com - -URLs: - http: www.tcpdf.org - http: www.sourceforge.net/projects/tcpdf - -Description: - TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions. - -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/www/formats.html) - * 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 Extention, 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. - -Installation (full instructions on http: www.tcpdf.org): - 1. copy the folder on your Web server - 2. set your installation path and other parameters on the config/tcpdf_config.php - 3. call the examples/example_001.php page with your browser to see an example - -Source Code Documentation: - http://www.tcpdf.org - -Additional Documentation: - http://www.tcpdf.org - -License - Copyright (C) 2002-2013 Nicola Asuni - Tecnick.com LTD - - 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. - - TCPDF 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 Lesser General Public License for more details. - - You should have received a copy of the License - along with TCPDF. If not, see - . - - See LICENSE.TXT file for more information. - -Third party fonts - This library includes third party font files released with different licenses. - These fonts are not required by TCPDF but have been included as you convenience. - The original 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). - To get the original distribution archives please check the information on fonts subfolders: - - DejaVu fonts 2.33 (Bitstream) - Copyright, License and other info: fonts/dejavu-fonts-ttf-2.33 - - GNU FreeFont (GNU-GPLv3) - Copyright, License and other info: fonts/freefont-20100919 - -============================================================ diff --git a/phplib/tcpdf/barcodes.php b/phplib/tcpdf/barcodes.php deleted file mode 100644 index a820d3f..0000000 --- a/phplib/tcpdf/barcodes.php +++ /dev/null @@ -1,2287 +0,0 @@ -. -// -// See LICENSE.TXT file for more information. -// ------------------------------------------------------------------- -// -// Description : PHP class to creates array representations for -// common 1D barcodes to be used with TCPDF. -// -//============================================================+ - -/** - * @file - * PHP class to creates array representations for common 1D barcodes to be used with TCPDF. - * @package com.tecnick.tcpdf - * @author Nicola Asuni - * @version 1.0.025 - */ - -/** - * @class TCPDFBarcode - * PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).
    - * @package com.tecnick.tcpdf - * @version 1.0.025 - * @author Nicola Asuni - */ -class TCPDFBarcode { - - /** - * Array representation of barcode. - * @protected - */ - protected $barcode_array; - - /** - * This is the class constructor. - * Return an array representations for common 1D barcodes:
      - *
    • $arrcode['code'] code to be printed on text label
    • - *
    • $arrcode['maxh'] max barcode height
    • - *
    • $arrcode['maxw'] max barcode width
    • - *
    • $arrcode['bcode'][$k] single bar or space in $k position
    • - *
    • $arrcode['bcode'][$k]['t'] bar type: true = bar, false = space.
    • - *
    • $arrcode['bcode'][$k]['w'] bar width in units.
    • - *
    • $arrcode['bcode'][$k]['h'] bar height in units.
    • - *
    • $arrcode['bcode'][$k]['p'] bar top position (0 = top, 1 = middle)
    - * @param $code (string) code to print - * @param $type (string) type of barcode:
    • 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
    • C128 : CODE 128
    • C128A : CODE 128 A
    • C128B : CODE 128 B
    • C128C : CODE 128 C
    • EAN2 : 2-Digits UPC-Based Extention
    • EAN5 : 5-Digits UPC-Based Extention
    • 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
    • CODABAR : CODABAR
    • CODE11 : CODE 11
    • PHARMA : PHARMACODE
    • PHARMA2T : PHARMACODE TWO-TRACKS
    - * @public - */ - public function __construct($code, $type) { - $this->setBarcode($code, $type); - } - - /** - * Return an array representations of barcode. - * @return array - * @public - */ - public function getBarcodeArray() { - return $this->barcode_array; - } - - /** - * Send barcode as SVG image object to the standard output. - * @param $w (int) Minimum width of a single bar in user units. - * @param $h (int) Height of barcode in user units. - * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). - * @public - */ - public function getBarcodeSVG($w=2, $h=30, $color='black') { - // send headers - $code = $this->getBarcodeSVGcode($w, $h, $color); - header('Content-Type: application/svg+xml'); - header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 - header('Pragma: public'); - header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past - header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - header('Content-Disposition: inline; filename="'.md5($code).'.svg";'); - //header('Content-Length: '.strlen($code)); - echo $code; - } - - /** - * Return a SVG string representation of barcode. - * @param $w (int) Minimum width of a single bar in user units. - * @param $h (int) Height of barcode in user units. - * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent). - * @return string SVG code. - * @public - */ - public function getBarcodeSVGcode($w=2, $h=30, $color='black') { - // replace table for special characters - $repstr = array("\0" => '', '&' => '&', '<' => '<', '>' => '>'); - $svg = '<'.'?'.'xml version="1.0" standalone="no"'.'?'.'>'."\n"; - $svg .= ''."\n"; - $svg .= ''."\n"; - $svg .= "\t".''.strtr($this->barcode_array['code'], $repstr).''."\n"; - $svg .= "\t".''."\n"; - // print bars - $x = 0; - foreach ($this->barcode_array['bcode'] as $k => $v) { - $bw = round(($v['w'] * $w), 3); - $bh = round(($v['h'] * $h / $this->barcode_array['maxh']), 3); - if ($v['t']) { - $y = round(($v['p'] * $h / $this->barcode_array['maxh']), 3); - // draw a vertical bar - $svg .= "\t\t".''."\n"; - } - $x += $bw; - } - $svg .= "\t".''."\n"; - $svg .= ''."\n"; - return $svg; - } - - /** - * Return an HTML representation of barcode. - * @param $w (int) Width of a single bar element in pixels. - * @param $h (int) Height of a single bar element in pixels. - * @param $color (string) Foreground color for bar elements (background is transparent). - * @return string HTML code. - * @public - */ - public function getBarcodeHTML($w=2, $h=30, $color='black') { - $html = '
    '."\n"; - // print bars - $x = 0; - foreach ($this->barcode_array['bcode'] as $k => $v) { - $bw = round(($v['w'] * $w), 3); - $bh = round(($v['h'] * $h / $this->barcode_array['maxh']), 3); - if ($v['t']) { - $y = round(($v['p'] * $h / $this->barcode_array['maxh']), 3); - // draw a vertical bar - $html .= '
     
    '."\n"; - } - $x += $bw; - } - $html .= '
    '."\n"; - return $html; - } - - /** - * Return a PNG image representation of barcode (requires GD or Imagick library). - * @param $w (int) Width of a single bar element in pixels. - * @param $h (int) Height of a single bar element in pixels. - * @param $color (array) RGB (0-255) foreground color for bar elements (background is transparent). - * @return image or false in case of error. - * @public - */ - public function getBarcodePNG($w=2, $h=30, $color=array(0,0,0)) { - // calculate image size - $width = ($this->barcode_array['maxw'] * $w); - $height = $h; - if (function_exists('imagecreate')) { - // GD library - $imagick = false; - $png = imagecreate($width, $height); - $bgcol = imagecolorallocate($png, 255, 255, 255); - imagecolortransparent($png, $bgcol); - $fgcol = imagecolorallocate($png, $color[0], $color[1], $color[2]); - } elseif (extension_loaded('imagick')) { - $imagick = true; - $bgcol = new imagickpixel('rgb(255,255,255'); - $fgcol = new imagickpixel('rgb('.$color[0].','.$color[1].','.$color[2].')'); - $png = new Imagick(); - $png->newImage($width, $height, 'none', 'png'); - $bar = new imagickdraw(); - $bar->setfillcolor($fgcol); - } else { - return false; - } - // print bars - $x = 0; - foreach ($this->barcode_array['bcode'] as $k => $v) { - $bw = round(($v['w'] * $w), 3); - $bh = round(($v['h'] * $h / $this->barcode_array['maxh']), 3); - if ($v['t']) { - $y = round(($v['p'] * $h / $this->barcode_array['maxh']), 3); - // draw a vertical bar - if ($imagick) { - $bar->rectangle($x, $y, ($x + $bw - 1), ($y + $bh - 1)); - } else { - imagefilledrectangle($png, $x, $y, ($x + $bw - 1), ($y + $bh - 1), $fgcol); - } - } - $x += $bw; - } - // send headers - header('Content-Type: image/png'); - header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1 - header('Pragma: public'); - header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past - header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - if ($imagick) { - $png->drawimage($bar); - echo $png; - } else { - imagepng($png); - imagedestroy($png); - } - } - - /** - * Set the barcode. - * @param $code (string) code to print - * @param $type (string) type of barcode:
    • 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
    • C128 : CODE 128
    • C128A : CODE 128 A
    • C128B : CODE 128 B
    • C128C : CODE 128 C
    • EAN2 : 2-Digits UPC-Based Extention
    • EAN5 : 5-Digits UPC-Based Extention
    • 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
    • CODABAR : CODABAR
    • CODE11 : CODE 11
    • PHARMA : PHARMACODE
    • PHARMA2T : PHARMACODE TWO-TRACKS
    - * @return array barcode array - * @public - */ - public function setBarcode($code, $type) { - switch (strtoupper($type)) { - case 'C39': { // CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. - $arrcode = $this->barcode_code39($code, false, false); - break; - } - case 'C39+': { // CODE 39 with checksum - $arrcode = $this->barcode_code39($code, false, true); - break; - } - case 'C39E': { // CODE 39 EXTENDED - $arrcode = $this->barcode_code39($code, true, false); - break; - } - case 'C39E+': { // CODE 39 EXTENDED + CHECKSUM - $arrcode = $this->barcode_code39($code, true, true); - break; - } - case 'C93': { // CODE 93 - USS-93 - $arrcode = $this->barcode_code93($code); - break; - } - case 'S25': { // Standard 2 of 5 - $arrcode = $this->barcode_s25($code, false); - break; - } - case 'S25+': { // Standard 2 of 5 + CHECKSUM - $arrcode = $this->barcode_s25($code, true); - break; - } - case 'I25': { // Interleaved 2 of 5 - $arrcode = $this->barcode_i25($code, false); - break; - } - case 'I25+': { // Interleaved 2 of 5 + CHECKSUM - $arrcode = $this->barcode_i25($code, true); - break; - } - case 'C128': { // CODE 128 - $arrcode = $this->barcode_c128($code, ''); - break; - } - case 'C128A': { // CODE 128 A - $arrcode = $this->barcode_c128($code, 'A'); - break; - } - case 'C128B': { // CODE 128 B - $arrcode = $this->barcode_c128($code, 'B'); - break; - } - case 'C128C': { // CODE 128 C - $arrcode = $this->barcode_c128($code, 'C'); - break; - } - case 'EAN2': { // 2-Digits UPC-Based Extention - $arrcode = $this->barcode_eanext($code, 2); - break; - } - case 'EAN5': { // 5-Digits UPC-Based Extention - $arrcode = $this->barcode_eanext($code, 5); - break; - } - case 'EAN8': { // EAN 8 - $arrcode = $this->barcode_eanupc($code, 8); - break; - } - case 'EAN13': { // EAN 13 - $arrcode = $this->barcode_eanupc($code, 13); - break; - } - case 'UPCA': { // UPC-A - $arrcode = $this->barcode_eanupc($code, 12); - break; - } - case 'UPCE': { // UPC-E - $arrcode = $this->barcode_eanupc($code, 6); - break; - } - case 'MSI': { // MSI (Variation of Plessey code) - $arrcode = $this->barcode_msi($code, false); - break; - } - case 'MSI+': { // MSI + CHECKSUM (modulo 11) - $arrcode = $this->barcode_msi($code, true); - break; - } - case 'POSTNET': { // POSTNET - $arrcode = $this->barcode_postnet($code, false); - break; - } - case 'PLANET': { // PLANET - $arrcode = $this->barcode_postnet($code, true); - break; - } - case 'RMS4CC': { // RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - $arrcode = $this->barcode_rms4cc($code, false); - break; - } - case 'KIX': { // KIX (Klant index - Customer index) - $arrcode = $this->barcode_rms4cc($code, true); - break; - } - case 'IMB': { // IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200 - $arrcode = $this->barcode_imb($code); - break; - } - case 'CODABAR': { // CODABAR - $arrcode = $this->barcode_codabar($code); - break; - } - case 'CODE11': { // CODE 11 - $arrcode = $this->barcode_code11($code); - break; - } - case 'PHARMA': { // PHARMACODE - $arrcode = $this->barcode_pharmacode($code); - break; - } - case 'PHARMA2T': { // PHARMACODE TWO-TRACKS - $arrcode = $this->barcode_pharmacode2t($code); - break; - } - default: { - $this->barcode_array = false; - $arrcode = false; - break; - } - } - $this->barcode_array = $arrcode; - } - - /** - * CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. - * General-purpose code in very wide use world-wide - * @param $code (string) code to represent. - * @param $extended (boolean) if true uses the extended mode. - * @param $checksum (boolean) if true add a checksum to the code. - * @return array barcode representation. - * @protected - */ - protected function barcode_code39($code, $extended=false, $checksum=false) { - $chr['0'] = '111331311'; - $chr['1'] = '311311113'; - $chr['2'] = '113311113'; - $chr['3'] = '313311111'; - $chr['4'] = '111331113'; - $chr['5'] = '311331111'; - $chr['6'] = '113331111'; - $chr['7'] = '111311313'; - $chr['8'] = '311311311'; - $chr['9'] = '113311311'; - $chr['A'] = '311113113'; - $chr['B'] = '113113113'; - $chr['C'] = '313113111'; - $chr['D'] = '111133113'; - $chr['E'] = '311133111'; - $chr['F'] = '113133111'; - $chr['G'] = '111113313'; - $chr['H'] = '311113311'; - $chr['I'] = '113113311'; - $chr['J'] = '111133311'; - $chr['K'] = '311111133'; - $chr['L'] = '113111133'; - $chr['M'] = '313111131'; - $chr['N'] = '111131133'; - $chr['O'] = '311131131'; - $chr['P'] = '113131131'; - $chr['Q'] = '111111333'; - $chr['R'] = '311111331'; - $chr['S'] = '113111331'; - $chr['T'] = '111131331'; - $chr['U'] = '331111113'; - $chr['V'] = '133111113'; - $chr['W'] = '333111111'; - $chr['X'] = '131131113'; - $chr['Y'] = '331131111'; - $chr['Z'] = '133131111'; - $chr['-'] = '131111313'; - $chr['.'] = '331111311'; - $chr[' '] = '133111311'; - $chr['$'] = '131313111'; - $chr['/'] = '131311131'; - $chr['+'] = '131113131'; - $chr['%'] = '111313131'; - $chr['*'] = '131131311'; - $code = strtoupper($code); - if ($extended) { - // extended mode - $code = $this->encode_code39_ext($code); - } - if ($code === false) { - return false; - } - if ($checksum) { - // checksum - $code .= $this->checksum_code39($code); - } - // add start and stop codes - $code = '*'.$code.'*'; - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - $k = 0; - $clen = strlen($code); - for ($i = 0; $i < $clen; ++$i) { - $char = $code{$i}; - if(!isset($chr[$char])) { - // invalid character - return false; - } - for ($j = 0; $j < 9; ++$j) { - if (($j % 2) == 0) { - $t = true; // bar - } else { - $t = false; // space - } - $w = $chr[$char]{$j}; - $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - ++$k; - } - // intercharacter gap - $bararray['bcode'][$k] = array('t' => false, 'w' => 1, 'h' => 1, 'p' => 0); - $bararray['maxw'] += 1; - ++$k; - } - return $bararray; - } - - /** - * Encode a string to be used for CODE 39 Extended mode. - * @param $code (string) code to represent. - * @return encoded string. - * @protected - */ - protected function encode_code39_ext($code) { - $encode = array( - chr(0) => '%U', chr(1) => '$A', chr(2) => '$B', chr(3) => '$C', - chr(4) => '$D', chr(5) => '$E', chr(6) => '$F', chr(7) => '$G', - chr(8) => '$H', chr(9) => '$I', chr(10) => '$J', chr(11) => '£K', - chr(12) => '$L', chr(13) => '$M', chr(14) => '$N', chr(15) => '$O', - chr(16) => '$P', chr(17) => '$Q', chr(18) => '$R', chr(19) => '$S', - chr(20) => '$T', chr(21) => '$U', chr(22) => '$V', chr(23) => '$W', - chr(24) => '$X', chr(25) => '$Y', chr(26) => '$Z', chr(27) => '%A', - chr(28) => '%B', chr(29) => '%C', chr(30) => '%D', chr(31) => '%E', - chr(32) => ' ', chr(33) => '/A', chr(34) => '/B', chr(35) => '/C', - chr(36) => '/D', chr(37) => '/E', chr(38) => '/F', chr(39) => '/G', - chr(40) => '/H', chr(41) => '/I', chr(42) => '/J', chr(43) => '/K', - chr(44) => '/L', chr(45) => '-', chr(46) => '.', chr(47) => '/O', - chr(48) => '0', chr(49) => '1', chr(50) => '2', chr(51) => '3', - chr(52) => '4', chr(53) => '5', chr(54) => '6', chr(55) => '7', - chr(56) => '8', chr(57) => '9', chr(58) => '/Z', chr(59) => '%F', - chr(60) => '%G', chr(61) => '%H', chr(62) => '%I', chr(63) => '%J', - chr(64) => '%V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C', - chr(68) => 'D', chr(69) => 'E', chr(70) => 'F', chr(71) => 'G', - chr(72) => 'H', chr(73) => 'I', chr(74) => 'J', chr(75) => 'K', - chr(76) => 'L', chr(77) => 'M', chr(78) => 'N', chr(79) => 'O', - chr(80) => 'P', chr(81) => 'Q', chr(82) => 'R', chr(83) => 'S', - chr(84) => 'T', chr(85) => 'U', chr(86) => 'V', chr(87) => 'W', - chr(88) => 'X', chr(89) => 'Y', chr(90) => 'Z', chr(91) => '%K', - chr(92) => '%L', chr(93) => '%M', chr(94) => '%N', chr(95) => '%O', - chr(96) => '%W', chr(97) => '+A', chr(98) => '+B', chr(99) => '+C', - chr(100) => '+D', chr(101) => '+E', chr(102) => '+F', chr(103) => '+G', - chr(104) => '+H', chr(105) => '+I', chr(106) => '+J', chr(107) => '+K', - chr(108) => '+L', chr(109) => '+M', chr(110) => '+N', chr(111) => '+O', - chr(112) => '+P', chr(113) => '+Q', chr(114) => '+R', chr(115) => '+S', - chr(116) => '+T', chr(117) => '+U', chr(118) => '+V', chr(119) => '+W', - chr(120) => '+X', chr(121) => '+Y', chr(122) => '+Z', chr(123) => '%P', - chr(124) => '%Q', chr(125) => '%R', chr(126) => '%S', chr(127) => '%T'); - $code_ext = ''; - $clen = strlen($code); - for ($i = 0 ; $i < $clen; ++$i) { - if (ord($code{$i}) > 127) { - return false; - } - $code_ext .= $encode[$code{$i}]; - } - return $code_ext; - } - - /** - * Calculate CODE 39 checksum (modulo 43). - * @param $code (string) code to represent. - * @return char checksum. - * @protected - */ - protected function checksum_code39($code) { - $chars = array( - '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', - 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', - 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', - 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%'); - $sum = 0; - $clen = strlen($code); - for ($i = 0 ; $i < $clen; ++$i) { - $k = array_keys($chars, $code{$i}); - $sum += $k[0]; - } - $j = ($sum % 43); - return $chars[$j]; - } - - /** - * CODE 93 - USS-93 - * Compact code similar to Code 39 - * @param $code (string) code to represent. - * @return array barcode representation. - * @protected - */ - protected function barcode_code93($code) { - $chr[48] = '131112'; // 0 - $chr[49] = '111213'; // 1 - $chr[50] = '111312'; // 2 - $chr[51] = '111411'; // 3 - $chr[52] = '121113'; // 4 - $chr[53] = '121212'; // 5 - $chr[54] = '121311'; // 6 - $chr[55] = '111114'; // 7 - $chr[56] = '131211'; // 8 - $chr[57] = '141111'; // 9 - $chr[65] = '211113'; // A - $chr[66] = '211212'; // B - $chr[67] = '211311'; // C - $chr[68] = '221112'; // D - $chr[69] = '221211'; // E - $chr[70] = '231111'; // F - $chr[71] = '112113'; // G - $chr[72] = '112212'; // H - $chr[73] = '112311'; // I - $chr[74] = '122112'; // J - $chr[75] = '132111'; // K - $chr[76] = '111123'; // L - $chr[77] = '111222'; // M - $chr[78] = '111321'; // N - $chr[79] = '121122'; // O - $chr[80] = '131121'; // P - $chr[81] = '212112'; // Q - $chr[82] = '212211'; // R - $chr[83] = '211122'; // S - $chr[84] = '211221'; // T - $chr[85] = '221121'; // U - $chr[86] = '222111'; // V - $chr[87] = '112122'; // W - $chr[88] = '112221'; // X - $chr[89] = '122121'; // Y - $chr[90] = '123111'; // Z - $chr[45] = '121131'; // - - $chr[46] = '311112'; // . - $chr[32] = '311211'; // - $chr[36] = '321111'; // $ - $chr[47] = '112131'; // / - $chr[43] = '113121'; // + - $chr[37] = '211131'; // % - $chr[128] = '121221'; // ($) - $chr[129] = '311121'; // (/) - $chr[130] = '122211'; // (+) - $chr[131] = '312111'; // (%) - $chr[42] = '111141'; // start-stop - $code = strtoupper($code); - $encode = array( - chr(0) => chr(131).'U', chr(1) => chr(128).'A', chr(2) => chr(128).'B', chr(3) => chr(128).'C', - chr(4) => chr(128).'D', chr(5) => chr(128).'E', chr(6) => chr(128).'F', chr(7) => chr(128).'G', - chr(8) => chr(128).'H', chr(9) => chr(128).'I', chr(10) => chr(128).'J', chr(11) => '£K', - chr(12) => chr(128).'L', chr(13) => chr(128).'M', chr(14) => chr(128).'N', chr(15) => chr(128).'O', - chr(16) => chr(128).'P', chr(17) => chr(128).'Q', chr(18) => chr(128).'R', chr(19) => chr(128).'S', - chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W', - chr(24) => chr(128).'X', chr(25) => chr(128).'Y', chr(26) => chr(128).'Z', chr(27) => chr(131).'A', - chr(28) => chr(131).'B', chr(29) => chr(131).'C', chr(30) => chr(131).'D', chr(31) => chr(131).'E', - chr(32) => ' ', chr(33) => chr(129).'A', chr(34) => chr(129).'B', chr(35) => chr(129).'C', - chr(36) => chr(129).'D', chr(37) => chr(129).'E', chr(38) => chr(129).'F', chr(39) => chr(129).'G', - chr(40) => chr(129).'H', chr(41) => chr(129).'I', chr(42) => chr(129).'J', chr(43) => chr(129).'K', - chr(44) => chr(129).'L', chr(45) => '-', chr(46) => '.', chr(47) => chr(129).'O', - chr(48) => '0', chr(49) => '1', chr(50) => '2', chr(51) => '3', - chr(52) => '4', chr(53) => '5', chr(54) => '6', chr(55) => '7', - chr(56) => '8', chr(57) => '9', chr(58) => chr(129).'Z', chr(59) => chr(131).'F', - chr(60) => chr(131).'G', chr(61) => chr(131).'H', chr(62) => chr(131).'I', chr(63) => chr(131).'J', - chr(64) => chr(131).'V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C', - chr(68) => 'D', chr(69) => 'E', chr(70) => 'F', chr(71) => 'G', - chr(72) => 'H', chr(73) => 'I', chr(74) => 'J', chr(75) => 'K', - chr(76) => 'L', chr(77) => 'M', chr(78) => 'N', chr(79) => 'O', - chr(80) => 'P', chr(81) => 'Q', chr(82) => 'R', chr(83) => 'S', - chr(84) => 'T', chr(85) => 'U', chr(86) => 'V', chr(87) => 'W', - chr(88) => 'X', chr(89) => 'Y', chr(90) => 'Z', chr(91) => chr(131).'K', - chr(92) => chr(131).'L', chr(93) => chr(131).'M', chr(94) => chr(131).'N', chr(95) => chr(131).'O', - chr(96) => chr(131).'W', chr(97) => chr(130).'A', chr(98) => chr(130).'B', chr(99) => chr(130).'C', - chr(100) => chr(130).'D', chr(101) => chr(130).'E', chr(102) => chr(130).'F', chr(103) => chr(130).'G', - chr(104) => chr(130).'H', chr(105) => chr(130).'I', chr(106) => chr(130).'J', chr(107) => chr(130).'K', - chr(108) => chr(130).'L', chr(109) => chr(130).'M', chr(110) => chr(130).'N', chr(111) => chr(130).'O', - chr(112) => chr(130).'P', chr(113) => chr(130).'Q', chr(114) => chr(130).'R', chr(115) => chr(130).'S', - chr(116) => chr(130).'T', chr(117) => chr(130).'U', chr(118) => chr(130).'V', chr(119) => chr(130).'W', - chr(120) => chr(130).'X', chr(121) => chr(130).'Y', chr(122) => chr(130).'Z', chr(123) => chr(131).'P', - chr(124) => chr(131).'Q', chr(125) => chr(131).'R', chr(126) => chr(131).'S', chr(127) => chr(131).'T'); - $code_ext = ''; - $clen = strlen($code); - for ($i = 0 ; $i < $clen; ++$i) { - if (ord($code{$i}) > 127) { - return false; - } - $code_ext .= $encode[$code{$i}]; - } - // checksum - $code_ext .= $this->checksum_code93($code_ext); - // add start and stop codes - $code = '*'.$code_ext.'*'; - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - $k = 0; - $clen = strlen($code); - for ($i = 0; $i < $clen; ++$i) { - $char = ord($code{$i}); - if(!isset($chr[$char])) { - // invalid character - return false; - } - for ($j = 0; $j < 6; ++$j) { - if (($j % 2) == 0) { - $t = true; // bar - } else { - $t = false; // space - } - $w = $chr[$char]{$j}; - $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - ++$k; - } - } - $bararray['bcode'][$k] = array('t' => true, 'w' => 1, 'h' => 1, 'p' => 0); - $bararray['maxw'] += 1; - ++$k; - return $bararray; - } - - /** - * Calculate CODE 93 checksum (modulo 47). - * @param $code (string) code to represent. - * @return string checksum code. - * @protected - */ - protected function checksum_code93($code) { - $chars = array( - '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', - 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', - 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', - 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%', - '<', '=', '>', '?'); - // translate special characters - $code = strtr($code, chr(128).chr(131).chr(129).chr(130), '<=>?'); - $len = strlen($code); - // calculate check digit C - $p = 1; - $check = 0; - for ($i = ($len - 1); $i >= 0; --$i) { - $k = array_keys($chars, $code{$i}); - $check += ($k[0] * $p); - ++$p; - if ($p > 20) { - $p = 1; - } - } - $check %= 47; - $c = $chars[$check]; - $code .= $c; - // calculate check digit K - $p = 1; - $check = 0; - for ($i = $len; $i >= 0; --$i) { - $k = array_keys($chars, $code{$i}); - $check += ($k[0] * $p); - ++$p; - if ($p > 15) { - $p = 1; - } - } - $check %= 47; - $k = $chars[$check]; - $checksum = $c.$k; - // resto respecial characters - $checksum = strtr($checksum, '<=>?', chr(128).chr(131).chr(129).chr(130)); - return $checksum; - } - - /** - * Checksum for standard 2 of 5 barcodes. - * @param $code (string) code to process. - * @return int checksum. - * @protected - */ - protected function checksum_s25($code) { - $len = strlen($code); - $sum = 0; - for ($i = 0; $i < $len; $i+=2) { - $sum += $code{$i}; - } - $sum *= 3; - for ($i = 1; $i < $len; $i+=2) { - $sum += ($code{$i}); - } - $r = $sum % 10; - if($r > 0) { - $r = (10 - $r); - } - return $r; - } - - /** - * MSI. - * Variation of Plessey code, with similar applications - * Contains digits (0 to 9) and encodes the data only in the width of bars. - * @param $code (string) code to represent. - * @param $checksum (boolean) if true add a checksum to the code (modulo 11) - * @return array barcode representation. - * @protected - */ - protected function barcode_msi($code, $checksum=false) { - $chr['0'] = '100100100100'; - $chr['1'] = '100100100110'; - $chr['2'] = '100100110100'; - $chr['3'] = '100100110110'; - $chr['4'] = '100110100100'; - $chr['5'] = '100110100110'; - $chr['6'] = '100110110100'; - $chr['7'] = '100110110110'; - $chr['8'] = '110100100100'; - $chr['9'] = '110100100110'; - $chr['A'] = '110100110100'; - $chr['B'] = '110100110110'; - $chr['C'] = '110110100100'; - $chr['D'] = '110110100110'; - $chr['E'] = '110110110100'; - $chr['F'] = '110110110110'; - if ($checksum) { - // add checksum - $clen = strlen($code); - $p = 2; - $check = 0; - for ($i = ($clen - 1); $i >= 0; --$i) { - $check += (hexdec($code{$i}) * $p); - ++$p; - if ($p > 7) { - $p = 2; - } - } - $check %= 11; - if ($check > 0) { - $check = 11 - $check; - } - $code .= $check; - } - $seq = '110'; // left guard - $clen = strlen($code); - for ($i = 0; $i < $clen; ++$i) { - $digit = $code{$i}; - if (!isset($chr[$digit])) { - // invalid character - return false; - } - $seq .= $chr[$digit]; - } - $seq .= '1001'; // right guard - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - return $this->binseq_to_array($seq, $bararray); - } - - /** - * Standard 2 of 5 barcodes. - * Used in airline ticket marking, photofinishing - * Contains digits (0 to 9) and encodes the data only in the width of bars. - * @param $code (string) code to represent. - * @param $checksum (boolean) if true add a checksum to the code - * @return array barcode representation. - * @protected - */ - protected function barcode_s25($code, $checksum=false) { - $chr['0'] = '10101110111010'; - $chr['1'] = '11101010101110'; - $chr['2'] = '10111010101110'; - $chr['3'] = '11101110101010'; - $chr['4'] = '10101110101110'; - $chr['5'] = '11101011101010'; - $chr['6'] = '10111011101010'; - $chr['7'] = '10101011101110'; - $chr['8'] = '10101110111010'; - $chr['9'] = '10111010111010'; - if ($checksum) { - // add checksum - $code .= $this->checksum_s25($code); - } - if((strlen($code) % 2) != 0) { - // add leading zero if code-length is odd - $code = '0'.$code; - } - $seq = '11011010'; - $clen = strlen($code); - for ($i = 0; $i < $clen; ++$i) { - $digit = $code{$i}; - if (!isset($chr[$digit])) { - // invalid character - return false; - } - $seq .= $chr[$digit]; - } - $seq .= '1101011'; - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - return $this->binseq_to_array($seq, $bararray); - } - - /** - * Convert binary barcode sequence to TCPDF barcode array. - * @param $seq (string) barcode as binary sequence. - * @param $bararray (array) barcode array. - * òparam array $bararray TCPDF barcode array to fill up - * @return array barcode representation. - * @protected - */ - protected function binseq_to_array($seq, $bararray) { - $len = strlen($seq); - $w = 0; - $k = 0; - for ($i = 0; $i < $len; ++$i) { - $w += 1; - if (($i == ($len - 1)) OR (($i < ($len - 1)) AND ($seq{$i} != $seq{($i+1)}))) { - if ($seq{$i} == '1') { - $t = true; // bar - } else { - $t = false; // space - } - $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - ++$k; - $w = 0; - } - } - return $bararray; - } - - /** - * Interleaved 2 of 5 barcodes. - * Compact numeric code, widely used in industry, air cargo - * Contains digits (0 to 9) and encodes the data in the width of both bars and spaces. - * @param $code (string) code to represent. - * @param $checksum (boolean) if true add a checksum to the code - * @return array barcode representation. - * @protected - */ - protected function barcode_i25($code, $checksum=false) { - $chr['0'] = '11221'; - $chr['1'] = '21112'; - $chr['2'] = '12112'; - $chr['3'] = '22111'; - $chr['4'] = '11212'; - $chr['5'] = '21211'; - $chr['6'] = '12211'; - $chr['7'] = '11122'; - $chr['8'] = '21121'; - $chr['9'] = '12121'; - $chr['A'] = '11'; - $chr['Z'] = '21'; - if ($checksum) { - // add checksum - $code .= $this->checksum_s25($code); - } - if((strlen($code) % 2) != 0) { - // add leading zero if code-length is odd - $code = '0'.$code; - } - // add start and stop codes - $code = 'AA'.strtolower($code).'ZA'; - - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - $k = 0; - $clen = strlen($code); - for ($i = 0; $i < $clen; $i = ($i + 2)) { - $char_bar = $code{$i}; - $char_space = $code{$i+1}; - if((!isset($chr[$char_bar])) OR (!isset($chr[$char_space]))) { - // invalid character - return false; - } - // create a bar-space sequence - $seq = ''; - $chrlen = strlen($chr[$char_bar]); - for ($s = 0; $s < $chrlen; $s++){ - $seq .= $chr[$char_bar]{$s} . $chr[$char_space]{$s}; - } - $seqlen = strlen($seq); - for ($j = 0; $j < $seqlen; ++$j) { - if (($j % 2) == 0) { - $t = true; // bar - } else { - $t = false; // space - } - $w = $seq{$j}; - $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - ++$k; - } - } - return $bararray; - } - - /** - * C128 barcodes. - * Very capable code, excellent density, high reliability; in very wide use world-wide - * @param $code (string) code to represent. - * @param $type (string) barcode type: A, B, C or empty for automatic switch (AUTO mode) - * @return array barcode representation. - * @protected - */ - protected function barcode_c128($code, $type='') { - $chr = array( - '212222', /* 00 */ - '222122', /* 01 */ - '222221', /* 02 */ - '121223', /* 03 */ - '121322', /* 04 */ - '131222', /* 05 */ - '122213', /* 06 */ - '122312', /* 07 */ - '132212', /* 08 */ - '221213', /* 09 */ - '221312', /* 10 */ - '231212', /* 11 */ - '112232', /* 12 */ - '122132', /* 13 */ - '122231', /* 14 */ - '113222', /* 15 */ - '123122', /* 16 */ - '123221', /* 17 */ - '223211', /* 18 */ - '221132', /* 19 */ - '221231', /* 20 */ - '213212', /* 21 */ - '223112', /* 22 */ - '312131', /* 23 */ - '311222', /* 24 */ - '321122', /* 25 */ - '321221', /* 26 */ - '312212', /* 27 */ - '322112', /* 28 */ - '322211', /* 29 */ - '212123', /* 30 */ - '212321', /* 31 */ - '232121', /* 32 */ - '111323', /* 33 */ - '131123', /* 34 */ - '131321', /* 35 */ - '112313', /* 36 */ - '132113', /* 37 */ - '132311', /* 38 */ - '211313', /* 39 */ - '231113', /* 40 */ - '231311', /* 41 */ - '112133', /* 42 */ - '112331', /* 43 */ - '132131', /* 44 */ - '113123', /* 45 */ - '113321', /* 46 */ - '133121', /* 47 */ - '313121', /* 48 */ - '211331', /* 49 */ - '231131', /* 50 */ - '213113', /* 51 */ - '213311', /* 52 */ - '213131', /* 53 */ - '311123', /* 54 */ - '311321', /* 55 */ - '331121', /* 56 */ - '312113', /* 57 */ - '312311', /* 58 */ - '332111', /* 59 */ - '314111', /* 60 */ - '221411', /* 61 */ - '431111', /* 62 */ - '111224', /* 63 */ - '111422', /* 64 */ - '121124', /* 65 */ - '121421', /* 66 */ - '141122', /* 67 */ - '141221', /* 68 */ - '112214', /* 69 */ - '112412', /* 70 */ - '122114', /* 71 */ - '122411', /* 72 */ - '142112', /* 73 */ - '142211', /* 74 */ - '241211', /* 75 */ - '221114', /* 76 */ - '413111', /* 77 */ - '241112', /* 78 */ - '134111', /* 79 */ - '111242', /* 80 */ - '121142', /* 81 */ - '121241', /* 82 */ - '114212', /* 83 */ - '124112', /* 84 */ - '124211', /* 85 */ - '411212', /* 86 */ - '421112', /* 87 */ - '421211', /* 88 */ - '212141', /* 89 */ - '214121', /* 90 */ - '412121', /* 91 */ - '111143', /* 92 */ - '111341', /* 93 */ - '131141', /* 94 */ - '114113', /* 95 */ - '114311', /* 96 */ - '411113', /* 97 */ - '411311', /* 98 */ - '113141', /* 99 */ - '114131', /* 100 */ - '311141', /* 101 */ - '411131', /* 102 */ - '211412', /* 103 START A */ - '211214', /* 104 START B */ - '211232', /* 105 START C */ - '233111', /* STOP */ - '200000' /* END */ - ); - // ASCII characters for code A (ASCII 00 - 95) - $keys_a = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_'; - $keys_a .= chr(0).chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8).chr(9); - $keys_a .= chr(10).chr(11).chr(12).chr(13).chr(14).chr(15).chr(16).chr(17).chr(18).chr(19); - $keys_a .= chr(20).chr(21).chr(22).chr(23).chr(24).chr(25).chr(26).chr(27).chr(28).chr(29); - $keys_a .= chr(30).chr(31); - // ASCII characters for code B (ASCII 32 - 127) - $keys_b = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'.chr(127); - // special codes - $fnc_a = array(241 => 102, 242 => 97, 243 => 96, 244 => 101); - $fnc_b = array(241 => 102, 242 => 97, 243 => 96, 244 => 100); - // array of symbols - $code_data = array(); - // lenght of the code - $len = strlen($code); - switch(strtoupper($type)) { - case 'A': { // MODE A - $startid = 103; - for ($i = 0; $i < $len; ++$i) { - $char = $code{$i}; - $char_id = ord($char); - if (($char_id >= 241) AND ($char_id <= 244)) { - $code_data[] = $fnc_a[$char_id]; - } elseif (($char_id >= 0) AND ($char_id <= 95)) { - $code_data[] = strpos($keys_a, $char); - } else { - return false; - } - } - break; - } - case 'B': { // MODE B - $startid = 104; - for ($i = 0; $i < $len; ++$i) { - $char = $code{$i}; - $char_id = ord($char); - if (($char_id >= 241) AND ($char_id <= 244)) { - $code_data[] = $fnc_b[$char_id]; - } elseif (($char_id >= 32) AND ($char_id <= 127)) { - $code_data[] = strpos($keys_b, $char); - } else { - return false; - } - } - break; - } - case 'C': { // MODE C - $startid = 105; - if (ord($code{0}) == 241) { - $code_data[] = 102; - $code = substr($code, 1); - --$len; - } - if (($len % 2) != 0) { - // the length must be even - return false; - } - for ($i = 0; $i < $len; $i+=2) { - $chrnum = $code{$i}.$code{$i+1}; - if (preg_match('/([0-9]{2})/', $chrnum) > 0) { - $code_data[] = intval($chrnum); - } else { - return false; - } - } - break; - } - default: { // MODE AUTO - // split code into sequences - $sequence = array(); - // get numeric sequences (if any) - $numseq = array(); - preg_match_all('/([0-9]{4,})/', $code, $numseq, PREG_OFFSET_CAPTURE); - if (isset($numseq[1]) AND !empty($numseq[1])) { - $end_offset = 0; - foreach ($numseq[1] as $val) { - $offset = $val[1]; - if ($offset > $end_offset) { - // non numeric sequence - $sequence = array_merge($sequence, $this->get128ABsequence(substr($code, $end_offset, ($offset - $end_offset)))); - } - // numeric sequence - $slen = strlen($val[0]); - if (($slen % 2) != 0) { - // the length must be even - --$slen; - } - $sequence[] = array('C', substr($code, $offset, $slen), $slen); - $end_offset = $offset + $slen; - } - if ($end_offset < $len) { - $sequence = array_merge($sequence, $this->get128ABsequence(substr($code, $end_offset))); - } - } else { - // text code (non C mode) - $sequence = array_merge($sequence, $this->get128ABsequence($code)); - } - // process the sequence - foreach ($sequence as $key => $seq) { - switch($seq[0]) { - case 'A': { - if ($key == 0) { - $startid = 103; - } elseif ($sequence[($key - 1)][0] != 'A') { - if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'B') AND (!isset($sequence[($key - 1)][3]))) { - // single character shift - $code_data[] = 98; - // mark shift - $sequence[$key][3] = true; - } elseif (!isset($sequence[($key - 1)][3])) { - $code_data[] = 101; - } - } - for ($i = 0; $i < $seq[2]; ++$i) { - $char = $seq[1]{$i}; - $char_id = ord($char); - if (($char_id >= 241) AND ($char_id <= 244)) { - $code_data[] = $fnc_a[$char_id]; - } else { - $code_data[] = strpos($keys_a, $char); - } - } - break; - } - case 'B': { - if ($key == 0) { - $tmpchr = ord($seq[1]{0}); - if (($seq[2] == 1) AND ($tmpchr >= 241) AND ($tmpchr <= 244) AND isset($sequence[($key + 1)]) AND ($sequence[($key + 1)][0] != 'B')) { - switch ($sequence[($key + 1)][0]) { - case 'A': { - $startid = 103; - $sequence[$key][0] = 'A'; - $code_data[] = $fnc_a[$tmpchr]; - break; - } - case 'C': { - $startid = 105; - $sequence[$key][0] = 'C'; - $code_data[] = $fnc_a[$tmpchr]; - break; - } - } - break; - } else { - $startid = 104; - } - } elseif ($sequence[($key - 1)][0] != 'B') { - if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'A') AND (!isset($sequence[($key - 1)][3]))) { - // single character shift - $code_data[] = 98; - // mark shift - $sequence[$key][3] = true; - } elseif (!isset($sequence[($key - 1)][3])) { - $code_data[] = 100; - } - } - for ($i = 0; $i < $seq[2]; ++$i) { - $char = $seq[1]{$i}; - $char_id = ord($char); - if (($char_id >= 241) AND ($char_id <= 244)) { - $code_data[] = $fnc_b[$char_id]; - } else { - $code_data[] = strpos($keys_b, $char); - } - } - break; - } - case 'C': { - if ($key == 0) { - $startid = 105; - } elseif ($sequence[($key - 1)][0] != 'C') { - $code_data[] = 99; - } - for ($i = 0; $i < $seq[2]; $i+=2) { - $chrnum = $seq[1]{$i}.$seq[1]{$i+1}; - $code_data[] = intval($chrnum); - } - break; - } - } - } - } - } - // calculate check character - $sum = $startid; - foreach ($code_data as $key => $val) { - $sum += ($val * ($key + 1)); - } - // add check character - $code_data[] = ($sum % 103); - // add stop sequence - $code_data[] = 106; - $code_data[] = 107; - // add start code at the beginning - array_unshift($code_data, $startid); - // build barcode array - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - foreach ($code_data as $val) { - $seq = $chr[$val]; - for ($j = 0; $j < 6; ++$j) { - if (($j % 2) == 0) { - $t = true; // bar - } else { - $t = false; // space - } - $w = $seq{$j}; - $bararray['bcode'][] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - } - } - return $bararray; - } - - /** - * Split text code in A/B sequence for 128 code - * @param $code (string) code to split. - * @return array sequence - * @protected - */ - protected function get128ABsequence($code) { - $len = strlen($code); - $sequence = array(); - // get A sequences (if any) - $numseq = array(); - preg_match_all('/([\0-\31])/', $code, $numseq, PREG_OFFSET_CAPTURE); - if (isset($numseq[1]) AND !empty($numseq[1])) { - $end_offset = 0; - foreach ($numseq[1] as $val) { - $offset = $val[1]; - if ($offset > $end_offset) { - // B sequence - $sequence[] = array('B', substr($code, $end_offset, ($offset - $end_offset)), ($offset - $end_offset)); - } - // A sequence - $slen = strlen($val[0]); - $sequence[] = array('A', substr($code, $offset, $slen), $slen); - $end_offset = $offset + $slen; - } - if ($end_offset < $len) { - $sequence[] = array('B', substr($code, $end_offset), ($len - $end_offset)); - } - } else { - // only B sequence - $sequence[] = array('B', $code, $len); - } - return $sequence; - } - - /** - * EAN13 and UPC-A barcodes. - * EAN13: European Article Numbering international retail product code - * UPC-A: Universal product code seen on almost all retail products in the USA and Canada - * UPC-E: Short version of UPC symbol - * @param $code (string) code to represent. - * @param $len (string) barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A - * @return array barcode representation. - * @protected - */ - protected function barcode_eanupc($code, $len=13) { - $upce = false; - if ($len == 6) { - $len = 12; // UPC-A - $upce = true; // UPC-E mode - } - $data_len = $len - 1; - //Padding - $code = str_pad($code, $data_len, '0', STR_PAD_LEFT); - $code_len = strlen($code); - // calculate check digit - $sum_a = 0; - for ($i = 1; $i < $data_len; $i+=2) { - $sum_a += $code{$i}; - } - if ($len > 12) { - $sum_a *= 3; - } - $sum_b = 0; - for ($i = 0; $i < $data_len; $i+=2) { - $sum_b += ($code{$i}); - } - if ($len < 13) { - $sum_b *= 3; - } - $r = ($sum_a + $sum_b) % 10; - if($r > 0) { - $r = (10 - $r); - } - if ($code_len == $data_len) { - // add check digit - $code .= $r; - } elseif ($r !== intval($code{$data_len})) { - // wrong checkdigit - return false; - } - if ($len == 12) { - // UPC-A - $code = '0'.$code; - ++$len; - } - if ($upce) { - // convert UPC-A to UPC-E - $tmp = substr($code, 4, 3); - if (($tmp == '000') OR ($tmp == '100') OR ($tmp == '200')) { - // manufacturer code ends in 000, 100, or 200 - $upce_code = substr($code, 2, 2).substr($code, 9, 3).substr($code, 4, 1); - } else { - $tmp = substr($code, 5, 2); - if ($tmp == '00') { - // manufacturer code ends in 00 - $upce_code = substr($code, 2, 3).substr($code, 10, 2).'3'; - } else { - $tmp = substr($code, 6, 1); - if ($tmp == '0') { - // manufacturer code ends in 0 - $upce_code = substr($code, 2, 4).substr($code, 11, 1).'4'; - } else { - // manufacturer code does not end in zero - $upce_code = substr($code, 2, 5).substr($code, 11, 1); - } - } - } - } - //Convert digits to bars - $codes = array( - 'A'=>array( // left odd parity - '0'=>'0001101', - '1'=>'0011001', - '2'=>'0010011', - '3'=>'0111101', - '4'=>'0100011', - '5'=>'0110001', - '6'=>'0101111', - '7'=>'0111011', - '8'=>'0110111', - '9'=>'0001011'), - 'B'=>array( // left even parity - '0'=>'0100111', - '1'=>'0110011', - '2'=>'0011011', - '3'=>'0100001', - '4'=>'0011101', - '5'=>'0111001', - '6'=>'0000101', - '7'=>'0010001', - '8'=>'0001001', - '9'=>'0010111'), - 'C'=>array( // right - '0'=>'1110010', - '1'=>'1100110', - '2'=>'1101100', - '3'=>'1000010', - '4'=>'1011100', - '5'=>'1001110', - '6'=>'1010000', - '7'=>'1000100', - '8'=>'1001000', - '9'=>'1110100') - ); - $parities = array( - '0'=>array('A','A','A','A','A','A'), - '1'=>array('A','A','B','A','B','B'), - '2'=>array('A','A','B','B','A','B'), - '3'=>array('A','A','B','B','B','A'), - '4'=>array('A','B','A','A','B','B'), - '5'=>array('A','B','B','A','A','B'), - '6'=>array('A','B','B','B','A','A'), - '7'=>array('A','B','A','B','A','B'), - '8'=>array('A','B','A','B','B','A'), - '9'=>array('A','B','B','A','B','A') - ); - $upce_parities = array(); - $upce_parities[0] = array( - '0'=>array('B','B','B','A','A','A'), - '1'=>array('B','B','A','B','A','A'), - '2'=>array('B','B','A','A','B','A'), - '3'=>array('B','B','A','A','A','B'), - '4'=>array('B','A','B','B','A','A'), - '5'=>array('B','A','A','B','B','A'), - '6'=>array('B','A','A','A','B','B'), - '7'=>array('B','A','B','A','B','A'), - '8'=>array('B','A','B','A','A','B'), - '9'=>array('B','A','A','B','A','B') - ); - $upce_parities[1] = array( - '0'=>array('A','A','A','B','B','B'), - '1'=>array('A','A','B','A','B','B'), - '2'=>array('A','A','B','B','A','B'), - '3'=>array('A','A','B','B','B','A'), - '4'=>array('A','B','A','A','B','B'), - '5'=>array('A','B','B','A','A','B'), - '6'=>array('A','B','B','B','A','A'), - '7'=>array('A','B','A','B','A','B'), - '8'=>array('A','B','A','B','B','A'), - '9'=>array('A','B','B','A','B','A') - ); - $k = 0; - $seq = '101'; // left guard bar - if ($upce) { - $bararray = array('code' => $upce_code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - $p = $upce_parities[$code{1}][$r]; - for ($i = 0; $i < 6; ++$i) { - $seq .= $codes[$p[$i]][$upce_code{$i}]; - } - $seq .= '010101'; // right guard bar - } else { - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - $half_len = intval(ceil($len / 2)); - if ($len == 8) { - for ($i = 0; $i < $half_len; ++$i) { - $seq .= $codes['A'][$code{$i}]; - } - } else { - $p = $parities[$code{0}]; - for ($i = 1; $i < $half_len; ++$i) { - $seq .= $codes[$p[$i-1]][$code{$i}]; - } - } - $seq .= '01010'; // center guard bar - for ($i = $half_len; $i < $len; ++$i) { - $seq .= $codes['C'][$code{$i}]; - } - $seq .= '101'; // right guard bar - } - $clen = strlen($seq); - $w = 0; - for ($i = 0; $i < $clen; ++$i) { - $w += 1; - if (($i == ($clen - 1)) OR (($i < ($clen - 1)) AND ($seq{$i} != $seq{($i+1)}))) { - if ($seq{$i} == '1') { - $t = true; // bar - } else { - $t = false; // space - } - $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - ++$k; - $w = 0; - } - } - return $bararray; - } - - /** - * UPC-Based Extentions - * 2-Digit Ext.: Used to indicate magazines and newspaper issue numbers - * 5-Digit Ext.: Used to mark suggested retail price of books - * @param $code (string) code to represent. - * @param $len (string) barcode type: 2 = 2-Digit, 5 = 5-Digit - * @return array barcode representation. - * @protected - */ - protected function barcode_eanext($code, $len=5) { - //Padding - $code = str_pad($code, $len, '0', STR_PAD_LEFT); - // calculate check digit - if ($len == 2) { - $r = $code % 4; - } elseif ($len == 5) { - $r = (3 * ($code{0} + $code{2} + $code{4})) + (9 * ($code{1} + $code{3})); - $r %= 10; - } else { - return false; - } - //Convert digits to bars - $codes = array( - 'A'=>array( // left odd parity - '0'=>'0001101', - '1'=>'0011001', - '2'=>'0010011', - '3'=>'0111101', - '4'=>'0100011', - '5'=>'0110001', - '6'=>'0101111', - '7'=>'0111011', - '8'=>'0110111', - '9'=>'0001011'), - 'B'=>array( // left even parity - '0'=>'0100111', - '1'=>'0110011', - '2'=>'0011011', - '3'=>'0100001', - '4'=>'0011101', - '5'=>'0111001', - '6'=>'0000101', - '7'=>'0010001', - '8'=>'0001001', - '9'=>'0010111') - ); - $parities = array(); - $parities[2] = array( - '0'=>array('A','A'), - '1'=>array('A','B'), - '2'=>array('B','A'), - '3'=>array('B','B') - ); - $parities[5] = array( - '0'=>array('B','B','A','A','A'), - '1'=>array('B','A','B','A','A'), - '2'=>array('B','A','A','B','A'), - '3'=>array('B','A','A','A','B'), - '4'=>array('A','B','B','A','A'), - '5'=>array('A','A','B','B','A'), - '6'=>array('A','A','A','B','B'), - '7'=>array('A','B','A','B','A'), - '8'=>array('A','B','A','A','B'), - '9'=>array('A','A','B','A','B') - ); - $p = $parities[$len][$r]; - $seq = '1011'; // left guard bar - $seq .= $codes[$p[0]][$code{0}]; - for ($i = 1; $i < $len; ++$i) { - $seq .= '01'; // separator - $seq .= $codes[$p[$i]][$code{$i}]; - } - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - return $this->binseq_to_array($seq, $bararray); - } - - /** - * POSTNET and PLANET barcodes. - * Used by U.S. Postal Service for automated mail sorting - * @param $code (string) zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD. - * @param $planet (boolean) if true print the PLANET barcode, otherwise print POSTNET - * @return array barcode representation. - * @protected - */ - protected function barcode_postnet($code, $planet=false) { - // bar lenght - if ($planet) { - $barlen = Array( - 0 => Array(1,1,2,2,2), - 1 => Array(2,2,2,1,1), - 2 => Array(2,2,1,2,1), - 3 => Array(2,2,1,1,2), - 4 => Array(2,1,2,2,1), - 5 => Array(2,1,2,1,2), - 6 => Array(2,1,1,2,2), - 7 => Array(1,2,2,2,1), - 8 => Array(1,2,2,1,2), - 9 => Array(1,2,1,2,2) - ); - } else { - $barlen = Array( - 0 => Array(2,2,1,1,1), - 1 => Array(1,1,1,2,2), - 2 => Array(1,1,2,1,2), - 3 => Array(1,1,2,2,1), - 4 => Array(1,2,1,1,2), - 5 => Array(1,2,1,2,1), - 6 => Array(1,2,2,1,1), - 7 => Array(2,1,1,1,2), - 8 => Array(2,1,1,2,1), - 9 => Array(2,1,2,1,1) - ); - } - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 2, 'bcode' => array()); - $k = 0; - $code = str_replace('-', '', $code); - $code = str_replace(' ', '', $code); - $len = strlen($code); - // calculate checksum - $sum = 0; - for ($i = 0; $i < $len; ++$i) { - $sum += intval($code{$i}); - } - $chkd = ($sum % 10); - if($chkd > 0) { - $chkd = (10 - $chkd); - } - $code .= $chkd; - $len = strlen($code); - // start bar - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['maxw'] += 2; - for ($i = 0; $i < $len; ++$i) { - for ($j = 0; $j < 5; ++$j) { - $h = $barlen[$code{$i}][$j]; - $p = floor(1 / $h); - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); - $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['maxw'] += 2; - } - } - // end bar - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['maxw'] += 1; - return $bararray; - } - - /** - * RMS4CC - CBC - KIX - * RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index) - * RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service. - * @param $code (string) code to print - * @param $kix (boolean) if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code. - * @return array barcode representation. - * @protected - */ - protected function barcode_rms4cc($code, $kix=false) { - $notkix = !$kix; - // bar mode - // 1 = pos 1, length 2 - // 2 = pos 1, length 3 - // 3 = pos 2, length 1 - // 4 = pos 2, length 2 - $barmode = array( - '0' => array(3,3,2,2), - '1' => array(3,4,1,2), - '2' => array(3,4,2,1), - '3' => array(4,3,1,2), - '4' => array(4,3,2,1), - '5' => array(4,4,1,1), - '6' => array(3,1,4,2), - '7' => array(3,2,3,2), - '8' => array(3,2,4,1), - '9' => array(4,1,3,2), - 'A' => array(4,1,4,1), - 'B' => array(4,2,3,1), - 'C' => array(3,1,2,4), - 'D' => array(3,2,1,4), - 'E' => array(3,2,2,3), - 'F' => array(4,1,1,4), - 'G' => array(4,1,2,3), - 'H' => array(4,2,1,3), - 'I' => array(1,3,4,2), - 'J' => array(1,4,3,2), - 'K' => array(1,4,4,1), - 'L' => array(2,3,3,2), - 'M' => array(2,3,4,1), - 'N' => array(2,4,3,1), - 'O' => array(1,3,2,4), - 'P' => array(1,4,1,4), - 'Q' => array(1,4,2,3), - 'R' => array(2,3,1,4), - 'S' => array(2,3,2,3), - 'T' => array(2,4,1,3), - 'U' => array(1,1,4,4), - 'V' => array(1,2,3,4), - 'W' => array(1,2,4,3), - 'X' => array(2,1,3,4), - 'Y' => array(2,1,4,3), - 'Z' => array(2,2,3,3) - ); - $code = strtoupper($code); - $len = strlen($code); - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 3, 'bcode' => array()); - if ($notkix) { - // table for checksum calculation (row,col) - $checktable = array( - '0' => array(1,1), - '1' => array(1,2), - '2' => array(1,3), - '3' => array(1,4), - '4' => array(1,5), - '5' => array(1,0), - '6' => array(2,1), - '7' => array(2,2), - '8' => array(2,3), - '9' => array(2,4), - 'A' => array(2,5), - 'B' => array(2,0), - 'C' => array(3,1), - 'D' => array(3,2), - 'E' => array(3,3), - 'F' => array(3,4), - 'G' => array(3,5), - 'H' => array(3,0), - 'I' => array(4,1), - 'J' => array(4,2), - 'K' => array(4,3), - 'L' => array(4,4), - 'M' => array(4,5), - 'N' => array(4,0), - 'O' => array(5,1), - 'P' => array(5,2), - 'Q' => array(5,3), - 'R' => array(5,4), - 'S' => array(5,5), - 'T' => array(5,0), - 'U' => array(0,1), - 'V' => array(0,2), - 'W' => array(0,3), - 'X' => array(0,4), - 'Y' => array(0,5), - 'Z' => array(0,0) - ); - $row = 0; - $col = 0; - for ($i = 0; $i < $len; ++$i) { - $row += $checktable[$code{$i}][0]; - $col += $checktable[$code{$i}][1]; - } - $row %= 6; - $col %= 6; - $chk = array_keys($checktable, array($row,$col)); - $code .= $chk[0]; - ++$len; - } - $k = 0; - if ($notkix) { - // start bar - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['maxw'] += 2; - } - for ($i = 0; $i < $len; ++$i) { - for ($j = 0; $j < 4; ++$j) { - switch ($barmode[$code{$i}][$j]) { - case 1: { - $p = 0; - $h = 2; - break; - } - case 2: { - $p = 0; - $h = 3; - break; - } - case 3: { - $p = 1; - $h = 1; - break; - } - case 4: { - $p = 1; - $h = 2; - break; - } - } - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); - $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['maxw'] += 2; - } - } - if ($notkix) { - // stop bar - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 3, 'p' => 0); - $bararray['maxw'] += 1; - } - return $bararray; - } - - /** - * CODABAR barcodes. - * Older code often used in library systems, sometimes in blood banks - * @param $code (string) code to represent. - * @return array barcode representation. - * @protected - */ - protected function barcode_codabar($code) { - $chr = array( - '0' => '11111221', - '1' => '11112211', - '2' => '11121121', - '3' => '22111111', - '4' => '11211211', - '5' => '21111211', - '6' => '12111121', - '7' => '12112111', - '8' => '12211111', - '9' => '21121111', - '-' => '11122111', - '$' => '11221111', - ':' => '21112121', - '/' => '21211121', - '.' => '21212111', - '+' => '11222221', - 'A' => '11221211', - 'B' => '12121121', - 'C' => '11121221', - 'D' => '11122211' - ); - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - $k = 0; - $w = 0; - $seq = ''; - $code = 'A'.strtoupper($code).'A'; - $len = strlen($code); - for ($i = 0; $i < $len; ++$i) { - if (!isset($chr[$code{$i}])) { - return false; - } - $seq = $chr[$code{$i}]; - for ($j = 0; $j < 8; ++$j) { - if (($j % 2) == 0) { - $t = true; // bar - } else { - $t = false; // space - } - $w = $seq{$j}; - $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - ++$k; - } - } - return $bararray; - } - - /** - * CODE11 barcodes. - * Used primarily for labeling telecommunications equipment - * @param $code (string) code to represent. - * @return array barcode representation. - * @protected - */ - protected function barcode_code11($code) { - $chr = array( - '0' => '111121', - '1' => '211121', - '2' => '121121', - '3' => '221111', - '4' => '112121', - '5' => '212111', - '6' => '122111', - '7' => '111221', - '8' => '211211', - '9' => '211111', - '-' => '112111', - 'S' => '112211' - ); - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - $k = 0; - $w = 0; - $seq = ''; - $len = strlen($code); - // calculate check digit C - $p = 1; - $check = 0; - for ($i = ($len - 1); $i >= 0; --$i) { - $digit = $code{$i}; - if ($digit == '-') { - $dval = 10; - } else { - $dval = intval($digit); - } - $check += ($dval * $p); - ++$p; - if ($p > 10) { - $p = 1; - } - } - $check %= 11; - if ($check == 10) { - $check = '-'; - } - $code .= $check; - if ($len > 10) { - // calculate check digit K - $p = 1; - $check = 0; - for ($i = $len; $i >= 0; --$i) { - $digit = $code{$i}; - if ($digit == '-') { - $dval = 10; - } else { - $dval = intval($digit); - } - $check += ($dval * $p); - ++$p; - if ($p > 9) { - $p = 1; - } - } - $check %= 11; - $code .= $check; - ++$len; - } - $code = 'S'.$code.'S'; - $len += 3; - for ($i = 0; $i < $len; ++$i) { - if (!isset($chr[$code{$i}])) { - return false; - } - $seq = $chr[$code{$i}]; - for ($j = 0; $j < 6; ++$j) { - if (($j % 2) == 0) { - $t = true; // bar - } else { - $t = false; // space - } - $w = $seq{$j}; - $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0); - $bararray['maxw'] += $w; - ++$k; - } - } - return $bararray; - } - - /** - * Pharmacode - * Contains digits (0 to 9) - * @param $code (string) code to represent. - * @return array barcode representation. - * @protected - */ - protected function barcode_pharmacode($code) { - $seq = ''; - $code = intval($code); - while ($code > 0) { - if (($code % 2) == 0) { - $seq .= '11100'; - $code -= 2; - } else { - $seq .= '100'; - $code -= 1; - } - $code /= 2; - } - $seq = substr($seq, 0, -2); - $seq = strrev($seq); - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array()); - return $this->binseq_to_array($seq, $bararray); - } - - /** - * Pharmacode two-track - * Contains digits (0 to 9) - * @param $code (string) code to represent. - * @return array barcode representation. - * @protected - */ - protected function barcode_pharmacode2t($code) { - $seq = ''; - $code = intval($code); - do { - switch ($code % 3) { - case 0: { - $seq .= '3'; - $code = ($code - 3) / 3; - break; - } - case 1: { - $seq .= '1'; - $code = ($code - 1) / 3; - break; - } - case 2: { - $seq .= '2'; - $code = ($code - 2) / 3; - break; - } - } - } while($code != 0); - $seq = strrev($seq); - $k = 0; - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 2, 'bcode' => array()); - $len = strlen($seq); - for ($i = 0; $i < $len; ++$i) { - switch ($seq{$i}) { - case '1': { - $p = 1; - $h = 1; - break; - } - case '2': { - $p = 0; - $h = 1; - break; - } - case '3': { - $p = 0; - $h = 2; - break; - } - } - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); - $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['maxw'] += 2; - } - unset($bararray['bcode'][($k - 1)]); - --$bararray['maxw']; - return $bararray; - } - - - /** - * IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200 - * (requires PHP bcmath extension) - * Intelligent Mail barcode is a 65-bar code for use on mail in the United States. - * The fields are described as follows:
    • The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.
    • The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.
    • The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.
    • The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999, 000000000–999999999, and 00000000000–99999999999.
    - * @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode) - * @return array barcode representation. - * @protected - */ - protected function barcode_imb($code) { - $asc_chr = array(4,0,2,6,3,5,1,9,8,7,1,2,0,6,4,8,2,9,5,3,0,1,3,7,4,6,8,9,2,0,5,1,9,4,3,8,6,7,1,2,4,3,9,5,7,8,3,0,2,1,4,0,9,1,7,0,2,4,6,3,7,1,9,5,8); - $dsc_chr = array(7,1,9,5,8,0,2,4,6,3,5,8,9,7,3,0,6,1,7,4,6,8,9,2,5,1,7,5,4,3,8,7,6,0,2,5,4,9,3,0,1,6,8,2,0,4,5,9,6,7,5,2,6,3,8,5,1,9,8,7,4,0,2,6,3); - $asc_pos = array(3,0,8,11,1,12,8,11,10,6,4,12,2,7,9,6,7,9,2,8,4,0,12,7,10,9,0,7,10,5,7,9,6,8,2,12,1,4,2,0,1,5,4,6,12,1,0,9,4,7,5,10,2,6,9,11,2,12,6,7,5,11,0,3,2); - $dsc_pos = array(2,10,12,5,9,1,5,4,3,9,11,5,10,1,6,3,4,1,10,0,2,11,8,6,1,12,3,8,6,4,4,11,0,6,1,9,11,5,3,7,3,10,7,11,8,2,10,3,5,8,0,3,12,11,8,4,5,1,3,0,7,12,9,8,10); - $code_arr = explode('-', $code); - $tracking_number = $code_arr[0]; - if (isset($code_arr[1])) { - $routing_code = $code_arr[1]; - } else { - $routing_code = ''; - } - // Conversion of Routing Code - switch (strlen($routing_code)) { - case 0: { - $binary_code = 0; - break; - } - case 5: { - $binary_code = bcadd($routing_code, '1'); - break; - } - case 9: { - $binary_code = bcadd($routing_code, '100001'); - break; - } - case 11: { - $binary_code = bcadd($routing_code, '1000100001'); - break; - } - default: { - return false; - break; - } - } - $binary_code = bcmul($binary_code, 10); - $binary_code = bcadd($binary_code, $tracking_number{0}); - $binary_code = bcmul($binary_code, 5); - $binary_code = bcadd($binary_code, $tracking_number{1}); - $binary_code .= substr($tracking_number, 2, 18); - // convert to hexadecimal - $binary_code = $this->dec_to_hex($binary_code); - // pad to get 13 bytes - $binary_code = str_pad($binary_code, 26, '0', STR_PAD_LEFT); - // convert string to array of bytes - $binary_code_arr = chunk_split($binary_code, 2, "\r"); - $binary_code_arr = substr($binary_code_arr, 0, -1); - $binary_code_arr = explode("\r", $binary_code_arr); - // calculate frame check sequence - $fcs = $this->imb_crc11fcs($binary_code_arr); - // exclude first 2 bits from first byte - $first_byte = sprintf('%2s', dechex((hexdec($binary_code_arr[0]) << 2) >> 2)); - $binary_code_102bit = $first_byte.substr($binary_code, 2); - // convert binary data to codewords - $codewords = array(); - $data = $this->hex_to_dec($binary_code_102bit); - $codewords[0] = bcmod($data, 636) * 2; - $data = bcdiv($data, 636); - for ($i = 1; $i < 9; ++$i) { - $codewords[$i] = bcmod($data, 1365); - $data = bcdiv($data, 1365); - } - $codewords[9] = $data; - if (($fcs >> 10) == 1) { - $codewords[9] += 659; - } - // generate lookup tables - $table2of13 = $this->imb_tables(2, 78); - $table5of13 = $this->imb_tables(5, 1287); - // convert codewords to characters - $characters = array(); - $bitmask = 512; - foreach($codewords as $k => $val) { - if ($val <= 1286) { - $chrcode = $table5of13[$val]; - } else { - $chrcode = $table2of13[($val - 1287)]; - } - if (($fcs & $bitmask) > 0) { - // bitwise invert - $chrcode = ((~$chrcode) & 8191); - } - $characters[] = $chrcode; - $bitmask /= 2; - } - $characters = array_reverse($characters); - // build bars - $k = 0; - $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 3, 'bcode' => array()); - for ($i = 0; $i < 65; ++$i) { - $asc = (($characters[$asc_chr[$i]] & pow(2, $asc_pos[$i])) > 0); - $dsc = (($characters[$dsc_chr[$i]] & pow(2, $dsc_pos[$i])) > 0); - if ($asc AND $dsc) { - // full bar (F) - $p = 0; - $h = 3; - } elseif ($asc) { - // ascender (A) - $p = 0; - $h = 2; - } elseif ($dsc) { - // descender (D) - $p = 1; - $h = 2; - } else { - // tracker (T) - $p = 1; - $h = 1; - } - $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p); - $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0); - $bararray['maxw'] += 2; - } - unset($bararray['bcode'][($k - 1)]); - --$bararray['maxw']; - return $bararray; - } - - /** - * Convert large integer number to hexadecimal representation. - * (requires PHP bcmath extension) - * @param $number (string) number to convert specified as a string - * @return string hexadecimal representation - */ - public function dec_to_hex($number) { - $i = 0; - $hex = array(); - if($number == 0) { - return '00'; - } - while($number > 0) { - if($number == 0) { - array_push($hex, '0'); - } else { - array_push($hex, strtoupper(dechex(bcmod($number, '16')))); - $number = bcdiv($number, '16', 0); - } - } - $hex = array_reverse($hex); - return implode($hex); - } - - /** - * Convert large hexadecimal number to decimal representation (string). - * (requires PHP bcmath extension) - * @param $hex (string) hexadecimal number to convert specified as a string - * @return string hexadecimal representation - */ - public function hex_to_dec($hex) { - $dec = 0; - $bitval = 1; - $len = strlen($hex); - for($pos = ($len - 1); $pos >= 0; --$pos) { - $dec = bcadd($dec, bcmul(hexdec($hex{$pos}), $bitval)); - $bitval = bcmul($bitval, 16); - } - return $dec; - } - - /** - * Intelligent Mail Barcode calculation of Frame Check Sequence - * @param $code_arr (string) array of hexadecimal values (13 bytes holding 102 bits right justified). - * @return int 11 bit Frame Check Sequence as integer (decimal base) - * @protected - */ - protected function imb_crc11fcs($code_arr) { - $genpoly = 0x0F35; // generator polynomial - $fcs = 0x07FF; // Frame Check Sequence - // do most significant byte skipping the 2 most significant bits - $data = hexdec($code_arr[0]) << 5; - for ($bit = 2; $bit < 8; ++$bit) { - if (($fcs ^ $data) & 0x400) { - $fcs = ($fcs << 1) ^ $genpoly; - } else { - $fcs = ($fcs << 1); - } - $fcs &= 0x7FF; - $data <<= 1; - } - // do rest of bytes - for ($byte = 1; $byte < 13; ++$byte) { - $data = hexdec($code_arr[$byte]) << 3; - for ($bit = 0; $bit < 8; ++$bit) { - if (($fcs ^ $data) & 0x400) { - $fcs = ($fcs << 1) ^ $genpoly; - } else { - $fcs = ($fcs << 1); - } - $fcs &= 0x7FF; - $data <<= 1; - } - } - return $fcs; - } - - /** - * Reverse unsigned short value - * @param $num (int) value to reversr - * @return int reversed value - * @protected - */ - protected function imb_reverse_us($num) { - $rev = 0; - for ($i = 0; $i < 16; ++$i) { - $rev <<= 1; - $rev |= ($num & 1); - $num >>= 1; - } - return $rev; - } - - /** - * generate Nof13 tables used for Intelligent Mail Barcode - * @param $n (int) is the type of table: 2 for 2of13 table, 5 for 5of13table - * @param $size (int) size of table (78 for n=2 and 1287 for n=5) - * @return array requested table - * @protected - */ - protected function imb_tables($n, $size) { - $table = array(); - $lli = 0; // LUT lower index - $lui = $size - 1; // LUT upper index - for ($count = 0; $count < 8192; ++$count) { - $bit_count = 0; - for ($bit_index = 0; $bit_index < 13; ++$bit_index) { - $bit_count += intval(($count & (1 << $bit_index)) != 0); - } - // if we don't have the right number of bits on, go on to the next value - if ($bit_count == $n) { - $reverse = ($this->imb_reverse_us($count) >> 3); - // if the reverse is less than count, we have already visited this pair before - if ($reverse >= $count) { - // If count is symmetric, place it at the first free slot from the end of the list. - // Otherwise, place it at the first free slot from the beginning of the list AND place $reverse ath the next free slot from the beginning of the list - if ($reverse == $count) { - $table[$lui] = $count; - --$lui; - } else { - $table[$lli] = $count; - ++$lli; - $table[$lli] = $reverse; - ++$lli; - } - } - } - } - return $table; - } - -} // end of class -//============================================================+ -// END OF FILE -//============================================================+ diff --git a/phplib/tcpdf/cache/chapter_demo_1.txt b/phplib/tcpdf/cache/chapter_demo_1.txt deleted file mode 100644 index 4025de9..0000000 --- a/phplib/tcpdf/cache/chapter_demo_1.txt +++ /dev/null @@ -1,19 +0,0 @@ -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/phplib/tcpdf/cache/chapter_demo_2.txt b/phplib/tcpdf/cache/chapter_demo_2.txt deleted file mode 100644 index cd7bfe6..0000000 --- a/phplib/tcpdf/cache/chapter_demo_2.txt +++ /dev/null @@ -1,23 +0,0 @@ -

    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/phplib/tcpdf/cache/utf8test.txt b/phplib/tcpdf/cache/utf8test.txt deleted file mode 100644 index 291d4e7..0000000 --- a/phplib/tcpdf/cache/utf8test.txt +++ /dev/null @@ -1,128 +0,0 @@ -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/phplib/tcpdf/composer.json b/phplib/tcpdf/composer.json deleted file mode 100644 index 8233ecb..0000000 --- a/phplib/tcpdf/composer.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "tecnick.com/tcpdf", - "version": "5.9.207", - "homepage": "http://www.tcpdf.org/", - "type": "library", - "description": "TCPDF is a PHP class for generating PDF documents.", - "keywords": ["pdf","tcpdf","PDFD32000-2008","qrcode","datamatrix","pdf417","barcodes"], - "license": "LGPLv3", - "authors": [ - { - "name": "Nicola Asuni", - "email": "info@tecnick.com", - "homepage": "http://nicolaasuni.tecnick.com" - } - ], - "require": { - "php": ">=5.3.0" - }, - "autoload": { - "classmap": [ - "fonts", - "config/lang", - "config", - "2dbarcodes.php", - "barcodes.php", - "datamatrix.php", - "encodings_maps.php", - "htmlcolors.php", - "pdf417.php", - "qrcode.php", - "spotcolors.php", - "tcpdf.php", - "tcpdf_filters.php", - "tcpdf_parser.php", - "unicode_data.php" - ] - } -} diff --git a/phplib/tcpdf/config/lang/afr.php b/phplib/tcpdf/config/lang/afr.php deleted file mode 100644 index 76462f0..0000000 --- a/phplib/tcpdf/config/lang/afr.php +++ /dev/null @@ -1,47 +0,0 @@ -. -// -// 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 - */ - -// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored. - -if (!defined('K_TCPDF_EXTERNAL_CONFIG')) { - - // DOCUMENT_ROOT fix for IIS Webserver - if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) { - if(isset($_SERVER['SCRIPT_FILENAME'])) { - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); - } elseif(isset($_SERVER['PATH_TRANSLATED'])) { - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); - } else { - // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www') - $_SERVER['DOCUMENT_ROOT'] = '/'; - } - } - - // be sure that the end slash is present - $_SERVER['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/'); - - // Automatic calculation for the following K_PATH_MAIN constant - $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); - if (substr($k_path_main, -1) != '/') { - $k_path_main .= '/'; - } - - /** - * 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', $k_path_main); - - // Automatic calculation for the following K_PATH_URL constant - $k_path_url = $k_path_main; // default value for console mode - if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) { - if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') { - $k_path_url = 'https://'; - } else { - $k_path_url = 'http://'; - } - $k_path_url .= $_SERVER['HTTP_HOST']; - $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1))); - } - - /** - * URL path to tcpdf installation folder (http://localhost/tcpdf/). - * By default it is automatically calculated but you can also set it as a fixed string to improve performances. - */ - define ('K_PATH_URL', $k_path_url); - - /** - * path for PDF fonts - * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts - */ - define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); - - /** - * cache directory for temporary files (full path) - */ - define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); - - /** - * cache directory for temporary files (url path) - */ - define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); - - /** - *images directory - */ - define ('K_PATH_IMAGES', K_PATH_MAIN.'images/'); - - /** - * blank image - */ - define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_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"); - - /** - * image logo - */ - define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); - - /** - * header logo image width [mm] - */ - define ('PDF_HEADER_LOGO_WIDTH', 30); - - /** - * 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 adn 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/phplib/tcpdf/config/tcpdf_config_alt.php b/phplib/tcpdf/config/tcpdf_config_alt.php deleted file mode 100644 index d5460e5..0000000 --- a/phplib/tcpdf/config/tcpdf_config_alt.php +++ /dev/null @@ -1,252 +0,0 @@ -. -// -// See LICENSE.TXT file for more information. -//============================================================+ - -/** - * Alternative configuration file for TCPDF. - * @author Nicola Asuni - * @package com.tecnick.tcpdf - * @version 4.9.005 - * @since 2004-10-27 - */ - -// DOCUMENT_ROOT fix for IIS Webserver -if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) { - if(isset($_SERVER['SCRIPT_FILENAME'])) { - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); - } elseif(isset($_SERVER['PATH_TRANSLATED'])) { - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); - } else { - // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www') - $_SERVER['DOCUMENT_ROOT'] = '/'; - } -} - -// be sure that the end slash is present -$_SERVER['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/'); - -// Automatic calculation for the following K_PATH_MAIN constant -$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); -if (substr($k_path_main, -1) != '/') { - $k_path_main .= '/'; -} - -/** - * 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', $k_path_main); - -// Automatic calculation for the following K_PATH_URL constant -if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) { - if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') { - $k_path_url = 'https://'; - } else { - $k_path_url = 'http://'; - } - $k_path_url .= $_SERVER['HTTP_HOST']; - $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1))); -} - -/** - * URL path to tcpdf installation folder (http://localhost/tcpdf/). - * By default it is automatically calculated but you can also set it as a fixed string to improve performances.. - */ -define ('K_PATH_URL', $k_path_url); - -/** - * path for PDF fonts - * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts - */ -define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); - -/** - * cache directory for temporary files (full path) - */ -define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); - -/** - * cache directory for temporary files (url path) - */ -define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); - -/** - *images directory - */ -define ('K_PATH_IMAGES', K_PATH_MAIN.'images/'); - -/** - * blank image - */ -define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_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"); - -/** - * image logo - */ -define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); - -/** - * header logo image width [mm] - */ -define ('PDF_HEADER_LOGO_WIDTH', 30); - -/** - * 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 repect 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 adn 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/phplib/tcpdf/datamatrix.php b/phplib/tcpdf/datamatrix.php deleted file mode 100644 index fe140e6..0000000 --- a/phplib/tcpdf/datamatrix.php +++ /dev/null @@ -1,1149 +0,0 @@ -. -// -// See LICENSE.TXT file for more information. -// ------------------------------------------------------------------- -// -// DESCRIPTION : -// -// Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. -// DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code. -//============================================================+ - -/** -* @file -* Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. -* DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code. -* -* @package com.tecnick.tcpdf -* @author Nicola Asuni -* @version 1.0.004 -*/ - -// custom definitions -if (!defined('DATAMATRIXDEFS')) { - - /** - * Indicate that definitions for this class are set - */ - define('DATAMATRIXDEFS', true); - - // ----------------------------------------------------- - -} // end of custom definitions - -// #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# - - -/** -* ASCII encoding: ASCII character 0 to 127 (1 byte per CW) -*/ -define('ENC_ASCII', 0); - -/** -* C40 encoding: Upper-case alphanumeric (3/2 bytes per CW) -*/ -define('ENC_C40', 1); - -/** -* TEXT encoding: Lower-case alphanumeric (3/2 bytes per CW) -*/ -define('ENC_TXT', 2); - -/** -* X12 encoding: ANSI X12 (3/2 byte per CW) -*/ -define('ENC_X12', 3); - -/** -* EDIFACT encoding: ASCII character 32 to 94 (4/3 bytes per CW) -*/ -define('ENC_EDF', 4); - -/** -* BASE 256 encoding: ASCII character 0 to 255 (1 byte per CW) -*/ -define('ENC_BASE256', 5); - -/** -* ASCII extended encoding: ASCII character 128 to 255 (1/2 byte per CW) -*/ -define('ENC_ASCII_EXT', 6); - -/** -* ASCII number encoding: ASCII digits (2 bytes per CW) -*/ -define('ENC_ASCII_NUM', 7); - -/** -* @class Datamatrix -* Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. -* DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code. -* -* @package com.tecnick.tcpdf -* @author Nicola Asuni -* @version 1.0.004 -*/ -class Datamatrix { - - /** - * Barcode array to be returned which is readable by TCPDF. - * @protected - */ - protected $barcode_array = array(); - - /** - * Store last used encoding for data codewords. - * @protected - */ - protected $last_enc = ENC_ASCII; - - /** - * Table of Data Matrix ECC 200 Symbol Attributes:
      - *
    • total matrix rows (including finder pattern)
    • - *
    • total matrix cols (including finder pattern)
    • - *
    • total matrix rows (without finder pattern)
    • - *
    • total matrix cols (without finder pattern)
    • - *
    • region data rows (with finder pattern)
    • - *
    • region data col (with finder pattern)
    • - *
    • region data rows (without finder pattern)
    • - *
    • region data col (without finder pattern)
    • - *
    • horizontal regions
    • - *
    • vertical regions
    • - *
    • regions
    • - *
    • data codewords
    • - *
    • error codewords
    • - *
    • blocks
    • - *
    • data codewords per block
    • - *
    • error codewords per block
    • - *
    - * @protected - */ - protected $symbattr = array( - // square form --------------------------------------------------------------------------------------- - array(0x00a,0x00a,0x008,0x008,0x00a,0x00a,0x008,0x008,0x001,0x001,0x001,0x003,0x005,0x001,0x003,0x005), // 10x10 - array(0x00c,0x00c,0x00a,0x00a,0x00c,0x00c,0x00a,0x00a,0x001,0x001,0x001,0x005,0x007,0x001,0x005,0x007), // 12x12 - array(0x00e,0x00e,0x00c,0x00c,0x00e,0x00e,0x00c,0x00c,0x001,0x001,0x001,0x008,0x00a,0x001,0x008,0x00a), // 14x14 - array(0x010,0x010,0x00e,0x00e,0x010,0x010,0x00e,0x00e,0x001,0x001,0x001,0x00c,0x00c,0x001,0x00c,0x00c), // 16x16 - array(0x012,0x012,0x010,0x010,0x012,0x012,0x010,0x010,0x001,0x001,0x001,0x012,0x00e,0x001,0x012,0x00e), // 18x18 - array(0x014,0x014,0x012,0x012,0x014,0x014,0x012,0x012,0x001,0x001,0x001,0x016,0x012,0x001,0x016,0x012), // 20x20 - array(0x016,0x016,0x014,0x014,0x016,0x016,0x014,0x014,0x001,0x001,0x001,0x01e,0x014,0x001,0x01e,0x014), // 22x22 - array(0x018,0x018,0x016,0x016,0x018,0x018,0x016,0x016,0x001,0x001,0x001,0x024,0x018,0x001,0x024,0x018), // 24x24 - array(0x01a,0x01a,0x018,0x018,0x01a,0x01a,0x018,0x018,0x001,0x001,0x001,0x02c,0x01c,0x001,0x02c,0x01c), // 26x26 - array(0x020,0x020,0x01c,0x01c,0x010,0x010,0x00e,0x00e,0x002,0x002,0x004,0x03e,0x024,0x001,0x03e,0x024), // 32x32 - array(0x024,0x024,0x020,0x020,0x012,0x012,0x010,0x010,0x002,0x002,0x004,0x056,0x02a,0x001,0x056,0x02a), // 36x36 - array(0x028,0x028,0x024,0x024,0x014,0x014,0x012,0x012,0x002,0x002,0x004,0x072,0x030,0x001,0x072,0x030), // 40x40 - array(0x02c,0x02c,0x028,0x028,0x016,0x016,0x014,0x014,0x002,0x002,0x004,0x090,0x038,0x001,0x090,0x038), // 44x44 - array(0x030,0x030,0x02c,0x02c,0x018,0x018,0x016,0x016,0x002,0x002,0x004,0x0ae,0x044,0x001,0x0ae,0x044), // 48x48 - array(0x034,0x034,0x030,0x030,0x01a,0x01a,0x018,0x018,0x002,0x002,0x004,0x0cc,0x054,0x002,0x066,0x02a), // 52x52 - array(0x040,0x040,0x038,0x038,0x010,0x010,0x00e,0x00e,0x004,0x004,0x010,0x118,0x070,0x002,0x08c,0x038), // 64x64 - array(0x048,0x048,0x040,0x040,0x012,0x012,0x010,0x010,0x004,0x004,0x010,0x170,0x090,0x004,0x05c,0x024), // 72x72 - array(0x050,0x050,0x048,0x048,0x014,0x014,0x012,0x012,0x004,0x004,0x010,0x1c8,0x0c0,0x004,0x072,0x030), // 80x80 - array(0x058,0x058,0x050,0x050,0x016,0x016,0x014,0x014,0x004,0x004,0x010,0x240,0x0e0,0x004,0x090,0x038), // 88x88 - array(0x060,0x060,0x058,0x058,0x018,0x018,0x016,0x016,0x004,0x004,0x010,0x2b8,0x110,0x004,0x0ae,0x044), // 96x96 - array(0x068,0x068,0x060,0x060,0x01a,0x01a,0x018,0x018,0x004,0x004,0x010,0x330,0x150,0x006,0x088,0x038), // 104x104 - array(0x078,0x078,0x06c,0x06c,0x014,0x014,0x012,0x012,0x006,0x006,0x024,0x41a,0x198,0x006,0x0af,0x044), // 120x120 - array(0x084,0x084,0x078,0x078,0x016,0x016,0x014,0x014,0x006,0x006,0x024,0x518,0x1f0,0x008,0x0a3,0x03e), // 132x132 - array(0x090,0x090,0x084,0x084,0x018,0x018,0x016,0x016,0x006,0x006,0x024,0x616,0x26c,0x00a,0x09c,0x03e), // 144x144 - // rectangular form (currently unused) --------------------------------------------------------------------------- - array(0x008,0x012,0x006,0x010,0x008,0x012,0x006,0x010,0x001,0x001,0x001,0x005,0x007,0x001,0x005,0x007), // 8x18 - array(0x008,0x020,0x006,0x01c,0x008,0x010,0x006,0x00e,0x001,0x002,0x002,0x00a,0x00b,0x001,0x00a,0x00b), // 8x32 - array(0x00c,0x01a,0x00a,0x018,0x00c,0x01a,0x00a,0x018,0x001,0x001,0x001,0x010,0x00e,0x001,0x010,0x00e), // 12x26 - array(0x00c,0x024,0x00a,0x020,0x00c,0x012,0x00a,0x010,0x001,0x002,0x002,0x00c,0x012,0x001,0x00c,0x012), // 12x36 - array(0x010,0x024,0x00e,0x020,0x010,0x012,0x00e,0x010,0x001,0x002,0x002,0x020,0x018,0x001,0x020,0x018), // 16x36 - array(0x010,0x030,0x00e,0x02c,0x010,0x018,0x00e,0x016,0x001,0x002,0x002,0x031,0x01c,0x001,0x031,0x01c) // 16x48 - ); - - /** - * Map encodation modes whit character sets. - * @protected - */ - protected $chset_id = array(ENC_C40 => 'C40', ENC_TXT => 'TXT', ENC_X12 =>'X12'); - - /** - * Basic set of characters for each encodation mode. - * @protected - */ - protected $chset = array( - 'C40' => array( // Basic set for C40 ---------------------------------------------------------------------------- - 'S1'=>0x00,'S2'=>0x01,'S3'=>0x02,0x20=>0x03,0x30=>0x04,0x31=>0x05,0x32=>0x06,0x33=>0x07,0x34=>0x08,0x35=>0x09, // - 0x36=>0x0a,0x37=>0x0b,0x38=>0x0c,0x39=>0x0d,0x41=>0x0e,0x42=>0x0f,0x43=>0x10,0x44=>0x11,0x45=>0x12,0x46=>0x13, // - 0x47=>0x14,0x48=>0x15,0x49=>0x16,0x4a=>0x17,0x4b=>0x18,0x4c=>0x19,0x4d=>0x1a,0x4e=>0x1b,0x4f=>0x1c,0x50=>0x1d, // - 0x51=>0x1e,0x52=>0x1f,0x53=>0x20,0x54=>0x21,0x55=>0x22,0x56=>0x23,0x57=>0x24,0x58=>0x25,0x59=>0x26,0x5a=>0x27),// - 'TXT' => array( // Basic set for TEXT --------------------------------------------------------------------------- - 'S1'=>0x00,'S2'=>0x01,'S3'=>0x02,0x20=>0x03,0x30=>0x04,0x31=>0x05,0x32=>0x06,0x33=>0x07,0x34=>0x08,0x35=>0x09, // - 0x36=>0x0a,0x37=>0x0b,0x38=>0x0c,0x39=>0x0d,0x61=>0x0e,0x62=>0x0f,0x63=>0x10,0x64=>0x11,0x65=>0x12,0x66=>0x13, // - 0x67=>0x14,0x68=>0x15,0x69=>0x16,0x6a=>0x17,0x6b=>0x18,0x6c=>0x19,0x6d=>0x1a,0x6e=>0x1b,0x6f=>0x1c,0x70=>0x1d, // - 0x71=>0x1e,0x72=>0x1f,0x73=>0x20,0x74=>0x21,0x75=>0x22,0x76=>0x23,0x77=>0x24,0x78=>0x25,0x79=>0x26,0x7a=>0x27),// - 'SH1' => array( // Shift 1 set ---------------------------------------------------------------------------------- - 0x00=>0x00,0x01=>0x01,0x02=>0x02,0x03=>0x03,0x04=>0x04,0x05=>0x05,0x06=>0x06,0x07=>0x07,0x08=>0x08,0x09=>0x09, // - 0x0a=>0x0a,0x0b=>0x0b,0x0c=>0x0c,0x0d=>0x0d,0x0e=>0x0e,0x0f=>0x0f,0x10=>0x10,0x11=>0x11,0x12=>0x12,0x13=>0x13, // - 0x14=>0x14,0x15=>0x15,0x16=>0x16,0x17=>0x17,0x18=>0x18,0x19=>0x19,0x1a=>0x1a,0x1b=>0x1b,0x1c=>0x1c,0x1d=>0x1d, // - 0x1e=>0x1e,0x1f=>0x1f), // - 'SH2' => array( // Shift 2 set ---------------------------------------------------------------------------------- - 0x21=>0x00,0x22=>0x01,0x23=>0x02,0x24=>0x03,0x25=>0x04,0x26=>0x05,0x27=>0x06,0x28=>0x07,0x29=>0x08,0x2a=>0x09, // - 0x2b=>0x0a,0x2c=>0x0b,0x2d=>0x0c,0x2e=>0x0d,0x2f=>0x0e,0x3a=>0x0f,0x3b=>0x10,0x3c=>0x11,0x3d=>0x12,0x3e=>0x13, // - 0x3f=>0x14,0x40=>0x15,0x5b=>0x16,0x5c=>0x17,0x5d=>0x18,0x5e=>0x19,0x5f=>0x1a,'F1'=>0x1b,'US'=>0x1e), // - 'S3C' => array( // Shift 3 set for C40 -------------------------------------------------------------------------- - 0x60=>0x00,0x61=>0x01,0x62=>0x02,0x63=>0x03,0x64=>0x04,0x65=>0x05,0x66=>0x06,0x67=>0x07,0x68=>0x08,0x69=>0x09, // - 0x6a=>0x0a,0x6b=>0x0b,0x6c=>0x0c,0x6d=>0x0d,0x6e=>0x0e,0x6f=>0x0f,0x70=>0x10,0x71=>0x11,0x72=>0x12,0x73=>0x13, // - 0x74=>0x14,0x75=>0x15,0x76=>0x16,0x77=>0x17,0x78=>0x18,0x79=>0x19,0x7a=>0x1a,0x7b=>0x1b,0x7c=>0x1c,0x7d=>0x1d, // - 0x7e=>0x1e,0x7f=>0x1f), - 'S3T' => array( // Shift 3 set for TEXT ------------------------------------------------------------------------- - 0x60=>0x00,0x41=>0x01,0x42=>0x02,0x43=>0x03,0x44=>0x04,0x45=>0x05,0x46=>0x06,0x47=>0x07,0x48=>0x08,0x49=>0x09, // - 0x4a=>0x0a,0x4b=>0x0b,0x4c=>0x0c,0x4d=>0x0d,0x4e=>0x0e,0x4f=>0x0f,0x50=>0x10,0x51=>0x11,0x52=>0x12,0x53=>0x13, // - 0x54=>0x14,0x55=>0x15,0x56=>0x16,0x57=>0x17,0x58=>0x18,0x59=>0x19,0x5a=>0x1a,0x7b=>0x1b,0x7c=>0x1c,0x7d=>0x1d, // - 0x7e=>0x1e,0x7f=>0x1f), // - 'X12' => array( // Set for X12 ---------------------------------------------------------------------------------- - 0x0d=>0x00,0x2a=>0x01,0x3e=>0x02,0x20=>0x03,0x30=>0x04,0x31=>0x05,0x32=>0x06,0x33=>0x07,0x34=>0x08,0x35=>0x09, // - 0x36=>0x0a,0x37=>0x0b,0x38=>0x0c,0x39=>0x0d,0x41=>0x0e,0x42=>0x0f,0x43=>0x10,0x44=>0x11,0x45=>0x12,0x46=>0x13, // - 0x47=>0x14,0x48=>0x15,0x49=>0x16,0x4a=>0x17,0x4b=>0x18,0x4c=>0x19,0x4d=>0x1a,0x4e=>0x1b,0x4f=>0x1c,0x50=>0x1d, // - 0x51=>0x1e,0x52=>0x1f,0x53=>0x20,0x54=>0x21,0x55=>0x22,0x56=>0x23,0x57=>0x24,0x58=>0x25,0x59=>0x26,0x5a=>0x27) // - ); - -// ----------------------------------------------------------------------------- - - /** - * This is the class constructor. - * Creates a datamatrix object - * @param $code (string) Code to represent using Datamatrix. - * @public - */ - public function __construct($code) { - $barcode_array = array(); - if ((is_null($code)) OR ($code == '\0') OR ($code == '')) { - return false; - } - // get data codewords - $cw = $this->getHighLevelEncoding($code); - // number of data codewords - $nd = count($cw); - // check size - if ($nd > 1558) { - return false; - } - // get minimum required matrix size. - foreach ($this->symbattr as $params) { - if ($params[11] >= $nd) { - break; - } - } - if ($params[11] < $nd) { - // too much data - return false; - } elseif ($params[11] > $nd) { - // add padding - if ($this->last_enc == ENC_EDF) { - // switch to ASCII encoding - $cw[] = 124; - ++$nd; - } elseif (($this->last_enc != ENC_ASCII) AND ($this->last_enc != ENC_BASE256)) { - // switch to ASCII encoding - $cw[] = 254; - ++$nd; - } - if ($params[11] > $nd) { - // add first pad - $cw[] = 129; - ++$nd; - // add remaining pads - for ($i = $nd; $i < $params[11]; ++$i) { - $cw[] = $this->get253StateCodeword(129, $i); - } - } - } - // add error correction codewords - $cw = $this->getErrorCorrection($cw, $params[13], $params[14], $params[15]); - // initialize empty arrays - $grid = array_fill(0, ($params[2] * $params[3]), 0); - // get placement map - $places = $this->getPlacementMap($params[2], $params[3]); - // fill the grid with data - $grid = array(); - $i = 0; - // region data row max index - $rdri = ($params[4] - 1); - // region data column max index - $rdci = ($params[5] - 1); - // for each vertical region - for ($vr = 0; $vr < $params[9]; ++$vr) { - // for each row on region - for ($r = 0; $r < $params[4]; ++$r) { - // get row - $row = (($vr * $params[4]) + $r); - // for each horizontal region - for ($hr = 0; $hr < $params[8]; ++$hr) { - // for each column on region - for ($c = 0; $c < $params[5]; ++$c) { - // get column - $col = (($hr * $params[5]) + $c); - // braw bits by case - if ($r == 0) { - // top finder pattern - if ($c % 2) { - $grid[$row][$col] = 0; - } else { - $grid[$row][$col] = 1; - } - } elseif ($r == $rdri) { - // bottom finder pattern - $grid[$row][$col] = 1; - } elseif ($c == 0) { - // left finder pattern - $grid[$row][$col] = 1; - } elseif ($c == $rdci) { - // right finder pattern - if ($r % 2) { - $grid[$row][$col] = 1; - } else { - $grid[$row][$col] = 0; - } - } else { // data bit - if ($places[$i] < 2) { - $grid[$row][$col] = $places[$i]; - } else { - // codeword ID - $cw_id = (floor($places[$i] / 10) - 1); - // codeword BIT mask - $cw_bit = pow(2, (8 - ($places[$i] % 10))); - $grid[$row][$col] = (($cw[$cw_id] & $cw_bit) == 0) ? 0 : 1; - } - ++$i; - } - } - } - } - } - $this->barcode_array['num_rows'] = $params[0]; - $this->barcode_array['num_cols'] = $params[1]; - $this->barcode_array['bcode'] = $grid; - } - - /** - * Returns a barcode array which is readable by TCPDF - * @return array barcode array readable by TCPDF; - * @public - */ - public function getBarcodeArray() { - return $this->barcode_array; - } - - /** - * Product of two numbers in a Power-of-Two Galois Field - * @param $a (int) first number to multiply. - * @param $b (int) second number to multiply. - * @param $log (array) Log table. - * @param $alog (array) Anti-Log table. - * @param $gf (array) Number of Factors of the Reed-Solomon polynomial. - * @return int product - * @protected - */ - protected function getGFProduct($a, $b, $log, $alog, $gf) { - if (($a == 0) OR ($b == 0)) { - return 0; - } - return ($alog[($log[$a] + $log[$b]) % ($gf - 1)]); - } - - /** - * Add error correction codewords to data codewords array (ANNEX E). - * @param $wd (array) Array of datacodewords. - * @param $nb (int) Number of blocks. - * @param $nd (int) Number of data codewords per block. - * @param $nc (int) Number of correction codewords per block. - * @param $gf (int) numner of fields on log/antilog table (power of 2). - * @param $pp (int) The value of its prime modulus polynomial (301 for ECC200). - * @return array data codewords + error codewords - * @protected - */ - protected function getErrorCorrection($wd, $nb, $nd, $nc, $gf=256, $pp=301) { - // generate the log ($log) and antilog ($alog) tables - $log[0] = 0; - $alog[0] = 1; - for ($i = 1; $i < $gf; ++$i) { - $alog[$i] = ($alog[($i - 1)] * 2); - if ($alog[$i] >= $gf) { - $alog[$i] ^= $pp; - } - $log[$alog[$i]] = $i; - } - ksort($log); - // generate the polynomial coefficients (c) - $c = array_fill(0, ($nc + 1), 0); - $c[0] = 1; - for ($i = 1; $i <= $nc; ++$i) { - $c[$i] = $c[($i-1)]; - for ($j = ($i - 1); $j >= 1; --$j) { - $c[$j] = $c[($j - 1)] ^ $this->getGFProduct($c[$j], $alog[$i], $log, $alog, $gf); - } - $c[0] = $this->getGFProduct($c[0], $alog[$i], $log, $alog, $gf); - } - ksort($c); - // total number of data codewords - $num_wd = ($nb * $nd); - // total number of error codewords - $num_we = ($nb * $nc); - // for each block - for ($b = 0; $b < $nb; ++$b) { - // create interleaved data block - $block = array(); - for ($n = $b; $n < $num_wd; $n += $nb) { - $block[] = $wd[$n]; - } - // initialize error codewords - $we = array_fill(0, ($nc + 1), 0); - // calculate error correction codewords for this block - for ($i = 0; $i < $nd; ++$i) { - $k = ($we[0] ^ $block[$i]); - for ($j = 0; $j < $nc; ++$j) { - $we[$j] = ($we[($j + 1)] ^ $this->getGFProduct($k, $c[($nc - $j - 1)], $log, $alog, $gf)); - } - } - // add error codewords at the end of data codewords - $j = 0; - for ($i = $b; $i < $num_we; $i += $nb) { - $wd[($num_wd + $i)] = $we[$j]; - ++$j; - } - } - // reorder codewords - ksort($wd); - return $wd; - } - - /** - * Return the 253-state codeword - * @param $cwpad (int) Pad codeword. - * @param $cwpos (int) Number of data codewords from the beginning of encoded data. - * @return pad codeword - * @protected - */ - protected function get253StateCodeword($cwpad, $cwpos) { - $pad = ($cwpad + (((149 * $cwpos) % 253) + 1)); - if ($pad > 254) { - $pad -= 254; - } - return $pad; - } - - /** - * Return the 255-state codeword - * @param $cwpad (int) Pad codeword. - * @param $cwpos (int) Number of data codewords from the beginning of encoded data. - * @return pad codeword - * @protected - */ - protected function get255StateCodeword($cwpad, $cwpos) { - $pad = ($cwpad + (((149 * $cwpos) % 255) + 1)); - if ($pad > 255) { - $pad -= 256; - } - return $pad; - } - - /** - * Returns true if the char belongs to the selected mode - * @param $chr (int) Character (byte) to check. - * @param $mode (int) Current encoding mode. - * @return boolean true if the char is of the selected mode. - * @protected - */ - protected function isCharMode($chr, $mode) { - $status = false; - switch ($mode) { - case ENC_ASCII: { // ASCII character 0 to 127 - $status = (($chr >= 0) AND ($chr <= 127)); - break; - } - case ENC_C40: { // Upper-case alphanumeric - $status = (($chr == 32) OR (($chr >= 48) AND ($chr <= 57)) OR (($chr >= 65) AND ($chr <= 90))); - break; - } - case ENC_TXT: { // Lower-case alphanumeric - $status = (($chr == 32) OR (($chr >= 48) AND ($chr <= 57)) OR (($chr >= 97) AND ($chr <= 122))); - break; - } - case ENC_X12: { // ANSI X12 - $status = (($chr == 13) OR ($chr == 42) OR ($chr == 62)); - break; - } - case ENC_EDF: { // ASCII character 32 to 94 - $status = (($chr >= 32) AND ($chr <= 94)); - break; - } - case ENC_BASE256: { // Function character (FNC1, Structured Append, Reader Program, or Code Page) - $status = (($chr == 232) OR ($chr == 233) OR ($chr == 234) OR ($chr == 241)); - break; - } - case ENC_ASCII_EXT: { // ASCII character 128 to 255 - $status = (($chr >= 128) AND ($chr <= 255)); - break; - } - case ENC_ASCII_NUM: { // ASCII digits - $status = (($chr >= 48) AND ($chr <= 57)); - break; - } - } - return $status; - } - - /** - * The look-ahead test scans the data to be encoded to find the best mode (Annex P - steps from J to S). - * @param $data (string) data to encode - * @param $pos (int) current position - * @param $mode (int) current encoding mode - * @return int encoding mode - * @protected - */ - protected function lookAheadTest($data, $pos, $mode) { - $data_length = strlen($data); - if ($pos >= $data_length) { - return $mode; - } - $charscount = 0; // count processed chars - // STEP J - if ($mode == ENC_ASCII) { - $numch = array(0, 1, 1, 1, 1, 1.25); - } else { - $numch = array(1, 2, 2, 2, 2, 2.25); - $numch[$mode] = 0; - } - while (true) { - // STEP K - if (($pos + $charscount) == $data_length) { - if ($numch[ENC_ASCII] <= ceil(min($numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256]))) { - return ENC_ASCII; - } - if ($numch[ENC_BASE256] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF]))) { - return ENC_BASE256; - } - if ($numch[ENC_EDF] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_BASE256]))) { - return ENC_EDF; - } - if ($numch[ENC_TXT] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256]))) { - return ENC_TXT; - } - if ($numch[ENC_X12] < ceil(min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_EDF], $numch[ENC_BASE256]))) { - return ENC_X12; - } - return ENC_C40; - } - // get char - $chr = ord($data[$pos + $charscount]); - $charscount++; - // STEP L - if ($this->isCharMode($chr, ENC_ASCII_NUM)) { - $numch[ENC_ASCII] += (1 / 2); - } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { - $numch[ENC_ASCII] = ceil($numch[ENC_ASCII]); - $numch[ENC_ASCII] += 2; - } else { - $numch[ENC_ASCII] = ceil($numch[ENC_ASCII]); - $numch[ENC_ASCII] += 1; - } - // STEP M - if ($this->isCharMode($chr, ENC_C40)) { - $numch[ENC_C40] += (2 / 3); - } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { - $numch[ENC_C40] += (8 / 3); - } else { - $numch[ENC_C40] += (4 / 3); - } - // STEP N - if ($this->isCharMode($chr, ENC_TXT)) { - $numch[ENC_TXT] += (2 / 3); - } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { - $numch[ENC_TXT] += (8 / 3); - } else { - $numch[ENC_TXT] += (4 / 3); - } - // STEP O - if ($this->isCharMode($chr, ENC_X12) OR $this->isCharMode($chr, ENC_C40)) { - $numch[ENC_X12] += (2 / 3); - } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { - $numch[ENC_X12] += (13 / 3); - } else { - $numch[ENC_X12] += (10 / 3); - } - // STEP P - if ($this->isCharMode($chr, ENC_EDF)) { - $numch[ENC_EDF] += (3 / 4); - } elseif ($this->isCharMode($chr, ENC_ASCII_EXT)) { - $numch[ENC_EDF] += (17 / 4); - } else { - $numch[ENC_EDF] += (13 / 4); - } - // STEP Q - if ($this->isCharMode($chr, ENC_BASE256)) { - $numch[ENC_BASE256] += 4; - } else { - $numch[ENC_BASE256] += 1; - } - // STEP R - if ($charscount >= 4) { - if (($numch[ENC_ASCII] + 1) <= min($numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256])) { - return ENC_ASCII; - } - if ((($numch[ENC_BASE256] + 1) <= $numch[ENC_ASCII]) - OR (($numch[ENC_BASE256] + 1) < min($numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_EDF]))) { - return ENC_BASE256; - } - if (($numch[ENC_EDF] + 1) < min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_X12], $numch[ENC_BASE256])) { - return ENC_EDF; - } - if (($numch[ENC_TXT] + 1) < min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_X12], $numch[ENC_EDF], $numch[ENC_BASE256])) { - return ENC_TXT; - } - if (($numch[ENC_X12] + 1) < min($numch[ENC_ASCII], $numch[ENC_C40], $numch[ENC_TXT], $numch[ENC_EDF], $numch[ENC_BASE256])) { - return ENC_X12; - } - if (($numch[ENC_C40] + 1) < min($numch[ENC_ASCII], $numch[ENC_TXT], $numch[ENC_EDF], $numch[ENC_BASE256])) { - if ($numch[ENC_C40] < $numch[ENC_X12]) { - return ENC_C40; - } - if ($numch[ENC_C40] == $numch[ENC_X12]) { - $k = ($pos + $charscount + 1); - while ($k < $data_length) { - $tmpchr = ord($data{$k}); - if ($this->isCharMode($tmpchr, ENC_X12)) { - return ENC_X12; - } elseif (!($this->isCharMode($tmpchr, ENC_X12) OR $this->isCharMode($tmpchr, ENC_C40))) { - break; - } - ++$k; - } - return ENC_C40; - } - } - } - } // end of while - } - - /** - * Get the switching codeword to a new encoding mode (latch codeword) - * @param $mode (int) New encoding mode. - * @return (int) Switch codeword. - * @protected - */ - protected function getSwitchEncodingCodeword($mode) { - switch ($mode) { - case ENC_ASCII: { // ASCII character 0 to 127 - $cw = 254; - break; - } - case ENC_C40: { // Upper-case alphanumeric - $cw = 230; - break; - } - case ENC_TXT: { // Lower-case alphanumeric - $cw = 239; - break; - } - case ENC_X12: { // ANSI X12 - $cw = 238; - break; - } - case ENC_EDF: { // ASCII character 32 to 94 - $cw = 240; - break; - } - case ENC_BASE256: { // Function character (FNC1, Structured Append, Reader Program, or Code Page) - $cw = 231; - break; - } - } - return $cw; - } - - /** - * Choose the minimum matrix size and return the max number of data codewords. - * @param $numcw (int) Number of current codewords. - * @return number of data codewords in matrix - * @protected - */ - protected function getMaxDataCodewords($numcw) { - foreach ($this->symbattr as $key => $matrix) { - if ($matrix[11] >= $numcw) { - return $matrix[11]; - } - } - return 0; - } - - /** - * Get high level encoding using the minimum symbol data characters for ECC 200 - * @param $data (string) data to encode - * @return array of codewords - * @protected - */ - protected function getHighLevelEncoding($data) { - // STEP A. Start in ASCII encodation. - $enc = ENC_ASCII; // current encoding mode - $pos = 0; // current position - $cw = array(); // array of codewords to be returned - $cw_num = 0; // number of data codewords - $data_lenght = strlen($data); // number of chars - while ($pos < $data_lenght) { - switch ($enc) { - case ENC_ASCII: { // STEP B. While in ASCII encodation - if (($data_lenght > 1) AND ($pos < ($data_lenght - 1)) AND ($this->isCharMode(ord($data[$pos]), ENC_ASCII_NUM) AND $this->isCharMode(ord($data[$pos + 1]), ENC_ASCII_NUM))) { - // 1. If the next data sequence is at least 2 consecutive digits, encode the next two digits as a double digit in ASCII mode. - $cw[] = (intval(substr($data, $pos, 2)) + 130); - ++$cw_num; - $pos += 2; - } else { - // 2. If the look-ahead test (starting at step J) indicates another mode, switch to that mode. - $newenc = $this->lookAheadTest($data, $pos, $enc); - if ($newenc != $enc) { - // switch to new encoding - $enc = $newenc; - $cw[] = $this->getSwitchEncodingCodeword($enc); - ++$cw_num; - } else { - // get new byte - $chr = ord($data[$pos]); - ++$pos; - if ($this->isCharMode($chr, ENC_ASCII_EXT)) { - // 3. If the next data character is extended ASCII (greater than 127) encode it in ASCII mode first using the Upper Shift (value 235) character. - $cw[] = 235; - $cw[] = ($chr - 127); - $cw_num += 2; - } else { - // 4. Otherwise process the next data character in ASCII encodation. - $cw[] = ($chr + 1); - ++$cw_num; - } - } - } - break; - } - case ENC_C40 : // Upper-case alphanumeric - case ENC_TXT : // Lower-case alphanumeric - case ENC_X12 : { // ANSI X12 - $temp_cw = array(); - $p = 0; - $epos = $pos; - // get charset ID - $set_id = $this->chset_id[$enc]; - // get basic charset for current encoding - $charset = $this->chset[$set_id]; - do { - // 2. process the next character in C40 encodation. - $chr = ord($data[$epos]); - ++$epos; - // check for extended character - if ($chr & 0x80) { - if ($enc == ENC_X12) { - return false; - } - $chr = ($chr & 0x7f); - $temp_cw[] = 1; // shift 2 - $temp_cw[] = 30; // upper shift - $p += 2; - } - if (isset($charset[$chr])) { - $temp_cw[] = $charset[$chr]; - ++$p; - } else { - if (isset($this->chset['SH1'][$chr])) { - $temp_cw[] = 0; // shift 1 - $shiftset = $this->chset['SH1']; - } elseif (isset($chr, $this->chset['SH2'][$chr])) { - $temp_cw[] = 1; // shift 2 - $shiftset = $this->chset['SH2']; - } elseif (($enc == ENC_C40) AND isset($this->chset['S3C'][$chr])) { - $temp_cw[] = 2; // shift 3 - $shiftset = $this->chset['S3C']; - } elseif (($enc == ENC_TXT) AND isset($this->chset['S3T'][$chr])) { - $temp_cw[] = 2; // shift 3 - $shiftset = $this->chset['S3T']; - } else { - return false; - } - $temp_cw[] = $shiftset[$chr]; - $p += 2; - } - if ($p >= 3) { - $c1 = array_shift($temp_cw); - $c2 = array_shift($temp_cw); - $c3 = array_shift($temp_cw); - $p -= 3; - $tmp = ((1600 * $c1) + (40 * $c2) + $c3 + 1); - $cw[] = ($tmp >> 8); - $cw[] = ($tmp % 256); - $cw_num += 2; - $pos = $epos; - // 1. If the C40 encoding is at the point of starting a new double symbol character and if the look-ahead test (starting at step J) indicates another mode, switch to that mode. - $newenc = $this->lookAheadTest($data, $pos, $enc); - if ($newenc != $enc) { - $enc = $newenc; - $cw[] = $this->getSwitchEncodingCodeword($enc); - ++$cw_num; - $pos -= $p; - $p = 0; - break; - } - } - } while (($p > 0) AND ($epos < $data_lenght)); - // process last data (if any) - if ($p > 0) { - // get remaining number of data symbols - $cwr = ($this->getMaxDataCodewords($cw_num + 2) - $cw_num); - if (($cwr == 1) AND ($p == 1)) { - // d. If one symbol character remains and one C40 value (data character) remains to be encoded - $c1 = array_shift($temp_cw); - --$p; - $cw[] = ($c1 + 1); - ++$cw_num; - } elseif (($cwr == 2) AND ($p == 1)) { - // c. If two symbol characters remain and only one C40 value (data character) remains to be encoded - $c1 = array_shift($temp_cw); - --$p; - $cw[] = 254; - $cw[] = ($c1 + 1); - $cw_num += 2; - } elseif (($cwr == 2) AND ($p == 2)) { - // b. If two symbol characters remain and two C40 values remain to be encoded - $c1 = array_shift($temp_cw); - $c2 = array_shift($temp_cw); - $p -= 2; - $tmp = ((1600 * $c1) + (40 * $c2) + 1); - $cw[] = ($tmp >> 8); - $cw[] = ($tmp % 256); - $cw_num += 2; - } else { - // switch to ASCII encoding - if ($enc != ENC_ASCII) { - $enc = ENC_ASCII; - $cw[] = $this->getSwitchEncodingCodeword($enc); - ++$cw_num; - } - } - } - break; - } - case ENC_EDF: { // F. While in EDIFACT (EDF) encodation - // initialize temporary array with 0 lenght - $temp_cw = array(); - $epos = $pos; - $field_lenght = 0; - $newenc = $enc; - do { - // 2. process the next character in EDIFACT encodation. - $chr = ord($data[$epos]); - if ($this->isCharMode($chr, ENC_EDF)) { - ++$epos; - $temp_cw[] = $chr; - ++$field_lenght; - } - if (($field_lenght == 4) OR ($epos == $data_lenght) OR !$this->isCharMode($chr, ENC_EDF)) { - if ($field_lenght < 4) { - // set unlatch character - $temp_cw[] = 0x1f; - ++$field_lenght; - // fill empty characters - for ($i = $field_lenght; $i < 4; ++$i) { - $temp_cw[] = 0; - } - $enc = ENC_ASCII; - } - // encodes four data characters in three codewords - $tcw = (($temp_cw[0] & 0x3F) << 2) + (($temp_cw[1] & 0x30) >> 4); - if ($tcw > 0) { - $cw[] = $tcw; - $cw_num++; - } - $tcw= (($temp_cw[1] & 0x0F) << 4) + (($temp_cw[2] & 0x3C) >> 2); - if ($tcw > 0) { - $cw[] = $tcw; - $cw_num++; - } - $tcw = (($temp_cw[2] & 0x03) << 6) + ($temp_cw[3] & 0x3F); - if ($tcw > 0) { - $cw[] = $tcw; - $cw_num++; - } - $temp_cw = array(); - $pos = $epos; - $field_lenght = 0; - if ($enc == ENC_ASCII) { - break; // exit from EDIFACT mode - } - } - } while ($epos < $data_lenght); - break; - } - case ENC_BASE256: { // G. While in Base 256 (B256) encodation - // initialize temporary array with 0 lenght - $temp_cw = array(); - $field_lenght = 0; - while (($pos < $data_lenght) AND ($field_lenght <= 1555)) { - $newenc = $this->lookAheadTest($data, $pos, $enc); - if ($newenc != $enc) { - // 1. If the look-ahead test (starting at step J) indicates another mode, switch to that mode. - $enc = $newenc; - $cw[] = $this->getSwitchEncodingCodeword($enc); - ++$cw_num; - break; // exit from B256 mode - } else { - // 2. Otherwise, process the next character in Base 256 encodation. - $chr = ord($data[$pos]); - ++$pos; - $temp_cw[] = $chr; - ++$field_lenght; - } - } - // set field lenght - if ($field_lenght <= 249) { - $cw[] = $field_lenght; - ++$cw_num; - } else { - $cw[] = (floor($field_lenght / 250) + 249); - $cw[] = ($field_lenght % 250); - $cw_num += 2; - } - if (!empty($temp_cw)) { - // add B256 field - foreach ($temp_cw as $p => $cht) { - $cw[] = $this->get255StateCodeword($chr, ($cw_num + $p)); - } - } - break; - } - } // end of switch enc - } // end of while - // set last used encoding - $this->last_enc = $enc; - return $cw; - } - - /** - * Places "chr+bit" with appropriate wrapping within array[]. - * (Annex F - ECC 200 symbol character placement) - * @param $marr (array) Array of symbols. - * @param $nrow (int) Number of rows. - * @param $ncol (int) Number of columns. - * @param $row (int) Row number. - * @param $col (int) Column number. - * @param $chr (int) Char byte. - * @param $bit (int) Bit. - * @return array - * @protected - */ - protected function placeModule($marr, $nrow, $ncol, $row, $col, $chr, $bit) { - if ($row < 0) { - $row += $nrow; - $col += (4 - (($nrow + 4) % 8)); - } - if ($col < 0) { - $col += $ncol; - $row += (4 - (($ncol + 4) % 8)); - } - $marr[(($row * $ncol) + $col)] = ((10 * $chr) + $bit); - return $marr; - } - - /** - * Places the 8 bits of a utah-shaped symbol character. - * (Annex F - ECC 200 symbol character placement) - * @param $marr (array) Array of symbols. - * @param $nrow (int) Number of rows. - * @param $ncol (int) Number of columns. - * @param $row (int) Row number. - * @param $col (int) Column number. - * @param $chr (int) Char byte. - * @return array - * @protected - */ - protected function placeUtah($marr, $nrow, $ncol, $row, $col, $chr) { - $marr = $this->placeModule($marr, $nrow, $ncol, $row-2, $col-2, $chr, 1); - $marr = $this->placeModule($marr, $nrow, $ncol, $row-2, $col-1, $chr, 2); - $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col-2, $chr, 3); - $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col-1, $chr, 4); - $marr = $this->placeModule($marr, $nrow, $ncol, $row-1, $col, $chr, 5); - $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col-2, $chr, 6); - $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col-1, $chr, 7); - $marr = $this->placeModule($marr, $nrow, $ncol, $row, $col, $chr, 8); - return $marr; - } - - /** - * Places the 8 bits of the first special corner case. - * (Annex F - ECC 200 symbol character placement) - * @param $marr (array) Array of symbols. - * @param $nrow (int) Number of rows. - * @param $ncol (int) Number of columns. - * @param $chr (int) Char byte. - * @return array - * @protected - */ - protected function placeCornerA($marr, $nrow, $ncol, $chr) { - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 1); - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 1, $chr, 2); - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 2, $chr, 3); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 4); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 5); - $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 6); - $marr = $this->placeModule($marr, $nrow, $ncol, 2, $ncol-1, $chr, 7); - $marr = $this->placeModule($marr, $nrow, $ncol, 3, $ncol-1, $chr, 8); - return $marr; - } - - /** - * Places the 8 bits of the second special corner case. - * (Annex F - ECC 200 symbol character placement) - * @param $marr (array) Array of symbols. - * @param $nrow (int) Number of rows. - * @param $ncol (int) Number of columns. - * @param $chr (int) Char byte. - * @return array - * @protected - */ - protected function placeCornerB($marr, $nrow, $ncol, $chr) { - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-3, 0, $chr, 1); - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-2, 0, $chr, 2); - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 3); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-4, $chr, 4); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-3, $chr, 5); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 6); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 7); - $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 8); - return $marr; - } - - /** - * Places the 8 bits of the third special corner case. - * (Annex F - ECC 200 symbol character placement) - * @param $marr (array) Array of symbols. - * @param $nrow (int) Number of rows. - * @param $ncol (int) Number of columns. - * @param $chr (int) Char byte. - * @return array - * @protected - */ - protected function placeCornerC($marr, $nrow, $ncol, $chr) { - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-3, 0, $chr, 1); - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-2, 0, $chr, 2); - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 3); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 4); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 5); - $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 6); - $marr = $this->placeModule($marr, $nrow, $ncol, 2, $ncol-1, $chr, 7); - $marr = $this->placeModule($marr, $nrow, $ncol, 3, $ncol-1, $chr, 8); - return $marr; - } - - /** - * Places the 8 bits of the fourth special corner case. - * (Annex F - ECC 200 symbol character placement) - * @param $marr (array) Array of symbols. - * @param $nrow (int) Number of rows. - * @param $ncol (int) Number of columns. - * @param $chr (int) Char byte. - * @return array - * @protected - */ - protected function placeCornerD($marr, $nrow, $ncol, $chr) { - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, 0, $chr, 1); - $marr = $this->placeModule($marr, $nrow, $ncol, $nrow-1, $ncol-1, $chr, 2); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-3, $chr, 3); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-2, $chr, 4); - $marr = $this->placeModule($marr, $nrow, $ncol, 0, $ncol-1, $chr, 5); - $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-3, $chr, 6); - $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-2, $chr, 7); - $marr = $this->placeModule($marr, $nrow, $ncol, 1, $ncol-1, $chr, 8); - return $marr; - } - - /** - * Build a placement map. - * (Annex F - ECC 200 symbol character placement) - * @param $nrow (int) Number of rows. - * @param $ncol (int) Number of columns. - * @return array - * @protected - */ - protected function getPlacementMap($nrow, $ncol) { - // initialize array with zeros - $marr = array_fill(0, ($nrow * $ncol), 0); - // set starting values - $chr = 1; - $row = 4; - $col = 0; - do { - // repeatedly first check for one of the special corner cases, then - if (($row == $nrow) AND ($col == 0)) { - $marr = $this->placeCornerA($marr, $nrow, $ncol, $chr); - ++$chr; - } - if (($row == ($nrow - 2)) AND ($col == 0) AND ($ncol % 4)) { - $marr = $this->placeCornerB($marr, $nrow, $ncol, $chr); - ++$chr; - } - if (($row == ($nrow - 2)) AND ($col == 0) AND (($ncol % 8) == 4)) { - $marr = $this->placeCornerC($marr, $nrow, $ncol, $chr); - ++$chr; - } - if (($row == ($nrow + 4)) AND ($col == 2) AND (!($ncol % 8))) { - $marr = $this->placeCornerD($marr, $nrow, $ncol, $chr); - ++$chr; - } - // sweep upward diagonally, inserting successive characters, - do { - if (($row < $nrow) AND ($col >= 0) AND (!$marr[(($row * $ncol) + $col)])) { - $marr = $this->placeUtah($marr, $nrow, $ncol, $row, $col, $chr); - ++$chr; - } - $row -= 2; - $col += 2; - } while (($row >= 0) AND ($col < $ncol)); - ++$row; - $col += 3; - // & then sweep downward diagonally, inserting successive characters,... - do { - if (($row >= 0) AND ($col < $ncol) AND (!$marr[(($row * $ncol) + $col)])) { - $marr = $this->placeUtah($marr, $nrow, $ncol, $row, $col, $chr); - ++$chr; - } - $row += 2; - $col -= 2; - } while (($row < $nrow) AND ($col >= 0)); - $row += 3; - ++$col; - // ... until the entire array is scanned - } while (($row < $nrow) OR ($col < $ncol)); - // lastly, if the lower righthand corner is untouched, fill in fixed pattern - if (!$marr[(($nrow * $ncol) - 1)]) { - $marr[(($nrow * $ncol) - 1)] = 1; - $marr[(($nrow * $ncol) - $ncol - 2)] = 1; - } - return $marr; - } - -} // end DataMatrix class -//============================================================+ -// END OF FILE -//============================================================+ diff --git a/phplib/tcpdf/doc/index.html b/phplib/tcpdf/doc/index.html deleted file mode 100644 index 095c1eb..0000000 --- a/phplib/tcpdf/doc/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - -TCPDF DOCUMENTATION - - - -TCPDF Documentation - - diff --git a/phplib/tcpdf/encodings_maps.php b/phplib/tcpdf/encodings_maps.php deleted file mode 100644 index 414f8b6..0000000 --- a/phplib/tcpdf/encodings_maps.php +++ /dev/null @@ -1,846 +0,0 @@ -. -// -// See LICENSE.TXT file for more information. -// ------------------------------------------------------------------- -// -// Description : Unicode data for TCPDF library. -// -//============================================================+ - -/** - * @file - * Font encodings maps class for TCPDF library. - * @author Nicola Asuni - * @package com.tecnick.tcpdf - * @since 5.9.123 (2011-10-01) - */ - -/** - * @class TCPDF_ENCODING_MAPS - * This is a PHP class containing Font encodings maps class for TCPDF library. - * @package com.tecnick.tcpdf - * @version 1.0.000 - * @author Nicola Asuni - info@tecnick.com - */ -class TCPDF_ENCODING_MAPS { - -/** - * Array of Encoding Maps. - * @public - */ -public $encmap = array( - -// encoding map for: cp1251 -'cp1251' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'afii10051',129=>'afii10052',130=>'quotesinglbase',131=>'afii10100',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'Euro',137=>'perthousand',138=>'afii10058',139=>'guilsinglleft',140=>'afii10059',141=>'afii10061',142=>'afii10060',143=>'afii10145', -144=>'afii10099',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'.notdef',153=>'trademark',154=>'afii10106',155=>'guilsinglright',156=>'afii10107',157=>'afii10109',158=>'afii10108',159=>'afii10193', -160=>'space',161=>'afii10062',162=>'afii10110',163=>'afii10057',164=>'currency',165=>'afii10050',166=>'brokenbar',167=>'section', -168=>'afii10023',169=>'copyright',170=>'afii10053',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'afii10056', -176=>'degree',177=>'plusminus',178=>'afii10055',179=>'afii10103',180=>'afii10098',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'afii10071',185=>'afii61352',186=>'afii10101',187=>'guillemotright',188=>'afii10105',189=>'afii10054',190=>'afii10102',191=>'afii10104', -192=>'afii10017',193=>'afii10018',194=>'afii10019',195=>'afii10020',196=>'afii10021',197=>'afii10022',198=>'afii10024',199=>'afii10025', -200=>'afii10026',201=>'afii10027',202=>'afii10028',203=>'afii10029',204=>'afii10030',205=>'afii10031',206=>'afii10032',207=>'afii10033', -208=>'afii10034',209=>'afii10035',210=>'afii10036',211=>'afii10037',212=>'afii10038',213=>'afii10039',214=>'afii10040',215=>'afii10041', -216=>'afii10042',217=>'afii10043',218=>'afii10044',219=>'afii10045',220=>'afii10046',221=>'afii10047',222=>'afii10048',223=>'afii10049', -224=>'afii10065',225=>'afii10066',226=>'afii10067',227=>'afii10068',228=>'afii10069',229=>'afii10070',230=>'afii10072',231=>'afii10073', -232=>'afii10074',233=>'afii10075',234=>'afii10076',235=>'afii10077',236=>'afii10078',237=>'afii10079',238=>'afii10080',239=>'afii10081', -240=>'afii10082',241=>'afii10083',242=>'afii10084',243=>'afii10085',244=>'afii10086',245=>'afii10087',246=>'afii10088',247=>'afii10089', -248=>'afii10090',249=>'afii10091',250=>'afii10092',251=>'afii10093',252=>'afii10094',253=>'afii10095',254=>'afii10096',255=>'afii10097'), - -// encoding map for: iso-8859-4 -'iso-8859-4' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'Aogonek',162=>'kgreenlandic',163=>'Rcommaaccent',164=>'currency',165=>'Itilde',166=>'Lcommaaccent',167=>'section', -168=>'dieresis',169=>'Scaron',170=>'Emacron',171=>'Gcommaaccent',172=>'Tbar',173=>'hyphen',174=>'Zcaron',175=>'macron', -176=>'degree',177=>'aogonek',178=>'ogonek',179=>'rcommaaccent',180=>'acute',181=>'itilde',182=>'lcommaaccent',183=>'caron', -184=>'cedilla',185=>'scaron',186=>'emacron',187=>'gcommaaccent',188=>'tbar',189=>'Eng',190=>'zcaron',191=>'eng', -192=>'Amacron',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Iogonek', -200=>'Ccaron',201=>'Eacute',202=>'Eogonek',203=>'Edieresis',204=>'Edotaccent',205=>'Iacute',206=>'Icircumflex',207=>'Imacron', -208=>'Dcroat',209=>'Ncommaaccent',210=>'Omacron',211=>'Kcommaaccent',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', -216=>'Oslash',217=>'Uogonek',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Utilde',222=>'Umacron',223=>'germandbls', -224=>'amacron',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'iogonek', -232=>'ccaron',233=>'eacute',234=>'eogonek',235=>'edieresis',236=>'edotaccent',237=>'iacute',238=>'icircumflex',239=>'imacron', -240=>'dcroat',241=>'ncommaaccent',242=>'omacron',243=>'kcommaaccent',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', -248=>'oslash',249=>'uogonek',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'utilde',254=>'umacron',255=>'dotaccent'), - -// encoding map for: cp1255 -'cp1255' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'circumflex',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'tilde',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'afii57636',165=>'yen',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'multiply',171=>'guillemotleft',172=>'logicalnot',173=>'sfthyphen',174=>'registered',175=>'macron', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'middot', -184=>'cedilla',185=>'onesuperior',186=>'divide',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', -192=>'afii57799',193=>'afii57801',194=>'afii57800',195=>'afii57802',196=>'afii57793',197=>'afii57794',198=>'afii57795',199=>'afii57798', -200=>'afii57797',201=>'afii57806',202=>'.notdef',203=>'afii57796',204=>'afii57807',205=>'afii57839',206=>'afii57645',207=>'afii57841', -208=>'afii57842',209=>'afii57804',210=>'afii57803',211=>'afii57658',212=>'afii57716',213=>'afii57717',214=>'afii57718',215=>'gereshhebrew', -216=>'gershayimhebrew',217=>'.notdef',218=>'.notdef',219=>'.notdef',220=>'.notdef',221=>'.notdef',222=>'.notdef',223=>'.notdef', -224=>'afii57664',225=>'afii57665',226=>'afii57666',227=>'afii57667',228=>'afii57668',229=>'afii57669',230=>'afii57670',231=>'afii57671', -232=>'afii57672',233=>'afii57673',234=>'afii57674',235=>'afii57675',236=>'afii57676',237=>'afii57677',238=>'afii57678',239=>'afii57679', -240=>'afii57680',241=>'afii57681',242=>'afii57682',243=>'afii57683',244=>'afii57684',245=>'afii57685',246=>'afii57686',247=>'afii57687', -248=>'afii57688',249=>'afii57689',250=>'afii57690',251=>'.notdef',252=>'.notdef',253=>'afii299',254=>'afii300',255=>'.notdef'), - -// encoding map for: iso-8859-11 -'iso-8859-11' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'kokaithai',162=>'khokhaithai',163=>'khokhuatthai',164=>'khokhwaithai',165=>'khokhonthai',166=>'khorakhangthai',167=>'ngonguthai', -168=>'chochanthai',169=>'chochingthai',170=>'chochangthai',171=>'sosothai',172=>'chochoethai',173=>'yoyingthai',174=>'dochadathai',175=>'topatakthai', -176=>'thothanthai',177=>'thonangmonthothai',178=>'thophuthaothai',179=>'nonenthai',180=>'dodekthai',181=>'totaothai',182=>'thothungthai',183=>'thothahanthai', -184=>'thothongthai',185=>'nonuthai',186=>'bobaimaithai',187=>'poplathai',188=>'phophungthai',189=>'fofathai',190=>'phophanthai',191=>'fofanthai', -192=>'phosamphaothai',193=>'momathai',194=>'yoyakthai',195=>'roruathai',196=>'ruthai',197=>'lolingthai',198=>'luthai',199=>'wowaenthai', -200=>'sosalathai',201=>'sorusithai',202=>'sosuathai',203=>'hohipthai',204=>'lochulathai',205=>'oangthai',206=>'honokhukthai',207=>'paiyannoithai', -208=>'saraathai',209=>'maihanakatthai',210=>'saraaathai',211=>'saraamthai',212=>'saraithai',213=>'saraiithai',214=>'sarauethai',215=>'saraueethai', -216=>'sarauthai',217=>'sarauuthai',218=>'phinthuthai',219=>'.notdef',220=>'.notdef',221=>'.notdef',222=>'.notdef',223=>'bahtthai', -224=>'saraethai',225=>'saraaethai',226=>'saraothai',227=>'saraaimaimuanthai',228=>'saraaimaimalaithai',229=>'lakkhangyaothai',230=>'maiyamokthai',231=>'maitaikhuthai', -232=>'maiekthai',233=>'maithothai',234=>'maitrithai',235=>'maichattawathai',236=>'thanthakhatthai',237=>'nikhahitthai',238=>'yamakkanthai',239=>'fongmanthai', -240=>'zerothai',241=>'onethai',242=>'twothai',243=>'threethai',244=>'fourthai',245=>'fivethai',246=>'sixthai',247=>'seventhai', -248=>'eightthai',249=>'ninethai',250=>'angkhankhuthai',251=>'khomutthai',252=>'.notdef',253=>'.notdef',254=>'.notdef',255=>'.notdef'), - -// encoding map for: cp1257 -'cp1257' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'.notdef',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'.notdef',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'.notdef',141=>'dieresis',142=>'caron',143=>'cedilla', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'.notdef',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'.notdef',157=>'macron',158=>'ogonek',159=>'.notdef', -160=>'space',161=>'.notdef',162=>'cent',163=>'sterling',164=>'currency',165=>'.notdef',166=>'brokenbar',167=>'section', -168=>'Oslash',169=>'copyright',170=>'Rcommaaccent',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'AE', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'oslash',185=>'onesuperior',186=>'rcommaaccent',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'ae', -192=>'Aogonek',193=>'Iogonek',194=>'Amacron',195=>'Cacute',196=>'Adieresis',197=>'Aring',198=>'Eogonek',199=>'Emacron', -200=>'Ccaron',201=>'Eacute',202=>'Zacute',203=>'Edotaccent',204=>'Gcommaaccent',205=>'Kcommaaccent',206=>'Imacron',207=>'Lcommaaccent', -208=>'Scaron',209=>'Nacute',210=>'Ncommaaccent',211=>'Oacute',212=>'Omacron',213=>'Otilde',214=>'Odieresis',215=>'multiply', -216=>'Uogonek',217=>'Lslash',218=>'Sacute',219=>'Umacron',220=>'Udieresis',221=>'Zdotaccent',222=>'Zcaron',223=>'germandbls', -224=>'aogonek',225=>'iogonek',226=>'amacron',227=>'cacute',228=>'adieresis',229=>'aring',230=>'eogonek',231=>'emacron', -232=>'ccaron',233=>'eacute',234=>'zacute',235=>'edotaccent',236=>'gcommaaccent',237=>'kcommaaccent',238=>'imacron',239=>'lcommaaccent', -240=>'scaron',241=>'nacute',242=>'ncommaaccent',243=>'oacute',244=>'omacron',245=>'otilde',246=>'odieresis',247=>'divide', -248=>'uogonek',249=>'lslash',250=>'sacute',251=>'umacron',252=>'udieresis',253=>'zdotaccent',254=>'zcaron',255=>'dotaccent'), - -// encoding map for: cp1258 -'cp1258' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'circumflex',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'OE',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'tilde',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'oe',157=>'.notdef',158=>'.notdef',159=>'Ydieresis', -160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', -192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', -200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'gravecomb',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', -208=>'Dcroat',209=>'Ntilde',210=>'hookabovecomb',211=>'Oacute',212=>'Ocircumflex',213=>'Ohorn',214=>'Odieresis',215=>'multiply', -216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Uhorn',222=>'tildecomb',223=>'germandbls', -224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', -232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'acutecomb',237=>'iacute',238=>'icircumflex',239=>'idieresis', -240=>'dcroat',241=>'ntilde',242=>'dotbelowcomb',243=>'oacute',244=>'ocircumflex',245=>'ohorn',246=>'odieresis',247=>'divide', -248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'uhorn',254=>'dong',255=>'ydieresis'), - -// encoding map for: cp1253 -'cp1253' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'.notdef',137=>'perthousand',138=>'.notdef',139=>'guilsinglleft',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'.notdef',153=>'trademark',154=>'.notdef',155=>'guilsinglright',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'dieresistonos',162=>'Alphatonos',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'.notdef',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'afii00208', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'tonos',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'Epsilontonos',185=>'Etatonos',186=>'Iotatonos',187=>'guillemotright',188=>'Omicrontonos',189=>'onehalf',190=>'Upsilontonos',191=>'Omegatonos', -192=>'iotadieresistonos',193=>'Alpha',194=>'Beta',195=>'Gamma',196=>'Delta',197=>'Epsilon',198=>'Zeta',199=>'Eta', -200=>'Theta',201=>'Iota',202=>'Kappa',203=>'Lambda',204=>'Mu',205=>'Nu',206=>'Xi',207=>'Omicron', -208=>'Pi',209=>'Rho',210=>'.notdef',211=>'Sigma',212=>'Tau',213=>'Upsilon',214=>'Phi',215=>'Chi', -216=>'Psi',217=>'Omega',218=>'Iotadieresis',219=>'Upsilondieresis',220=>'alphatonos',221=>'epsilontonos',222=>'etatonos',223=>'iotatonos', -224=>'upsilondieresistonos',225=>'alpha',226=>'beta',227=>'gamma',228=>'delta',229=>'epsilon',230=>'zeta',231=>'eta', -232=>'theta',233=>'iota',234=>'kappa',235=>'lambda',236=>'mu',237=>'nu',238=>'xi',239=>'omicron', -240=>'pi',241=>'rho',242=>'sigma1',243=>'sigma',244=>'tau',245=>'upsilon',246=>'phi',247=>'chi', -248=>'psi',249=>'omega',250=>'iotadieresis',251=>'upsilondieresis',252=>'omicrontonos',253=>'upsilontonos',254=>'omegatonos',255=>'.notdef'), - -// encoding map for: cp874 -'cp874' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'ellipsis',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'kokaithai',162=>'khokhaithai',163=>'khokhuatthai',164=>'khokhwaithai',165=>'khokhonthai',166=>'khorakhangthai',167=>'ngonguthai', -168=>'chochanthai',169=>'chochingthai',170=>'chochangthai',171=>'sosothai',172=>'chochoethai',173=>'yoyingthai',174=>'dochadathai',175=>'topatakthai', -176=>'thothanthai',177=>'thonangmonthothai',178=>'thophuthaothai',179=>'nonenthai',180=>'dodekthai',181=>'totaothai',182=>'thothungthai',183=>'thothahanthai', -184=>'thothongthai',185=>'nonuthai',186=>'bobaimaithai',187=>'poplathai',188=>'phophungthai',189=>'fofathai',190=>'phophanthai',191=>'fofanthai', -192=>'phosamphaothai',193=>'momathai',194=>'yoyakthai',195=>'roruathai',196=>'ruthai',197=>'lolingthai',198=>'luthai',199=>'wowaenthai', -200=>'sosalathai',201=>'sorusithai',202=>'sosuathai',203=>'hohipthai',204=>'lochulathai',205=>'oangthai',206=>'honokhukthai',207=>'paiyannoithai', -208=>'saraathai',209=>'maihanakatthai',210=>'saraaathai',211=>'saraamthai',212=>'saraithai',213=>'saraiithai',214=>'sarauethai',215=>'saraueethai', -216=>'sarauthai',217=>'sarauuthai',218=>'phinthuthai',219=>'.notdef',220=>'.notdef',221=>'.notdef',222=>'.notdef',223=>'bahtthai', -224=>'saraethai',225=>'saraaethai',226=>'saraothai',227=>'saraaimaimuanthai',228=>'saraaimaimalaithai',229=>'lakkhangyaothai',230=>'maiyamokthai',231=>'maitaikhuthai', -232=>'maiekthai',233=>'maithothai',234=>'maitrithai',235=>'maichattawathai',236=>'thanthakhatthai',237=>'nikhahitthai',238=>'yamakkanthai',239=>'fongmanthai', -240=>'zerothai',241=>'onethai',242=>'twothai',243=>'threethai',244=>'fourthai',245=>'fivethai',246=>'sixthai',247=>'seventhai', -248=>'eightthai',249=>'ninethai',250=>'angkhankhuthai',251=>'khomutthai',252=>'.notdef',253=>'.notdef',254=>'.notdef',255=>'.notdef'), - -// encoding map for: iso-8859-2 -'iso-8859-2' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'Aogonek',162=>'breve',163=>'Lslash',164=>'currency',165=>'Lcaron',166=>'Sacute',167=>'section', -168=>'dieresis',169=>'Scaron',170=>'Scedilla',171=>'Tcaron',172=>'Zacute',173=>'hyphen',174=>'Zcaron',175=>'Zdotaccent', -176=>'degree',177=>'aogonek',178=>'ogonek',179=>'lslash',180=>'acute',181=>'lcaron',182=>'sacute',183=>'caron', -184=>'cedilla',185=>'scaron',186=>'scedilla',187=>'tcaron',188=>'zacute',189=>'hungarumlaut',190=>'zcaron',191=>'zdotaccent', -192=>'Racute',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Lacute',198=>'Cacute',199=>'Ccedilla', -200=>'Ccaron',201=>'Eacute',202=>'Eogonek',203=>'Edieresis',204=>'Ecaron',205=>'Iacute',206=>'Icircumflex',207=>'Dcaron', -208=>'Dcroat',209=>'Nacute',210=>'Ncaron',211=>'Oacute',212=>'Ocircumflex',213=>'Ohungarumlaut',214=>'Odieresis',215=>'multiply', -216=>'Rcaron',217=>'Uring',218=>'Uacute',219=>'Uhungarumlaut',220=>'Udieresis',221=>'Yacute',222=>'Tcommaaccent',223=>'germandbls', -224=>'racute',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'lacute',230=>'cacute',231=>'ccedilla', -232=>'ccaron',233=>'eacute',234=>'eogonek',235=>'edieresis',236=>'ecaron',237=>'iacute',238=>'icircumflex',239=>'dcaron', -240=>'dcroat',241=>'nacute',242=>'ncaron',243=>'oacute',244=>'ocircumflex',245=>'ohungarumlaut',246=>'odieresis',247=>'divide', -248=>'rcaron',249=>'uring',250=>'uacute',251=>'uhungarumlaut',252=>'udieresis',253=>'yacute',254=>'tcommaaccent',255=>'dotaccent'), - -// encoding map for: cp1250 -'cp1250' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'.notdef',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'.notdef',137=>'perthousand',138=>'Scaron',139=>'guilsinglleft',140=>'Sacute',141=>'Tcaron',142=>'Zcaron',143=>'Zacute', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'.notdef',153=>'trademark',154=>'scaron',155=>'guilsinglright',156=>'sacute',157=>'tcaron',158=>'zcaron',159=>'zacute', -160=>'space',161=>'caron',162=>'breve',163=>'Lslash',164=>'currency',165=>'Aogonek',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'Scedilla',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'Zdotaccent', -176=>'degree',177=>'plusminus',178=>'ogonek',179=>'lslash',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'cedilla',185=>'aogonek',186=>'scedilla',187=>'guillemotright',188=>'Lcaron',189=>'hungarumlaut',190=>'lcaron',191=>'zdotaccent', -192=>'Racute',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Lacute',198=>'Cacute',199=>'Ccedilla', -200=>'Ccaron',201=>'Eacute',202=>'Eogonek',203=>'Edieresis',204=>'Ecaron',205=>'Iacute',206=>'Icircumflex',207=>'Dcaron', -208=>'Dcroat',209=>'Nacute',210=>'Ncaron',211=>'Oacute',212=>'Ocircumflex',213=>'Ohungarumlaut',214=>'Odieresis',215=>'multiply', -216=>'Rcaron',217=>'Uring',218=>'Uacute',219=>'Uhungarumlaut',220=>'Udieresis',221=>'Yacute',222=>'Tcommaaccent',223=>'germandbls', -224=>'racute',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'lacute',230=>'cacute',231=>'ccedilla', -232=>'ccaron',233=>'eacute',234=>'eogonek',235=>'edieresis',236=>'ecaron',237=>'iacute',238=>'icircumflex',239=>'dcaron', -240=>'dcroat',241=>'nacute',242=>'ncaron',243=>'oacute',244=>'ocircumflex',245=>'ohungarumlaut',246=>'odieresis',247=>'divide', -248=>'rcaron',249=>'uring',250=>'uacute',251=>'uhungarumlaut',252=>'udieresis',253=>'yacute',254=>'tcommaaccent',255=>'dotaccent'), - -// encoding map for: iso-8859-7 -'iso-8859-7' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'quoteleft',162=>'quoteright',163=>'sterling',164=>'.notdef',165=>'.notdef',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'.notdef',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'.notdef',175=>'afii00208', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'tonos',181=>'dieresistonos',182=>'Alphatonos',183=>'periodcentered', -184=>'Epsilontonos',185=>'Etatonos',186=>'Iotatonos',187=>'guillemotright',188=>'Omicrontonos',189=>'onehalf',190=>'Upsilontonos',191=>'Omegatonos', -192=>'iotadieresistonos',193=>'Alpha',194=>'Beta',195=>'Gamma',196=>'Delta',197=>'Epsilon',198=>'Zeta',199=>'Eta', -200=>'Theta',201=>'Iota',202=>'Kappa',203=>'Lambda',204=>'Mu',205=>'Nu',206=>'Xi',207=>'Omicron', -208=>'Pi',209=>'Rho',210=>'.notdef',211=>'Sigma',212=>'Tau',213=>'Upsilon',214=>'Phi',215=>'Chi', -216=>'Psi',217=>'Omega',218=>'Iotadieresis',219=>'Upsilondieresis',220=>'alphatonos',221=>'epsilontonos',222=>'etatonos',223=>'iotatonos', -224=>'upsilondieresistonos',225=>'alpha',226=>'beta',227=>'gamma',228=>'delta',229=>'epsilon',230=>'zeta',231=>'eta', -232=>'theta',233=>'iota',234=>'kappa',235=>'lambda',236=>'mu',237=>'nu',238=>'xi',239=>'omicron', -240=>'pi',241=>'rho',242=>'sigma1',243=>'sigma',244=>'tau',245=>'upsilon',246=>'phi',247=>'chi', -248=>'psi',249=>'omega',250=>'iotadieresis',251=>'upsilondieresis',252=>'omicrontonos',253=>'upsilontonos',254=>'omegatonos',255=>'.notdef'), - -// encoding map for: iso-8859-9 -'iso-8859-9' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', -192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', -200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', -208=>'Gbreve',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', -216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Idotaccent',222=>'Scedilla',223=>'germandbls', -224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', -232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', -240=>'gbreve',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', -248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'dotlessi',254=>'scedilla',255=>'ydieresis'), - -// encoding map for: cp1252 -'cp1252' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'circumflex',137=>'perthousand',138=>'Scaron',139=>'guilsinglleft',140=>'OE',141=>'.notdef',142=>'Zcaron',143=>'.notdef', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'tilde',153=>'trademark',154=>'scaron',155=>'guilsinglright',156=>'oe',157=>'.notdef',158=>'zcaron',159=>'Ydieresis', -160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', -192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', -200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', -208=>'Eth',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', -216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Yacute',222=>'Thorn',223=>'germandbls', -224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', -232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', -240=>'eth',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', -248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'yacute',254=>'thorn',255=>'ydieresis'), - -// encoding map for: cp1254 -'cp1254' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'Euro',129=>'.notdef',130=>'quotesinglbase',131=>'florin',132=>'quotedblbase',133=>'ellipsis',134=>'dagger',135=>'daggerdbl', -136=>'circumflex',137=>'perthousand',138=>'Scaron',139=>'guilsinglleft',140=>'OE',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'quoteleft',146=>'quoteright',147=>'quotedblleft',148=>'quotedblright',149=>'bullet',150=>'endash',151=>'emdash', -152=>'tilde',153=>'trademark',154=>'scaron',155=>'guilsinglright',156=>'oe',157=>'.notdef',158=>'.notdef',159=>'Ydieresis', -160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', -192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', -200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', -208=>'Gbreve',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', -216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Idotaccent',222=>'Scedilla',223=>'germandbls', -224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', -232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', -240=>'gbreve',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', -248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'dotlessi',254=>'scedilla',255=>'ydieresis'), - -// encoding map for: iso-8859-1 -'iso-8859-1' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'currency',165=>'yen',166=>'brokenbar',167=>'section', -168=>'dieresis',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'acute',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'cedilla',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'onequarter',189=>'onehalf',190=>'threequarters',191=>'questiondown', -192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', -200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', -208=>'Eth',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', -216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Yacute',222=>'Thorn',223=>'germandbls', -224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', -232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', -240=>'eth',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', -248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'yacute',254=>'thorn',255=>'ydieresis'), - -// encoding map for: iso-8859-15 -'iso-8859-15' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'exclamdown',162=>'cent',163=>'sterling',164=>'Euro',165=>'yen',166=>'Scaron',167=>'section', -168=>'scaron',169=>'copyright',170=>'ordfeminine',171=>'guillemotleft',172=>'logicalnot',173=>'hyphen',174=>'registered',175=>'macron', -176=>'degree',177=>'plusminus',178=>'twosuperior',179=>'threesuperior',180=>'Zcaron',181=>'mu',182=>'paragraph',183=>'periodcentered', -184=>'zcaron',185=>'onesuperior',186=>'ordmasculine',187=>'guillemotright',188=>'OE',189=>'oe',190=>'Ydieresis',191=>'questiondown', -192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Atilde',196=>'Adieresis',197=>'Aring',198=>'AE',199=>'Ccedilla', -200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', -208=>'Eth',209=>'Ntilde',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Otilde',214=>'Odieresis',215=>'multiply', -216=>'Oslash',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Yacute',222=>'Thorn',223=>'germandbls', -224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'atilde',228=>'adieresis',229=>'aring',230=>'ae',231=>'ccedilla', -232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', -240=>'eth',241=>'ntilde',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'otilde',246=>'odieresis',247=>'divide', -248=>'oslash',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'yacute',254=>'thorn',255=>'ydieresis'), - -// encoding map for: iso-8859-5 -'iso-8859-5' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'afii10023',162=>'afii10051',163=>'afii10052',164=>'afii10053',165=>'afii10054',166=>'afii10055',167=>'afii10056', -168=>'afii10057',169=>'afii10058',170=>'afii10059',171=>'afii10060',172=>'afii10061',173=>'hyphen',174=>'afii10062',175=>'afii10145', -176=>'afii10017',177=>'afii10018',178=>'afii10019',179=>'afii10020',180=>'afii10021',181=>'afii10022',182=>'afii10024',183=>'afii10025', -184=>'afii10026',185=>'afii10027',186=>'afii10028',187=>'afii10029',188=>'afii10030',189=>'afii10031',190=>'afii10032',191=>'afii10033', -192=>'afii10034',193=>'afii10035',194=>'afii10036',195=>'afii10037',196=>'afii10038',197=>'afii10039',198=>'afii10040',199=>'afii10041', -200=>'afii10042',201=>'afii10043',202=>'afii10044',203=>'afii10045',204=>'afii10046',205=>'afii10047',206=>'afii10048',207=>'afii10049', -208=>'afii10065',209=>'afii10066',210=>'afii10067',211=>'afii10068',212=>'afii10069',213=>'afii10070',214=>'afii10072',215=>'afii10073', -216=>'afii10074',217=>'afii10075',218=>'afii10076',219=>'afii10077',220=>'afii10078',221=>'afii10079',222=>'afii10080',223=>'afii10081', -224=>'afii10082',225=>'afii10083',226=>'afii10084',227=>'afii10085',228=>'afii10086',229=>'afii10087',230=>'afii10088',231=>'afii10089', -232=>'afii10090',233=>'afii10091',234=>'afii10092',235=>'afii10093',236=>'afii10094',237=>'afii10095',238=>'afii10096',239=>'afii10097', -240=>'afii61352',241=>'afii10071',242=>'afii10099',243=>'afii10100',244=>'afii10101',245=>'afii10102',246=>'afii10103',247=>'afii10104', -248=>'afii10105',249=>'afii10106',250=>'afii10107',251=>'afii10108',252=>'afii10109',253=>'section',254=>'afii10110',255=>'afii10193'), - -// encoding map for: iso-8859-5 -'iso-8859-5' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'afii10023',162=>'afii10051',163=>'afii10052',164=>'afii10053',165=>'afii10054',166=>'afii10055',167=>'afii10056', -168=>'afii10057',169=>'afii10058',170=>'afii10059',171=>'afii10060',172=>'afii10061',173=>'hyphen',174=>'afii10062',175=>'afii10145', -176=>'afii10017',177=>'afii10018',178=>'afii10019',179=>'afii10020',180=>'afii10021',181=>'afii10022',182=>'afii10024',183=>'afii10025', -184=>'afii10026',185=>'afii10027',186=>'afii10028',187=>'afii10029',188=>'afii10030',189=>'afii10031',190=>'afii10032',191=>'afii10033', -192=>'afii10034',193=>'afii10035',194=>'afii10036',195=>'afii10037',196=>'afii10038',197=>'afii10039',198=>'afii10040',199=>'afii10041', -200=>'afii10042',201=>'afii10043',202=>'afii10044',203=>'afii10045',204=>'afii10046',205=>'afii10047',206=>'afii10048',207=>'afii10049', -208=>'afii10065',209=>'afii10066',210=>'afii10067',211=>'afii10068',212=>'afii10069',213=>'afii10070',214=>'afii10072',215=>'afii10073', -216=>'afii10074',217=>'afii10075',218=>'afii10076',219=>'afii10077',220=>'afii10078',221=>'afii10079',222=>'afii10080',223=>'afii10081', -224=>'afii10082',225=>'afii10083',226=>'afii10084',227=>'afii10085',228=>'afii10086',229=>'afii10087',230=>'afii10088',231=>'afii10089', -232=>'afii10090',233=>'afii10091',234=>'afii10092',235=>'afii10093',236=>'afii10094',237=>'afii10095',238=>'afii10096',239=>'afii10097', -240=>'afii61352',241=>'afii10071',242=>'afii10099',243=>'afii10100',244=>'afii10101',245=>'afii10102',246=>'afii10103',247=>'afii10104', -248=>'afii10105',249=>'afii10106',250=>'afii10107',251=>'afii10108',252=>'afii10109',253=>'section',254=>'afii10110',255=>'afii10193'), - -// encoding map for: koi8-r -'koi8-r' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'SF100000',129=>'SF110000',130=>'SF010000',131=>'SF030000',132=>'SF020000',133=>'SF040000',134=>'SF080000',135=>'SF090000', -136=>'SF060000',137=>'SF070000',138=>'SF050000',139=>'upblock',140=>'dnblock',141=>'block',142=>'lfblock',143=>'rtblock', -144=>'ltshade',145=>'shade',146=>'dkshade',147=>'integraltp',148=>'filledbox',149=>'periodcentered',150=>'radical',151=>'approxequal', -152=>'lessequal',153=>'greaterequal',154=>'space',155=>'integralbt',156=>'degree',157=>'twosuperior',158=>'periodcentered',159=>'divide', -160=>'SF430000',161=>'SF240000',162=>'SF510000',163=>'afii10071',164=>'SF520000',165=>'SF390000',166=>'SF220000',167=>'SF210000', -168=>'SF250000',169=>'SF500000',170=>'SF490000',171=>'SF380000',172=>'SF280000',173=>'SF270000',174=>'SF260000',175=>'SF360000', -176=>'SF370000',177=>'SF420000',178=>'SF190000',179=>'afii10023',180=>'SF200000',181=>'SF230000',182=>'SF470000',183=>'SF480000', -184=>'SF410000',185=>'SF450000',186=>'SF460000',187=>'SF400000',188=>'SF540000',189=>'SF530000',190=>'SF440000',191=>'copyright', -192=>'afii10096',193=>'afii10065',194=>'afii10066',195=>'afii10088',196=>'afii10069',197=>'afii10070',198=>'afii10086',199=>'afii10068', -200=>'afii10087',201=>'afii10074',202=>'afii10075',203=>'afii10076',204=>'afii10077',205=>'afii10078',206=>'afii10079',207=>'afii10080', -208=>'afii10081',209=>'afii10097',210=>'afii10082',211=>'afii10083',212=>'afii10084',213=>'afii10085',214=>'afii10072',215=>'afii10067', -216=>'afii10094',217=>'afii10093',218=>'afii10073',219=>'afii10090',220=>'afii10095',221=>'afii10091',222=>'afii10089',223=>'afii10092', -224=>'afii10048',225=>'afii10017',226=>'afii10018',227=>'afii10040',228=>'afii10021',229=>'afii10022',230=>'afii10038',231=>'afii10020', -232=>'afii10039',233=>'afii10026',234=>'afii10027',235=>'afii10028',236=>'afii10029',237=>'afii10030',238=>'afii10031',239=>'afii10032', -240=>'afii10033',241=>'afii10049',242=>'afii10034',243=>'afii10035',244=>'afii10036',245=>'afii10037',246=>'afii10024',247=>'afii10019', -248=>'afii10046',249=>'afii10045',250=>'afii10025',251=>'afii10042',252=>'afii10047',253=>'afii10043',254=>'afii10041',255=>'afii10044'), - -// encoding map for: koi8-r -'koi8-r' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'SF100000',129=>'SF110000',130=>'SF010000',131=>'SF030000',132=>'SF020000',133=>'SF040000',134=>'SF080000',135=>'SF090000', -136=>'SF060000',137=>'SF070000',138=>'SF050000',139=>'upblock',140=>'dnblock',141=>'block',142=>'lfblock',143=>'rtblock', -144=>'ltshade',145=>'shade',146=>'dkshade',147=>'integraltp',148=>'filledbox',149=>'periodcentered',150=>'radical',151=>'approxequal', -152=>'lessequal',153=>'greaterequal',154=>'space',155=>'integralbt',156=>'degree',157=>'twosuperior',158=>'periodcentered',159=>'divide', -160=>'SF430000',161=>'SF240000',162=>'SF510000',163=>'afii10071',164=>'SF520000',165=>'SF390000',166=>'SF220000',167=>'SF210000', -168=>'SF250000',169=>'SF500000',170=>'SF490000',171=>'SF380000',172=>'SF280000',173=>'SF270000',174=>'SF260000',175=>'SF360000', -176=>'SF370000',177=>'SF420000',178=>'SF190000',179=>'afii10023',180=>'SF200000',181=>'SF230000',182=>'SF470000',183=>'SF480000', -184=>'SF410000',185=>'SF450000',186=>'SF460000',187=>'SF400000',188=>'SF540000',189=>'SF530000',190=>'SF440000',191=>'copyright', -192=>'afii10096',193=>'afii10065',194=>'afii10066',195=>'afii10088',196=>'afii10069',197=>'afii10070',198=>'afii10086',199=>'afii10068', -200=>'afii10087',201=>'afii10074',202=>'afii10075',203=>'afii10076',204=>'afii10077',205=>'afii10078',206=>'afii10079',207=>'afii10080', -208=>'afii10081',209=>'afii10097',210=>'afii10082',211=>'afii10083',212=>'afii10084',213=>'afii10085',214=>'afii10072',215=>'afii10067', -216=>'afii10094',217=>'afii10093',218=>'afii10073',219=>'afii10090',220=>'afii10095',221=>'afii10091',222=>'afii10089',223=>'afii10092', -224=>'afii10048',225=>'afii10017',226=>'afii10018',227=>'afii10040',228=>'afii10021',229=>'afii10022',230=>'afii10038',231=>'afii10020', -232=>'afii10039',233=>'afii10026',234=>'afii10027',235=>'afii10028',236=>'afii10029',237=>'afii10030',238=>'afii10031',239=>'afii10032', -240=>'afii10033',241=>'afii10049',242=>'afii10034',243=>'afii10035',244=>'afii10036',245=>'afii10037',246=>'afii10024',247=>'afii10019', -248=>'afii10046',249=>'afii10045',250=>'afii10025',251=>'afii10042',252=>'afii10047',253=>'afii10043',254=>'afii10041',255=>'afii10044'), - -// encoding map for: iso-8859-16 -'iso-8859-16' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'space',161=>'Aogonek',162=>'aogonek',163=>'Lslash',164=>'Euro',165=>'quotedblbase',166=>'Scaron',167=>'section', -168=>'scaron',169=>'copyright',170=>'Scommaaccent',171=>'guillemotleft',172=>'Zacute',173=>'hyphen',174=>'zacute',175=>'Zdotaccent', -176=>'degree',177=>'plusminus',178=>'Ccaron',179=>'lslash',180=>'Zcaron',181=>'quotedblright',182=>'paragraph',183=>'periodcentered', -184=>'zcaron',185=>'ccaron',186=>'scommaaccent',187=>'guillemotright',188=>'OE',189=>'oe',190=>'Ydieresis',191=>'zdotaccent', -192=>'Agrave',193=>'Aacute',194=>'Acircumflex',195=>'Abreve',196=>'Adieresis',197=>'Cacute',198=>'AE',199=>'Ccedilla', -200=>'Egrave',201=>'Eacute',202=>'Ecircumflex',203=>'Edieresis',204=>'Igrave',205=>'Iacute',206=>'Icircumflex',207=>'Idieresis', -208=>'Dcroat',209=>'Nacute',210=>'Ograve',211=>'Oacute',212=>'Ocircumflex',213=>'Ohungarumlaut',214=>'Odieresis',215=>'Sacute', -216=>'Uhungarumlaut',217=>'Ugrave',218=>'Uacute',219=>'Ucircumflex',220=>'Udieresis',221=>'Eogonek',222=>'Tcommaaccent',223=>'germandbls', -224=>'agrave',225=>'aacute',226=>'acircumflex',227=>'abreve',228=>'adieresis',229=>'cacute',230=>'ae',231=>'ccedilla', -232=>'egrave',233=>'eacute',234=>'ecircumflex',235=>'edieresis',236=>'igrave',237=>'iacute',238=>'icircumflex',239=>'idieresis', -240=>'dcroat',241=>'nacute',242=>'ograve',243=>'oacute',244=>'ocircumflex',245=>'ohungarumlaut',246=>'odieresis',247=>'sacute', -248=>'uhungarumlaut',249=>'ugrave',250=>'uacute',251=>'ucircumflex',252=>'udieresis',253=>'eogonek',254=>'tcommaaccent',255=>'ydieresis'), - -// encoding map for: koi8-u -'koi8-u' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'quotedbl',35=>'numbersign',36=>'dollar',37=>'percent',38=>'ampersand',39=>'quotesingle', -40=>'parenleft',41=>'parenright',42=>'asterisk',43=>'plus',44=>'comma',45=>'hyphen',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'at',65=>'A',66=>'B',67=>'C',68=>'D',69=>'E',70=>'F',71=>'G', -72=>'H',73=>'I',74=>'J',75=>'K',76=>'L',77=>'M',78=>'N',79=>'O', -80=>'P',81=>'Q',82=>'R',83=>'S',84=>'T',85=>'U',86=>'V',87=>'W', -88=>'X',89=>'Y',90=>'Z',91=>'bracketleft',92=>'backslash',93=>'bracketright',94=>'asciicircum',95=>'underscore', -96=>'grave',97=>'a',98=>'b',99=>'c',100=>'d',101=>'e',102=>'f',103=>'g', -104=>'h',105=>'i',106=>'j',107=>'k',108=>'l',109=>'m',110=>'n',111=>'o', -112=>'p',113=>'q',114=>'r',115=>'s',116=>'t',117=>'u',118=>'v',119=>'w', -120=>'x',121=>'y',122=>'z',123=>'braceleft',124=>'bar',125=>'braceright',126=>'asciitilde',127=>'.notdef', -128=>'SF100000',129=>'SF110000',130=>'SF010000',131=>'SF030000',132=>'SF020000',133=>'SF040000',134=>'SF080000',135=>'SF090000', -136=>'SF060000',137=>'SF070000',138=>'SF050000',139=>'upblock',140=>'dnblock',141=>'block',142=>'lfblock',143=>'rtblock', -144=>'ltshade',145=>'shade',146=>'dkshade',147=>'integraltp',148=>'filledbox',149=>'bullet',150=>'radical',151=>'approxequal', -152=>'lessequal',153=>'greaterequal',154=>'space',155=>'integralbt',156=>'degree',157=>'twosuperior',158=>'periodcentered',159=>'divide', -160=>'SF430000',161=>'SF240000',162=>'SF510000',163=>'afii10071',164=>'afii10101',165=>'SF390000',166=>'afii10103',167=>'afii10104', -168=>'SF250000',169=>'SF500000',170=>'SF490000',171=>'SF380000',172=>'SF280000',173=>'afii10098',174=>'SF260000',175=>'SF360000', -176=>'SF370000',177=>'SF420000',178=>'SF190000',179=>'afii10023',180=>'afii10053',181=>'SF230000',182=>'afii10055',183=>'afii10056', -184=>'SF410000',185=>'SF450000',186=>'SF460000',187=>'SF400000',188=>'SF540000',189=>'afii10050',190=>'SF440000',191=>'copyright', -192=>'afii10096',193=>'afii10065',194=>'afii10066',195=>'afii10088',196=>'afii10069',197=>'afii10070',198=>'afii10086',199=>'afii10068', -200=>'afii10087',201=>'afii10074',202=>'afii10075',203=>'afii10076',204=>'afii10077',205=>'afii10078',206=>'afii10079',207=>'afii10080', -208=>'afii10081',209=>'afii10097',210=>'afii10082',211=>'afii10083',212=>'afii10084',213=>'afii10085',214=>'afii10072',215=>'afii10067', -216=>'afii10094',217=>'afii10093',218=>'afii10073',219=>'afii10090',220=>'afii10095',221=>'afii10091',222=>'afii10089',223=>'afii10092', -224=>'afii10048',225=>'afii10017',226=>'afii10018',227=>'afii10040',228=>'afii10021',229=>'afii10022',230=>'afii10038',231=>'afii10020', -232=>'afii10039',233=>'afii10026',234=>'afii10027',235=>'afii10028',236=>'afii10029',237=>'afii10030',238=>'afii10031',239=>'afii10032', -240=>'afii10033',241=>'afii10049',242=>'afii10034',243=>'afii10035',244=>'afii10036',245=>'afii10037',246=>'afii10024',247=>'afii10019', -248=>'afii10046',249=>'afii10045',250=>'afii10025',251=>'afii10042',252=>'afii10047',253=>'afii10043',254=>'afii10041',255=>'afii10044'), - -// encoding map for: symbol -'symbol' => array(0=>'.notdef',1=>'.notdef',2=>'.notdef',3=>'.notdef',4=>'.notdef',5=>'.notdef',6=>'.notdef',7=>'.notdef', -8=>'.notdef',9=>'.notdef',10=>'.notdef',11=>'.notdef',12=>'.notdef',13=>'.notdef',14=>'.notdef',15=>'.notdef', -16=>'.notdef',17=>'.notdef',18=>'.notdef',19=>'.notdef',20=>'.notdef',21=>'.notdef',22=>'.notdef',23=>'.notdef', -24=>'.notdef',25=>'.notdef',26=>'.notdef',27=>'.notdef',28=>'.notdef',29=>'.notdef',30=>'.notdef',31=>'.notdef', -32=>'space',33=>'exclam',34=>'universal',35=>'numbersign',36=>'existential',37=>'percent',38=>'ampersand',39=>'suchthat', -40=>'parenleft',41=>'parenright',42=>'asteriskmath',43=>'plus',44=>'comma',45=>'minus',46=>'period',47=>'slash', -48=>'zero',49=>'one',50=>'two',51=>'three',52=>'four',53=>'five',54=>'six',55=>'seven', -56=>'eight',57=>'nine',58=>'colon',59=>'semicolon',60=>'less',61=>'equal',62=>'greater',63=>'question', -64=>'congruent',65=>'Alpha',66=>'Beta',67=>'Chi',68=>'Delta',69=>'Epsilon',70=>'Phi',71=>'Gamma', -72=>'Eta',73=>'Iota',74=>'theta1',75=>'Kappa',76=>'Lambda',77=>'Mu',78=>'Nu',79=>'Omicron', -80=>'Pi',81=>'Theta',82=>'Rho',83=>'Sigma',84=>'Tau',85=>'Upsilon',86=>'sigma1',87=>'Omega', -88=>'Xi',89=>'Psi',90=>'Zeta',91=>'bracketleft',92=>'therefore',93=>'bracketright',94=>'perpendicular',95=>'underscore', -96=>'radicalex',97=>'alpha',98=>'beta',99=>'chi',100=>'delta',101=>'epsilon',102=>'phi',103=>'gamma', -104=>'eta',105=>'iota',106=>'phi1',107=>'kappa',108=>'lambda',109=>'mu',110=>'nu',111=>'omicron', -112=>'pi',113=>'theta',114=>'rho',115=>'sigma',116=>'tau',117=>'upsilon',118=>'omega1',119=>'omega', -120=>'xi',121=>'psi',122=>'zeta',123=>'braceleft',124=>'bar',125=>'braceright',126=>'similar',127=>'.notdef', -128=>'.notdef',129=>'.notdef',130=>'.notdef',131=>'.notdef',132=>'.notdef',133=>'.notdef',134=>'.notdef',135=>'.notdef', -136=>'.notdef',137=>'.notdef',138=>'.notdef',139=>'.notdef',140=>'.notdef',141=>'.notdef',142=>'.notdef',143=>'.notdef', -144=>'.notdef',145=>'.notdef',146=>'.notdef',147=>'.notdef',148=>'.notdef',149=>'.notdef',150=>'.notdef',151=>'.notdef', -152=>'.notdef',153=>'.notdef',154=>'.notdef',155=>'.notdef',156=>'.notdef',157=>'.notdef',158=>'.notdef',159=>'.notdef', -160=>'Euro',161=>'Upsilon1',162=>'minute',163=>'lessequal',164=>'fraction',165=>'infinity',166=>'florin',167=>'club', -168=>'diamond',169=>'heart',170=>'spade',171=>'arrowboth',172=>'arrowleft',173=>'arrowup',174=>'arrowright',175=>'arrowdown', -176=>'degree',177=>'plusminus',178=>'second',179=>'greaterequal',180=>'multiply',181=>'proportional',182=>'partialdiff',183=>'bullet', -184=>'divide',185=>'notequal',186=>'equivalence',187=>'approxequal',188=>'ellipsis',189=>'arrowvertex',190=>'arrowhorizex',191=>'carriagereturn', -192=>'aleph',193=>'Ifraktur',194=>'Rfraktur',195=>'weierstrass',196=>'circlemultiply',197=>'circleplus',198=>'emptyset',199=>'intersection', -200=>'union',201=>'propersuperset',202=>'reflexsuperset',203=>'notsubset',204=>'propersubset',205=>'reflexsubset',206=>'element',207=>'notelement', -208=>'angle',209=>'gradient',210=>'registerserif',211=>'copyrightserif',212=>'trademarkserif',213=>'product',214=>'radical',215=>'dotmath', -216=>'logicalnot',217=>'logicaland',218=>'logicalor',219=>'arrowdblboth',220=>'arrowdblleft',221=>'arrowdblup',222=>'arrowdblright',223=>'arrowdbldown', -224=>'lozenge',225=>'angleleft',226=>'registersans',227=>'copyrightsans',228=>'trademarksans',229=>'summation',230=>'parenlefttp',231=>'parenleftex', -232=>'parenleftbt',233=>'bracketlefttp',234=>'bracketleftex',235=>'bracketleftbt',236=>'bracelefttp',237=>'braceleftmid',238=>'braceleftbt',239=>'braceex', -240=>'.notdef',241=>'angleright',242=>'integral',243=>'integraltp',244=>'integralex',245=>'integralbt',246=>'parenrighttp',247=>'parenrightex', -248=>'parenrightbt',249=>'bracketrighttp',250=>'bracketrightex',251=>'bracketrightbt',252=>'bracerighttp',253=>'bracerightmid',254=>'bracerightbt',255=>'.notdef', -1226=>'registered',1227=>'copyright',1228=>'trademark') - -); // end of encoding maps - -} // --- END OF CLASS --- - -//============================================================+ -// END OF FILE -//============================================================+ diff --git a/phplib/tcpdf/examples/example_001.php b/phplib/tcpdf/examples/example_001.php deleted file mode 100644 index e4ecd6f..0000000 --- a/phplib/tcpdf/examples/example_001.php +++ /dev/null @@ -1,106 +0,0 @@ -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($tc=array(0,64,0), $lc=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 -$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($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=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/phplib/tcpdf/examples/example_002.php b/phplib/tcpdf/examples/example_002.php deleted file mode 100644 index e938f28..0000000 --- a/phplib/tcpdf/examples/example_002.php +++ /dev/null @@ -1,87 +0,0 @@ -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 -$pdf->setLanguageArray($l); - -// --------------------------------------------------------- - -// set font -$pdf->SetFont('times', 'BI', 20); - -// add a page -$pdf->AddPage(); - -// set some text to print -$txt = <<Write($h=0, $txt, $link='', $fill=0, $align='C', $ln=true, $stretch=0, $firstline=false, $firstblock=false, $maxh=0); - -// --------------------------------------------------------- - -//Close and output PDF document -$pdf->Output('example_002.pdf', 'I'); - -//============================================================+ -// END OF FILE -//============================================================+ diff --git a/phplib/tcpdf/examples/example_003.php b/phplib/tcpdf/examples/example_003.php deleted file mode 100644 index 20a6709..0000000 --- a/phplib/tcpdf/examples/example_003.php +++ /dev/null @@ -1,118 +0,0 @@ -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 -$pdf->setLanguageArray($l); - -// --------------------------------------------------------- - -// set font -$pdf->SetFont('times', 'BI', 12); - -// add a page -$pdf->AddPage(); - -// set some text to print -$txt = <<Write($h=0, $txt, $link='', $fill=0, $align='C', $ln=true, $stretch=0, $firstline=false, $firstblock=false, $maxh=0); - -// --------------------------------------------------------- - -//Close and output PDF document -$pdf->Output('example_003.pdf', 'I'); - -//============================================================+ -// END OF FILE -//============================================================+ diff --git a/phplib/tcpdf/examples/example_004.php b/phplib/tcpdf/examples/example_004.php deleted file mode 100644 index 269a5e7..0000000 --- a/phplib/tcpdf/examples/example_004.php +++ /dev/null @@ -1,121 +0,0 @@ -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 -$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/phplib/tcpdf/examples/example_005.php b/phplib/tcpdf/examples/example_005.php deleted file mode 100644 index 387e158..0000000 --- a/phplib/tcpdf/examples/example_005.php +++ /dev/null @@ -1,158 +0,0 @@ -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 -$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/phplib/tcpdf/examples/example_006.php b/phplib/tcpdf/examples/example_006.php deleted file mode 100644 index 5820b73..0000000 --- a/phplib/tcpdf/examples/example_006.php +++ /dev/null @@ -1,332 +0,0 @@ -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 -$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(); - -require('../htmlcolors.php'); - -$textcolors = '

    HTML Text Colors

    '; -$bgcolors = '

    HTML Background Colors

    '; - -foreach($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 -