Comments (18)
same here.
from docsplit.
i used this patch and it fixed the issue for me ... in the Gemfile
gem "docsplit", :git => "https://github.com/senner/docsplit.git"
from docsplit.
Yep, that definitely works much better that way :) Thx ! Has anyone done a PR for that fix?
from docsplit.
yep, @emorris put one in. And now that i see the problem i will get this merged and pushed out. Thanks to both of you, and sorry for the bug!
from docsplit.
Great, thank you :)
from docsplit.
This was also reported on #68
from docsplit.
please don't hameer me, I'm just learning how to work Plone and all the wonderfull tools that come with it... Python, Rubt gems, eggs etc etc etc. And also not a strong Unix base either. Having said all that I'm slowly getting there. However, I have Doc.Viewer in Plone and want to install the patch above to get it working for Office files. What I need is a little more direction on how to install the fix. I used the command above, but returns no file or dir error. I'm guessing there is more to this process and it would be appreciated for some further direction.
thanks
from docsplit.
Jody, i responded on the plone thread.
from docsplit.
I am also having the same issue. I have libreoffice 4 installed on Amazon Ec2 Ubuntu and docsplit version is 0.7.2. The error i am having is
Could not find the main class: /usr/lib/libreoffice. Program will exit.
I tried to this as solution mentioned in this thread:
gem "docsplit", :git => "https://github.com/senner/docsplit.git"
But i got following error:
-bash: https://github.com/senner/docsplit.git: No such file or directory
Can anyone help to guide us a step by step solution?
OK I Followed the steps of senner
On the command line:
find / -name pdf_extractor.rb
It should report back a file location. At the command line cd to the folder above:
cd **FOLDERABOVE**
rm pdf_extractor.rb
wget https://raw.github.com/senner/docsplit/79b75cdc639a724fa611e8a37423bad56adba05a/lib/docsplit/pdf_extractor.rb
Now i am getting this error:
Exception: [Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!
Warning: failed to read path from javaldx
Thanks!
from docsplit.
is this fixed?
from docsplit.
Yes.
Although I do apologize, this was a long time ago, and I do not remember
the exact steps to fix it. At the time I think Nathan help me out with
it.
Since then I have set up a Dev server for Plone and used LibreOffice and
Documents viewer in Plone and not experienced any further issue.
Jody Reed
IS Assistant
LMG Finance Inc.
Ph. 877.806.6247
Fx. 877.806.6249
From: Marcos Vanetta [mailto:[email protected]]
Sent: Wednesday, October 16, 2013 11:08 AM
To: documentcloud/docsplit
Cc: Jody Reed
Subject: Re: [docsplit] Unable to use LibreOffice on version 0.7.2 ->
Could not find or load main class .usr.lib.libreoffice (#71)
is this fixed?
Reply to this email directly or view it on GitHub
<#71 (comment)
19> .
<https://github.com/notifications/beacon/m9FORteqt_VKaxhIibBN3J-p9efCRlQ
Es2i5SS-JQYraGHKPVuxBTc2OR3_4EHaZ.gif>
from docsplit.
No, but thank you for the reminder. have a copy of libreoffice4.1 installing on osx right now. will get to testing it on ubuntu12.04 this afternoon.
from docsplit.
Oh, fine, if that's the case, i'll check with Nathan, and close this out, once we're clear.
from docsplit.
I'm on Ubuntu 13.04, with LibreOffice 4.0.2.2 and docsplit (0.7.2) and I'm still getting:
Error: Could not find or load main class .usr.lib.libreoffice
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:144:in `run_jod'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:123:in `block in extract'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:104:in `each'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:104:in `extract'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit.rb:58:in `extract_pdf'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/transparent_pdfs.rb:16:in `block in ensure_pdfs'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/transparent_pdfs.rb:10:in `map'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/transparent_pdfs.rb:10:in `ensure_pdfs'
/home/deployer/apps/mapa76.info/hephaestus/releases/20131016172832/lib/resque/normalization_task.rb:26:in `block in perform'
/home/deployer/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/tempfile.rb:320:in `open'
/home/deployer/apps/mapa76.info/hephaestus/releases/20131016172832/lib/resque/normalization_task.rb:145:in `create_tempfile'
/home/deployer/apps/mapa76.info/hephaestus/releases/20131016172832/lib/resque/normalization_task.rb:18:in `perform'
from docsplit.
Its not fixed. It didn't work out for me on LibreOffice 4.0 so i degraded to the lower version.
from docsplit.
Also seeing this on SLES 11 x64 SP1:
# uname -a
Linux - 3.0.42-0.7-default #1 SMP Tue Oct 9 11:58:45 UTC 2012 (a8dc443) x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1
# soffice --version
LibreOffice 4.0-5
# ls -lh `which soffice`
/usr/bin/soffice -> ../lib64/libreoffice/program/soffice
# docsplit pdf <filename>
Error: Could not find or load main class .usr
from docsplit.
That should be the same problem as the others. docpslit pdf_extractor.rb isn't picking up the version correctly. This pull request was never merged: #68
from docsplit.
I've monkey patched #68 and it worked awesome!!
This is my environment:
hidden : lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
hidden : dpkg -l | grep libreoffice
ii libreoffice 1:4.0.2-0ubuntu1 amd64 office productivity suite (metapackage)
from docsplit.
Related Issues (20)
- Percent sign in filenames isn't escaped properly
- "undefined method `strip' for nil:NilClass" occurs when attempting "Docsplit.extract_pdf" HOT 8
- encoding issue HOT 1
- rails invalid byte sequence in UTF-8 HOT 1
- Horizontal / table formatted text
- Executable filename issue with latest version (5.0.4) of LibreOffice on RHEL HOT 1
- Can any one please tell me how to pass file path as url to Docsplit ? HOT 2
- Docsplit::TextExtractor#extract_text should return the path of the output text file? HOT 2
- Downsampling has gotten worse in the last year
- Error "MAGICK_TEMPDIR" no se reconoce como comando interno o externo.
- Docsplit.extract_text auto orientation detection 'detect_orientation: true' param does not work.
- Email address contains more than three special chars(punctuation) is removed by Docsplit.clean_text method
- Different behavior on mac and linux
- diskspace leak when extracting text from pdf HOT 1
- Docsplit.extract_text generates a String with a null byte
- Docsplit.extract_images(path) => bin/rails: No such file or directory - file HOT 2
- Docsplit working on Dev, Staging server but not on Production.
- Docsplit::ExtractionFailed: gm convert: Unable to open file (/tmp/docsplit/58371.pdf) [No such file or directory]
- ruby 3.2 compatibility
- "Error: source file could not be loaded"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docsplit.