mgufrone / pdf-to-html

PDF to HTML PHP Class using Poppler-Utils
MIT License
176 stars 89 forks source link

How to Use on Windows without composer #21

Closed MattIPv4 closed 7 years ago

MattIPv4 commented 8 years ago

How on earth do I use this without composer?

I just want to do simple PDF to HTML, which file do I include?

MattIPv4 commented 8 years ago
function __autoload($class_name) {
    $class_name = explode("\\", $class_name);
    $class_name = $class_name[count($class_name)-1];
    require_once('pdf-to-html/'.$class_name.'.php');
}

$config = new Gufy\PdfToHtml\Config();

// change pdftohtml bin location
$config->set('pdftohtml.bin', 'C:/poppler-0.47/bin/pdftohtml.exe');

// change pdfinfo bin location
$config->set('pdfinfo.bin', 'C:/poppler-0.47/bin/pdfinfo.exe');

Gives: Fatal error: Uncaught Error: Call to undefined method Gufy\PdfToHtml\Config::set()

ravikarodiya commented 8 years ago

Check this May be it is useful for you http://stackoverflow.com/questions/14782751/convert-pdf-to-html-in-php