{"id":15983960,"url":"https://github.com/lekt9/a4pdf","last_synced_at":"2025-04-04T20:42:36.356Z","repository":{"id":249349258,"uuid":"628358748","full_name":"lekt9/a4pdf","owner":"lekt9","description":"Resizes pdf to match doc size","archived":false,"fork":false,"pushed_at":"2023-04-16T02:09:18.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T05:22:02.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/lekt9.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-15T17:43:12.000Z","updated_at":"2023-04-15T17:43:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b6da062-d93b-431a-86b8-a7079e99b1e0","html_url":"https://github.com/lekt9/a4pdf","commit_stats":null,"previous_names":["lekt9/a4pdf","lewistham9x/a4pdf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekt9%2Fa4pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekt9%2Fa4pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekt9%2Fa4pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lekt9%2Fa4pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lekt9","download_url":"https://codeload.github.com/lekt9/a4pdf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249604,"owners_count":20908211,"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-10-08T02:03:49.839Z","updated_at":"2025-04-04T20:42:36.336Z","avatar_url":"https://github.com/lekt9.png","language":"Python","readme":"# A4 PDF\n\nThis Python script is designed to process PDF files within a specified input folder and output the processed PDF files to a specified output folder. The script uses the PyPDF2 and pdf2image libraries to rotate and scale down the pages of the input PDF files while maintaining the aspect ratio of the pages. The output PDF files are saved to the output folder.\n\n## Installation\n\nTo use this script, you will need to install the PyPDF2, pdf2image, and PIL (Python Imaging Library) libraries in your Python environment. You can do this using pip, the Python package manager, by running the following command in your terminal or command prompt:\n\n```\npip install PyPDF2 pdf2image Pillow\n```\n\n## Usage\n\nOnce you have installed the required libraries, you can run the script by setting the `input_folder` and `output_folder` variables to the paths of your input and output folders, respectively. Then, run the script using a Python interpreter.\n\nNote that the script assumes that all PDF files within the input folder have a `.pdf` extension. Any files in the input folder that do not have this extension will not be processed.\n\nAfter running the script, you will see a message for each PDF file that has been processed, indicating the path of the input file and the path of the output file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekt9%2Fa4pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flekt9%2Fa4pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekt9%2Fa4pdf/lists"}