Skip to content

Commit

Permalink
Test inline pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
arrubiu committed Nov 17, 2017
1 parent aae3a54 commit ba8fe17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/custom/bandi/src/Controller/PdfController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function view(EntityInterface $node, $view_mode = 'pdf', $langcode = NULL
$mpdf->SetHTMLFooter('<div class="footer">www.sardegnaimpresa.eu</div>');

$mpdf->WriteHTML($output);
$content = $mpdf->Output($this->title($node) . '.pdf', Destination::DOWNLOAD);
$content = $mpdf->Output($this->title($node) . '.pdf', Destination::INLINE);

$headers = [
'Content-Type: application/pdf',
Expand Down

0 comments on commit ba8fe17

Please sign in to comment.