Hi all

i just upgraded to 2.0-dev
the only big problem i'm encountering are on-the-fly generated PDFs
i'll use one of my views as example

model/controller: this is a PageController action, without data and
without model. it just changes the layout from "default" to "pdf"

PdfHelper: that's a simple TCPDF wrapper that loads an istance of
TCPDF during startup

layout:
[PHP]
header("content-type: application/pdf");
echo $content_for_layout
[/PHP]

view:
[PHP]
$this->Pdf->PdfLib->addPage()
//some random TCPDF commands
$this->Pdf->pdfLib->Output("myPDF");
[/PHP]

all this code worked flawlessy in 1.3.6 but in 2.0-dev the PDFs are
printed just like HTML code

%PDF-1.7 7 0 obj << /Type /Page /Parent 1 0 R /LastModified (D:
20110111120027+01'00') /Resources 2 0 R /MediaBox [0.00 0.00 595.28
841.89] /CropBox [0.00 0.00 595.28 841.89] /BleedBox [0.00 0.00 595.28
841.89] /TrimBox [0.00 0.00 595.28 841.89] /ArtBox [0.00 0.00 595.28
841.89] /Contents 8 0 R /Rotate 0 /Group << /Type /Group /S /
Transparency /CS /DeviceRGB >> /Annots [ 6 0 R ] /PZ 1 >> endobj 8 0
obj <> stream x��]]��6�}��<��#�  ��jێ�x*��z\S Om� ��-IlSl{����� H� 
$] h ��ʃ Q�

why?

is cake formatting the output?

i can't get rid of that

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to