{"id":23649479,"url":"https://github.com/payneteasy/libreoffice-api-wrapper","last_synced_at":"2025-09-01T01:31:07.968Z","repository":{"id":49201579,"uuid":"216546985","full_name":"payneteasy/libreoffice-api-wrapper","owner":"payneteasy","description":"Java wrapper of Libreoffice API","archived":false,"fork":false,"pushed_at":"2025-01-27T13:06:56.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-02T06:05:44.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/payneteasy.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":"2019-10-21T11:04:24.000Z","updated_at":"2025-01-27T13:06:59.000Z","dependencies_parsed_at":"2024-10-29T16:41:43.027Z","dependency_job_id":null,"html_url":"https://github.com/payneteasy/libreoffice-api-wrapper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/payneteasy/libreoffice-api-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payneteasy%2Flibreoffice-api-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payneteasy%2Flibreoffice-api-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payneteasy%2Flibreoffice-api-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payneteasy%2Flibreoffice-api-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/payneteasy","download_url":"https://codeload.github.com/payneteasy/libreoffice-api-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payneteasy%2Flibreoffice-api-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273064107,"owners_count":25039259,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-28T15:38:21.676Z","updated_at":"2025-09-01T01:31:07.587Z","avatar_url":"https://github.com/payneteasy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libreoffice-api-wrapper\nJava wrapper of Libreoffice API\n\n## Параметры http-сервера:\n* ```SERVER_PORT``` - порт, на который будут приниматься входящие HTTP запросы. По умолчанию ```8080```\n* ```SERVER_SERVLET_CONTEXT``` - контекст сервера приложений. По умолчанию ```/converter```\n* ```SERVER_SERVLET_PATH``` - путь запроса для конвертации документов. По умочанию ```/convert```\n\n## Параметры сервиса libreoffice\n* ```LIBREOFFICE_HOST``` - адрес хоста, на котором разрвернут сервис libreoffice. По умолчанию ```localhost```\n* ```LIBREOFFICE_PORT``` - порт, на который сервис libreoffice принимает соединения. По умолчанию ```8100```\n\nПераметры http-сервера и сервиса libreoffice можно задать, например, через переменные среды. Также возможно задать параметры через system properties.\n\n## Пример команды запуска сервера\n```bash\njava -jar libreoffice-api-wrapper-server-1.0-jar-with-dependencies.jar\n```\n```bash\njava -DSERVER_PORT=8081 -jar libreoffice-api-wrapper-server-1.0-jar-with-dependencies.jar\n```\n\n## Формат http запроса для конвертации документов\n* Метод запроса - ```POST```\n* Параметр ```inputFormat``` - формат входного документа (поддерживаемые форматы: ```csv```,```doc```,```docx```,```xls```,```xlsx```)\n* Параметр ```outputFormat``` - формат выходного документа (поддерживаемые форматы: ```pdf```)\n* В теле запроса передается содержимое документа для конвертации\n\n\n## Релиз пакета в гитхаб \n\n* Настроить .m2/settings.xml для github https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-apache-maven-for-use-with-github-packages#authenticating-with-the-github_token\n* Выполнить локально команды:\n\n```bash \n mvn -Dmaven.test.skip=true clean package\n```\nДалее необходимо запустить libreoffice-api-wrapper-server.jar и докер для тестов: \n\n```bash \n java -jar libreoffice-api-wrapper-server/target/libreoffice-api-wrapper-server-{current_version}-jar-with-dependencies.jar\n```\n\n```bash \n docker run -t --name libreoffice -p 8100:8100 hdejager/libreoffice-api\n```\n\n```bash \n mvn test\n```\nРелизить только, если тесты прошли успешно\n\n```bash \n mvn build-helper:parse-version versions:set -DnewVersion=\\${parsedVersion.majorVersion}.\\${parsedVersion.minorVersion}.\\${parsedVersion.nextIncrementalVersion} versions:commit\n```\n\n```bash \n mvn deploy\n```\nСделай коммит после деплоя!!!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayneteasy%2Flibreoffice-api-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpayneteasy%2Flibreoffice-api-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayneteasy%2Flibreoffice-api-wrapper/lists"}