-
Notifications
You must be signed in to change notification settings - Fork 94
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
PHP example #18
Comments
There is much easier way to do it without curl: $context = stream_context_create(
[
'http' => [
'method' => 'POST',
'header' => 'Content-Type: application/json',
'content' => json_encode(
[
'contents' => base64_encode('<h1>html content here</h1>')
]
)
]
]
);
$pdf = file_get_contents("http://127.0.0.1:1234", null, $context); |
pdf is created, but images does not display |
I adition to nazar-pc comment, you can send wkhtmltopdf options like this.
|
Thought it might be useful for someone to see a PHP example.
The text was updated successfully, but these errors were encountered: