{"id":18076243,"url":"https://github.com/scivision/office-headless","last_synced_at":"2025-12-14T13:33:35.312Z","repository":{"id":47921271,"uuid":"163977614","full_name":"scivision/office-headless","owner":"scivision","description":"Headless document conversion and printing using LibreOffice or Microsoft Office","archived":false,"fork":false,"pushed_at":"2024-12-19T16:15:15.000Z","size":49,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T08:11:51.968Z","etag":null,"topics":["asyncio","document-conversion","libreoffice-converter"],"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/scivision.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":"2019-01-03T13:37:34.000Z","updated_at":"2025-04-11T06:30:04.000Z","dependencies_parsed_at":"2023-11-14T15:26:49.846Z","dependency_job_id":"0a517ad9-335d-439e-96f3-51abcc35150a","html_url":"https://github.com/scivision/office-headless","commit_stats":null,"previous_names":["scivision/libreoffice-utils"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Foffice-headless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Foffice-headless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Foffice-headless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Foffice-headless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scivision","download_url":"https://codeload.github.com/scivision/office-headless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537140,"owners_count":21120711,"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":["asyncio","document-conversion","libreoffice-converter"],"created_at":"2024-10-31T11:09:22.833Z","updated_at":"2025-12-14T13:33:35.209Z","avatar_url":"https://github.com/scivision.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Headless LibreOffice / Microsoft Office\n\n[![Actions Status](https://github.com/scivision/office-headless/workflows/ci/badge.svg)](https://github.com/scivision/office-headless/actions)\n[![PyPI Download stats](http://pepy.tech/badge/loutils)](http://pepy.tech/project/loutils)\n\nHeadless (command line) operations by LibreOffice or Microsoft Office on Word, Excel, PowerPoint and most other\n[formats LibreOffice can handle](https://en.wikipedia.org/wiki/LibreOffice#Supported_file_formats)\nfor:\n\n* Doc =\u003e PDF conversion  (LibreOffice only)\n* printing (to the system default printer only)\n\nfrom Python command line using LibreOffice or Microsoft Word\n\n## standalone single file document to PDF\n\nFor reuse in other programs and projects, we made a\n[separate standalone script doc2pdf.py](./doc2pdf.py)\nto convert any document that LibreOffice can handle to PDF.\n\n```sh\npython doc2pdf.py ~/mydoc.docx\n```\n\n## .doc / .docx to PDF conversion\n\nConvert a directory of .doc / .docx to .pdf by:\n\n```sh\npython -m loutils.doc2pdf ~/Documents\n```\n\n## Printing\n\nCAUTION:\n\nThe doc2print.py script can print an unlimited number of pages to an unwanted printer, possibly causing great expense or violation of private documents to a public printer. Use great care with these scripts, preferably to a local non-networked printer you are sitting next to.\n\n```sh\npython -m loutils.doc2print ~/mydocs\n```\n\nThe `-exe` parameter allows selecting the printing program.\nThe script does not check that the files can be printed appropriately, it just prints.\nThus use the `-s` parameter to select only the suffixes wanted.\nFor example to print all Markdown files in a directory with Notepad++:\n\n```sh\npython -m loutils.doc2print ~/mydocs -s .md -exe notepad++\n```\n\nLibreOffice 7.2 finally fixed file globbing, but we use explicit for-looping to work with older LibreOffice.\nLibreOffice is not thread-safe, so documents are converted or printed one at a time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Foffice-headless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscivision%2Foffice-headless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Foffice-headless/lists"}