TransparencyToolkit / UploadConvert

Tools for converting documents uploaded to Transparency Toolkit to properly formatted JSONs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UploadConvert takes documents and converts them to a JSON format for Transparency Toolkit or other applications using the appropriate set of document conversion tools.

To use-
u = UploadConvert.new(file or url)
u.handleDoc (or use below methods for more specific handling)

Convert PDF to JSON-
u.pdfTojson

Get text from PDF-
u.detectPDFType

Extract metadata from PDF-
u.extractMetadataPDF

Convert XML to JSON-
u.xmlTojson

About

Tools for converting documents uploaded to Transparency Toolkit to properly formatted JSONs.

License:GNU General Public License v3.0


Languages

Language:Ruby 100.0%