It says how to use it in the plugin's documentation:
https://github.com/coisa/CakePDF/blob/master/README.markdown
When initializing the component:
public $components = array(
'CakePdf.CakePdf' => array(
'prefix' => 'pdf',
'layout' => 'CakePdf.pdf',
'filename' => '{name_of_action}.pdf', // this is the name on output pdf
(when force download occurs)
'orientation' => 'P', *// accept 'P' for portrait and 'L' for
landscape*
'paper' => 'A4' // accept all paper types of tcpdf library
)......
So, *P *for Portrait, *L *for Landscape.
On Friday, 20 July 2012 00:59:07 UTC+3, Elisio Leonardo wrote:
>
> Hi guys,
>
> How can I change page orientation from portrait to landscape with CakePDF
> plugin?
>
> I have looked at the source code and in CakePDF class i can see the
> $_orientation variable, so the main question is, where should i use the
> CakePDF class? In my controller or in views?
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php