DOMPDF set download location

0

Good morning guys. I would like to know how do I set the download target location of the dompdf function.

//Para realizar o download somente alterar para true
$dompdf->stream("documento_para_download.pdf", array("Attachment" => false));

I'm not sure if there is any structure that goes along this line that is next to the context of the pdf that is available here:

//referenciar o DomPDF com namespace
use Dompdf\Dompdf;

// include autoloader
require_once("dompdf/autoload.inc.php");

//Criando a Instancia
$dompdf = new DOMPDF();

// Carrega seu HTML
$dompdf->load_html('');
/Renderizar o html
$dompdf->render();

//Exibibir a página
//Para realizar o download somente alterar para true
$dompdf->stream(documento_para_download.pdf", array("Attachment" => false));

And soon the file information comes. just need to tell him where to save

    
asked by anonymous 15.09.2017 / 16:42

0 answers