Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Failed to open stream. HTML file not getting created. #9

Open
pankajmanay opened this issue Apr 5, 2017 · 6 comments
Open

Failed to open stream. HTML file not getting created. #9

pankajmanay opened this issue Apr 5, 2017 · 6 comments

Comments

@pankajmanay
Copy link

Using laravel, it is giving below error.

ErrorException in Pdf.php line 158:
file_get_contents(/var/www/html/proj10/vendor/tonchik-tm/pdf-to-html/src/../output/58e4a9a5aeedd/1.html): failed to open stream: No such file or directory

@tonchik-tm
Copy link
Owner

For the script to work properly you need to specify the directory for the export.
$pdf->setOutputDir('./tmp/' . uniqid());
Or "vendor" directory needs to be writable.

@pankajmanay
Copy link
Author

Hi,

I tried with both way. It's not working. I gave Vendor folder 777 permission also.

@evalencia-lancera
Copy link

evalencia-lancera commented May 18, 2017

Hi,

Any updates on this issue? I am also getting same error.

Error message:
file_get_contents(/home/ubuntu/gmc-dev/public_html/public/uploads/esig/tmp/591d32396e104/1495085625_pdf-test.html): failed to open stream: No such file or directory

Here's my code: Click to see code

note:

  • the value of $this->data['uploaded_file_path_src'] is /home/ubuntu/gmc-dev/public_html/public/uploads/esig/1495085625_pdf-test.pdf

  • destination path is already writeable (777)

@drewgash
Copy link

Still no updates on this issue?

@drewgash
Copy link

I found the issue.

sudo yum install poppler-utils

That installs an old version (0.12.4) which does not have pdftohtml command options like "-s" and "-fmt".

Go to this page https://medium.com/@jakebathman/building-poppler-utils-for-centos-6-5-really-e52eccffc6ae to guide you on how to get a later version of poppler-utils. I installed https://poppler.freedesktop.org/poppler-0.22.5.tar.gz instead of 0.13.4 as instructed.

All the best!

@RichardFerlow
Copy link

installing poppler-0.22.5 helps me too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants