-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhpChromeToPdf Timing Out #23
Comments
Hello Zach, |
Dawood,
It’s a Laravel install and I’m using it to convert a rendered view (HTML)
to a pdf, just standard usage. I added the —headless and —disable-gpu to
the commands too
Is it running out of RAM maybe?
Thanks
- Zach
…On Sat, Feb 3, 2018 at 12:58 AM Dawood Ikhlaq ***@***.***> wrote:
Hello Zach,
can you provide some more information , any POC ?, or how are you using
this package?
thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APu0PwVrKksJO-aYI9eVXUXE6FAWQVgWks5tRB-ugaJpZM4R3_aN>
.
|
please try that with very simple html page like hey e.g |
I believe that it's google-chrome right? And has the code been updated to reflect Chrome's new bug with headless mode? It no longer allows from root if |
yeah that's google-chrome , and did you try to run that above command from shell? in case it works try passing that argument to chromePdf as following
|
I tried it in my console for github and it worked flawlessly, about 4 seconds, but in browser even with --no-sandbox it still doesn't work |
Pleasd share your code to get pdf,
…On Feb 4, 2018 12:55 AM, "IAmDragon" ***@***.***> wrote:
I tried it in my console for github and it worked flawlessly, about 4
seconds, but in browser even with --no-sandbox it still doesn't work
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADXPUJBaER4gj04iNvgy_Yy4hDeEir7tks5tRPIBgaJpZM4R3_aN>
.
|
|
why PHP_EOL in path?
…On Feb 4, 2018 12:57 AM, "IAmDragon" ***@***.***> wrote:
$Chrome = new Chrome(NULL, '/usr/bin/google-chrome');
$Chrome->setWindowSize($width=1024, $height=768);
$Chrome->setArgument('--no-sandbox','');
$HTML = view('downloadProfile')->render();
$Chrome->useHTML($HTML);
$Path = $Chrome->getPdf(public_path().'/'.Auth::user()->id.'/').PHP_EOL;
return response()->download($Path, 'Resume.pdf')->deleteFileAfterSend(true);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADXPUIYQ_yUf9JwOebk3wZWCj3ogvhfBks5tRPKGgaJpZM4R3_aN>
.
|
It was in the documentation so I thought it was necessary, my apologies |
Still timing out even after removing the PHP_EOL |
can you try with simplest html as i mentioned above
|
I did try that, it still timed out |
if you don't see any error it might be memory issue but try this way, remove deleteFileAfterSend and verify manually if the file has been created there ? and also try to debug the path value , |
Still doesn't work for some unknown reason. If you wish I can give you the credentials to see if I effed up somewhere, but I followed instructions to the T |
hey ,
then check manually the resume in public path.
you had used this way
hope this would solve your problem , and sorry for late reply |
Hey,
Followed install instructions but my web server times out before the application returns a response. I'm only loading ~4 external resources (all on my web server), and I'm not doing anything crazy, so it should work
Any thought as to why it would return that?
Thanks
The text was updated successfully, but these errors were encountered: