{"id":25376914,"url":"https://github.com/terrierscript/grunt-pdf-imagepack","last_synced_at":"2025-04-09T10:33:50.490Z","repository":{"id":16563290,"uuid":"19317132","full_name":"terrierscript/grunt-pdf-imagepack","owner":"terrierscript","description":null,"archived":false,"fork":false,"pushed_at":"2015-07-01T00:20:19.000Z","size":175,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T04:40:06.354Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terrierscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-30T14:54:51.000Z","updated_at":"2019-09-05T14:07:48.000Z","dependencies_parsed_at":"2022-09-24T15:51:31.102Z","dependency_job_id":null,"html_url":"https://github.com/terrierscript/grunt-pdf-imagepack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fgrunt-pdf-imagepack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fgrunt-pdf-imagepack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fgrunt-pdf-imagepack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fgrunt-pdf-imagepack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terrierscript","download_url":"https://codeload.github.com/terrierscript/grunt-pdf-imagepack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020592,"owners_count":21034459,"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":"2025-02-15T04:40:18.375Z","updated_at":"2025-04-09T10:33:50.449Z","avatar_url":"https://github.com/terrierscript.png","language":"JavaScript","readme":"# grunt-pdf-imagepack\n\n\u003e Generate image packed pdf\n\nThis plugin depends [pdfkit](http://pdfkit.org/).\n\n## Getting Started\nThis plugin requires Grunt.\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-pdf-imagepack --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('pdf-imagepack');\n```\n\n## The \"pdf_imagepack\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `pdf_imagepack` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  pdf_imagepack: {\n    options: {\n      pdf:{\n        // Task-specific options (for pdfkit) go here.\n      }\n    },\n    files: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n})\n```\n\n### Options\n\n#### options.pdf\nType: `Object`\n\nThis option through to pdfkit object.\n\n### Usage Examples\n\n#### Default Options\nIn this example, the source file is packed to pdf file.\n\n```js\ngrunt.initConfig({\n  pdf_imagepack: {\n    defaults: {\n      files: {\n        'tmp/sample.pdf': ['some/images/*']\n      }\n    }\n  }\n})\n```\n\n#### Custom Options\nIf you want specify the pdf size. You can use `options.pdf`\n\n```js\ngrunt.initConfig({\n  pdf_imagepack: {\n    with_pdf_option: {\n      options : {\n        pdf : {\n          size : \"B5\"\n        }\n      },\n      files: {\n        'tmp/sample.pdf': ['some/images/*']\n      }\n    }\n  }\n})\n```\n\n## Release History\n_(Nothing yet)_\n\n## License\nCopyright (c) 2014 suisho. Licensed under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrierscript%2Fgrunt-pdf-imagepack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrierscript%2Fgrunt-pdf-imagepack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrierscript%2Fgrunt-pdf-imagepack/lists"}