It is gem for parsing pdf files.
This gem requires pdfinfo
app, part of poppler-utils
.
Also imagemagick
required.
-
Install system dependencies:
-
Debian-Based Linux:
sudo apt-get install imagemagick \ libmagickwand-dev \ poppler-utils
-
Fedora-Based Linux:
sudo dnf install ImageMagick \ ImageMagick-devel \ poppler-utils
-
-
Install gem by command:
gem install onlyoffice_pdf_parser
require 'onlyoffice_pdf_parser'
OnlyofficePdfParser::PdfParser.parse('Text.pdf')