tonchik-tm / pdf-to-html

This PHP class can convert your pdf files to html using poppler-utils.
MIT License
54 stars 30 forks source link

Fix pages counting content instead of the array (throwing Countable) #12

Closed akalineskou closed 6 years ago

akalineskou commented 6 years ago

Fixes (PHP 7.2)

A PHP Error was encountered
Severity: Warning

Message: count(): Parameter must be an array or an object that implements Countable

Filename: src/Html.php

Line Number: 59

Backtrace:

File: D:\xampp\htdocs\forologia\vendor\tonchik-tm\pdf-to-html\src\Html.php
Line: 59
Function: count

File: D:\xampp\htdocs\forologia\vendor\tonchik-tm\pdf-to-html\src\Pdf.php
Line: 155
Function: addPage

File: D:\xampp\htdocs\forologia\vendor\tonchik-tm\pdf-to-html\src\Pdf.php
Line: 91
Function: getContent