robzarryjr
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Great feedback, thanks!
Only thing would like to have investigated is the fact that the images did not get inserted correctly. The one at the top of the original PDF is missing from both the post and the media library and the footer contains two copies of one image and is missing the third from the right image from the original pdf.
Does this explanation make sense?
If not, I can make two printouts, scan them and attach to the contact form you previously sent the link to.
Thanks for all your help!
Rob
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Apologies for the late reply, went out for a while!
Tried the upgrade the plugin, ran into a permissions issue, probably on my side as it was a manual install starting with a blank Ubuntu image & building the LAMP stack then installing wordpress.
Once version two was installed I see the following:
1) When first clicking New Post from PDF, this message appears at the top left corner:
The security check failed
2) I ignored that & uploaded a single PDF (the one that was in the zip file I sent earlier today) & got the following:
File upload successful! /var/www/html/wp-content/uploads/2018/02/Meals-for-Montana-Funding-1-3.pdf
Go to new post : Meals-for-Montana-Funding-1-33) New post is created and accessible via the Go to new post link above. There are two issues with the conversion:
3.1) Images are not correctly substituted / sized
3.2) Text formatting is not correct.I published the page to: https://159.65.232.72/2018/02/26/meals-for-montana-funding-1-3/ so you can compare the original PDF with the generated page.
I figured it would be better to stop here & check / fix before moving on to the ZIP file test…
Please let me know if you have questions.
Thanks!!!
Rob
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Sorry about that! I thought I had done the installation steps properly but was guessing it was a mistake on my side… If there is any information (versions, etc.) that I can provide to help you troubleshoot please let me know. Happy to help, love this plugin’s functionality!!!
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Here’s the larger picture of the project:
I’m helping Kimberley Motley put a database of world laws online.
I have a zip file that has a directory per country then inside each directory is a list of files that represent whatever law documentation is available.
In an ideal world PDF 2 POST would take open the master zip file, create a top level page per country that was blank, then add a sub-page per country where each page was the name of the file and the text on the page was the contents of the file.
This feels like a special use case so may not be part of your core product design / plan.
If so, I completely understand, just trying to see how much manual labor I can avoid via this awesome plugin.
If it doesn’t fit your plans, I’ll probably work on scripting something from the command line level, that just feels painful… ??
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Happy to send the zip file, don’t see a way to attach via this UI?
Send by email?
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Here’s the debug log:
[25-Feb-2018 14:10:01 UTC] Using command: python -c ‘import sys; print sys.version’
[25-Feb-2018 14:10:01 UTC] Py version: [GCC 5.4.0 20160609]
[25-Feb-2018 14:10:01 UTC] Array
(
[0] => 2.7.12 (default, Dec 4 2017, 14:50:18)
[1] => [GCC 5.4.0 20160609]
)[25-Feb-2018 14:10:01 UTC] PHP Notice: Undefined variable: additionnalText in /var/www/html/wp-content/plugins/pdf2post/pdf2post.php on line 75
[25-Feb-2018 14:10:43 UTC] Array
(
[name] => Meals for Montana Funding .pdf.zip
[type] => application/zip
[tmp_name] => /tmp/phpKTA9Q1
[error] => 0
[size] => 464169
)[25-Feb-2018 14:10:43 UTC] <—
[25-Feb-2018 14:10:43 UTC] <— Multiple Files received (draft) :
[25-Feb-2018 14:10:43 UTC] <—
[25-Feb-2018 14:10:43 UTC] PHP Warning: ZipArchive::open(): Empty string as source in /var/www/html/wp-content/plugins/pdf2post/pdf2post.php on line 258
[25-Feb-2018 14:10:43 UTC] CANNOT OPEN zip here:
[25-Feb-2018 14:10:43 UTC] Using command: python -c ‘import sys; print sys.version’
[25-Feb-2018 14:10:43 UTC] Py version: [GCC 5.4.0 20160609]
[25-Feb-2018 14:10:43 UTC] Array
(
[0] => 2.7.12 (default, Dec 4 2017, 14:50:18)
[1] => [GCC 5.4.0 20160609]
)[25-Feb-2018 14:10:43 UTC] PHP Notice: Undefined variable: additionnalText in /var/www/html/wp-content/plugins/pdf2post/pdf2post.php on line 75
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Hmm, I don’t see a a log file there?
/var/www/html/wp-content$ ls
index.php plugins themes upgrade uploadsI’m probably doing something wrong, just not sure what it is?
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Thanks for the offer.
This is a much larger discussion, and one I’d like to have once I get past this first issue and can upload a single zip file with a PDF in it…
Does PDF to Post produce a log file that I can check to see what the problem is?
If not, what’s the best way to troubleshoot?
Thanks!
Forum: Plugins
In reply to: [PDF 2 Post] Installation problem?Thanks for the speedy reply!
I think the server installations are OK. Here’s what I see on the plugin page:
The following libraries NEED to be installed on your server :
ZipArchive Ok
PDFMiner
Python
Installed: 2.7.12 (default, Dec 4 2017, 14:50:18)
pdfimagesI tested PDFMiner using the command line instructions in their installation guide. Not sure how to best test ZipArchive & pdfimages?
Happy to jump on a screen sharing session if that is easier for you.
Also, I have a zip file with hundreds of PDFs in it that is organized by directory. Is that something PDF 2 POST can handle?
Thanks!!!
Rob