{"id":19882935,"url":"https://github.com/maemresen/mae-ghostscript","last_synced_at":"2025-03-01T03:23:47.384Z","repository":{"id":259902063,"uuid":"876575847","full_name":"maemresen/mae-ghostscript","owner":"maemresen","description":"mae-ghostscript is a Docker-based tool for compressing PDF files efficiently using Ghostscript. This containerized solution simplifies the process of PDF compression, providing a consistent environment that works across different platforms. Users can run the container by mounting their local directories and specifying the PDF to compress.","archived":false,"fork":false,"pushed_at":"2024-11-09T19:53:28.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T18:27:48.421Z","etag":null,"topics":["bash-scripting","containerized-application","docker","document-processing","ghostscript","pdf-compression"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"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/maemresen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-10-22T07:52:13.000Z","updated_at":"2024-11-09T19:53:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9d036ca-300f-4d45-ab7f-72a32c6e2e2d","html_url":"https://github.com/maemresen/mae-ghostscript","commit_stats":null,"previous_names":["maemresen/mae-ghostscript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maemresen%2Fmae-ghostscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maemresen%2Fmae-ghostscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maemresen%2Fmae-ghostscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maemresen%2Fmae-ghostscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maemresen","download_url":"https://codeload.github.com/maemresen/mae-ghostscript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241311372,"owners_count":19942149,"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":["bash-scripting","containerized-application","docker","document-processing","ghostscript","pdf-compression"],"created_at":"2024-11-12T17:18:58.867Z","updated_at":"2025-03-01T03:23:47.356Z","avatar_url":"https://github.com/maemresen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mae-ghostscript\n\n## Overview\n`mae-ghostscript` is a Docker-based tool designed for compressing PDF files using Ghostscript. This repository includes a Docker image that streamlines the PDF compression process in a consistent, containerized environment. For more details, visit the [GitHub repository](https://github.com/maemresen/mae-ghostscript).\n\n## Features\n- Simple PDF compression using Ghostscript.\n- Runs within a Docker container, ensuring a consistent and isolated environment.\n- Easy to use with straightforward input commands.\n\n## Prerequisites\n- [Docker](https://www.docker.com/get-started) installed on your machine.\n- Access to the Docker Hub repository [maemresen/mae-ghostscript](https://hub.docker.com/repository/docker/maemresen/mae-ghostscript/general).\n\n## Usage\n\n### Running the Docker Container\nTo compress a PDF file, follow these steps:\n\n1. Place your PDF files in a local directory named `pdf-files` (or create one in your current directory).\n2. Run the Docker command directly.\n\n### Direct Docker Command\nRun the container using the following command:\n\n```bash\ndocker run --rm -it --name mae-ghostscript \\\n  -v \"$(pwd)/pdf-files:/app/pdf-files\" \\\n  -e \"INPUT_PDF=your-input-file.pdf\" \\\n  maemresen/mae-ghostscript\n```\n\n### Output File Pattern\nThe output file will be generated with the pattern `\u003cinput-filename\u003e-compressed-\u003ctimestamp\u003e.pdf`, where `\u003cinput-filename\u003e` is the name of the input file without the `.pdf` extension, and `\u003ctimestamp\u003e` is the current date and time. The compressed file will be located in the `pdf-files` directory.\n\n**Example:**\n- Input file: `example.pdf`\n- Output file: `example-compressed-2024_11_09-12_30_45.pdf`\n\n## Environment Variables\n- `INPUT_PDF`: The name of the input PDF file to be compressed.\n\nEnsure that the `INPUT_PDF` file is located in the `pdf-files` directory.\n\n## Building the Docker Image\nTo build the Docker image locally:\n\n```bash\ndocker build --no-cache -t maemresen/mae-ghostscript .\n```\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n\n## Author\nMehmet Arif Emre Sen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaemresen%2Fmae-ghostscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaemresen%2Fmae-ghostscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaemresen%2Fmae-ghostscript/lists"}