This module converts doc or docx to html data, the result will be stored in a content type field (chosen by administration site).
After this process the converted file will be deleted.
This module provide an interface to set:
- Basic Settings
- Import to Field
- Libre Office Settings
Basic Settings :
-PATH TO SAVE HTML FILE
define a temporary folder to store file, this parameters is preset at installation
-PARSE DATA
Execute UTF-8 Encode on html data
Execute Regex to extract only body content without head and other tags
Import to Field :
- A LIST OF CONTENT TYPE
If this content type has a "text long" or "text long with summary" field of type, the system shows a checkbox and REGEX filter, use this information to store html data.
Important :
this setting provide to add an extra field file at content type
Libre Office Settings
-Base Path Application
This is a folder to store application libreoffice, on Linux and MAC this field is preloaded but it set if you have a different folder for libreoffice
- Command
This is the basic command name to run it form terminal, on linux is soffice on MAC is ./soffice
Requirements:
- Drupal 7.x - 8.x
- Libreoffice commandline utility is still required on the server however.
- Mac or Linux server full support with preload data
- Windows not complete support
Installation (7.x- 8.x)
You must have the libreoffice tools available on your server, and have the right to be called from the commandline.
In this moment the module support only linux and mac os
Windows not include preload data, configure base folder and application command by yourself
Use command on linux terminal to install it:
sudo apt-get install libreoffice
If on the system alrady have libreoffice and it cannot write files, uninstall it using command:
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
Install now using code
sudo apt-get install libreoffice
Configuration :
- Set path to destination temporary import file
- Set basic import file UTF-8 encode
- Basic regex to extract only content of body file
- Apply extra regex to filter extra content
- Select field to destination HTML data
Project information
- Module categories: Developer Tools
- 48 sites report using this module
- Created by sjpagan on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 25 Mar 2017 at 01:23 UTC