All Projects → delimitry → compressed_rtf

delimitry / compressed_rtf

Licence: MIT license
Compressed Rich Text Format (RTF) compression and decompression in Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to compressed rtf

documentspark
💖 DocumentSpark - Simple secure document viewing server. Converts a document to a picture of its pages. Content disarm and reconstruction. CDR. Formerly p2. The CDR solution for ViewFinder remote browser.
Stars: ✭ 211 (+859.09%)
Mutual labels:  rtf
unrtf
Wrapper for 'unrtf' utility to extract text from RTF documents
Stars: ✭ 14 (-36.36%)
Mutual labels:  rtf
arrow-finder
These docs help you to find and use arrows you need more quickly
Stars: ✭ 24 (+9.09%)
Mutual labels:  rtf
Oletools
oletools - python tools to analyze MS OLE2 files (Structured Storage, Compound File Binary Format) and MS Office documents, for malware analysis, forensics and debugging.
Stars: ✭ 1,848 (+8300%)
Mutual labels:  rtf
Phpword
A pure PHP library for reading and writing word processing documents
Stars: ✭ 6,017 (+27250%)
Mutual labels:  rtf
Koodo Reader
A modern ebook manager and reader with sync and backup capacities for Windows, macOS, Linux and Web
Stars: ✭ 2,938 (+13254.55%)
Mutual labels:  rtf
GemBox.Document.Examples
Read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF, and TXT) in a simple and efficient way.
Stars: ✭ 53 (+140.91%)
Mutual labels:  rtf
striprtf
Stripping rtf to plain old text
Stars: ✭ 56 (+154.55%)
Mutual labels:  rtf
Wedge
可配置的小说下载及电子书生成工具
Stars: ✭ 62 (+181.82%)
Mutual labels:  rtf
RtfPipe
Library for processing rich-text format (RTF) streams
Stars: ✭ 83 (+277.27%)
Mutual labels:  rtf
rtf-html-php
RTF to HTML converter in PHP
Stars: ✭ 88 (+300%)
Mutual labels:  rtf
highlight
Source code to formatted text converter
Stars: ✭ 44 (+100%)
Mutual labels:  rtf
rtfraptor
Extract OLEv1 objects from RTF files by instrumenting Word
Stars: ✭ 50 (+127.27%)
Mutual labels:  rtf
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (+204.55%)
Mutual labels:  rtf
vscode-language-rtf
RTF Language Extension for Visual Studio Code
Stars: ✭ 17 (-22.73%)
Mutual labels:  rtf

compressed_rtf

PyPI Build Status Coverage Status MIT license

Compressed Rich Text Format (RTF) compression worker in Python

Description:

Compressed RTF also known as "LZFu" compression format

Based on Rich Text Format (RTF) Compression Algorithm:

https://msdn.microsoft.com/en-us/library/cc463890(v=exchg.80).aspx

Usage example:

>>> from compressed_rtf import compress, decompress
>>>
>>> data = '{\\rtf1\\ansi\\ansicpg1252\\pard test}'
>>> comp = compress(data, compressed=True)  # compressed
>>> comp
'#\x00\x00\x00"\x00\x00\x00LZFu3\\\xe8t\x03\x00\n\x00rcpg125\x922\n\xf3 t\x07\x90t}\x0f\x10'
>>>
>>> raw = compress(data, compressed=False)  # raw/uncompressed
>>> raw
'.\x00\x00\x00"\x00\x00\x00MELA \xdf\x12\xce{\\rtf1\\ansi\\ansicpg1252\\pard test}'
>>>
>>> decompress(comp)
'{\\rtf1\\ansi\\ansicpg1252\\pard test}'
>>>
>>> decompress(raw)
'{\\rtf1\\ansi\\ansicpg1252\\pard test}'
>>>

License:

Released under The MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].