To follow up this is our server feedback for pdfminer
[root@secure ~]# pip install pdfminer.six
Requirement already satisfied: pdfminer.six in /usr/local/lib/python3.6/site-packages (20181108)
Requirement already satisfied: sortedcontainers in /usr/local/lib/python3.6/site-packages (from pdfminer.six) (2.1.0)
Requirement already satisfied: pycryptodome in /usr/local/lib/python3.6/site-packages (from pdfminer.six) (3.7.3)
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from pdfminer.six) (1.12.0)
[root@secure ~]#
Plugin Author
termel
(@munger41)
Hi,
Can you please send a screenshot of the backoffice page and the log file of your wp install (debug.log) ?
Thanks
Plugin Author
termel
(@munger41)
In any case, the plugin is not using pdfminer.six at the moment, but just pdfminer.
Plugin Author
termel
(@munger41)
You should use :
sudo apt-get install poppler-utils
And
sudo apt-get install python-pdfminer
Instead of pip install pdfminer.six
I can send a screenshot of the install. We have both 2.7 and 3.6 python installed. pdfminer in 2.7 and pdfminer.six in 3.6. Are you on slack or how would you like me to get it to you?
Also using RHEL so we’ve tried those commands but with “yum” same result
[root@secure ~]# yum install poppler-utils
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, langpacks, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* EA4: 104.219.172.10
* cpanel-addons-production-feed: 104.219.172.10
* cpanel-plugins: 104.219.172.10
* cloudlinux-x86_64-server-7: cl-mirror.namecheap.com
* epel: mirrors.develooper.com
Package poppler-utils-0.26.5-20.el7.x86_64 already installed and latest version
Nothing to do
[root@secure ~]#
[root@secure ~]# yum install python-pdfminer
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, langpacks, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* EA4: 104.219.172.10
* cpanel-addons-production-feed: 104.219.172.10
* cpanel-plugins: 104.219.172.10
* cloudlinux-x86_64-server-7: cl-mirror.namecheap.com
* epel: mirrors.develooper.com
Package python2-pdfminer-20160614-4.el7.noarch already installed and latest version
Nothing to do
[root@secure ~]#
Plugin Author
termel
(@munger41)
Can you try uploading a pdf anyway and see if it works ?
It may just be a wrong detection of mandatory librairies.
Plugin Author
termel
(@munger41)
You can send your pdf for us to test as well : https://www.termel.fr/contact/
Tried that already this is what happens:
wp_verify_nonce
OK
File uploaded successfully! /home/guardiandesigns/public_html/wp-content/uploads/2019/03/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5.pdf
pdfimages -png /home/guardiandesigns/public_html/wp-content/uploads/2019/03/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5.pdf /home/guardiandesigns/public_html/wp-content/uploads/2019/03/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5_out/_images
Ok
PDFIMAGES : images extracted : 1
-t text -o /home/guardiandesigns/public_html/wp-content/uploads/2019/03/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5_out/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5.text /home/guardiandesigns/public_html/wp-content/uploads/2019/03/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5.pdf
Ok
ERROR: no file created /home/guardiandesigns/public_html/wp-content/uploads/2019/03/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5_out/The-Kenshoo-Q4-2018-Quarterly-Trends-Report-1-4-5.text