{"id":19383876,"url":"https://github.com/docspring/libreconv","last_synced_at":"2025-04-09T12:05:40.621Z","repository":{"id":47119047,"uuid":"8993539","full_name":"DocSpring/libreconv","owner":"DocSpring","description":"Ruby gem that converts office documents to PDF using LibreOffice / OpenOffice.","archived":false,"fork":false,"pushed_at":"2023-06-06T13:04:01.000Z","size":153,"stargazers_count":200,"open_issues_count":10,"forks_count":64,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-02T09:09:25.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/DocSpring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2013-03-24T21:28:17.000Z","updated_at":"2025-03-13T03:25:16.000Z","dependencies_parsed_at":"2024-06-18T16:58:48.188Z","dependency_job_id":"1c85371d-d1aa-4027-bd7b-522db7a334a8","html_url":"https://github.com/DocSpring/libreconv","commit_stats":{"total_commits":107,"total_committers":10,"mean_commits":10.7,"dds":0.3551401869158879,"last_synced_commit":"05ce17c0af2d1760844e666ac27710581c975fb4"},"previous_names":["formapi/libreconv"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Flibreconv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Flibreconv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Flibreconv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DocSpring%2Flibreconv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DocSpring","download_url":"https://codeload.github.com/DocSpring/libreconv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036063,"owners_count":21037092,"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-11-10T09:28:14.104Z","updated_at":"2025-04-09T12:05:40.603Z","avatar_url":"https://github.com/DocSpring.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Libreconv\n\nConvert office documents using LibreOffice / OpenOffice to one of their supported formats.\n\n[![Build Status](https://travis-ci.org/FormAPI/libreconv.png?branch=master)](https://travis-ci.org/FormAPI/libreconv)\n[![Gem Version](https://badge.fury.io/rb/libreconv.svg)](http://badge.fury.io/rb/libreconv)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'libreconv'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install libreconv\n\n## Usage\n\nYou need to install LibreOffice or OpenOffice on your system to use this gem. The code has been tested with LibreOffice 6.1.3.\n\n```ruby\nrequire 'libreconv'\n\n# Converts document.docx to my_document_as.pdf\n# This requires that the soffice binary is present in your PATH.\nLibreconv.convert('document.docx', '/Users/ricn/pdf_documents/my_document_as.pdf')\n\n# Converts document.docx to pdf and writes the output to the specified path\n# This requires that the soffice binary is present in your PATH.\nLibreconv.convert('document.docx', '/Users/ricn/pdf_documents')\n\n# You can also convert a source file directly from an URL\nLibreconv.convert('http://myserver.com/123/document.docx', '/Users/ricn/pdf_documents/doc.pdf')\n\n# You cal pass a URL with GET params like this S3 example\nLibreconv.convert('https://mybucket.s3.amazonaws.com/myserver/123/document.docx?X-Amz-Expires=456\u0026X-Amz-Signature=abc', '/Users/ricn/pdf_documents/doc.pdf')\n\n# Converts document.docx to document.pdf\n# If you for some reason can't have soffice in your PATH you can specify the file path to the soffice binary\nLibreconv.convert('document.docx', '/Users/ricn/pdf_documents', '/Applications/LibreOffice.app/Contents/MacOS/soffice')\n\n# Converts document.docx to my_document_as.html\nLibreconv.convert('document.docx', '/Users/ricn/pdf_documents/my_document_as.html', nil, 'html')\n\n# Converts document.docx to my_document_as.pdf using writer_pdf_Export filter\nLibreconv.convert('document.docx', '/Users/ricn/pdf_documents/my_document_as.pdf', nil, 'pdf:writer_pdf_Export')\n```\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies. Then, run `bundle exec rake` to run the tests.\nYou can also run `irb -r bundler/setup -r libreconv` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`.\n\n## Contributing\n\n* Install LibreOffice on Linux: `sudo apt-get install libreoffice`\n* Install LibreOffice on Mac: `brew cask install libreoffice`\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Contributors\n\nThe following people have contributed ideas, documentation, or code to Libreconv:\n\n* [Richard Nyström](https://github.com/ricn)\n* [Nathan Broadbent](https://github.com/ndbroadbent)\n* [Thach Nguyen](https://github.com/nthachus)\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocspring%2Flibreconv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocspring%2Flibreconv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocspring%2Flibreconv/lists"}