Simple module that provides integration with pdftohtml php library (https://packagist.org/packages/gufy/pdftohtml-php).
Generates nodes from the given PDF documents and stores generated HTML as a cotent for target textarea field.
Optionally you can store the pdf document in the target Content type file field.

Requirements

Requires Poppler-utils to be installed on the server.

Installation

  • Run *composer install* inside module project root folder
  • Install Poppler-utils

Configuration

  • Set Poppler utils install path on the form admin/config/development/pdf-html
  • Enter PDF files folder location
  • Choose Target Content Type
  • Choose target field where to store generated HTML
  • Optionally set file field to store processed PDF file

Project link

https://www.drupal.org/project/pdf_html

Git instructions

git clone --branch 7.x-1.x https://git.drupalcode.org/project/pdf_html.git

PAReview checklist

https://pareview.sh/pareview/https-git.drupal.org-project-pdf_html.git

Comments

arthur.baghdasar created an issue. See original summary.

avpaderno’s picture

Issue summary: View changes

Thank you for your contribution! I added the PAReview checklist. Reviewers will soon check the code and report here what they found out.

If you still haven't done it, please check what reported from the PAReview checklist. There could be some false positives; be careful of not changing code that should not be.

avpaderno’s picture

klausi’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -PAreview: single application approval

* "variable_get('pdf_html_poppler_location', '/usr/local/bin')": all variables created by your module must be removed in hook_uninstall().
* "'#value' => 'Start',": all user facing strings must run through t() for translation. Please check all your strings.
* _pdf_html_config_form(): doc block is wrong, this is not a hook but a form building function. See https://www.drupal.org/docs/develop/standards/api-documentation-and-comm... . Same for the validate and submit callabck.

Otherwise looks good to me!

@kiamlaluno: I removed the single application approval tag, we have 330 lines of code here using various APIs, so that should be enough for general approval?

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

avpaderno’s picture

I guess I put the tag in the wrong issue, or I checked the wrong branch. The code in this project is sufficient for this application.

arthur.baghdasar’s picture

Thank you klausi and kiamlaluno for your help. Will review the code again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.