power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

FPDF not working in Prado 3.1.7 and Above! #422

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I tried upgraded into prado 3.1.7 and above I've got fpdf error as I 
attached in this topic, is this bugs? I try to change fpdf version but I've got 
same error, I appreciate if Prado Team could fix this problem, because I need 
reporting module using FPDF as an PDF Creator engien. Thanks!

Error sample:

%PDF-1.3 3 0 obj <>>><>>><>>>] /Contents 4 0 R>> endobj 4 0 obj <> stream 
x��S�NC1��a��N��#H 
Q!��e`��,�>��P����'��D`�"����   .o��
�`����=''̧F����5�^�����n�:����#��
���?ǹ���i�>=�qg 
�#0��w�o�I���%�v�**�r�P�   Ws�\�j�j�
M�:���CJ�{+od�ke*�"�c.�R9�w5R�P���5��w�
o�9��q���Ԩ��=�漗����LI

Original issue reported on code.google.com by intergo....@gmail.com on 15 Aug 2012 at 5:26

GoogleCodeExporter commented 8 years ago
As per discussion in the forum: 
http://www.pradoframework.com/forum/index.php?topic=15330 :
for prado 3.1.7 and above, i must add 
$this->getResponse()->setContentType("application/pdf");

Original comment by ctrlal...@gmail.com on 18 Aug 2012 at 11:46