$pdf->Output('VivesPromocion.pdf', 'I');
return;
type:"POST", url: "http://../pdf.html"
header('Content-Type: application/pdf');
header('Content-Disposition: inline; filename="VivesPromocion.pdf"');
exit($pdf->Output('VivesPromocion.pdf', 'I'));Use something like this:
header('Content-Type: application/pdf'); header('Content-Disposition: inline; filename="VivesPromocion.pdf"'); exit($pdf->Output('VivesPromocion.pdf', 'I'));
MODX should not touch the output after TCPDF has done the work.