{"id":23256769,"url":"https://github.com/akhos09/docxtopdf","last_synced_at":"2025-04-06T04:25:18.049Z","repository":{"id":266343117,"uuid":"898090616","full_name":"akhos09/docxtopdf","owner":"akhos09","description":"A script made in Python that converts .docx files into pdf using the library spire.doc.","archived":false,"fork":false,"pushed_at":"2025-02-02T23:01:02.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T10:28:12.296Z","etag":null,"topics":["docxtopdf","pdf","pdf-converter","python","script","word"],"latest_commit_sha":null,"homepage":"","language":"Python","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/akhos09.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-03T19:15:24.000Z","updated_at":"2025-02-02T23:01:05.000Z","dependencies_parsed_at":"2025-02-03T00:17:36.677Z","dependency_job_id":"f57d6824-92c2-460c-a505-88de68b917b4","html_url":"https://github.com/akhos09/docxtopdf","commit_stats":null,"previous_names":["akhos09/docxtopdf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhos09%2Fdocxtopdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhos09%2Fdocxtopdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhos09%2Fdocxtopdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhos09%2Fdocxtopdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akhos09","download_url":"https://codeload.github.com/akhos09/docxtopdf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247432376,"owners_count":20938146,"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":["docxtopdf","pdf","pdf-converter","python","script","word"],"created_at":"2024-12-19T12:19:32.648Z","updated_at":"2025-04-06T04:25:17.869Z","avatar_url":"https://github.com/akhos09.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DocxToPDF\n\nA Python script to convert `.docx` files to `.pdf` using the `spire.doc` **FREE LICENSE** (IT LEAVES A WATERMARK) library. This tool can process individual or multiple files in a directory.\n\n## Important Licensing Notice\n\nThis project uses the `spire.doc` library for Word to PDF conversion. The library is licensed under a commercial license, and this project is using a **free evaluation version**. \n\nThe free evaluation version may have limitations, such as watermarks on generated PDFs, reduced functionality, or time-limited access. If you are planning to use this project in production or for commercial purposes, you will need to obtain a valid commercial license for the `spire.doc` library.\n\nYou can find more details about licensing here: [Spire.doc Licensing](https://www.e-iceblue.com/)\n\n## Table of Contents\n- [Dependencies](#dependencies)\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n\n## Dependencies\n\nThe script requires the following libraries and tools:\n\n1. **spire.doc**: A library for working with `.docx` files and converting them to PDF.\n\n2. **os**: A standard Python module for interacting with the operating system (used for file handling).\n\n3. **subprocess**: A standard Python module to execute shell commands, used for managing the installation of dependencies.\n\n4. **tkinter**: A Python library for GUI-based file dialogs, allowing users to select files and folders easily.\n\n5. **pip**: Python's package manager for installing dependencies.\n\n## Installation\n\n1. **Clone this repository**:\n\n   ```\n   git clone https://github.com/akhos09/vagrant-utilities\n   cd vagrant-utilities\n   ```\n\n2. **Install dependencies**:\n\n   If `spire.doc` is not installed, the script will prompt you to install it. To install it manually, run:\n\n   ```\n   pip install spire.doc\n   ```\n\n## Usage\n\n1. **Run the script**:\n\n   Open a terminal or command prompt and navigate to the directory containing the script. Run the following command:\n\n   ```\n   python docxtopdf.py\n   ```\n\n2. **Choose your conversion method**:\n\n   You will be prompted to choose whether to convert a single file or multiple files from a folder.\n\n   - **For a single file**: Select the `.docx` file and enter the desired PDF filename.\n   - **For multiple files**: Select the folder containing `.docx` files, and the script will convert all `.docx` files in the folder to PDFs.\n\n3. **Converted PDFs**:\n\n   The converted PDFs will be saved in a folder named `pdf_converted` in the current directory.\n\n## Troubleshooting\n\n   - Ensure that `Python` and `spire.doc` are installed and updated.\n   - If the script cannot find the `.docx` file, check the file path and try again.\n   - If the PDF conversion fails, make sure the `.docx` file is valid and does not contain any corrupt elements.\n   - If `spire.doc` installation fails, ensure that `pip` is installed and try again.\n\n## License\n\nSee the [LICENSE](LICENSE) file for details.\n\n## Credits\n\nThanks to [spire.doc](https://www.e-iceblue.com) for providing the document conversion functionality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhos09%2Fdocxtopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakhos09%2Fdocxtopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhos09%2Fdocxtopdf/lists"}