You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.
I was writing a big ticket where I asked "HELPP, can you help me to run your lib on OS/X please ?" but by writing my issue, I've found the solution ! Then I thought it will be a good idea to share the tips.
1. Install brew
Brew is a famous package manager on OS/X : http://brew.sh/ (aptitude style).
2. Install poppler
brew install poppler
3. Verify the path of pdfinfo and pdftohtml
$ which pdfinfo
/usr/local/bin/pdfinfo
$ which pdftohtml
/usr/local/bin/pdfinfo
4. Whatever the paths are, use Gufy\PdfToHtml\Config::set to set them in your php code. Obviously, use the same path as the one given by the which command;
<?php// if you are using composer, just use thisinclude'vendor/autoload.php';
// change pdftohtml bin location
\Gufy\PdfToHtml\Config::set('pdftohtml.bin', '/usr/local/bin/pdftohtml');
// change pdfinfo bin location
\Gufy\PdfToHtml\Config::set('pdfinfo.bin', '/usr/local/bin/pdfinfo');
// initiate$pdf = newGufy\PdfToHtml\Pdf('file.pdf');
// convert to html and return it as [Dom Object](https://github.com/paquettg/php-html-parser)$html = $pdf->html();
?>
Everything will work like a charm ! :-)
Stéphane
The text was updated successfully, but these errors were encountered:
kaleidoscopique
changed the title
(Tuto) How to run this library on OS/X with MAMP ?
(Tuto) How to run this library on OS/X ?
Aug 10, 2015
Hi Mochamad,
Thanks a lot for this awesome library !
I was writing a big ticket where I asked "HELPP, can you help me to run your lib on OS/X please ?" but by writing my issue, I've found the solution ! Then I thought it will be a good idea to share the tips.
1. Install brew
Brew is a famous package manager on OS/X : http://brew.sh/ (aptitude style).
2. Install poppler
3. Verify the path of pdfinfo and pdftohtml
4. Whatever the paths are, use
Gufy\PdfToHtml\Config::set
to set them in your php code. Obviously, use the same path as the one given by thewhich
command;Everything will work like a charm ! :-)
Stéphane
The text was updated successfully, but these errors were encountered: