- Gotenberg Scripts: Command-line scripts featuring both
.batand.shversions, providing cross-platform compatibility depending on the operating system you are running.
Gotenberg Converter is a lightweight, interactive command-line utility designed to mass-convert documents (such as .odt, .docx, etc.) into PDFs using a self-hosted Gotenberg API.
Instead of converting files one by one or relying on complex configurations, this tool prompts the user for the necessary parameters (Gotenberg server IP, source folder, target file extension, and destination folder) and automatically loops through the directory to batch-convert the files. It acts as a bridge between your local file system and your Gotenberg instance.
I'm Jonathan, and I develop projects in my spare time that help myself and others become better and more efficient developers!
- A running instance of Gotenberg (accessible via an IP address and port).
curlinstalled on your machine (usually pre-installed on modern Windows, macOS, and Linux systems).
- Download or clone this repository to your local machine.
- Locate the
.batfile (e.g.,mass-convert.bat). - Double-click the file to run it.
- A command prompt window will open. Follow the interactive steps to provide your Gotenberg IP, source folder, file extension, and target folder.
- Download or clone this repository to your local machine.
- Open your terminal and navigate to the directory where the script is located.
- Make the script executable by running:
chmod +x mass-convert.sh
4: Execute the script:
bash ./mass-convert.sh
5: Follow the interactive prompts in your terminal to complete the batch conversion.
Contributions are welcome! Please ensure you include tests for any new features.
- Fork the project.
- Create your Feature Branch (git checkout -b feature/UserFeature).
- Commit your changes (git commit -m 'Add some Feature').
- Push to the Branch (git push origin feature/UserFeature).
- Open a Pull Request.
Distributed under the MIT License. See LICENSE file for more information.