anyconv-document-basic
Документы и презентации AnyConv: PDF, DOC, DOCX, ODT, RTF, PPT, PPTX, ODP.
Возможности
word-convert— DOC, DOCX, ODT, RTF → PDF, DOCX, ODT, RTF.presentation-convert— PPT, PPTX, ODP → PDF, PPTX, ODP.document-extract-text— PDF и офисные документы →text:plain.document-render-pages— PDF и офисные документы → набор PNG-страниц (например, PPTX → изображения слайдов). Результат отдается ZIP-архивом в сайте.text-document-convert— прямая вставка обычного текста или Markdown → PDF, DOCX.document-markup-convert— PDF/DOCX/DOC/ODT/RTF → HTML или Markdown.document-render-pagesподдерживаетpages— выбранный диапазон страниц.document-markup-convert— PDF/DOCX/DOC/ODT/RTF → HTML или Markdown.
Зависимости
- LibreOffice (
soffice) для офисных форматов; PDF-текст и PDF-страницы работают без него. - Python-пакеты
python-docx,python-pptx,pypdfium2,Pillow.
Путь к LibreOffice можно указать в конфигурации модуля:
modules:
config:
com.gitlab.raceozr.document-basic:
soffice_path: /usr/bin/soffice
Настройки
| Возможность | Настройка | По умолчанию | Описание |
|---|---|---|---|
document-extract-text |
page_breaks |
true |
Разделять страницы форм-фидом |
document-extract-text |
include_notes |
true |
Добавлять заметки презентации |
document-render-pages |
dpi |
144 |
Разрешение PNG-страниц, 72–300 |
Установка и проверка
pip install "anyconv-core[all] @ git+https://gitlab.com/raceozr/anyconv-core.git@v1.0.0"
pip install "git+https://gitlab.com/raceozr/anyconv-modules.git@v1.0.1#subdirectory=modules/document-basic"
# ?????????? ?? checkout anyconv-modules
cd modules/document-basic
pip install -e ".[dev]"
pytest
anyconv module validate .
anyconv module test .
Metadata
Release files for anyconv-document-basic 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anyconv_document_basic-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for anyconv_document_basic-1.0.1-py3-none-any.whl |
Release files / anyconv_document_basic-1.0.1-py3-none-any.whl
| Download URL | anyconv_document_basic-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
610fa30b6898067cd09e8b1a689ecdeef593365255014f8e8ebb8bc3e9833037
|
|
BLAKE2b-256 checksum How to use checksums |
185847ce898b8f6754781cb620c88db472ccb067c6e85e021da7d5a5a45fccad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for anyconv-document-basic 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.