{"id":22394180,"url":"https://github.com/atlantis-software/pclkit","last_synced_at":"2025-07-27T06:32:47.782Z","repository":{"id":57153365,"uuid":"173975522","full_name":"Atlantis-Software/pclkit","owner":"Atlantis-Software","description":"A JavaScript PCL generation library for Node","archived":false,"fork":false,"pushed_at":"2021-12-03T09:08:04.000Z","size":4827,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T01:46:00.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Atlantis-Software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-05T15:48:53.000Z","updated_at":"2023-03-20T04:14:28.000Z","dependencies_parsed_at":"2022-09-06T16:11:53.992Z","dependency_job_id":null,"html_url":"https://github.com/Atlantis-Software/pclkit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Atlantis-Software/pclkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Fpclkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Fpclkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Fpclkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Fpclkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atlantis-Software","download_url":"https://codeload.github.com/Atlantis-Software/pclkit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atlantis-Software%2Fpclkit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267316355,"owners_count":24068219,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-05T05:09:19.581Z","updated_at":"2025-07-27T06:32:47.720Z","avatar_url":"https://github.com/Atlantis-Software.png","language":"JavaScript","readme":"# pclkit\nA JavaScript PCL generation library for Node.\n\n## Description\n\nPCLKit is a PCL document generation library for Node that makes creating complex, multi-page, printable \ndocuments easy. The API embraces chainability, and includes both low level functions as well as abstractions for higher \nlevel functionality. The PCLKit API(based on PDFKit API) is designed to be simple, so generating complex documents is often as simple as \na few function calls.\n\nCheck out some of the [documentation and examples of PDFKit](http://pdfkit.org/docs/getting_started.html) to see for yourself!\n\n\n## Installation\n\nInstallation uses the [npm](http://npmjs.org/) package manager.  Just type the following command after installing npm.\n\n    npm install pclkit\n\n## Features\n\n* Vector graphics\n  * HTML5 canvas-like API\n  * Path operations\n  * SVG path parser for easy path creation\n  * Transformations\n* Text\n  * Line wrapping\n  * Text alignments\n  * Bulleted lists\n* Font embedding\n  * Supports TrueType (.ttf)\n* Image embedding\n  * Supports JPEG and PNG files (including indexed PNGs, and PNGs with transparency)\n\n## Example\n\n```javascript\nconst PCLDocument = require('pclkit');\n\n// Create a document\nconst doc = new PCLDocument;\n\n// Pipe its output somewhere, like to a file or HTTP response\n// See below for browser usage\ndoc.pipe(fs.createWriteStream('output.prn'));\n\n// Embed a font, set the font size, and render some text\ndoc.font('fonts/PalatinoBold.ttf')\n   .fontSize(25)\n   .text('Some text with an embedded font!', 100, 100);\n\n// Add an image, constrain it to a given size, and center it vertically and horizontally\ndoc.image('path/to/image.png', {\n   fit: [250, 300],\n   align: 'center',\n   valign: 'center'\n});\n\n// Add another page\ndoc.addPage()\n   .fontSize(25)\n   .text('Here is some vector graphics...', 100, 100);\n\n// Draw a triangle\ndoc.save()\n   .moveTo(100, 150)\n   .lineTo(100, 250)\n   .lineTo(200, 250)\n   .fill(\"#FF3300\");\n\n// Apply some transforms and render an SVG path with the 'even-odd' fill rule\ndoc.scale(0.6)\n   .translate(470, -380)\n   .path('M 250,75 L 323,301 131,161 369,161 177,301 z')\n   .fill('red', 'even-odd')\n   .restore();\n\n// Finalize PCL file\ndoc.end();\n```\n\n## Documentation\n\nFor complete API documentation and more examples, see the [PDFKit website](http://pdfkit.org/).\n\n## License\n\nPCLKit is available under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlantis-software%2Fpclkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatlantis-software%2Fpclkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlantis-software%2Fpclkit/lists"}