L
L
leni_m2018-06-18 16:10:22
PHP
leni_m, 2018-06-18 16:10:22

How to send a pdf string to be printed?

I use the dompdf class .
I found two methods for outputting pdf:

1. $dompdf->stream(); // скачивает пдф в браузере
2. $dompdf->output(); // возвращает пдф как строку

With the second I don’t understand how it works, the browser does not display anything.
I need something to open the PDF in the browser (for further printing or downloading).
How to achieve this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Urich, 2018-06-18
@leni_m

output - returns pdf as a string. And stream is just the opposite, outputs to the browser

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question