Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rtf_filter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtf_filter

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

A ruby gem that reads a Rich Text Format (RTF) word processing file and outputs plain text.

== Usage

Convert rtf file to plain text

RtfFilter.to_txt('name_of_file.rtf')

Convert rtf file and format text (this will remove blank lines at top and bottom of document, multiple line breaks and justify text left)

RtfFilter.to_txt('name_of_file.rtf', :format_txt => true)

Convert rtf file to text file. Will create name_of_file.txt

RtfFilter.to_txt_file('name_of_file.rtf', :format_txt => true)

Specify directory text file should be written to

RtfFilter.to_txt_file('name_of_file.rtf', :destination_folder => 'folder_name', :format_txt => true)

Other options

:allow_tags => true #Does not supress output of angle bracketted tags e.g. , default is fase :io_exception => true #Return IO exceptions instead of nil if there is a file / directory problem

== Installation

You need to have the rtf-filter C++ executable installed:

https://github.com/leanbid/rtf-filter

== Bug reports

If you discover a problem with rtf-filter, we would like to know about it.

Our Issues Tracker is available here:

https://pscomputer.lighthouseapp.com/projects/87573-rtf_filter-ruby-gem

== License

COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 Copyright PS Computer Services Ltd 2003-2011

FAQs

Package last updated on 27 Jan 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc