{"id":18817417,"url":"https://github.com/codergogoi/task-manager-middleware","last_synced_at":"2025-07-09T01:15:00.508Z","repository":{"id":109326142,"uuid":"199280755","full_name":"codergogoi/task-manager-middleware","owner":"codergogoi","description":"Task Manager Middleware ","archived":false,"fork":false,"pushed_at":"2019-07-28T11:52:00.000Z","size":50523,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T07:12:29.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codergogoi.png","metadata":{"files":{"readme":"README.txt","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-07-28T11:49:16.000Z","updated_at":"2019-07-28T11:52:06.000Z","dependencies_parsed_at":"2023-03-26T14:05:46.502Z","dependency_job_id":null,"html_url":"https://github.com/codergogoi/task-manager-middleware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codergogoi/task-manager-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codergogoi%2Ftask-manager-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codergogoi%2Ftask-manager-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codergogoi%2Ftask-manager-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codergogoi%2Ftask-manager-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codergogoi","download_url":"https://codeload.github.com/codergogoi/task-manager-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codergogoi%2Ftask-manager-middleware/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264373811,"owners_count":23598083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T00:11:18.755Z","updated_at":"2025-07-09T01:15:00.496Z","avatar_url":"https://github.com/codergogoi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML.\nIt is based on FPDF (http://www.fpdf.org/) and HTML2FPDF (http://html2fpdf.sourceforge.net/) (see CREDITS.txt), with a number of enhancements.\nmPDF was written by Ian Back and is released under the GNU GPL v2 licence (LICENSE.txt).\n\nInstallation\n============\n    * Download the .zip file and unzip it\n    * Create a folder e.g. /mpdf on your server\n    * Upload all of the files to the server, maintaining the folders as they are\n    * Ensure that you have write permissions set (CHMOD 6xx or 7xx) for the following folders:\n\t /ttfontdata/ - used to cache font data; improves performance a lot\n\t /tmp/ - used for some images and ProgressBar\n\t /graph_cache/ - if you are using JpGraph in conjunction with mPDF\n\nTo test the installation, point your browser to the basic example file : [path_to_mpdf_folder]/mpdf/examples/example01_basic.php\n\nIf you wish to define a different folder for temporary files rather than /tmp/ see the note on 'Folder for temporary files' in\n the section on Installation \u0026 Setup in the manual (http://mpdf1.com/manual/).\n\nIf you have problems, please read the section on troubleshooting in the manual.\n\n\nFonts\n=====\nLet us refer to font names in 2 ways:\n\"CSS font-family name\" - mPDF is designed primarily to read HTML and CSS. This is the name used in CSS e.g.\n\t\u003cp style=\"font-family: 'Trebuchet MS';\"\u003e\n\n\"mPDF font-family name\" - the name used internally to process fonts. This could be anything you like,\n\tbut by default mPDF will convert CSS font-family names by removing any spaces and changing\n\tto lowercase. Reading the name above, mPDF will look for a \"mPDF font-family name\" of\n\t'trebuchetms'.\n\nThe configurable values referred to below are set in the config_fonts.php file\n\nWhen parsing HTML/CSS, mPDF will read the CSS font-family name (e.g. 'Trebuchet MS') and convert\nby removing any spaces and changing to lowercase, to look for a mPDF font-family name (trebuchetms).\n\nNext it will look for a translation (if set) in config_font.php e.g.:\n$this-\u003efonttrans = array(\n\t'trebuchetms' =\u003e 'trebuchet'\n)\n\nNow the mPDF font-family name to be used is 'trebuchet'\n\nIf you wish to make this font available, you need to specify the Truetype .ttf font files for each variant.\nThese should be defined in config_font.php in the array:\n$this-\u003efontdata = array(\n\t\"trebuchet\" =\u003e array(\n\t\t'R' =\u003e \"trebuc.ttf\",\n\t\t'B' =\u003e \"trebucbd.ttf\",\n\t\t'I' =\u003e \"trebucit.ttf\",\n\t\t'BI' =\u003e \"trebucbi.ttf\",\n\t\t)\n)\n\nThis is the array which determines whether a font is available to mPDF. Each font-family must have a\nRegular ['R'] file defined - the others (bold, italic, bold-italic) are optional.\n\nmPDF will try to load the font-file. If you have defined _MPDF_SYSTEM_TTFONTS at the top of the\nconfig_fonts.php file, it will first look for the font-file there. This is useful if you are running\nmPDF on a computer which already has a folder with TTF fonts in (e.g. on Windows)\n\nIf the font-file is not there, or _MPDF_SYSTEM_TTFONTS is not defined, mPDF will look in the folder\n/[your_path_to_mpdf]/ttfonts/\n\nNote that the font-file names are case-sensitive and can contain capitals.\n\nIf the folder /ttfontdata/ is writeable (CHMOD 644 or 755), mPDF will save files there which it can\nre-use next time it accesses a particular font. This will significantly improve processing time\nand is strongly recommended.\n\nmPDF should be able to read most TrueType Unicode font files with a .ttf extension\nTruetype fonts with .otf extension that are OpenType also work OK.\nTrueType collections (.ttc) will also work if they contain TrueType Unicode fonts.\n\n\nCharacter substitution\n----------------------\nMost people will have access to a Pan-Unicode font with most Unicode characters in it such as\nArial Unicode MS. Set $this-\u003ebackupSubsFont = array('arialunicodems'); at the top of the config_fonts.php file\nto use this font when substituting any characters not found in the specific font being used.\n\nExample:\nYou can set $mpdf-\u003euseSubstitutions = true; at runtime\nor $this-\u003euseSubstitutions = true; in the config.php file\n\n\u003cp style=\"font-family: 'Comic Sans MS'\"\u003eThis text contains a Thai character \u0026#3617; which does not exist\nin the Comic Sans MS font file\u003c/p\u003e\n\nWhen useSubstitutions is true, mPDF will try to find substitutions for any missing characters:\n1) firstly looks if the character is available in the inbuilt Symbols or ZapfDingbats fonts;\n2) [If defined] looks in each of the the font(s) set by $this-\u003ebackupSubsFont array\n\nNB There is an increase in processing time when using substitutions, and even more so if\na backupSubsFont is defined.\n\nControlling mPDF mode\n=====================\nThe first parameter of new mPDF('') works as follows:\nnew mPDF('c') - forces mPDF to only use the built-in [c]ore Adobe fonts (Helvetica, Times etc)\n\nnew mPDF('') - default - font subsetting behaviour is determined by the configurable variables\n\t$this-\u003emaxTTFFilesize and $this-\u003epercentSubset (see below)\n\tDefault values are set so that: 1) very large font files are always subset\n\t2) Fonts are embedded as subsets if \u003c 30% of the characters are used\n\nnew mPDF('..+aCJK')  new mPDF('+aCJK')\nnew mPDF('..-aCJK')  new mPDF('-aCJK')\n\t - used optionally together with a language or language/country code, +aCJK will force mPDF\n\tto use the Adobe non-embedded CJK fonts when a passage is marked with e.g. \"lang: ja\"\n\tThis can be used at runtime to override the value set for $mpdf-\u003euseAdobeCJK in config.php\n\tUse in conjunction with settings in config_cp.php\n\nFor backwards compatibility, new mPDF('-s') and new mPDF('s') will force subsetting by\n\tsetting $this-\u003epercentSubset=100\n\tnew mPDF('utf-8-s') and new mPDF('ar-s') are also recognised\n\n\n\n\nConfiguration variables changed\n===============================\nConfiguration variables are documented in the on-line manual (http://mpdf1.com/manual/).\n\n\nFont folders\n============\nIf you wish to define your own font file folders (perhaps to share),\nyou can define the 2 constants in your script before including the mpdf.php script e.g.:\n\ndefine('_MPDF_TTFONTPATH','your_path/ttfonts/');\ndefine('_MPDF_TTFONTDATAPATH','your_path/ttfontdata/'); \t// should be writeable\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodergogoi%2Ftask-manager-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodergogoi%2Ftask-manager-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodergogoi%2Ftask-manager-middleware/lists"}